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
1 Answer
Reset to default 1There 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
版权声明:本文标题:Exporting related data in FHIR - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741425932a2378078.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论