clinik.encounters namespace manages FHIR Encounter resources, which represent clinical interactions between a patient and a care provider — office visits, emergency admissions, telehealth sessions, and more. Every encounter links to a patient and optionally to a practitioner, location, and set of diagnoses.
create
Create a newEncounter. The status, class, and patientId fields are required.
Encounter status. Accepted values:
planned, arrived, triaged, in-progress, onleave, finished, cancelled.Encounter class code. Accepted values:
AMB (ambulatory), IMP (inpatient), EMER (emergency), HH (home health), VR (virtual).ID of the patient this encounter belongs to.
ID of the responsible practitioner.
Specific encounter type.
The type of service provided.
Clinical priority.
Coded reason for the encounter.
Start and end times for the encounter in ISO 8601 format.
Duration of the encounter in minutes.
Name or identifier of the encounter location.
Name of the providing organization.
List of diagnoses associated with the encounter. Each entry includes a
condition code, an optional use (e.g. AD for admission diagnosis), and an optional rank.Example
read
Fetch a single encounter by ID.The encounter ID (e.g.
enc_xyz789).update
Partially update an encounter. Only the fields you include are changed.Example
delete
Permanently delete an encounter.search
Search encounters with optional filters. Results are cursor-paginated.Return encounters for a specific patient.
Filter by encounter status.
Return encounters with a period start on or after this date (
YYYY-MM-DD).Return encounters with a period start on or before this date (
YYYY-MM-DD).Sort field. Prefix with
- for descending order, for example -date.Results per page.
Pagination cursor from a previous response.