|
@@ -300,16 +300,19 @@ public interface DrgDipDao {
|
|
"dagnsWayId=1,icd_text as diseaseName, " +
|
|
"dagnsWayId=1,icd_text as diseaseName, " +
|
|
"icd_code from zy_in_diag_yb " +
|
|
"icd_code from zy_in_diag_yb " +
|
|
"where inpatient_no=#{patNo} and admiss_times=#{times} " +
|
|
"where inpatient_no=#{patNo} and admiss_times=#{times} " +
|
|
- "union " +
|
|
|
|
- "select " +
|
|
|
|
|
|
+ "order by diag_no" )
|
|
|
|
+ List<HisPatientDagns> selectHisPatientAdmDagns(String patNo, int times);
|
|
|
|
+
|
|
|
|
+ @Select("select " +
|
|
"dagnsCategory=case when si_diag_type in ('1','2') then 1 else 2 end, " +
|
|
"dagnsCategory=case when si_diag_type in ('1','2') then 1 else 2 end, " +
|
|
"dagnsTypeId=case when dis_diag_no=1 then 1 else 2 end, " +
|
|
"dagnsTypeId=case when dis_diag_no=1 then 1 else 2 end, " +
|
|
"dagnsWayId=2, " +
|
|
"dagnsWayId=2, " +
|
|
"rtrim(dis_diag_comment) as diseaseName, " +
|
|
"rtrim(dis_diag_comment) as diseaseName, " +
|
|
"rtrim(dis_diag) as icdCode " +
|
|
"rtrim(dis_diag) as icdCode " +
|
|
"from zy_dis_diag_yb " +
|
|
"from zy_dis_diag_yb " +
|
|
- "where inpatient_no=#{patNo} and admiss_times=#{times}")
|
|
|
|
- List<HisPatientDagns> selectHisPatientDagns(String patNo, int times);
|
|
|
|
|
|
+ "where inpatient_no=#{patNo} and admiss_times=#{times} " +
|
|
|
|
+ "order by dis_diag_no")
|
|
|
|
+ List<HisPatientDagns> selectHisPatientDisDangs(String patNo, int times);
|
|
|
|
|
|
@Select("select no,code as oprtCode,name as oprtName from t_case_frontsheet_surgery where bah=#{patNo} and times=#{times}")
|
|
@Select("select no,code as oprtCode,name as oprtName from t_case_frontsheet_surgery where bah=#{patNo} and times=#{times}")
|
|
List<HisPatientOprtInfo> selectHisPatientOprtInfo(String patNo, int times);
|
|
List<HisPatientOprtInfo> selectHisPatientOprtInfo(String patNo, int times);
|