|
@@ -507,7 +507,7 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
|
|
|
@Select("select rtrim(dis_diag_no) no, rtrim(dis_diag) code, " +
|
|
|
"rtrim(dis_diag_comment) name, rtrim(dis_diag_status) cyzg, " +
|
|
|
"rtrim(op_id_code) operId, convert(varchar(19), op_diag_date, 21) opDate, " +
|
|
|
- "diagType='13', bzfx='普通', admiss_cond " +
|
|
|
+ "diagType='13',si_diag_type,bzfx='普通', admiss_cond " +
|
|
|
"from zy_dis_diag_yb with(nolock) where inpatient_no=#{bah} and admiss_times=#{times}")
|
|
|
List<YiBaoDisdiag> getYbDiags(@Param("bah") String bah, @Param("times") int times);
|
|
|
|
|
@@ -623,7 +623,8 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
|
|
|
@Select("select top 1 * from t_si_disefamily_diagnose with(nolock) where dise_code=#{code} ")
|
|
|
DisefamilyGrade selectDisefamilyGrade(@Param("code") String code);
|
|
|
|
|
|
- @Select("select ssbm from ${table} with(nolock) where zyh=#{bah} and zycs=#{times} and isnull(ssbm,'')!='' ")
|
|
|
+ @Select("select yb_code from zd_icd9_cm3 where code in " +
|
|
|
+ "(select ssbm from ${table} with(nolock) where zyh=#{bah} and zycs=#{times} and isnull(ssbm,'')!='') ")
|
|
|
List<String> selectPatientSurgeryCodes(@Param("bah") String bah, @Param("times") Integer times, @Param("table") String table);
|
|
|
|
|
|
@Select("select * from t_si_operation_disefamily with(nolock) where disefamily_code=#{code}")
|