|
@@ -31,11 +31,11 @@ public class THR0126 extends QCCatalogue {
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
|
|
|
MedicalRecordInfoDoc medicalRecordInfoDoc = inputInfo.getMedicalRecordInfoDoc();
|
|
|
- if (inputInfo.getFirstPageRecordDoc() != null && inputInfo.getFirstPageRecordDoc().getStructureMap() != null &&
|
|
|
- medicalRecordInfoDoc != null) {
|
|
|
- Map<String, String> getFirstPageRecordStructureMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
|
|
|
+ if (medicalRecordInfoDoc != null && medicalRecordInfoDoc.getStructureMap() != null) {
|
|
|
+ //入院日期
|
|
|
String admisTime = medicalRecordInfoDoc.getStructureMap().get("behospitalDate");
|
|
|
- String dischargeTime = getFirstPageRecordStructureMap.get("出院时间");
|
|
|
+ //出院日期
|
|
|
+ String dischargeTime = medicalRecordInfoDoc.getStructureMap().get("leaveHospitalDate");
|
|
|
if (CatalogueUtil.isEmpty(admisTime) || CatalogueUtil.isEmpty(dischargeTime)) {
|
|
|
status.set("0");
|
|
|
return;
|
|
@@ -84,7 +84,7 @@ public class THR0126 extends QCCatalogue {
|
|
|
if (firstCourseRecordDoc != null) {
|
|
|
String doctorSign = firstCourseRecordDoc.getStructureMap().get("医生签名");
|
|
|
String firstCourseProfessor = getFirstCourseProfessor(doctorSign);
|
|
|
- if (firstCourseProfessor.contains("主治")) {
|
|
|
+ if (StringUtil.isNotBlank(firstCourseProfessor) && firstCourseProfessor.contains("主治")) {
|
|
|
String recordDateStr = firstCourseRecordDoc.getStructureMap().get("记录时间");
|
|
|
if (StringUtil.isNotBlank(recordDateStr)) {
|
|
|
if (!CatalogueUtil.compareTime(StringUtil.parseDateTime(admisTime), StringUtil.parseDateTime(recordDateStr), 48 * 60L)) {
|