Closed bwalsh closed 2 months ago
Note: body_temperature and heart_rate are contrived (silly) example observations for a document reference :-)
Should produce:
identifier | resourceType | id | status | docStatus | date | description | type | patient_identifier | patient_id | patient_gender | patient_birthDate | specimen_identifier | specimen_id | specimen_type | body_temperature | heart_rate |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DocumentReference | document-reference | current | preliminary | 2024-08-14 | Laboratory report for specimen analysis | Laboratory report | patient | male | 1980-05-15 | specimen | Blood specimen | 36.6 Cel | 72 beats/minute |
Where:
Source | Fields ... | |||||||
---|---|---|---|---|---|---|---|---|
From DocumentReference: | identifier | resourceType | id | status | docStatus | date | description | type |
From subject (Patient) | patient_identifier | patient_id | patient_gender | patient_birthDate | ||||
From focus(Specimen) | specimen_identifier | specimen_id | specimen_type | |||||
From Observation | body_temperature | heart_rate |
@teslajoy See deepmerge: is this still useful? https://github.com/ACED-IDP/gen3_util/pull/87/commits/eb5289d856d6fa192a74ac54ed99d9f5d7aad607
Note: this branch and PR should probably be separated between the "stateful emitter" and dataframer use cases. For now, let's review and see if it is useful, I can separate later.
This PR:
tests/unit/dataframer
which contains a hopefully more readable version of the the dataframer. That specifically addresses "Observations on a DocumentReference that focuses on a Specimen"