| Package | uk.nhsdigital.r4.test |
| Resource Type | ConceptMap |
| Id | issueType-to-http-status-code |
| FHIR Version | R4 |
| Source | https://simplifier.net/resolve?scope=uk.nhsdigital.r4.test@2.17.0-prerelease&canonical=https://fhir.nhs.uk/ConceptMap/issueType-to-http-status-code |
| URL | https://fhir.nhs.uk/ConceptMap/issueType-to-http-status-code |
| Version | 1.0.0 |
| Status | draft |
| Date | 2020-08-05 |
| Name | IssueTypetohttpstatuscode |
| Title | issueType-to-http-status-code |
| Authority | hl7 |
| Description | issueType-to-http-status-code for illustration only. Mapping extracted from HAPI FHIR |
| Purpose | NHS Digital Spine |
No resources found
| CodeSystem | |
| http-error-codes | England HTTP Error Codes |
No narrative content found in resource
{
"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"
}
]
}
]
}
]
}