FHIR Chat · FHIR Validator issue · conformance

Stream: conformance

Topic: FHIR Validator issue


view this post on Zulip Dhananjayan Palani (Dec 13 2021 at 17:42):

While validating uapi-as-enrollment-bundle using FHIR validator, we have came across the following error,

{
"severity": "error",
"code": "processing",
"diagnostics": "Unable to find a match for profile urn:uuid:695d0991-5e03-46df-934a-85a28acd95c1 among choices: http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-practitioner",
"location": [
"Bundle.entry[2].resource.ofType(Patient).generalPractitioner[0]",
"Line 1, Col 10510"
]
}

Getting this issue for the other reference fields as well,
{
"severity": "error",
"code": "processing",
"diagnostics": "Unable to find a match for profile urn:uuid:01c31a2f-321d-4c6e-8349-206af8a88088 among choices: http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-organization",
"location": [
"Bundle.entry[2].resource.ofType(Patient).managingOrganization",
"Line 1, Col 10631"
]
}

view this post on Zulip Grahame Grieve (Dec 13 2021 at 18:16):

why do you think that's an issue with the validator?

view this post on Zulip Dhananjayan Palani (Dec 14 2021 at 03:39):

We have the respective resource entry for the reference urn:uuid:695d0991-5e03-46df-934a-85a28acd95c1 in the bundle and the structure definition also loaded.. The issue is only with the reference fields where it couldn't identify the respective structure definition. @Grahame Grieve

view this post on Zulip Grahame Grieve (Dec 14 2021 at 03:59):

well, the validator doesn't think they conform. Are you sure they do? Please post an example - an instance, along with all the profiles etc that shows the problem

view this post on Zulip Dhananjayan Palani (Dec 14 2021 at 06:03):

validate_enrl_bundle.json
StructureDefinition-uapi-as-enrollment-bundle.json
Have attached the enrollment bundle and the corresponding structure definition

view this post on Zulip Grahame Grieve (Dec 22 2021 at 06:45):

well, this gives the me the following errors:

view this post on Zulip Grahame Grieve (Dec 22 2021 at 06:54):

