<?xml version="1.0" encoding="UTF-8"?>

<OperationOutcome xmlns="http://hl7.org/fhir">
  <id value="ExampleBCRValidationOutcomeFailed"/>
  <meta>
    <profile value="https://www.ehealth.fgov.be/standards/fhir/registries/bcr/StructureDefinition/bcr-validation-outcome"/>
  </meta>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: OperationOutcome ExampleBCRValidationOutcomeFailed</b></p><a name="ExampleBCRValidationOutcomeFailed"> </a><a name="hcExampleBCRValidationOutcomeFailed"> </a><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-bcr-validation-outcome.html">BCR Validation Outcome</a></p></div><blockquote><p><b>issue</b></p><p><b>severity</b>: Error</p><p><b>code</b>: Required element missing</p><p><b>details</b>: <span title="Codes:">Primary tumour topography (section 7) is mandatory when the behaviour code indicates a malignant tumour.</span></p><p><b>expression</b>: QuestionnaireResponse.item.where(linkId='tumour').item.where(linkId='tumour.primaryTumourLocation')</p></blockquote><blockquote><p><b>issue</b></p><p><b>severity</b>: Warning</p><p><b>code</b>: Business Rule Violation</p><p><b>details</b>: <span title="Codes:">Incidence date is more than 6 months before the submission date; please confirm the incidence date is correct.</span></p><p><b>expression</b>: QuestionnaireResponse.item.where(linkId='tumour').item.where(linkId='tumour.incidenceDate')</p></blockquote></div>
  </text>
  <issue>
    <severity value="error"/>
    <code value="required"/>
    <details>
      <text value="Primary tumour topography (section 7) is mandatory when the behaviour code indicates a malignant tumour."/>
    </details>
    <expression value="QuestionnaireResponse.item.where(linkId='tumour').item.where(linkId='tumour.primaryTumourLocation')"/>
  </issue>
  <issue>
    <severity value="warning"/>
    <code value="business-rule"/>
    <details>
      <text value="Incidence date is more than 6 months before the submission date; please confirm the incidence date is correct."/>
    </details>
    <expression value="QuestionnaireResponse.item.where(linkId='tumour').item.where(linkId='tumour.incidenceDate')"/>
  </issue>
</OperationOutcome>