MediRecords FHIR Implementation Guide
20220217 - ci-build


: Unprocessable Patient resource Error Example - JSON Representation

Raw json | Download


{
  "resourceType" : "OperationOutcome",
  "id" : "mr-operation-outcome-422-unprocessable-pat-entity",
  "meta" : {
    "profile" : [
      "https://fhir.medirecords.com/StructureDefinition/mr-operation-outcome-core"
    ]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: OperationOutcome</b><a name=\"mr-operation-outcome-422-unprocessable-pat-entity\"> </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 \"mr-operation-outcome-422-unprocessable-pat-entity\" </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-mr-operation-outcome-core.html\">MediRecords Core 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>"
  },
  "issue" : [
    {
      "severity" : "error",
      "code" : "code-invalid",
      "details" : {
        "text" : "A valid patient ethnicity is required"
      },
      "diagnostics" : "Invalid Ethnicity provided in the request"
    },
    {
      "severity" : "error",
      "code" : "code-invalid",
      "details" : {
        "text" : "Invalid Postcode provided in the request"
      },
      "diagnostics" : "Postcode does not exists"
    }
  ]
}