: Unprocessable Patient resource Error Example - XML Representation
Raw xml | Download
<OperationOutcome xmlns="http://hl7.org/fhir">
<id value="fab9ac6f-80a6-4c77-94fe-b31121f15b52"/>
<meta>
<profile
value="https://fhir.medirecords.com/StructureDefinition/mr-operation-outcome-core"/>
</meta>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative: OperationOutcome</b><a name="fab9ac6f-80a6-4c77-94fe-b31121f15b52"> </a></p><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">Resource OperationOutcome "fab9ac6f-80a6-4c77-94fe-b31121f15b52" </p><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-mr-operation-outcome-core.html">MR OperationOutcome</a></p></div><blockquote><p><b>issue</b></p><p><b>severity</b>: error</p><p><b>code</b>: code-invalid</p><p><b>details</b>: A valid patient ethnicity is required <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> ()</span></p><p><b>diagnostics</b>: Invalid Ethnicity provided in the request</p></blockquote><blockquote><p><b>issue</b></p><p><b>severity</b>: error</p><p><b>code</b>: code-invalid</p><p><b>details</b>: Invalid Postcode provided in the request <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> ()</span></p><p><b>diagnostics</b>: Postcode does not exists</p></blockquote></div>
</text>
<issue>
<severity value="error"/>
<code value="code-invalid"/>
<details>
<text value="A valid patient ethnicity is required"/>
</details>
<diagnostics value="Invalid Ethnicity provided in the request"/>
</issue>
<issue>
<severity value="error"/>
<code value="code-invalid"/>
<details>
<text value="Invalid Postcode provided in the request"/>
</details>
<diagnostics value="Postcode does not exists"/>
</issue>
</OperationOutcome>