|
@@ -12,12 +12,12 @@ import java.util.Map;
|
|
|
public interface MzBlRecordMapper {
|
|
|
@Insert("insert into mz_bl_record(patient_id,times,emr_no,emr_type,visit_date,doctor_code,dept_code,first_or_not,emr_chief_complaint,emr_hpi,emr_ps,emr_pe,emr_fzjc," +
|
|
|
"emr_process,emr_xyy,emr_yypg,emr_gnpg,emr_jkjy,personal_history,family_history,obsterical_history,weight,temperature,sphygmus,breathe,pressure_high," +
|
|
|
- "pressure_floor,pressure_high_left,pressure_floor_left,tentative_diagnosis,prescription_detail) VALUES (#{patientId,jdbcType=CHAR}," +
|
|
|
+ "pressure_floor,pressure_high_left,pressure_floor_left,tentative_diagnosis,prescription_detail,fz_zl) VALUES (#{patientId,jdbcType=CHAR}," +
|
|
|
"#{times,jdbcType=INTEGER},#{emrNo,jdbcType=VARCHAR},#{emrType,jdbcType=CHAR},#{visitDate,jdbcType=TIMESTAMP},#{doctorCode,jdbcType=CHAR}," +
|
|
|
"#{deptCode,jdbcType=VARCHAR},#{firstOrNot,jdbcType=CHAR},#{emrChiefComplaint,jdbcType=VARCHAR},#{emrHpi,jdbcType=VARCHAR},#{emrPs,jdbcType=VARCHAR}," +
|
|
|
"#{emrPe,jdbcType=VARCHAR},#{emrFzjc,jdbcType=VARCHAR},#{emrProcess,jdbcType=VARCHAR},#{emrXyy,jdbcType=VARCHAR},#{emrYypg,jdbcType=VARCHAR}," +
|
|
|
"#{emrGnpg,jdbcType=VARCHAR},#{emrJkjy,jdbcType=VARCHAR},#{personalHistory},#{familyHistory},#{obstericalHistory},#{weight},#{temperature},#{sphygmus}" +
|
|
|
- ",#{breathe},#{pressureHigh},#{pressureFloor},#{pressureHighLeft},#{pressureFloorLeft},#{tentativeDiagnosis},#{prescriptionDetail})")
|
|
|
+ ",#{breathe},#{pressureHigh},#{pressureFloor},#{pressureHighLeft},#{pressureFloorLeft},#{tentativeDiagnosis},#{prescriptionDetail},#{fzZl})")
|
|
|
int insertMzBlRecord(MzBlRecord mzBlRecord);
|
|
|
|
|
|
|
|
@@ -39,7 +39,7 @@ public interface MzBlRecordMapper {
|
|
|
*/
|
|
|
@Select("select patient_id,times,emr_no,emr_type,visit_date,doctor_code,dept_code,first_or_not,emr_chief_complaint," +
|
|
|
"emr_hpi,emr_ps,emr_pe,emr_fzjc,emr_process,emr_xyy,emr_yypg,emr_gnpg,emr_jkjy,personal_history,family_history," +
|
|
|
- "obsterical_history,weight,temperature,sphygmus,breathe,pressure_high,pressure_floor,pressure_high_left,pressure_floor_left,tentative_diagnosis,prescription_detail " +
|
|
|
+ "obsterical_history,weight,temperature,sphygmus,breathe,pressure_high,pressure_floor,pressure_high_left,pressure_floor_left,tentative_diagnosis,prescription_detail,fz_zl " +
|
|
|
" from mz_bl_record WITH(NOLOCK) where patient_id= #{patientId,jdbcType=VARCHAR} and times =#{times}")
|
|
|
MzBlRecord selectMzBlRecordByPatientIdAndTimes(@Param("patientId") String patientId,@Param("times") Integer times);
|
|
|
|
|
@@ -121,7 +121,7 @@ public interface MzBlRecordMapper {
|
|
|
@Select({"<script>",
|
|
|
"select top ${pageSize} patient_id,times,emr_no,emr_type,visit_date,doctor_code,dept_code,first_or_not,emr_chief_complaint,",
|
|
|
"emr_hpi,emr_ps,emr_pe,emr_fzjc,emr_process,emr_xyy,emr_yypg,emr_gnpg,emr_jkjy,personal_history,family_history," ,
|
|
|
- "obsterical_history,weight,temperature,sphygmus,breathe,pressure_high,pressure_floor,pressure_high_left,pressure_floor_left,tentative_diagnosis,prescription_detail " ,
|
|
|
+ "obsterical_history,weight,temperature,sphygmus,breathe,pressure_high,pressure_floor,pressure_high_left,pressure_floor_left,tentative_diagnosis,prescription_detail,fz_zl " ,
|
|
|
" FROM (SELECT ROW_NUMBER() OVER (ORDER BY mz_bl_record_page.visit_date desc) AS RowNumber,",
|
|
|
"* from dbo.mz_bl_record mz_bl_record_page WITH(NOLOCK) where 1=1 ",
|
|
|
"<when test='patientIds!=null'>",
|
|
@@ -215,6 +215,9 @@ public interface MzBlRecordMapper {
|
|
|
"<when test='pressureFloorLeft!=null'>",
|
|
|
",pressure_floor_left =#{pressureFloorLeft}",
|
|
|
"</when>",
|
|
|
+ "<when test='fzZl!=null'>",
|
|
|
+ ",fz_zl =#{fzZl}",
|
|
|
+ "</when>",
|
|
|
"</trim>"
|
|
|
, "</script>"})
|
|
|
int updateMzBlRecordEmrProcess(MzBlRecord mzBlRecord);
|