admin管理员组

文章数量:1289362

Using the bulk export ($export) functionality of FHIR, I am able to export all resources given a query. What I am unsure about is how to export data related to these resources.

For example, suppose I want to export all MedicationDispense resources of 2024:

{{fhirurl}}/$export?_type=MedicationDispense&_typeFilter=MedicationDispense?whenhandedover=2024

...how do I select all referenced Medication resources (through MedicationDispense > medicationReference)? The following code gives me all Medication resources, not only the ones referenced by the selected MedicationDispense resources.

{{fhirurl}}/$export?_type=MedicationDispense,Medication&_typeFilter=MedicationDispense?whenhandedover=2024

Using the bulk export ($export) functionality of FHIR, I am able to export all resources given a query. What I am unsure about is how to export data related to these resources.

For example, suppose I want to export all MedicationDispense resources of 2024:

{{fhirurl}}/$export?_type=MedicationDispense&_typeFilter=MedicationDispense?whenhandedover=2024

...how do I select all referenced Medication resources (through MedicationDispense > medicationReference)? The following code gives me all Medication resources, not only the ones referenced by the selected MedicationDispense resources.

{{fhirurl}}/$export?_type=MedicationDispense,Medication&_typeFilter=MedicationDispense?whenhandedover=2024
Share Improve this question asked Feb 20 at 15:18 Michiel MeulendijkMichiel Meulendijk 3655 silver badges12 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

There isn't a great solution for this currently, as the typeFilter query parameter is explicitly defined to not support _include. The best approach would be to parse the returned MedicationDispense resources and then run a new export for the relevant Medications.

本文标签: Exporting related data in FHIRStack Overflow