|
@@ -4,8 +4,8 @@ import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
|
-import com.lantone.qc.pub.model.doc.BeHospitalizedDoc;
|
|
|
import com.lantone.qc.pub.model.doc.FirstCourseRecordDoc;
|
|
|
+import com.lantone.qc.pub.model.doc.MedicalRecordInfoDoc;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.stereotype.Component;
|
|
@@ -24,14 +24,14 @@ import java.util.Map;
|
|
|
public class FIRC0093 extends QCCatalogue {
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) throws ParseException {
|
|
|
status.set("0");
|
|
|
- BeHospitalizedDoc beHospitalizedDoc = inputInfo.getBeHospitalizedDoc();
|
|
|
+ MedicalRecordInfoDoc medicalRecordInfoDoc = inputInfo.getMedicalRecordInfoDoc();
|
|
|
FirstCourseRecordDoc firstCourseRecordDoc = inputInfo.getFirstCourseRecordDoc();
|
|
|
- if (firstCourseRecordDoc != null && beHospitalizedDoc != null) {
|
|
|
+ if (firstCourseRecordDoc != null && medicalRecordInfoDoc != null) {
|
|
|
Map<String, String> courseRecordDocStructureMap = firstCourseRecordDoc.getStructureMap();
|
|
|
- Map<String, String> beHospitalizedDocStructureMap = beHospitalizedDoc.getStructureMap();
|
|
|
- if (courseRecordDocStructureMap != null && beHospitalizedDocStructureMap != null) {
|
|
|
+ Map<String, String> medicalRecordStructureMap = medicalRecordInfoDoc.getStructureMap();
|
|
|
+ if (courseRecordDocStructureMap != null && medicalRecordStructureMap != null) {
|
|
|
String couDate = courseRecordDocStructureMap.get("病历日期");
|
|
|
- String beDate = beHospitalizedDocStructureMap.get("入院日期");
|
|
|
+ String beDate = medicalRecordStructureMap.get("behospitalDate");
|
|
|
if (StringUtils.isNotEmpty(couDate) && StringUtils.isNotEmpty(beDate)) {
|
|
|
Date date_in = StringUtil.parseDateTime(beDate);
|
|
|
Date date_out = StringUtil.parseDateTime(couDate);
|
|
@@ -45,10 +45,10 @@ public class FIRC0093 extends QCCatalogue {
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- if (beHospitalizedDoc != null) {
|
|
|
- Map<String, String> beHospitalizedDocStructureMap = beHospitalizedDoc.getStructureMap();
|
|
|
- if (beHospitalizedDocStructureMap != null) {
|
|
|
- String beDate = beHospitalizedDocStructureMap.get("入院日期");
|
|
|
+ if (medicalRecordInfoDoc != null) {
|
|
|
+ Map<String, String> medicalRecordStructureMap = medicalRecordInfoDoc.getStructureMap();
|
|
|
+ if (medicalRecordStructureMap != null) {
|
|
|
+ String beDate = medicalRecordStructureMap.get("behospitalDate");
|
|
|
if (StringUtils.isNotEmpty(beDate)) {
|
|
|
Date date_in = StringUtil.parseDateTime(beDate);
|
|
|
Date date_out = new Date();
|