ERROR: Bundle.entry[0].resource.ofType(MessageHeader).extension[0]: The extension http://dev.gene.com/fhir/uapi/StructureDefinition/message-timestamp is unknown, and not allowed here
ERROR: Bundle.entry[2].resource.ofType(Patient).generalPractitioner[0]: The type 'practitioner' is not a valid Target for this element (must be one of [CanonicalType[http://hl7.org/fhir/StructureDefinition/Organization], CanonicalType[http://hl7.org/fhir/StructureDefinition/Practitioner], CanonicalType[http://hl7.org/fhir/StructureDefinition/PractitionerRole]])
ERROR: Bundle.entry[2].resource.ofType(Patient).generalPractitioner[0]: Invalid Resource target type. Found practitioner, but expected one of (Practitioner)
ERROR: Bundle.entry[2].resource.ofType(Patient).managingOrganization: The type 'organization' is not a valid Target for this element (must be one of [CanonicalType[http://hl7.org/fhir/StructureDefinition/Organization]])
ERROR: Bundle.entry[2].resource.ofType(Patient).managingOrganization: Invalid Resource target type. Found organization, but expected one of (Organization)
ERROR: Bundle.entry[8].resource.ofType(Condition).code.coding[0]: The code "E10.3211+TT1.2" is not valid in the system http://hl7.org/fhir/sid/icd-10-cm; The code provided (http://hl7.org/fhir/sid/icd-10-cm#E10.3211+TT1.2) is not valid in the value set 'All codes known to the system' (from http://tx.fhir.org/r4) for 'http://hl7.org/fhir/sid/icd-10-cm#E10.3211+TT1.2'
ERROR: Bundle.entry[3]: Profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-as-enrollment-bundle, Element matches more than one slice - practice, payer
ERROR: Bundle.entry[14]: Profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-as-enrollment-bundle, Element matches more than one slice - practice, payer
ERROR: Bundle: Bundle.entry:practice: max allowed = 1, but found 2 (from http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-as-enrollment-bundle)
ERROR: Bundle.entry[0].resource.ofType(MessageHeader): No profile found for contained resource of type 'MessageHeader'
ERROR: Bundle.entry[0].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-messageheader
ERROR: Bundle.entry[2].resource.ofType(Patient): No profile found for contained resource of type 'Patient'
ERROR: Bundle.entry[2].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-patient
ERROR: Bundle.entry[3].resource.ofType(Organization): No profile found for contained resource of type 'Organization'
ERROR: Bundle.entry[3].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-organization
ERROR: Bundle.entry[4].resource.ofType(Practitioner): No profile found for contained resource of type 'Practitioner'
ERROR: Bundle.entry[4].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-practitioner
ERROR: Bundle.entry[5].resource.ofType(Coverage): No profile found for contained resource of type 'Coverage'
ERROR: Bundle.entry[5].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-coverage
ERROR: Bundle.entry[6].resource.ofType(RelatedPerson): No profile found for contained resource of type 'RelatedPerson'
ERROR: Bundle.entry[6].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-relatedPerson
ERROR: Bundle.entry[8].resource.ofType(Condition): No profile found for contained resource of type 'Condition'
ERROR: Bundle.entry[8].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-condition
ERROR: Bundle.entry[9].resource.ofType(Consent): No profile found for contained resource of type 'Consent'
ERROR: Bundle.entry[9].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-consent
ERROR: Bundle.entry[10].resource.ofType(Provenance): No profile found for contained resource of type 'Provenance'
ERROR: Bundle.entry[10].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-provenance
ERROR: Bundle.entry[11].resource.ofType(ServiceRequest): No profile found for contained resource of type 'ServiceRequest'
ERROR: Bundle.entry[11].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-servicerequest
ERROR: Bundle.entry[12].resource.ofType(ServiceRequest): No profile found for contained resource of type 'ServiceRequest'
ERROR: Bundle.entry[12].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-servicerequest
ERROR: Bundle.entry[13].resource.ofType(MedicationRequest): No profile found for contained resource of type 'MedicationRequest'
ERROR: Bundle.entry[13].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-medicationrequest
ERROR: Bundle.entry[14].resource.ofType(Organization): No profile found for contained resource of type 'Organization'
ERROR: Bundle.entry[14].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-organization

Which of these do you think are incorrect?

view this post on Zulip Grahame Grieve (Dec 22 2021 at 07:02):

I improved the messages:

ERROR: Bundle.entry[0].resource.ofType(MessageHeader).extension[0]: The extension http://dev.gene.com/fhir/uapi/StructureDefinition/message-timestamp is unknown, and not allowed here
ERROR: Bundle.entry[2].resource.ofType(Patient).generalPractitioner[0]: The type 'practitioner' is not a valid Target for this element (must be one of [CanonicalType[http://hl7.org/fhir/StructureDefinition/Organization], CanonicalType[http://hl7.org/fhir/StructureDefinition/Practitioner], CanonicalType[http://hl7.org/fhir/StructureDefinition/PractitionerRole]])
ERROR: Bundle.entry[2].resource.ofType(Patient).generalPractitioner[0]: Invalid Resource target type. Found practitioner, but expected one of (Practitioner)
ERROR: Bundle.entry[2].resource.ofType(Patient).managingOrganization: The type 'organization' is not a valid Target for this element (must be one of [CanonicalType[http://hl7.org/fhir/StructureDefinition/Organization]])
ERROR: Bundle.entry[2].resource.ofType(Patient).managingOrganization: Invalid Resource target type. Found organization, but expected one of (Organization)
ERROR: Bundle.entry[8].resource.ofType(Condition).code.coding[0]: The code "E10.3211+TT1.2" is not valid in the system http://hl7.org/fhir/sid/icd-10-cm; The code provided (http://hl7.org/fhir/sid/icd-10-cm#E10.3211+TT1.2) is not valid in the value set 'All codes known to the system' (from http://tx.fhir.org/r4) for 'http://hl7.org/fhir/sid/icd-10-cm#E10.3211+TT1.2'
ERROR: Bundle.entry[3]: Profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-as-enrollment-bundle, Element matches more than one slice - practice, payer
ERROR: Bundle.entry[14]: Profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-as-enrollment-bundle, Element matches more than one slice - practice, payer
ERROR: Bundle: Bundle.entry:practice: max allowed = 1, but found 2 (from http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-as-enrollment-bundle)
ERROR: Bundle.entry[0].resource.ofType(MessageHeader): Specified profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-messageheader not found for entry resource of type 'entry'
ERROR: Bundle.entry[0].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-messageheader
ERROR: Bundle.entry[2].resource.ofType(Patient): Specified profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-patient not found for entry resource of type 'entry'
ERROR: Bundle.entry[2].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-patient
ERROR: Bundle.entry[3].resource.ofType(Organization): Specified profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-organization not found for entry resource of type 'entry'
ERROR: Bundle.entry[3].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-organization
ERROR: Bundle.entry[4].resource.ofType(Practitioner): Specified profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-practitioner not found for entry resource of type 'entry'
ERROR: Bundle.entry[4].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-practitioner
ERROR: Bundle.entry[5].resource.ofType(Coverage): Specified profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-coverage not found for entry resource of type 'entry'
ERROR: Bundle.entry[5].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-coverage
ERROR: Bundle.entry[6].resource.ofType(RelatedPerson): Specified profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-relatedPerson not found for entry resource of type 'entry'
ERROR: Bundle.entry[6].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-relatedPerson
ERROR: Bundle.entry[8].resource.ofType(Condition): Specified profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-condition not found for entry resource of type 'entry'
ERROR: Bundle.entry[8].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-condition
ERROR: Bundle.entry[9].resource.ofType(Consent): Specified profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-consent not found for entry resource of type 'entry'
ERROR: Bundle.entry[9].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-consent
ERROR: Bundle.entry[10].resource.ofType(Provenance): Specified profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-provenance not found for entry resource of type 'entry'
ERROR: Bundle.entry[10].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-provenance
ERROR: Bundle.entry[11].resource.ofType(ServiceRequest): Specified profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-servicerequest not found for entry resource of type 'entry'
ERROR: Bundle.entry[11].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-servicerequest
ERROR: Bundle.entry[12].resource.ofType(ServiceRequest): Specified profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-servicerequest not found for entry resource of type 'entry'
ERROR: Bundle.entry[12].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-servicerequest
ERROR: Bundle.entry[13].resource.ofType(MedicationRequest): Specified profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-medicationrequest not found for entry resource of type 'entry'
ERROR: Bundle.entry[13].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-medicationrequest
ERROR: Bundle.entry[14].resource.ofType(Organization): Specified profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-organization not found for entry resource of type 'entry'
ERROR: Bundle.entry[14].resource: Unknown profile http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-organization

view this post on Zulip Dhananjayan Palani (Jan 03 2022 at 05:56):

@Grahame Grieve Couldn't find the root cause for the following error, ERROR: Bundle: Bundle.entry:practice: max allowed = 1, but found 2 (from http://dev.gene.com/fhir/uapi/StructureDefinition/uapi-as-enrollment-bundle)

view this post on Zulip Grahame Grieve (Jan 06 2022 at 02:43):

well, describe how that slice is differentiated


Last updated: Apr 12 2022 at 19:14 UTC