lgy 2 weeks ago
parent
commit
ae7bddbb17
2 changed files with 6 additions and 0 deletions
  1. 5 0
      jcjyhr/app/zskk/model/Patient.php
  2. 1 0
      jcjyhr/app/zskk/servies/PatientServies.php

+ 5 - 0
jcjyhr/app/zskk/model/Patient.php

@@ -207,6 +207,11 @@ class Patient extends ZskkModel
         return (new ExamReport())->where('PATIENT_CODE',$patientCode)->where($where)->where($WHERE_REPORT)->where($EXAM_REPORT)->field(['PATIENT_CODE','SERIESNUM','REQUESTID','REPORTID','DEVICETYPE_CODE','EXAM_ITEMNAME','EXAM_ITEMNAME_CODE','BODYSITE','OBSERVATIONS_COMMENT','OBSERVATIONS_RESULT','RESULT_STATUS_CODE', 'RESULT_STATUS', 'HR_RANGE','HR_ITEMNAME_CODE', 'HR_ITEMNAME','IMAGES','STUDY_ID', 'ORGNAME','ORGCODE','DEPTNAME','PRACTITIONERNAME','AUDITNAME','REPORTTIME','STUDYTIME','REPORT'])->select()->toArray();
         return (new ExamReport())->where('PATIENT_CODE',$patientCode)->where($where)->where($WHERE_REPORT)->where($EXAM_REPORT)->field(['PATIENT_CODE','SERIESNUM','REQUESTID','REPORTID','DEVICETYPE_CODE','EXAM_ITEMNAME','EXAM_ITEMNAME_CODE','BODYSITE','OBSERVATIONS_COMMENT','OBSERVATIONS_RESULT','RESULT_STATUS_CODE', 'RESULT_STATUS', 'HR_RANGE','HR_ITEMNAME_CODE', 'HR_ITEMNAME','IMAGES','STUDY_ID', 'ORGNAME','ORGCODE','DEPTNAME','PRACTITIONERNAME','AUDITNAME','REPORTTIME','STUDYTIME','REPORT'])->select()->toArray();
     }
     }
 
 
+    public function getOrgName($id)
+    {
+        return (new Institution())->where('ID',$id)->value('name');
+    }
+
     public function saveReportStudy($studyUid,$studyId)
     public function saveReportStudy($studyUid,$studyId)
     {
     {
         return (new ExamReport())->where('STUDYUID',$studyUid)->update(['STUDY_ID' => $studyId]);
         return (new ExamReport())->where('STUDYUID',$studyUid)->update(['STUDY_ID' => $studyId]);

+ 1 - 0
jcjyhr/app/zskk/servies/PatientServies.php

@@ -1553,6 +1553,7 @@ class PatientServies
                 $arr = [];
                 $arr = [];
                 if(!empty($value))
                 if(!empty($value))
                 {
                 {
+                    $value['ORGNAME'] = $this->patientModel->getOrgName($value['ORGCODE']);
                     $list[] = $value;
                     $list[] = $value;
                 }
                 }
             }
             }