Skip to content

Understanding validation errors

Validation is a powerful tool to verify that you produce conformant FHIR resources, but the number of messages can be overwhelming for complex structures like an IPS document (see e.g. this validation result). This page explains what a validator checks, in which order to read the issues, and what the typical messages of each kind mean.

If you have never validated a resource with Matchbox, do the first tutorial first. The parameters of the operation are in the $validate reference.

What a validator checks

The validator verifies that a resource is conformant on several levels:

  1. Structure (syntax): the resource can be parsed, and its elements, cardinalities and data types are the ones of the FHIR specification.
  2. Semantics: the codes are valid and belong to the value sets they are bound to.
  3. Constraints of the FHIR specification: the invariants defined for the resources and data types.
  4. Constraints of FHIR implementation guides: the additional rules of the profile, including slicing.

Each level builds on the previous one: fix the structure errors first, then the semantic errors, and only then the constraint errors. An error on a lower level often causes several errors on the higher levels, which disappear with it.

How to read the examples

Every example below shows a request to $validate and the relevant issues of the returned OperationOutcome. The requests use the variable {{host}} for the base address of the FHIR API (e.g. https://test.ahdis.ch/matchboxv3/fhir); most examples also have a link that opens them in the web interface of the public test server.

Column Element of the issue Meaning
Severity OperationOutcome.issue.severity fatal, error, warning or information
Code OperationOutcome.issue.code The kind of issue (structure, invalid, code-invalid, …)
Diagnostics OperationOutcome.issue.diagnostics The message of the validator
Expression OperationOutcome.issue.expression The FHIRPath of the element that has the issue

The first issue of every result is an information issue that describes the configuration of the validation; it is left out in the examples. A validation has passed when no issue has the severity fatal or error.

Structure (syntax) issues

You have to provide your FHIR resource in the right structure and syntax (xml or json) and also in the right FHIR version. If the validator is not able to parse your message as a FHIR resource (or as FHIR logical model instance, e.g. a CDA instance), you will get issues with a type of severity error or fatal.

e.g. you will get back the following error for requesting an invalid Patient xml resource validation:

POST {{host}}/$validate?profile=http://hl7.org/fhir/StructureDefinition/Patient HTTP/1.1
Accept: application/fhir+json
Content-Type: application/fhir+xml

Hello validator
Severity Code Diagnostics Expression
fatal invalid Content is not allowed in prolog. (xml)
error invalid The XML encoding is invalid (must be UTF-8) XML

or an invalid Patient in a json validation:

POST {{host}}/$validate?profile=http://hl7.org/fhir/StructureDefinition/Patient HTTP/1.1
Accept: application/fhir+json
Content-Type: application/fhir+json

Hello validator
Severity Code Diagnostics Expression
fatal invalid Error parsing JSON: Error parsing JSON source: Unexpected content at start of JSON: String at Line 1 (path=[Hello])

Common XML structure issues

Missing XML namespace

example no xml namespace

POST {{host}}/$validate?profile=http://hl7.org/fhir/StructureDefinition/Patient HTTP/1.1
Accept: application/fhir+json
Content-Type: application/fhir+xml

<Patient>
  <name>
    <family value="Test"/>
  </name>
</Patient>
Severity Code Diagnostics Expression
fatal structure This content cannot be parsed (unknown or unrecognized XML Root element namespace/name 'noNamespace::Patient') "Patient"

Undefined XML element

example undefined xml element

POST {{host}}/$validate?profile=http://hl7.org/fhir/StructureDefinition/Patient HTTP/1.1
Content-Type: application/fhir+xml

<Patient xmlns="http://hl7.org/fhir">
  <test value="true" />
</Patient>
| Severity | Code | Diagnostics | Expression | |----------|------------|-----------------------------------------|--------------| | error | structure | Undefined element 'test' at /f:Patient" | "f:/Patient" |

Wrong order of XML elements

example wrong order

POST {{host}}/$validate?profile=http://hl7.org/fhir/StructureDefinition/Patient HTTP/1.1
Content-Type: application/fhir+xml

<Patient xmlns="http://hl7.org/fhir">
  <gender value="male" />
  <name>
    <family value="Test" />
  </name>
</Patient>

Severity Code Diagnostics Expression
error invalid As specified by profile http://hl7.org/fhir/StructureDefinition/Patient|4.0.1, Element 'name' is out of order (found after gender) Patient.name[0]

the gender element must be after the name.

Common JSON structure issues

JSON array for repeating elements

If an element has a 0..* cardinality this needs in json representation an array.

{
  "resourceType": "Patient",
  "active" : true,
  "name": [
    {
      "family": "Test"
    }
  ]
}

sending it as a key, object will give an error:

POST {{host}}/$validate?profile=http://hl7.org/fhir/StructureDefinition/Patient HTTP/1.1
Content-Type: application/fhir+json

{
    "resourceType": "Patient",
    "name": {
      "family": "Test"
    }
}
Severity Code Diagnostics Expression
error invalid The property name must be a JSON Array, not an Object (at Patient) Patient.name

Quoted booleans or numbers

in JSON booleans or numbers must not be quoted as objects example:

POST {{host}}/$validate?profile=http://hl7.org/fhir/StructureDefinition/Patient HTTP/1.1
Content-Type: application/fhir+json

{
  "resourceType": "Patient",
  "active" : "true"
}
Severity Code Diagnostics Expression
error invalid Error parsing JSON: the primitive value must be a boolean Patient.active

Cardinality

The validator checks that the cardinality of all properties are correct, there can be min & max requirements, e.g. Patient.communication.language is required if you provide Patient.communication example:

POST {{host}}/$validate?profile=http://hl7.org/fhir/StructureDefinition/Patient HTTP/1.1
Content-Type: application/fhir+json

{
  "resourceType": "Patient",
  "communication" : [ {
      "preferred": true
    }
  ]
}
Severity Code Diagnostics Expression
error structure Patient.communication.language: minimum required = 1, but only found 0 (from http://hl7.org/fhir/StructureDefinition/Patient| 4.0.1) communication[0]

Value domain

The validator checks that all values of all properties conform to the rules for the specified types (including checking that enumerated codes are valid).

Invalid content for a boolean

example

POST {{host}}/$validate?profile=http://hl7.org/fhir/StructureDefinition/Patient HTTP/1.1
Content-Type: application/fhir+json

{
  "resourceType": "Patient",
  "active" : trueorfalse
}

Severity Code Diagnostics Expression
error invalid The JSON property 'active' has no quotes around the value of the property 'trueorfalse' Patient
error invalid Error parsing JSON: the primitive value must be a boolean Patient.active
error invalid Boolean values must be 'true' or 'false' Patient.active

Semantic issues

The validator checks also the validity of the codes and if the codes are appropriate for the bounded ValueSet according to the binding strength. For this a validator needs the support of a terminology server which provides a terminology service.

Matchbox can use different terminology servers (see Terminology in validation):

  • tx.fhir.org which is the default terminology server used by the FHIR validator
  • Ontoserver as of version 6.15.0
  • Matchbox provides an internal terminology server, but this internal terminology server has only limited terminology capabilities, e.g. it will not validate display names or it can't expand intensional ValueSets.

Invalid code

example

POST {{host}}/$validate?profile=http://hl7.org/fhir/StructureDefinition/Patient HTTP/1.1
Content-Type: application/fhir+json

{
  "resourceType": "Patient",
  "gender" : "?"
}

Severity Code Diagnostics Expression
error code-invalid The value provided ('?') was not found in the value set 'AdministrativeGender' (http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1), and a code is required from this value set (error message = The System URI could not be determined for the code '?' in the ValueSet 'http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1'; The provided code '#?' was not found in the value set 'http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1') Patient.gender

Intensional value sets

ValueSets can be intensional which requires a terminology server to expand them or verify if a code is valid within. E.g. see Caveat Condition where the ValueSet includes codes from http://snomed.info/sct where concept is-a 397578001 (Device in situ (finding)).

validation with tx.fhir.org:

Severity Code Diagnostics Expression
error code-invalid Unknown code '444444444' in the CodeSystem 'http://snomed.info/sct' version 'http://snomed.info/sct/900000000000207008/version/20240801' Condition.code.coding[0].code
error code-invalid None of the codings provided are in the value set 'Caveat Condition' (http://fhir.ch/ig/ch-rad-order/ValueSet/ch-rad-order-caveat-condition|2.0.0-ballot), and a coding from this value set is required) (codes = http://snomed.info/sct#444444444)" Condition.code

validation with Matchbox's internal terminology server will not return an error, because the intensional ValueSet will be ignored and there is no validation of codes from SNOMED CT or LOINC (CodeSystems not provided directly through the HL7 FHIR ecosystem).

Constraints of the FHIR specification

FHIR adds additional constraints to resources, e.g: https://hl7.org/fhir/patient.html#invs adds a requirement that a contact should have at least a contact's details or a reference to an organization (name.exists() or telecom.exists() or address.exists() or organization.exists()). example

POST {{host}}/$validate?profile=http://hl7.org/fhir/StructureDefinition/Patient HTTP/1.1
Content-Type: application/fhir+json

{
    "resourceType": "Patient",
   "contact" : [{
    "relationship" : [{
      "coding" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/v2-0131",
        "code" : "N"
      }
      ]
    }]
  }]
}
Severity Code Diagnostics Expression
error invariant Constraint failed: pat-1: 'SHALL at least contain a contact's details or a reference to an organization' Patient.contact[0]

Constraints of FHIR implementation guides

Additional rules of a profile

FHIR Implementation guides can add additional rules and you can validate if those rules are checked, by specifying the profile for the validation where the rules are defined:

e.g. in FHIR CH Core it is defined that CH Core Patient EPR is required to have at least one identifier, name and birthDate. If you validate an empty patient resource against the base profile you wont get any errors:

POST {{host}}/$validate?profile=http://hl7.org/fhir/StructureDefinition/Patient HTTP/1.1
Content-Type: application/fhir+json

{
    "resourceType": "Patient"
}
Severity Code Diagnostics Expression
information information No fatal or error issues detected, the validation has passed.

however if you validate it against CH Core Patient EPR you will get multiple errors:

POST {{host}}/$validate?profile=http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr HTTP/1.1
Content-Type: application/fhir+json

{
    "resourceType": "Patient"
}
Severity Code Diagnostics Expression
error structure Patient.identifier: minimum required = 1, but only found 0 (from http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr|5.0.0-ballot) Patient
error structure Patient.gender: minimum required = 1, but only found 0 (from http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr|5.0.0-ballot) Patient
error structure Patient.birthDate: minimum required = 1, but only found 0 (from http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr|5.0.0-ballot) Patient

Slicing in FHIR documents

One common feature of constraining FHIR documents (FHIR resource Bundle with type document) is to specify a document profile (e.g. IPS). The document profile will then specify the entries which are allowed to appear.

In a FHIR document the first resource entry needs to be a FHIR Resource Composition, for a specific FHIR document there will be a profile for this Composition (e.g IPS Composition, followed by other resources.

This is expressed with slicing, the Bundle.entry elements are sliced and the document profile says which resources are to be expected in this bundle.entry elements (e.g. at least that Composition defined above). Usually this slices are done on resource/profile and specifying that the Composition needs to appear. For IPS it requires also a Patient resource and defines profiles for optional resources according to the IPS requirements).

A FHIR document has different sections (usually coded by a LOINC code) defined in the Composition resource, and within those sections you will have references to structured FHIR resources, which will be contained in Bundle.entry. This means that the Composition is broken into sections, slice by pattern:code. The IPS has required slices for sectionMedications, sectionAllergies and section Problems.

A minimal IPS document validation looks like this:

example

POST {{host}}/$validate?profile=http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips HTTP/1.1
Content-Type: application/fhir+json

{
    "resourceType": "Bundle",
    "identifier": {
        "system": "urn:oid:2.16.724.4.8.10.200.10",
        "value": "28b95815-76ce-457b-b7ae-a972e527db40"
    },
    "type": "document",
    "timestamp": "2020-12-11T14:30:00+01:00",
    "entry": [
        {
            "fullUrl": "urn:uuid:f40b07e3-37e8-48c3-bf1c-ae70fe12dab0",
            "resource": {
                "resourceType": "Composition",
                "id": "f40b07e3-37e8-48c3-bf1c-ae70fe12dab0",
                "status": "final",
                "type": {
                    "coding": [
                        {
                            "system": "http://loinc.org",
                            "code": "60591-5",
                            "display": "Patient summary Document"
                        }
                    ]
                },
                "subject": {
                    "reference": "urn:uuid:244ad7c3-beeb-41d1-8a2f-c76b8cf720ad"
                },
                "date": "2020-12-11T14:30:00+01:00",
                "author": [
                    {
                        "reference": "urn:uuid:45271f7f-63ab-4946-970f-3daaaa06637f"
                    }
                ],
                "title": "Patient Summary as of December 11, 2020 14:30",
                "confidentiality": "N",
                "section": [
                    {
                        "title": "Active Problems",
                        "code": {
                            "coding": [
                                {
                                    "system": "http://loinc.org",
                                    "code": "11450-4",
                                    "display": "Problem list - Reported"
                                }
                            ]
                        },
                        "text": {
                            "status": "generated",
                            "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><ul><li><div><b>Condition Name</b>: Menopausal Flushing</div><div><b>Code</b>: <span>198436008</span></div><div><b>Status</b>: <span>Active</span></div></li></ul></div>"
                        },
                        "entry": [
                            {
                                "reference": "urn:uuid:d179321e-c091-4cd4-8642-3a27537d506d"
                            }
                        ]
                    },
                    {
                        "title": "Medication",
                        "code": {
                            "coding": [
                                {
                                    "system": "http://loinc.org",
                                    "code": "10160-0",
                                    "display": "History of Medication use Narrative"
                                }
                            ]
                        },
                        "text": {
                            "status": "generated",
                            "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><ul><li><div><b>Medication Name</b>: Oral anastrozole 1mg tablet</div><div><b>Code</b>: <span></span></div><div><b>Status</b>: <span>Active, started March 2015</span></div><div>Instructions: Take 1 time per day</div></li></ul></div>"
                        },
                        "entry": [
                            {
                                "reference": "urn:uuid:e1271efd-18ff-4654-9ee7-45f40019c453"
                            }
                        ]
                    },
                    {
                        "title": "Allergies and Intolerances",
                        "code": {
                            "coding": [
                                {
                                    "system": "http://loinc.org",
                                    "code": "48765-2",
                                    "display": "Allergies and adverse reactions Document"
                                }
                            ]
                        },
                        "text": {
                            "status": "generated",
                            "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><ul><li><div><b>Allergy Name</b>: Pencillins</div><div><b>Verification Status</b>: Confirmed</div><div><b>Reaction</b>: <span>no information</span></div></li></ul></div>"
                        },
                        "entry": [
                            {
                                "reference": "urn:uuid:74861316-f69d-4652-9fb1-8512a20c7927"
                            }
                        ]
                    }
                ]
            }
        },
        {
            "fullUrl": "urn:uuid:244ad7c3-beeb-41d1-8a2f-c76b8cf720ad",
            "resource": {
                "resourceType": "Patient",
                "id": "244ad7c3-beeb-41d1-8a2f-c76b8cf720ad",
                "name": [
                    {
                        "family": "DeLarosa",
                        "given": [
                            "Martha"
                        ]
                    }
                ],
                "birthDate": "1972-05-01"
            }
        },
        {
            "fullUrl": "urn:uuid:45271f7f-63ab-4946-970f-3daaaa06637f",
            "resource": {
                "resourceType": "Practitioner",
                "id": "45271f7f-63ab-4946-970f-3daaaa06637f",
                "name": [
                    {
                        "family": "van Hulp",
                        "given": [
                            "Beetje"
                        ]
                    }
                ]
            }
        },
        {
            "fullUrl": "urn:uuid:d179321e-c091-4cd4-8642-3a27537d506d",
            "resource": {
                "resourceType": "Condition",
                "id": "d179321e-c091-4cd4-8642-3a27537d506d",
                "code": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "198436008",
                            "display": "Menopausal flushing (finding)"
                        }
                    ]
                },
                "subject": {
                    "reference": "urn:uuid:244ad7c3-beeb-41d1-8a2f-c76b8cf720ad"
                }
            }
        },
        {
            "fullUrl": "urn:uuid:e1271efd-18ff-4654-9ee7-45f40019c453",
            "resource": {
                "resourceType": "MedicationStatement",
                "id": "e1271efd-18ff-4654-9ee7-45f40019c453",
                "status": "active",
                "medicationReference": {
                    "reference": "urn:uuid:95db7c92-566a-4ded-896b-2220ab244a9e"
                },
                "subject": {
                    "reference": "urn:uuid:244ad7c3-beeb-41d1-8a2f-c76b8cf720ad"
                },
                "effectivePeriod": {
                    "start": "2015-03"
                }
            }
        },
        {
            "fullUrl": "urn:uuid:95db7c92-566a-4ded-896b-2220ab244a9e",
            "resource": {
                "resourceType": "Medication",
                "id": "95db7c92-566a-4ded-896b-2220ab244a9e",
                "code": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "108774000",
                            "display": "Product containing anastrozole (medicinal product)"
                        }
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:74861316-f69d-4652-9fb1-8512a20c7927",
            "resource": {
                "resourceType": "AllergyIntolerance",
                "id": "74861316-f69d-4652-9fb1-8512a20c7927",
                "clinicalStatus": {
                    "coding": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
                            "code": "active"
                        }
                    ]
                },
                "code": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "373270004",
                            "display": "Substance with penicillin structure and antibacterial mechanism of action (substance)"
                        }
                    ]
                },
                "patient": {
                    "reference": "urn:uuid:244ad7c3-beeb-41d1-8a2f-c76b8cf720ad"
                }
            }
        }
    ]
}

