FHIR Chat · I do not understand this error · IG creation

Stream: IG creation

Topic: I do not understand this error


view this post on Zulip Brian Reinhold (Feb 23 2019 at 18:08):

From building IG using Lloyd's Framework I get this error:

Unable to generate snapshot for http://hl7.org/fhir/uv/phd/StructureDefinition/PhdDevice because StructureDefinition Phd
Device.property at Device.property: illegal constrained type CodeableConcept from BackboneElement

I am not sure what it is trying say...I have constrained CodeableConcepts many times. Is this a slice problem on data types or something to do with Cardinality?

I still get a very agreeable structure definition (its what I want).

view this post on Zulip Lloyd McKenzie (Feb 23 2019 at 19:45):

It means somwhere you're asserting CodeableConcept that you shouldn't be. Can you share the model?

view this post on Zulip Brian Reinhold (Feb 23 2019 at 21:08):

@Lloyd McKenzie Can I just send the structure definition? Is that good enough? I am slicing the Device.property which has a type (CodeableConcept) and either a List<valueQuantity>(Quantitys) or a List<valueCode> (CodeableConcepts)

view this post on Zulip Lloyd McKenzie (Feb 23 2019 at 21:35):

y

view this post on Zulip Brian Reinhold (Feb 23 2019 at 21:39):

I will email you ... having connectivity issues :confounded:
I think I understand the problem; slicing on type can only be used on a choice like value[x]. I was trying to distingusih between two slices by deciding which of two elements are used property.valueQuantity vs property.valueCode. These should probably have been choices; the two together seems like a non-existent possibility.

view this post on Zulip Brian Reinhold (Feb 24 2019 at 11:39):

It means somwhere you're asserting CodeableConcept that you shouldn't be. Can you share the model?

@Lloyd McKenzie Is there some file in the output that I can look at that will give me a better idea of where the crime is being committed? The differential structure definition generated in the output looks perfect (at least its what I want) but the snapshot just has the default property element.


Last updated: Apr 12 2022 at 19:14 UTC