issueType-to-http-status-code
Url |
---|
https://fhir.nhs.uk/ConceptMap/issueType-to-http-status-code |
Source CodeSystem | Destination CodeSystem |
---|---|
http://hl7.org/fhir/issue-type | http://hl7.org/fhir/http-status-code (for reference only, not an actual CodeSystem) |
Source | Equivalence | Target | Comment |
---|---|---|---|
not-found (Not Found) | specializes | 404 (Not Found) | |
value (Element value invalid) | specializes | 400 (Bad Request) | |
business-rule (Business Rule Violation) | specializes | 400 (Bad Request) | Should be 422? |
invalid (Invalid Content) | specializes | 400 (Bad Request) | |
invalid (Invalid Content) | specializes | 422 (UNPROCESSABLE_ENTITY) | Should be 400? |
code-invalid (Invalid Code) | specializes | 400 (BAD REQUEST) | Should be 422? |
forbidden (Forbidden) | specializes | 403 (Forbidden) | |
forbidden (Forbidden) | specializes | 401 (CLIENT_UNAUTHORIZED) | Wrong issueType - login/unknown better? |
forbidden (Forbidden) | specializes | 405 (METHOD_NOT_ALLOWED) | Is 405 more suited to wrong http verb being used. This should still be 403 |
duplicate (Duplicate) | specializes | 422 (UNPROCESSABLE_ENTITY) | |
structure (Structural Issue) | specializes | 400 (BAD REQUEST) | |
not-supported (Content not supported) | specializes | 501 (NOT_IMPLEMENTED) | |
processing (Processing Failure) | specializes | 500 (INTERNAL_ERROR) | Mapping is wrong here. processing should be 422 |
informational (Informational Note) | specializes | 201 (CREATED) | |
informational (Informational Note) | specializes | 200 (OK) | |
informational (Informational Note) | specializes | 202 (ACCEPTED) |
{
"description": "issueType-to-http-status-code for illustration only. Mapping extracted from HAPI FHIR",
{
{
]
},
{
]
},
{
{
}
]
},
{
]
},
{
{
}
]
},
{
{
}
]
},
{
]
},
{
{
}
]
},
{
{
}
]
},
{
]
},
{
]
},
{
]
},
{
{
}
]
},
{
]
},
{
]
},
{
]
}
]
}
]
}
<description value="issueType-to-http-status-code for illustration only. Mapping extracted from HAPI FHIR" />
</target>
</element>
</target>
</element>
</target>
</element>
</target>
</element>
</target>
</element>
</target>
</element>
</target>
</element>
</target>
</element>
</target>
</element>
</target>
</element>
</target>
</element>
</target>
</element>
</target>
</element>
</target>
</element>
</target>
</element>
</target>
</element>
</group>
</ConceptMap>