FHIR Chat · creating CodeSystems · shorthand

Stream: shorthand

Topic: creating CodeSystems


view this post on Zulip David Hay (Feb 12 2020 at 19:27):

Is there an issue with generating codesystems? the line (from the example in the spec)

  • concept[Sirsasana] ^definition "An inverted asana, also called mudra in classical hatha yoga, involves standing on one's head."

generates the error:

error: Caret rule on CodeSystem cannot contain path before ^, skipping rule.

view this post on Zulip David Hay (Feb 12 2020 at 19:41):

The code system still gets generated, but the definitions are missing...

view this post on Zulip Chris Moesel (Feb 12 2020 at 21:34):

That's less a problem with SUSHI and more a problem with the documentation. The proper syntax for creating codes with definitions in FHIR Shorthand CodeSystem definitions is:

* #mycode "My Display" "My Definition"

or in the case of the specific example you referenced:

* #Sirsasana "Headstand" "An inverted asana, also called mudra in classical hatha yoga, involves standing on one's head."

Sorry for the confusion. Sometimes the doc gets ahead of SUSHI, sometimes SUSHI gets ahead of the doc, and sometimes (like this time) they walk in different directions. Thanks for asking about this.

view this post on Zulip David Hay (Feb 12 2020 at 21:42):

Thanks Chris - working well now!

view this post on Zulip Mark Kramer (Feb 13 2020 at 17:13):

Sorry about that -- my mistake. I'll update the documentation soon.

view this post on Zulip Mark Kramer (Feb 13 2020 at 22:30):

Code Systems description fixed in documentation http://build.fhir.org/ig/HL7/fhir-shorthand/index.html#defining-code-systems


Last updated: Apr 12 2022 at 19:14 UTC