|
@@ -20,6 +20,8 @@ import java.util.*;
|
|
|
@Setter
|
|
|
public class ThreeLevelWardDoc extends ModelDoc {
|
|
|
private List<ThreeLevelWardLabel> threeLevelWardLabel = new ArrayList<>();
|
|
|
+ //所有的查房记录
|
|
|
+ private List<ThreeLevelWardDoc> allDoctorWradDocs = new ArrayList<>();
|
|
|
//主任医师查房
|
|
|
private List<DirectorDoctorWardDoc> directorDoctorWardDocs = new ArrayList<>();
|
|
|
//主治医师查房
|
|
@@ -27,6 +29,27 @@ public class ThreeLevelWardDoc extends ModelDoc {
|
|
|
//普通医师查房
|
|
|
private List<GeneralDoctorWardDoc> generalDoctorWardDocs = new ArrayList<>();
|
|
|
|
|
|
+ /**
|
|
|
+ * 总的查房记录集合
|
|
|
+ * @param allDoctorWradDoc
|
|
|
+ */
|
|
|
+ public void addAllDoctorWradDoc(ThreeLevelWardDoc allDoctorWradDoc) {
|
|
|
+ Map<Date, ThreeLevelWardDoc> dateRecord = new TreeMap<>(new Comparator<Date>() {
|
|
|
+ @Override
|
|
|
+ public int compare(Date o1, Date o2) {
|
|
|
+ // 升序排列
|
|
|
+ return o1.compareTo(o2);
|
|
|
+ }
|
|
|
+ });//按时间key排序,存放抢救记录、查房记录\
|
|
|
+ dateRecord.put(StringUtil.parseDateTime(allDoctorWradDoc.getStructureMap().get("查房日期")), allDoctorWradDoc);
|
|
|
+ allDoctorWradDocs.stream().forEach(
|
|
|
+ doc -> dateRecord.put(StringUtil.parseDateTime(doc.getStructureMap().get("查房日期")), doc)
|
|
|
+ );
|
|
|
+
|
|
|
+ List<ThreeLevelWardDoc> docs = new ArrayList<>(dateRecord.values());
|
|
|
+ allDoctorWradDocs = docs;
|
|
|
+ }
|
|
|
+
|
|
|
public void addDirectorDoctorWardDoc(DirectorDoctorWardDoc directorDoctorWardDoc) {
|
|
|
Map<Date, DirectorDoctorWardDoc> dateRecord = new TreeMap<>(new Comparator<Date>() {
|
|
|
@Override
|