Getting data (FHIR)
Read an allergy
One AllergyIntolerance by id.
GET
/api/fhir/AllergyIntolerance/{id}Scope fhir.readReturns a single AllergyIntolerance resource.
GET /api/fhir/AllergyIntolerance/{id}
curl "https://system.clinicview.co.za/api/fhir/AllergyIntolerance/8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11-0" \
-H "Authorization: Bearer $CLINICVIEW_API_KEY" \
-H "Accept: application/fhir+json"{
"resourceType": "AllergyIntolerance",
"id": "8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11-0",
"clinicalStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
"code": "active"
}
]
},
"verificationStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",
"code": "confirmed"
}
]
},
"code": {
"text": "Penicillin"
},
"patient": {
"reference": "Patient/8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11"
}
}Parameters
idid · pathrequiredThe AllergyIntolerance id:
<patient id>-<n>.Example:
8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11-0
Responses
- 200The AllergyIntolerance.
- 401Missing or malformed API key
- 403API key lacks the fhir.read scope
- 404AllergyIntolerance/8f2c6a1e-4b7d-4c1a-9e3f-2d5b7a9c0e11-0 not found
- 429Rate limit exceeded: 300 requests per minute per keyHeaders:
Retry-AfterX-RateLimit-LimitX-RateLimit-RemainingX-RateLimit-Reset