|
@@ -217,9 +217,9 @@ class Patient extends ZskkModel
|
|
|
return (new Institution())->where('INSTITUTION_CODE',$id)->value('name');
|
|
|
}
|
|
|
|
|
|
- public function saveReportStudy($studyUid,$studyId)
|
|
|
+ public function saveReportStudy($studyUid,$studyId,$orgcode)
|
|
|
{
|
|
|
- return (new ExamReport())->where('STUDYUID',$studyUid)->update(['STUDY_ID' => $studyId]);
|
|
|
+ return (new ExamReport())->where('STUDYUID',$studyUid)->where('ORGCODE',$orgcode)->update(['STUDY_ID' => $studyId]);
|
|
|
|
|
|
}
|
|
|
|