FHIR Chat · Accessing CS urls · shorthand

Stream: shorthand

Topic: Accessing CS urls


view this post on Zulip Noemi Deppenwiese (May 04 2020 at 15:38):

Is there any way to refer to a CodeSystem defined in a .fsh File by its not-yet-generated url from another part of the file? E.g. I want to define a ConceptMap Instance that maps on of my CodeSystems. So I need to set the group.source element to the CodeSystem.url, but since this URL is generated by SUSHI i do not want to hardcode it.

view this post on Zulip Nick Freiter (May 04 2020 at 15:49):

In this case, no, you cannot access the CS url. This is something that other users have asked for, see https://github.com/FHIR/sushi/issues/355, so I think this is definitely something we will look to add.

SUSHI will replace the CodeSystem name with its url when the CodeSystem name is used as part of a code, like if you had a CodeSystem named MyCodeSystem, you could do MyCodeSystem#Foo, and the MyCodeSystem would be replaced with the URL of the CodeSystem. But this unfortunately does not help in your case.

view this post on Zulip Noemi Deppenwiese (May 04 2020 at 16:18):

Ok, thanks! I'm looking forward to this feature

view this post on Zulip Chris Moesel (May 04 2020 at 17:25):

For now, you could hack it... We know the URL will just be your IG Canonical URL + /CodeSystem/ + the code system ID. So I think you should be able to manually specify the URL where you want to use it by using that formula. You just need to be aware that it is brittle and would need to be manually adjusted if you changed the IG canonical URL or the code system ID.


Last updated: Apr 12 2022 at 19:14 UTC