Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Support FHIR profiles to use only used elements #18

Open
boristyukin opened this issue Apr 11, 2018 · 1 comment
Open

Support FHIR profiles to use only used elements #18

boristyukin opened this issue Apr 11, 2018 · 1 comment

Comments

@boristyukin
Copy link

right now Bunsen creates encoder / schema for the entire set of resource elements. Realistically though FHIR servers would return a limited set of vendor specific elements and they would commonly be described in FHIR profile. I think it would simplify greatly schemas in Spark and reduce confusion for users since dataframes will contain only actual elements, support by a vendor.

@rbrush
Copy link
Collaborator

rbrush commented Apr 12, 2018

I think we can do this pretty easily but will need to take a closer look at how we can pull in profiles. All of our schemas and encoders are generated from the RuntimeResourceDefinition in the HAPI library. [1] So, if there is a way to get a RuntimeResourceDefinition for a given profile, we should be able to drop it right in and only the appropriate fields would be generated. I haven't worked enough with HAPI and specific profiles to have a good idea of how to put that together, but I'd presume there is a good way to do so.

[1]
https://github.com/jamesagnew/hapi-fhir/blob/master/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/RuntimeResourceDefinition.java

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants