FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: ConceptMap/issueType-to-http-status-code

Packageuk.nhsdigital.r4.test
Resource TypeConceptMap
IdissueType-to-http-status-code
FHIR VersionR4
Sourcehttps://simplifier.net/resolve?scope=uk.nhsdigital.r4.test@2.16.0-prerelease&canonical=https://fhir.nhs.uk/ConceptMap/issueType-to-http-status-code
URLhttps://fhir.nhs.uk/ConceptMap/issueType-to-http-status-code
Version1.0.0
Statusdraft
Date2020-08-05
NameIssueTypetohttpstatuscode
TitleissueType-to-http-status-code
Authorityhl7
DescriptionissueType-to-http-status-code for illustration only. Mapping extracted from HAPI FHIR
PurposeNHS Digital Spine

Resources that use this resource

No resources found


Resources that this resource uses

CodeSystem
http-error-codesHttpErrorCodes

Narrative

No narrative content found in resource


Source

{
  "resourceType": "ConceptMap",
  "id": "issueType-to-http-status-code",
  "url": "https://fhir.nhs.uk/ConceptMap/issueType-to-http-status-code",
  "version": "1.0.0",
  "name": "IssueTypetohttpstatuscode",
  "title": "issueType-to-http-status-code",
  "status": "draft",
  "experimental": true,
  "date": "2020-08-05",
  "publisher": "NHS Digital",
  "description": "issueType-to-http-status-code for illustration only. Mapping extracted from HAPI FHIR",
  "purpose": "NHS Digital Spine",
  "group": [
    {
      "source": "http://hl7.org/fhir/issue-type",
      "target": "https://fhir.nhs.uk/CodeSystem/http-error-codes",
      "element": [
        {
          "code": "not-found",
          "display": "Not Found",
          "target": [
            {
              "code": "NOT_FOUND",
              "display": "404: The Server was unable to find the specified resource.",
              "equivalence": "specializes"
            }
          ]
        },
        {
          "code": "value",
          "display": "Element value invalid",
          "target": [
            {
              "code": "BAD_REQUEST",
              "display": "400: The Server was unable to process the request.",
              "equivalence": "specializes"
            }
          ]
        },
        {
          "code": "business-rule",
          "display": "Business Rule Violation",
          "target": [
            {
              "code": "BAD_REQUEST",
              "display": "400: The Server was unable to process the request.",
              "equivalence": "specializes",
              "comment": "Should be 422?"
            }
          ]
        },
        {
          "code": "invalid",
          "display": "Invalid Content",
          "target": [
            {
              "code": "BAD_REQUEST",
              "display": "400: The Server was unable to process the request.",
              "equivalence": "specializes"
            }
          ]
        },
        {
          "code": "invalid",
          "display": "Invalid Content",
          "target": [
            {
              "code": "UNPROCESSABLE_ENTITY",
              "display": "422: Message was not malformed but deemed unprocessable by the server.",
              "equivalence": "specializes",
              "comment": "Should be 400?"
            }
          ]
        },
        {
          "code": "code-invalid",
          "display": "Invalid Code",
          "target": [
            {
              "code": "BAD_REQUEST",
              "display": "400: The Server was unable to process the request.",
              "equivalence": "specializes",
              "comment": "Should be 422?"
            }
          ]
        },
        {
          "code": "forbidden",
          "display": "Forbidden",
          "target": [
            {
              "code": "FORBIDDEN",
              "display": "403: Failed to Authenticate with the Server.",
              "equivalence": "specializes"
            }
          ]
        },
        {
          "code": "forbidden",
          "display": "Forbidden",
          "target": [
            {
              "code": "UNAUTHORIZED",
              "display": "401: The Server deemed you unauthorized to make this request.",
              "equivalence": "specializes",
              "comment": "Wrong issueType - login/unknown better?"
            }
          ]
        },
        {
          "code": "forbidden",
          "display": "Forbidden",
          "target": [
            {
              "code": "METHOD_NOT_ALLOWED",
              "display": "405: This method is not allowed.",
              "equivalence": "specializes",
              "comment": "Is 405 more suited to wrong http verb being used. This should still be 403"
            }
          ]
        },
        {
          "code": "duplicate",
          "display": "Duplicate",
          "target": [
            {
              "code": "UNPROCESSABLE_ENTITY",
              "display": "422: Message was not malformed but deemed unprocessable by the server.",
              "equivalence": "specializes"
            }
          ]
        },
        {
          "code": "structure",
          "display": "Structural Issue",
          "target": [
            {
              "code": "BAD_REQUEST",
              "display": "400: The Server was unable to process the request.",
              "equivalence": "specializes"
            }
          ]
        },
        {
          "code": "not-supported",
          "display": "Content not supported",
          "target": [
            {
              "code": "NOT_IMPLEMENTED",
              "display": "501: The Request was not recognized by the server.",
              "equivalence": "specializes"
            }
          ]
        },
        {
          "code": "processing",
          "display": "Processing Failure",
          "target": [
            {
              "code": "SERVER_ERROR",
              "display": "500: The Server has encountered an error processing the request.",
              "equivalence": "specializes",
              "comment": "Mapping is wrong here. processing should be 422"
            }
          ]
        }
      ]
    }
  ]
}