Stream: shorthand
Topic: Logical models with content references
Jean Duteau (Jan 17 2022 at 18:52):
I have a logical model that refers to parts within the model itself or refers to a different model. I've been doing that as follows:
* packaging.packaging 0..1 BackboneElement "Outer Packaging" "Packaging that contains this package."
* packaging.packaging ^contentReference = "http://hl7.org/fhir/us/spl/StructureDefinition/SubmittedProductLogicalModel#SubmittedProduct.packaging"
I suspect this isn't the proper way because I'm getting the following errors in the publisher:
eld-5: 'if the element definition has a contentReference, it cannot have type, defaultValue, fixed, pattern, example, minValue, maxValue, maxLength, or binding' Rule 'if the element definition has a contentReference, it cannot have type, defaultValue, fixed, pattern, example, minValue, maxValue, maxLength, or binding' Failed
Should I just have the contentReference and nothing else?
Lloyd McKenzie (Jan 17 2022 at 19:26):
Right. Same as you would if you were just creating the differential directly.
Jean Duteau (Jan 17 2022 at 19:40):
@Chris Moesel I don't see how I can just specify a cardinality and a contentReference. Sushi complains unless I have a full AddElement, i.e. cardinality, type, and short.
Chris Moesel (Jan 18 2022 at 14:43):
Hmmm... yeah. This seems like an oversight on the part of the FSH grammar and/or SUSHI processor. Content references are the one exceptional situation where a type should not be needed. I'm not sure how we missed that. I'll log an issue... OK. Logged. SUSHI#1009.
Last updated: Apr 12 2022 at 19:14 UTC