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