FHIR Chat · Error extension on element w/ min 1 cardinality · shorthand

Stream: shorthand

Topic: Error extension on element w/ min 1 cardinality


view this post on Zulip Julian Sass (Feb 11 2022 at 17:06):

SUSHI compiler throws an error for instances that use an extension like data-absent-reason on elements that have a min 1 cardinality defined in a profile. E.g.:

Profile: MyProcedure
Parent: Procedure
* performed[x] 1..1

Instance: my-procedure
InstanceOf: MyProcedure
* status = #not-done
* subject = Reference(Patient/example)
* performedDateTime.extension.url = "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
* performedDateTime.extension.valueCode = #not-performed

produces

error Element Procedure.performed[x] has minimum cardinality 1 but occurs 0 time(s).

I think the error should not be triggered.
https://fshschool.org/FSHOnline/#/share/34xsyMF

view this post on Zulip Chris Moesel (Feb 11 2022 at 18:17):

Thanks for reporting this, @Julian Sass. I agree with you. I've logged it as an issue here: SUSHI.


Last updated: Apr 12 2022 at 19:14 UTC