|
@@ -4,6 +4,7 @@ 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.ThreeLevelWardDoc;
|
|
|
import com.lantone.qc.pub.model.doc.operation.OperationDoc;
|
|
|
import com.lantone.qc.pub.model.doc.ward.DirectorDoctorWardDoc;
|
|
|
import com.lantone.qc.pub.model.label.ThreeLevelWardLabel;
|
|
@@ -77,6 +78,30 @@ public class THR0139 extends QCCatalogue {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ //===========三级医师相当于主治医生==========
|
|
|
+ ThreeLevelWardDoc threeLevelWardDoc = inputInfo.getThreeLevelWardDocs().get(0);
|
|
|
+ List<ThreeLevelWardDoc> allDoctorWradDocs = threeLevelWardDoc.getAllDoctorWradDocs();
|
|
|
+ if(allDoctorWradDocs.size()>0)
|
|
|
+ {
|
|
|
+
|
|
|
+ for (ThreeLevelWardDoc threeLevelWard : allDoctorWradDocs) {
|
|
|
+ Map<String, String> structureMap = threeLevelWard.getStructureMap();
|
|
|
+ String makeTitle = structureMap.get("查房标题");
|
|
|
+ if(StringUtil.isNotBlank(makeTitle)&&makeTitle.contains("三级"))
|
|
|
+ {
|
|
|
+ String recordDateStrs = structureMap.get("查房日期");
|
|
|
+ if (!CatalogueUtil.compareTime(StringUtil.parseDateTime(admisDateStr),
|
|
|
+ StringUtil.parseDateTime(recordDateStrs), 72 * 60L)) {
|
|
|
+
|
|
|
+ status.set("0");
|
|
|
+ }
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
ThreeLevelWardLabel firstDirectLabel = firstDirectDoc.getThreeLevelWardLabel();
|
|
|
if (firstDirectLabel == null) {
|
|
|
return;
|