FHIR / sushi

SUSHI (aka "SUSHI Unshortens Short Hand Inputs") is a reference implementation command-line interpreter/compiler for FHIR Shorthand (FSH).
Apache License 2.0
145 stars 44 forks source link

Cannot refer to inline CodeSystems in ValueSet compose rules #1402

Closed cmoesel closed 1 week ago

cmoesel commented 10 months ago

The following code does not work, but should work (resulting in compose > include > system value #example-codesystem):

ValueSet: ExampleValueset
Id: example-valueset
* ^contained = example-codesystem
* ^url = "http://example.org/valueset"
* ^version = "1.0.0"
* ^status = #active
* include codes from system example-codesystem

Instance: example-codesystem
InstanceOf: CodeSystem
Usage: #inline
* url = "http://example.org/codesystem"
* version = "1.0.0"
* status = #active
* content = #complete
// more rules

Similarly, it should work correctly if example-codesystem is defined using CodeSystem syntax (and still use the fragment instead of the full URL).

We should also check to see if you can refer to inline value sets from compose rules (and fix it if you can't).

See: https://chat.fhir.org/#narrow/stream/215610-shorthand/topic/Contained.20code.20system.20in.20the.20value.20set/near/407685349