|
@@ -8,6 +8,7 @@ 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.operation.OperationRecordDoc;
|
|
|
+import com.lantone.qc.pub.model.doc.ward.AttendingDoctorWardDoc;
|
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
@@ -33,6 +34,8 @@ public class THR0602 extends QCCatalogue {
|
|
|
if (ListUtil.isEmpty(operationDocs) || ListUtil.isEmpty(threeLevelWardDocs)) {
|
|
|
return;
|
|
|
}
|
|
|
+ //所有主治医师查房记录
|
|
|
+ List<AttendingDoctorWardDoc> attendingDoctorWardDocs = threeLevelWardDocs.get(0).getAttendingDoctorWardDocs();
|
|
|
for (OperationDoc operationDoc : operationDocs) {
|
|
|
OperationRecordDoc operationRecordDoc = operationDoc.getOperationRecordDoc();
|
|
|
if (operationRecordDoc == null) {
|
|
@@ -44,7 +47,7 @@ public class THR0602 extends QCCatalogue {
|
|
|
continue;
|
|
|
}
|
|
|
Map<String, String> doctorRecord = extractWardRecord(
|
|
|
- threeLevelWardDocs,
|
|
|
+ attendingDoctorWardDocs,
|
|
|
operationEndDateStr,
|
|
|
48 * 60);
|
|
|
if (!doctorRecord.containsKey(Content.attend)) {
|
|
@@ -59,12 +62,12 @@ public class THR0602 extends QCCatalogue {
|
|
|
/**
|
|
|
* 抽取住院duration分钟内查房记录并取第一条主治医师查房记录以及第一条主任/副主任医师查房记录
|
|
|
*
|
|
|
- * @param threeLevelWardDocs
|
|
|
+ * @param attendingDoctorWardDocs
|
|
|
* @param admisTime
|
|
|
* @param duration
|
|
|
* @return
|
|
|
*/
|
|
|
- private static Map<String, String> extractWardRecord(List<ThreeLevelWardDoc> threeLevelWardDocs, String admisTime, int duration) {
|
|
|
+ private static Map<String, String> extractWardRecord(List<AttendingDoctorWardDoc> attendingDoctorWardDocs, String admisTime, int duration) {
|
|
|
Map<Date, String> dateRecord = new HashMap<>();
|
|
|
List<String> sortRecord = new ArrayList<>();
|
|
|
Map<String, String> doctorRecord = new HashMap<>();
|
|
@@ -73,8 +76,8 @@ public class THR0602 extends QCCatalogue {
|
|
|
if (admisDate == null) {
|
|
|
return doctorRecord;
|
|
|
}
|
|
|
- for (ThreeLevelWardDoc threeLevelWardDoc : threeLevelWardDocs) {
|
|
|
- Map<String, String> threeLevelWardStructureMap = threeLevelWardDoc.getStructureMap();
|
|
|
+ for (AttendingDoctorWardDoc attendingDoctorWardDoc : attendingDoctorWardDocs) {
|
|
|
+ Map<String, String> threeLevelWardStructureMap = attendingDoctorWardDoc.getStructureMap();
|
|
|
recordTime = threeLevelWardStructureMap.get("查房日期");
|
|
|
Date recordDate = StringUtil.parseDateTime(recordTime);
|
|
|
if (recordDate == null) {
|