|
@@ -65,6 +65,11 @@ public class ThreeLevelWardAI extends ModelAI {
|
|
|
}
|
|
|
|
|
|
List<ThreeLevelWardDoc> allDoctorWradDocs = threeLevelWardDoc.getAllDoctorWradDocs();//所有查房记录
|
|
|
+ if (allDoctorWradDocs.size() > 0) {
|
|
|
+ Map<String, String> lastWardStructureMap = allDoctorWradDocs.get(allDoctorWradDocs.size() - 1).getStructureMap();
|
|
|
+ putContent(crfContent, medicalTextType.get(1), lastWardStructureMap.get("病情记录"), "末次查房");
|
|
|
+ }
|
|
|
+
|
|
|
List<Map<String, String>> directorDifficultRecord = new ArrayList<>();
|
|
|
//疑难患者副高及以上查房记录
|
|
|
if (inputInfo.getDifficultCaseDiscussDocs().size() > 0) {
|
|
@@ -96,6 +101,10 @@ public class ThreeLevelWardAI extends ModelAI {
|
|
|
if (midData.get(Content.director + "最后一次") != null) {
|
|
|
putWardRoundCrfData(midData.getJSONObject(Content.director + "最后一次"), inputInfo, 0);//最后一次查房记录
|
|
|
}
|
|
|
+ //最后一次查房记录模型输出
|
|
|
+ if (midData.get("末次查房") != null) {
|
|
|
+ putWardRoundCrfData(midData.getJSONObject("末次查房"), inputInfo, 0);//最后一次查房记录
|
|
|
+ }
|
|
|
//疑难患者副高及以上查房记录模型输出
|
|
|
if (inputInfo.getDifficultCaseDiscussDocs().size() > 0 && ListUtil.isNotEmpty(directorDifficultRecord)) {
|
|
|
for (int i = 0; i < directorDifficultRecord.size(); i++) {
|
|
@@ -111,7 +120,7 @@ public class ThreeLevelWardAI extends ModelAI {
|
|
|
if (midData.get(Content.rescuingPatients + i) == null) {
|
|
|
continue;
|
|
|
}
|
|
|
- putWardRoundCrfData(midData.getJSONObject(Content.difficultPatients + i), inputInfo, 3);//查房记录
|
|
|
+ putWardRoundCrfData(midData.getJSONObject(Content.rescuingPatients + i), inputInfo, 3);//查房记录
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -150,13 +159,23 @@ public class ThreeLevelWardAI extends ModelAI {
|
|
|
threeLevelWardLabel.setSerious(serious);
|
|
|
ThreeLevelWardDoc threeLevelWardDoc = inputInfo.getThreeLevelWardDocs().get(0);
|
|
|
if (serious == 0) {//处理主治/主任查房记录
|
|
|
- if (Content.attend.equals(detailTitle)) {
|
|
|
- threeLevelWardDoc.getAttendingDoctorWardDocs().get(0).setThreeLevelWardLabel(threeLevelWardLabel);
|
|
|
- } else if (Content.director.equals(detailTitle)) {
|
|
|
- threeLevelWardDoc.getDirectorDoctorWardDocs().get(0).setThreeLevelWardLabel(threeLevelWardLabel);
|
|
|
- } else if ((Content.director + "最后一次").equals(detailTitle)) {
|
|
|
- List<DirectorDoctorWardDoc> director = threeLevelWardDoc.getDirectorDoctorWardDocs();
|
|
|
- director.get(director.size() - 1).setThreeLevelWardLabel(threeLevelWardLabel);
|
|
|
+ switch (detailTitle) {
|
|
|
+ case Content.attend:
|
|
|
+ threeLevelWardDoc.getAttendingDoctorWardDocs().get(0).setThreeLevelWardLabel(threeLevelWardLabel);
|
|
|
+ break;
|
|
|
+ case Content.director:
|
|
|
+ threeLevelWardDoc.getDirectorDoctorWardDocs().get(0).setThreeLevelWardLabel(threeLevelWardLabel);
|
|
|
+ break;
|
|
|
+ case Content.director + "最后一次":
|
|
|
+ List<DirectorDoctorWardDoc> director = threeLevelWardDoc.getDirectorDoctorWardDocs();
|
|
|
+ director.get(director.size() - 1).setThreeLevelWardLabel(threeLevelWardLabel);
|
|
|
+ break;
|
|
|
+ case "末次查房":
|
|
|
+ List<ThreeLevelWardDoc> allDoctorWradDocs = threeLevelWardDoc.getAllDoctorWradDocs();
|
|
|
+ List<ThreeLevelWardLabel> lastWardLebelList = new ArrayList<>();
|
|
|
+ lastWardLebelList.add(threeLevelWardLabel);
|
|
|
+ allDoctorWradDocs.get(allDoctorWradDocs.size() - 1).setThreeLevelWardLabel(lastWardLebelList);
|
|
|
+ break;
|
|
|
}
|
|
|
} else {
|
|
|
List<ThreeLevelWardDoc> allDoctorWradDocs = threeLevelWardDoc.getAllDoctorWradDocs();
|
|
@@ -257,7 +276,7 @@ public class ThreeLevelWardAI extends ModelAI {
|
|
|
for (RescueDoc rescueDoc : rescueDocs) {
|
|
|
Map<String, String> rescueStructureMap = rescueDoc.getStructureMap();
|
|
|
recordTime = rescueStructureMap.get("抢救结束时间");
|
|
|
- if(recordTime == null){
|
|
|
+ if (recordTime == null) {
|
|
|
continue;
|
|
|
}
|
|
|
Date recordDate = StringUtil.parseDateTime(recordTime);
|