|
@@ -23,6 +23,7 @@ import cn.hnthyy.thmz.service.his.ResponceTypeService;
|
|
|
import cn.hnthyy.thmz.service.his.mz.MzPatientMiService;
|
|
|
import cn.hnthyy.thmz.service.his.mz.MzSerialNoService;
|
|
|
import cn.hnthyy.thmz.service.thmz.HaiCiAdapterService;
|
|
|
+import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -267,4 +268,23 @@ public class MzPatientMiServiceImpl implements MzPatientMiService {
|
|
|
Tools.trimCollectionStrField(mzPatientMis);
|
|
|
return mzPatientMis;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param patientId
|
|
|
+ * @description: 获取慢病身份类型
|
|
|
+ * @author: lihong
|
|
|
+ * @date: 2024/2/27 16:03
|
|
|
+ * @param: patientId
|
|
|
+ * @return: java.lang.String
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public String getCrmTypeName(String patientId) {
|
|
|
+ MzPatientMi mzPatientMi = mzPatientMiMapper.selectByPatientId(patientId);
|
|
|
+ String chronicDiseaseType = mzPatientMiMapper.selectChronicDiseaseType(mzPatientMi);
|
|
|
+ if (StrUtil.isNotBlank(chronicDiseaseType)) {
|
|
|
+ List<String> crmTypeName = mzPatientMiMapper.selectCrmTypeName(Tools.toInStringSql(CollUtil.newArrayList(chronicDiseaseType.split(","))));
|
|
|
+ return CollUtil.join(crmTypeName, ",");
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|