Skip to content

Commit

Permalink
Fixes openemr#7001 Bulk FHIR 500 error patient ids (openemr#7004)
Browse files Browse the repository at this point in the history
Provenance was relying on patient ids for patient/$export and
system/$export operation.  This should resolve that issue.
  • Loading branch information
adunsulag authored Nov 9, 2023
1 parent 203cbc3 commit 82028bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Services/FHIR/FhirProvenanceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,10 @@ public function export(ExportStreamWriter $writer, ExportJob $job, $lastResource

$servicesByResource = $this->serviceLocator->findServices(IResourceUSCIGProfileService::class);

$patientUuids = $job->getPatientUuidsToExport();
$patientUuids = [];
if ($type == ExportJob::EXPORT_OPERATION_GROUP) {
$patientUuids = $job->getPatientUuidsToExport();
}

foreach ($job->getResources() as $resource) {
$searchParams = [];
Expand Down

0 comments on commit 82028bb

Please sign in to comment.