CodeSystem/$validate-code
Checks whether a code, Coding, or CodeableConcept is valid in a CodeSystem. When display is supplied, Termbox also validates the display text.
FHIR Specification
See the official FHIR specification for supported request parameters and response parameters: https://www.hl7.org/fhir/codesystem-operation-validate-code.html.
Response
Returns a FHIR Parameters resource. The result output parameter is true when the submitted code is valid.
Example
GET /CodeSystem/$validate-code?url=http://snomed.info/sct&code=722892007&display=Fever%20due%20to%20infection%20(finding)
Accept: application/fhir+json
POST /CodeSystem/$validate-code
Content-Type: application/fhir+json
{
"resourceType": "Parameters",
"parameter": [
{
"name": "coding",
"valueCoding": {
"system": "http://snomed.info/sct",
"code": "722892007",
"display": "Fever due to infection (finding)"
}
}
]
}
{
"resourceType": "Parameters",
"parameter": [
{ "name": "result", "valueBoolean": true },
{ "name": "code", "valueCode": "722892007" },
{ "name": "display", "valueString": "Fever due to infection (finding)" },
{ "name": "system", "valueUri": "http://snomed.info/sct" }
]
}
The SNOMED CT examples assume SNOMED CT is loaded in Termbox.