|
@@ -5,6 +5,7 @@ import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
|
import com.lantone.qc.pub.Content;
|
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
|
+import com.lantone.qc.pub.model.doc.DoctorAdviceDoc;
|
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
@@ -33,10 +34,20 @@ public class FIRP0256 extends QCCatalogue {
|
|
|
return;
|
|
|
}
|
|
|
//若出现死亡记录或死亡医嘱,则 转归情况 必须为 死亡。若未出现死亡记录或死亡医嘱,则 转归情况 必不为 死亡。
|
|
|
- if (inputInfo.getDeathRecordDoc() != null && !"死亡".equals(outcome)
|
|
|
- || inputInfo.getDeathRecordDoc() == null && "死亡".equals(outcome)) {
|
|
|
+ if (inputInfo.getDeathRecordDoc() != null && !"死亡".equals(outcome)) {
|
|
|
status.set("-1");
|
|
|
return;
|
|
|
+ }else if(inputInfo.getDeathRecordDoc() == null){
|
|
|
+ boolean res = false;
|
|
|
+ for (DoctorAdviceDoc doctorAdviceDoc : inputInfo.getDoctorAdviceDocs()) {
|
|
|
+ if(doctorAdviceDoc.getStructureMap().get("医嘱项目名称").contains("死亡")){
|
|
|
+ res = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(res && !"死亡".equals(outcome)){
|
|
|
+ status.set("-1");
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
Map<String, Object> firstpageStructureMapExt = inputInfo.getFirstPageRecordDoc().getStructureExtMap();
|
|
|
List<Map<String, String>> dischargeDiag = (List) firstpageStructureMapExt.get(Content.dischargeDiag);
|