Stream: hapi
Topic: understanding slicing error messagee
Jens Villadsen (Apr 12 2019 at 20:29):
Hi all - I've uploaded a set of profiles to the global HAPI FHIR server on http://hapi.fhir.org/baseDstu3 and I've been trying to come up with a (sort of) sane example request.xml. The attached resource gives an example, yet it fails miserably when I try to validate it: http://hapi.fhir.org/baseDstu3/Patient/$validate?_format=xml&_pretty=true
- as in:
... <issue> <severity value="information"/> <code value="processing"/> <diagnostics value="Profile http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient--42, Element 'Patient.address[officialHomeAddress]'': Unable to check minimum required (1) due to lack of slicing validation"/> <location value="Patient"/> </issue> <issue> <severity value="warning"/> <code value="processing"/> <diagnostics value="ValueSet http://ehealth.sundhed.dk/vs/municipality-codes not found"/> <location value="Patient.address[1].extension[1].valueCoding.code"/> </issue> <issue> <severity value="error"/> <code value="processing"/> <diagnostics value="The Extension 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-regional-subdivision-code' definition allows for the types [CodeableConcept] but found type Coding"/> <location value="Patient.address[1].extension[2][url='http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-regional-subdivision-code']"/> </issue> <issue> <severity value="information"/> <code value="processing"/> <diagnostics value="Could not verify slice for profile http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-regional-subdivision-code"/> <location value="Patient.address[1].extension[2].valueCoding"/> </issue> <issue> <severity value="warning"/> <code value="processing"/> <diagnostics value="ValueSet http://ehealth.sundhed.dk/vs/municipality-codes not found"/> <location value="Patient.address[2].extension[1].valueCoding.code"/> </issue> <issue> <severity value="error"/> <code value="processing"/> <diagnostics value="The Extension 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-regional-subdivision-code' definition allows for the types [CodeableConcept] but found type Coding"/> <location value="Patient.address[2].extension[2][url='http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-regional-subdivision-code']"/> </issue> <issue> <severity value="information"/> <code value="processing"/> <diagnostics value="Could not verify slice for profile http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-regional-subdivision-code"/> <location value="Patient.address[2].extension[2].valueCoding"/> </issue>
Jens Villadsen (Apr 23 2019 at 10:20):
FWIW - it seems that the issue can be narrowed down to the case where a data type (Address) profile is used on patient and the discriminator is on the 'base' address.use on patient. HAPI does not really seem to be fond of that. Could it perhaps be related to a bad discriminator?
Morten Ernebjerg (Apr 23 2019 at 10:47):
I ran into an error with an address constraint in the German base profiles a while back, could be the same - @Patrick Werner you responded to this on the German stream and said it looked like an error (on Feb 22), might it be the same issue here?
Jens Villadsen (Apr 23 2019 at 10:59):
One of the error message that seems to pop up is Profile [insert name here], Element 'Patient.address[officialHomeAddress]'': Unable to check minimum required (1) due to lack of slicing validation
Last updated: Apr 12 2022 at 19:14 UTC