Stream: conformance
Topic: how to understand a 'fixed' error
Jens Villadsen (Jun 09 2020 at 10:01):
I have a resources as follows:
{
"resourceType":"Patient",
"meta":{
"profile":[
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-skrs-patient"
]
},
"identifier":[
{
"use":"official",
"system":"urn:oid:1.2.208.176.1.2",
"value":"0101010001"
}
]
}
- im validating it against my profile at https://docs.ehealth.sundhed.dk/latest/ig/StructureDefinition-ehealth-skrs-patient.html which requires at least one identifer as well as only allowing a single 'official identifier' by slicing on system. I however get the following two errors:
myLocationString = "Patient.identifier[0].system"
myMessage = "The element system is present in the instance but not allowed in the applicable fixed value specified in profile"
myLocationString = "Patient.identifier[0].value"
myMessage = "The element value is present in the instance but not allowed in the applicable fixed value specified in profile"
- what seems to be the issue here?
Mareike Przysucha (Jun 09 2020 at 10:07):
In the profile you linked, system, value, etc. (except for use) have the cardinality 0..0, so they are not allowed. You should probably check the profile.
Mareike Przysucha (Jun 09 2020 at 10:08):
At least this is what the snapshot shows.
Jens Villadsen (Jun 09 2020 at 10:08):
The UI shows something different (the datatype): image.png
Jens Villadsen (Jun 09 2020 at 10:09):
yet ... I see there is something buggy (snapshot): image.png
Jens Villadsen (Jun 09 2020 at 10:10):
(differential)
Mareike Przysucha (Jun 09 2020 at 10:10):
the second shows what I meant.
Jens Villadsen (Jun 09 2020 at 10:11):
@Grahame Grieve any comments on the generated snapshot here?
Jens Villadsen (Jun 09 2020 at 15:55):
as in, why?
Grahame Grieve (Jun 09 2020 at 21:59):
the problem is here:
Grahame Grieve (Jun 09 2020 at 22:00):
{
"id" : "Patient.identifier:dk-civil-registration-number",
"path" : "Patient.identifier",
"sliceName" : "dk-civil-registration-number",
"min" : 1,
"max" : "1",
"type" : [
{
"code" : "Identifier",
"profile" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-dk-crn-identifier"
}
],
"fixedIdentifier" : {
"use" : "official"
}
},
Grahame Grieve (Jun 09 2020 at 22:01):
you say that the type is identifier, and that it must conform to the profile http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-dk-crn-identifier. But then you provide a fixed value for identifier that doesn't conform to the profile you said applies
Last updated: Apr 12 2022 at 19:14 UTC


