As a writer of receiver-based FHIR enrichments,
I want the ability to REMOVE resources from a bundle that match a particular FHIR expression,
so that I can create a bundle that meets a receiver's Observation filtering requirements.
Description/Use Case
Presently ReportStream's FHIR expressions allow for SELECTING resources and their properties in a FHIR bundle and setting their value. This ticket aims to now implement the ability to remove resources as well that match a particular "resource" expression.
This ticket does not define the syntax that shall be used in the .yml file, but the following is an example of something that could work:
The above config would remove all Specimen resources that did not have a display value for collection.bodySite.coding
Risks/Impacts/Considerations
Dev Notes
This solution should have a way to handle references that get broken when a resource is deleted. For example, in the picture below, if the highlighted Observation is removed from the bundle, the reference to it in the DiagnosticReport object should be as well.
Acceptance Criteria
[ ] Ability to prune resources added to ReportStream FHIR transforms
User Story
As a writer of receiver-based FHIR enrichments, I want the ability to REMOVE resources from a bundle that match a particular FHIR expression, so that I can create a bundle that meets a receiver's Observation filtering requirements.
Description/Use Case
Presently ReportStream's FHIR expressions allow for SELECTING resources and their properties in a FHIR bundle and setting their value. This ticket aims to now implement the ability to remove resources as well that match a particular "resource" expression.
This ticket does not define the syntax that shall be used in the .yml file, but the following is an example of something that could work:
The above config would remove all Specimen resources that did not have a
display
value forcollection.bodySite.coding
Risks/Impacts/Considerations
Dev Notes
Acceptance Criteria