---
title: "Retrieve an encounter"
method: GET
path: "/healthcare/{connection_id}/encounter/{id}"
tags: ["healthcare", "encounter"]
---

# Retrieve an encounter

`GET /healthcare/{connection_id}/encounter/{id}`

## Request

- Base URL: `http://api.unified.to`
- URL: `http://api.unified.to/healthcare/{connection_id}/encounter/{id}`
- Auth: API key in header `authorization`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Response `200`

Successful

- HealthcareEncounter
  - `id` string: Unique identifier for the encounter
  - `created_at` string, date-time: When the encounter record was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: When the encounter record was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `patient_id` string: The patient seen in the encounter
  - `practitioner_ids` string[]: The practitioners who participated in the encounter
  - `location_id` string: Where the encounter took place
  - `appointment_id` string: The appointment that scheduled this encounter
  - `condition_ids` string[]: Conditions diagnosed or addressed during the encounter
  - `status` 'PLANNED' | 'ARRIVED' | 'TRIAGED' | 'IN_PROGRESS' | 'ONLEAVE' | 'FINISHED' | 'CANCELLED' | 'ENTERED_IN_ERROR' | 'UNKNOWN' | 'OTHER': Status of the encounter
  - `type` 'AMBULATORY' | 'EMERGENCY' | 'INPATIENT' | 'OBSERVATION' | 'HOME_HEALTH' | 'VIRTUAL' | 'OTHER': Class of the encounter (e.g. ambulatory, inpatient)
  - `reasons` HealthcareCode[]: Codings for the reason for the encounter
    - `system` string: The code system URI (e.g. http://loinc.org, http://snomed.info/sct)
    - `code` string: The code within the system
    - `display` string: Human-readable display text for the code
  - `start_at` string, date-time: When the encounter started (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `end_at` string, date-time: When the encounter ended (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `metadata` HealthcareMetadata[]: Custom field values
    - `id` string: Identifier of the custom field
    - `value` unknown
    - `namespace` string: The scope or origin of the custom field
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'ARRAY' | 'OBJECT': The data type of the value
    - `extra_data` unknown
    - `slug` string: The custom field key
  - `raw` unknown

---

[API](https://skmtc.dev/unified/apis/unified-to-api-2.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/unified/apis/unified-to-api-2/revisions/7a38bdd7f089?raw)
