MediRecords FHIR Implementation Guide
1.4.1 - release


: Unprocessable Patient resource Error Example - JSON Representation

Raw json | Download

{
  "resourceType" : "OperationOutcome",
  "id" : "fab9ac6f-80a6-4c77-94fe-b31121f15b52",
  "meta" : {
    "profile" : [
      🔗 "https://fhir.medirecords.com/StructureDefinition/mr-operation-outcome-core"
    ]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: OperationOutcome fab9ac6f-80a6-4c77-94fe-b31121f15b52</b></p><a name=\"fab9ac6f-80a6-4c77-94fe-b31121f15b52\"> </a><a name=\"hcfab9ac6f-80a6-4c77-94fe-b31121f15b52\"> </a><a name=\"fab9ac6f-80a6-4c77-94fe-b31121f15b52-en-US\"> </a><blockquote><p><b>issue</b></p><p><b>severity</b>: Error</p><p><b>code</b>: Invalid Code</p><p><b>details</b>: <span title=\"Codes:\">A valid patient ethnicity is required</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>: Invalid Code</p><p><b>details</b>: <span title=\"Codes:\">Invalid Postcode provided in the request</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"
    }
  ]
}