Invalid IPS document: missing medication section

If we remove the medication section and medication entries (which are required by the IPS Composition profile), we get an error and additional information:

example

error [structure]: line 1, column 2, in Bundle: Slice 'Bundle.entry:composition': a matching slice is required, but not found (from http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips|2.0.0-ballot). Note that other slices are allowed in addition to this required slice

This error says that the IPS composition could not be found, we have to look for further information why this was not found:

information [informational]: line 10, column 10, in Bundle.entry[0]: This element does not match any known slice defined in the profile http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips|2.0.0-ballot (this may not be a problem, but you should check that it's not intended to match a slice) 1. Bundle.entry[0]: Bundle.entry[0].resource: Composition.section: minimum required = 3, but only found 2 (from http://hl7.org/fhir/uv/ips/StructureDefinition/Composition-uv-ips|2.0.0-ballot) 2. Bundle.entry[0]: Bundle.entry[0].resource: Slice 'Composition.section:sectionMedications': a matching slice is required, but not found (from http://hl7.org/fhir/uv/ips/StructureDefinition/Composition-uv-ips|2.0.0-ballot). Note that other slices are allowed in addition to this required slice

The information indicates that the slicing conditions (minimum 3 sections are not met) and that the sectionMedications is required but not found.

Invalid IPS document: missing Patient.birthDate

example

If we remove the patient birhtDate (which is required by the IPS Patient profile), we get two errors and a huge list of information issues:

error [structure]: line 1, column 2, in Bundle: Slice 'Bundle.entry:composition': a matching slice is required, but not found (from http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips|2.0.0-ballot). Note that other slices are allowed in addition to this required slice

This error says that the IPS composition could not be found, we have to look for further information why this was not found.

error [structure]: line 1, column 2, in Bundle: Slice 'Bundle.entry:patient': a matching slice is required, but not found (from http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips|2.0.0-ballot). Note that other slices are allowed in addition to this required slice

This indicates that the validator did not find a corresponding patient but we have to look further why this is not the case.

information [informational]: line 10, column 10, in Bundle.entry[0]: This element does not match any known slice defined in the profile http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips|2.0.0-ballot (this may not be a problem, but you should check that it's not intended to match a slice) 1. Bundle.entry[0]: Bundle.entry[0].resource.subject: Bundle.entry[1].resource/Patient/244ad7c3-beeb-41d1-8a2f-c76b8cf720ad/: Patient.birthDate: minimum required = 1, but only found 0 (from http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips|2.0.0-ballot) 2. Bundle.entry[0]: Bundle.entry[0].resource.section[0].entry[0]: Bundle.entry[0].resource.section[0].entry[0]: Bundle.entry[3].resource.subject: Bundle.entry[1].resource/Patient/244ad7c3-beeb-41d1-8a2f-c76b8cf720ad/: Patient.birthDate: minimum required = 1, but only found 0 (from http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips|2.0.0-ballot) 3. Bundle.entry[0]: Bundle.entry[0].resource.section[1].entry[0]: Bundle.entry[0].resource.section[1].entry[0]: Bundle.entry[4].resource.subject: Bundle.entry[1].resource/Patient/244ad7c3-beeb-41d1-8a2f-c76b8cf720ad/: Patient.birthDate: minimum required = 1, but only found 0 (from http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips|2.0.0-ballot) 4. Bundle.entry[0]: Bundle.entry[0].resource.section[2].entry[0]: Bundle.entry[0].resource.section[2].entry[0]: Bundle.entry[6].resource.patient: Bundle.entry[1].resource/Patient/244ad7c3-beeb-41d1-8a2f-c76b8cf720ad/: Patient.birthDate: minimum required = 1, but only found 0 (from http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips|2.0.0-ballot)

Here we see why the Composition did not match the slice, Composition.subject points to Patient, where the birthDate is not provided, in additions also in the referenced resources out of the sections have references to the patient which is not conforming to the IPS Patient profile.

information [informational]: line 103, column 10, in Bundle.entry[1]: This element does not match any known slice defined in the profile http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips|2.0.0-ballot (this may not be a problem, but you should check that it's not intended to match a slice) 1. Bundle.entry[1]: Bundle.entry[1].resource/Patient/244ad7c3-beeb-41d1-8a2f-c76b8cf720ad/: Patient.birthDate: minimum required = 1, but only found 0 (from http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips|2.0.0-ballot)

Here we see that the Patient would need to have birthDate that is missing to conform to the profile.

information [informational]: line 133, column 10, in Bundle.entry[3]: This element does not match any known slice defined in the profile http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips|2.0.0-ballot (this may not be a problem, but you should check that it's not intended to match a slice) 1. Bundle.entry[3]: Bundle.entry[3].resource.subject: Bundle.entry[1].resource/Patient/244ad7c3-beeb-41d1-8a2f-c76b8cf720ad/: Patient.birthDate: minimum required = 1, but only found 0 (from http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips|2.0.0-ballot)

information [informational]: line 152, column 10, in Bundle.entry[4]: This element does not match any known slice defined in the profile http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips|2.0.0-ballot (this may not be a problem, but you should check that it's not intended to match a slice) 1. Bundle.entry[4]: Bundle.entry[4].resource.subject: Bundle.entry[1].resource/Patient/244ad7c3-beeb-41d1-8a2f-c76b8cf720ad/: Patient.birthDate: minimum required = 1, but only found 0 (from http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips|2.0.0-ballot)

information [informational]: line 185, column 10, in Bundle.entry[6]: This element does not match any known slice defined in the profile http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips|2.0.0-ballot (this may not be a problem, but you should check that it's not intended to match a slice) 1. Bundle.entry[6]: Bundle.entry[6].resource.patient: Bundle.entry[1].resource/Patient/244ad7c3-beeb-41d1-8a2f-c76b8cf720ad/: Patient.birthDate: minimum required = 1, but only found 0 (from http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips|2.0.0-ballot)

The validator can us not tell directly that Patient.birthDate is missing, it could have other Patient in the Bundle. The validator tells us that a Composition and a Patient according to the IPS definitions could not be found and we have to figure out ourself why they did not match.

The validation parameter showMessagesFromReferences brings the missing Patient.birthDate directly up into the error message; it is set by default since version 4.0.2: validate with the parameter