FHIR Chat · how to understand a 'fixed' error · conformance

Stream: conformance

Topic: how to understand a 'fixed' error


view this post on Zulip 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"
      }
   ]

}

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?

view this post on Zulip 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.

view this post on Zulip Mareike Przysucha (Jun 09 2020 at 10:08):

At least this is what the snapshot shows.

view this post on Zulip Jens Villadsen (Jun 09 2020 at 10:08):

The UI shows something different (the datatype): image.png

view this post on Zulip Jens Villadsen (Jun 09 2020 at 10:09):

yet ... I see there is something buggy (snapshot): image.png

view this post on Zulip Jens Villadsen (Jun 09 2020 at 10:10):

(differential)

image.png

view this post on Zulip Mareike Przysucha (Jun 09 2020 at 10:10):

the second shows what I meant.

view this post on Zulip Jens Villadsen (Jun 09 2020 at 10:11):

@Grahame Grieve any comments on the generated snapshot here?

view this post on Zulip Jens Villadsen (Jun 09 2020 at 15:55):

as in, why?

view this post on Zulip Grahame Grieve (Jun 09 2020 at 21:59):

the problem is here:

view this post on Zulip 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"
        }
      },

view this post on Zulip 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