diff --git a/server/lib/routes/fhir.js b/server/lib/routes/fhir.js index 51463d78..f6f0b0b2 100644 --- a/server/lib/routes/fhir.js +++ b/server/lib/routes/fhir.js @@ -136,10 +136,14 @@ function pixmRequest({ if (isGoldenRec) { continue; } + parameters.parameter.push({ name: 'targetId', - valueReference: entry.resource.fullUrl + valueReference: { + reference: entry.fullUrl + } }); + for (const identifier of entry.resource.identifier) { if (targetSystem) { if (targetSystem === identifier.system) {