FHIR Chat · GoFSH and R5 · shorthand

Stream: shorthand

Topic: GoFSH and R5


view this post on Zulip David Pyke (Mar 08 2022 at 16:33):

I'm trying to update examples for an R5 resource and would really like to do it in FSH. Can GoFSH handle R5 or will I be converting manually?

view this post on Zulip Chris Moesel (Mar 08 2022 at 16:49):

GoFSH should be able to handle R5. Let us know if you run into any issues.

view this post on Zulip David Pyke (Mar 08 2022 at 16:50):

I'm trying to convert the current R5 Consent examples with GoFSH and there are a number of elements being dropped. How do I tell GoFSH that it's R5, not R4?

view this post on Zulip Chris Moesel (Mar 08 2022 at 18:30):

Ohhh... GoFSH figures out the version of FHIR by looking at the ImplementationGuide resource (if available) or looking at the SD/CS/VS resources (since they have fhirVersion properties). Since Consent doesn't have a fhirVersion property, there's not much for GoFSH to go on.

You can solve this by throwing in a minimal ImplementationGuide.json file (ideally specifying id, name, url, version, status, and fhirVersion) or by throwing in a minimal profile (since it has a fhirVersion).

view this post on Zulip Chris Moesel (Mar 08 2022 at 18:31):

We should consider adding an argument for specifying the FHIR version. Looking at the code right now, I'm also realizing it might not work quite right with FHIR R4B.

view this post on Zulip Chris Moesel (Mar 09 2022 at 20:41):

GoFSH#177


Last updated: Apr 12 2022 at 19:14 UTC