Unable to use a sliced property as the path for the discriminator #2406
Unanswered
kalleo1996
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While running the validator I am getting this issue related to Validator
in profile , when it comes to type property slicing is done Like this
<element id="Encounter.type"> <path value="Encounter.type"/> <slicing> <discriminator> <type value="value"/> <path value="coding"/> </discriminator> <ordered value="false"/> <rules value="open"/> </slicing> <max value="2"/> </element> <element id="Encounter.type.id"> <path value="Encounter.type.id"/> <max value="0"/> </element> <element id="Encounter.type.text"> <path value="Encounter.type.text"/> <max value="0"/> </element> <element id="Encounter.type:NprLevelOfCare"> <path value="Encounter.type"/> <sliceName value="NprLevelOfCare"/> <max value="1"/> </element> <element id="Encounter.type:NprLevelOfCare.id"> <path value="Encounter.type.id"/> <max value="0"/> </element> <element id="Encounter.type:NprLevelOfCare.coding"> <path value="Encounter.type.coding"/> <slicing> <discriminator> <type value="value"/> <path value="system"/> </discriminator> <rules value="open"/> </slicing> <min value="2"/> <max value="2"/> <binding> <strength value="required"/> <valueSet value="https://no/fhir/R4/ValueSet/NprLevelOfCare"/> </binding> </element> <element id="Encounter.type:NprLevelOfCare.coding:NprLevelOfCareCodeId"> <path value="Encounter.type.coding"/> <sliceName value="NprLevelOfCareCodeId"/> <min value="1"/> <max value="1"/> </element> <element id="Encounter.type:NprLevelOfCare.coding:NprLevelOfCareCodeId.id"> <path value="Encounter.type.coding.id"/> <max value="0"/> </element> <element id="Encounter.type:NprLevelOfCare.coding:NprLevelOfCareCodeId.system"> <path value="Encounter.type.coding.system"/> <min value="1"/> <fixedUri value="https://no/fhir/namingsystem/nprlevelofcarecodeid"/> </element> <element id="Encounter.type:NprLevelOfCare.coding:NprLevelOfCareCodeId.version"> <path value="Encounter.type.coding.version"/> <max value="0"/> </element> <element id="Encounter.type:NprLevelOfCare.coding:NprLevelOfCareCodeId.userSelected"> <path value="Encounter.type.coding.userSelected"/> <max value="0"/> </element> <element id="Encounter.type:NprLevelOfCare.coding:NprLevelOfCareVolvenCode"> <path value="Encounter.type.coding"/> <sliceName value="NprLevelOfCareVolvenCode"/> <min value="1"/> <max value="1"/> </element> <element id="Encounter.type:NprLevelOfCare.coding:NprLevelOfCareVolvenCode.id"> <path value="Encounter.type.coding.id"/> <max value="0"/> </element> <element id="Encounter.type:NprLevelOfCare.coding:NprLevelOfCareVolvenCode.system"> <path value="Encounter.type.coding.system"/> <min value="1"/> <fixedUri value="urn:oid:2.16.578.1.12.4.1.1.8406"/> </element> <element id="Encounter.type:NprLevelOfCare.coding:NprLevelOfCareVolvenCode.version"> <path value="Encounter.type.coding.version"/> <max value="0"/> </element> <element id="Encounter.type:NprLevelOfCare.coding:NprLevelOfCareVolvenCode.userSelected"> <path value="Encounter.type.coding.userSelected"/> <max value="0"/> </element> <element id="Encounter.type:NprLevelOfCare.text"> <path value="Encounter.type.text"/> <max value="0"/> </element> <element id="Encounter.type:ContactType"> <path value="Encounter.type"/> <sliceName value="ContactType"/> <max value="1"/> </element> <element id="Encounter.type:ContactType.id"> <path value="Encounter.type.id"/> <max value="0"/> </element> <element id="Encounter.type:ContactType.coding"> <path value="Encounter.type.coding"/> <slicing> <discriminator> <type value="value"/> <path value="system"/> </discriminator> <ordered value="false"/> <rules value="open"/> </slicing> <min value="2"/> <max value="2"/> </element> <element id="Encounter.type:ContactType.coding:ContactTypeCodeId"> <path value="Encounter.type.coding"/> <sliceName value="ContactTypeCodeId"/> <min value="1"/> <max value="1"/> </element> <element id="Encounter.type:ContactType.coding:ContactTypeCodeId.id"> <path value="Encounter.type.coding.id"/> <max value="0"/> </element> <element id="Encounter.type:ContactType.coding:ContactTypeCodeId.system"> <path value="Encounter.type.coding.system"/> <min value="1"/> <fixedUri value="https://no/fhir/namingsystem/contacttypecodeid"/> </element> <element id="Encounter.type:ContactType.coding:ContactTypeCodeId.version"> <path value="Encounter.type.coding.version"/> <max value="0"/> </element> <element id="Encounter.type:ContactType.coding:ContactTypeCodeId.userSelected"> <path value="Encounter.type.coding.userSelected"/> <max value="0"/> </element> <element id="Encounter.type:ContactType.coding:ContactTypeVolvenCode"> <path value="Encounter.type.coding"/> <sliceName value="ContactTypeVolvenCode"/> <min value="1"/> <max value="1"/> </element> <element id="Encounter.type:ContactType.coding:ContactTypeVolvenCode.id"> <path value="Encounter.type.coding.id"/> <max value="0"/> </element> <element id="Encounter.type:ContactType.coding:ContactTypeVolvenCode.system"> <path value="Encounter.type.coding.system"/> <min value="1"/> <fixedUri value="urn:oid:2.16.578.1.12.4.1.1.8432"/> </element> <element id="Encounter.type:ContactType.coding:ContactTypeVolvenCode.version"> <path value="Encounter.type.coding.version"/> <max value="0"/> </element> <element id="Encounter.type:ContactType.coding:ContactTypeVolvenCode.userSelected"> <path value="Encounter.type.coding.userSelected"/> <max value="0"/> </element> <element id="Encounter.type:ContactType.text"> <path value="Encounter.type.text"/> <max value="0"/> </element>
this is the xml representation of the type property of the profile
and the respective response I am gonna validate with this property is that ,
` "type": [
{
"coding": [
{
"system": "https://no/fhir/namingsystem/contacttypecodeid",
"code": "106800",
"display": "Heldøgn"
},
{
"system": "urn:oid:2.16.578.1.12.4.1.1.8432",
"code": "01",
"display": "Heldøgn"
}
]
]`
in a case like this what should i add as the discriminator path and value for the "type" property of encounter , since the only property that we can be used to path is coding and that coding is already sliced , is there any other way to slice the "type" property of encounter without using coding .
Beta Was this translation helpful? Give feedback.
All reactions