Skip to content

Commit 3b38348

Browse files
committed
Update contained
1 parent b8c5a45 commit 3b38348

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

util/fhir/resourceCreation.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ export function createDataExchangeMeasureReport(
201201
period: measurementPeriod,
202202
status: 'complete',
203203
type: 'data-collection',
204-
subject: { reference: `Patient/${subjectId}` }, // patient reference, TODO: is the local id sufficient?
204+
subject: { reference: `Patient/${subjectId}` },
205205
date: jsDateToFHIRDate(new Date()),
206-
reporter: { reference: `Organization/testOrganization` }, //TODO: do we need to send an organization resource?
206+
reporter: { reference: 'Organization/fqm-testify' }, //TODO: do we need to send an organization resource?
207207
meta: {
208208
profile: ['http://hl7.org/fhir/us/davinci-deqm/StructureDefinition/datax-measurereport-deqm']
209209
},
@@ -212,7 +212,8 @@ export function createDataExchangeMeasureReport(
212212
url: 'http://hl7.org/fhir/us/davinci-deqm/StructureDefinition/extension-submitDataUpdateType',
213213
valueCode: 'snapshot'
214214
}
215-
]
215+
],
216+
contained: [{ resourceType: 'Organization', id: 'fqm-testify' }]
216217
};
217218
}
218219

0 commit comments

Comments
 (0)