FHIR Chat · Omit Element · shorthand

Stream: shorthand

Topic: Omit Element


view this post on Zulip Matt Ping (Feb 09 2021 at 20:34):

There are elements being added in on the example resources automatically. This is generally a very useful thing. However, for a specific example, I'm interested in omitting a few elements (id, text, and extension). I'm not sure what the best way to do so is and wanted to check here. Thanks!

view this post on Zulip Chris Moesel (Feb 09 2021 at 21:03):

When generating instances, SUSHI will automatically add any elements that have fixed values and a min > 0 in the profile. There isn't a way to turn off this behavior, but I think you might be able to circumvent it by creating an Instance and setting the parent to the resource (e.g., Patient) instead of the profile (e.g., USCorePatient). Then, if you want, you can set the meta.profile to the URL of your profile (if you still want it to reflect that it is an instance of that profile). I think that will avoid most of the SUSHI auto-generated stuff. The one thing that I think you can't suppress no matter what is the id -- because that's how we actually track the instances across the IG. Maybe we could introduce a way to turn even that off, but for now I think you're stuck with it.


Last updated: Apr 12 2022 at 19:14 UTC