API Reference/Observations

Observations

FHIR Observation

FHIR R4 Observation resources for vitals, lab results, device readings, and clinical assessments.

The Observation Object

FieldTypeDescription
idstringFHIR logical ID for the Observation resource (e.g. obs_hr_001)
resourceTypestringAlways "Observation" per FHIR R4 spec
statusstringFHIR status: registered | preliminary | final | amended | cancelled
codeCodeableConceptLOINC-coded observation type (e.g. 8867-4 = Heart rate)
subjectReferenceReference to the Patient resource
effectiveDateTimedatetimeISO 8601 UTC timestamp of when the observation was made
valueQuantitynullableQuantityNumeric observation value with unit (e.g. { value: 72, unit: "bpm" })
componentnullableobject[]For multi-component observations like blood pressure (systolic + diastolic)
interpretationnullableCodeableConcept[]Clinical interpretation: N (normal), H (high), L (low), A (abnormal)

Endpoints

Search FHIR Observations with LOINC code filtering.

Parameters

ParameterInTypeRequiredDescription
patiente.g. Patient/pat_demo_001querystringrequiredPatient ID
codee.g. 8867-4querystringoptionalLOINC code
datee.g. ge2026-01-01querystringoptionalDate range

Request

curl "https://api.healthcloud.ai/v1/observations?patient=Patient/pat_demo_001&code=8867-4" \
  -H "Authorization: Bearer hc_test_sk_demo_live_xxxxxx"

Response

Response200
{
  "resourceType": "Bundle",
  "type": "searchset",
  "entry": [
    {
      "resource": {
        "resourceType": "Observation",
        "id": "obs_hr_001",
        "code": { "coding": [{ "system": "http://loinc.org", "code": "8867-4", "display": "Heart rate" }] },
        "valueQuantity": { "value": 72, "unit": "bpm" },
        "effectiveDateTime": "2026-03-15T08:00:00Z",
        "subject": { "reference": "Patient/pat_demo_001" }
      }
    }
  ]
}

Related Resources