API Reference/Encounters

Encounters

FHIR Encounter

FHIR R4 Encounter resources representing patient visits, admissions, telehealth sessions, and care events.

The Encounter Object

FieldTypeDescription
idstringFHIR logical ID for the Encounter resource
resourceTypestringAlways "Encounter" per FHIR R4 spec
statusstringFHIR status: planned | arrived | triaged | in-progress | finished | cancelled
classCodingEncounter class code: AMB (ambulatory), IMP (inpatient), VR (virtual)
typeCodeableConcept[]Type of encounter (e.g. office visit, telehealth, emergency)
subjectReferenceReference to the Patient resource
participantobject[]Practitioners who participated in the encounter
periodPeriodStart and end datetime of the encounter
reasonCodeCodeableConcept[]Coded reason for the encounter (ICD-10/SNOMED)

Endpoints

Returns FHIR Encounter resources for a patient.

Parameters

ParameterInTypeRequiredDescription
patiente.g. Patient/pat_demo_001querystringrequiredPatient ID
datee.g. ge2026-01-01querystringoptionalDate range filter
statuse.g. finishedquerystringoptionalFHIR status

Request

curl "https://api.healthcloud.ai/v1/encounters?patient=Patient/pat_demo_001" \
  -H "Authorization: Bearer hc_test_sk_demo_live_xxxxxx"

Response

Response200
{
  "resourceType": "Bundle",
  "type": "searchset",
  "total": 12,
  "entry": [
    {
      "resource": {
        "resourceType": "Encounter",
        "id": "enc_001",
        "status": "finished",
        "class": { "code": "AMB" },
        "subject": { "reference": "Patient/pat_demo_001" },
        "period": { "start": "2026-02-14T09:00:00Z", "end": "2026-02-14T09:30:00Z" }
      }
    }
  ]
}

Related Resources