|
@@ -4,6 +4,7 @@ import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
|
|
+import com.lantone.qc.pub.model.doc.operation.OperationDoc;
|
|
import com.lantone.qc.pub.model.doc.ward.AttendingDoctorWardDoc;
|
|
import com.lantone.qc.pub.model.doc.ward.AttendingDoctorWardDoc;
|
|
import com.lantone.qc.pub.model.label.ThreeLevelWardLabel;
|
|
import com.lantone.qc.pub.model.label.ThreeLevelWardLabel;
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
@@ -53,6 +54,24 @@ public class THR0134 extends QCCatalogue {
|
|
status.set("0");
|
|
status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ //如果首次查房在手术记录之后不提示规则
|
|
|
|
+ List<OperationDoc> operationDocs = inputInfo.getOperationDocs();
|
|
|
|
+ if (operationDocs != null) {
|
|
|
|
+ for (OperationDoc operationDoc : operationDocs) {
|
|
|
|
+ if (operationDoc.getOperationRecordDoc() != null) {
|
|
|
|
+ Map<String, String> structureMap = operationDoc.getOperationRecordDoc().getStructureMap();
|
|
|
|
+ String opeEndDate = structureMap.get("手术结束时间");
|
|
|
|
+ if (opeEndDate.contains("年月日")) {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+ if (StringUtil.isNotBlank(opeEndDate) &&
|
|
|
|
+ StringUtil.parseDateTime(opeEndDate).before(StringUtil.parseDateTime(recordDateStr))) {
|
|
|
|
+ status.set("0");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
ThreeLevelWardLabel firstAttendLabel = firstAttendDoc.getThreeLevelWardLabel();
|
|
ThreeLevelWardLabel firstAttendLabel = firstAttendDoc.getThreeLevelWardLabel();
|
|
if (firstAttendLabel == null) {
|
|
if (firstAttendLabel == null) {
|
|
return;
|
|
return;
|