Encounter

The FHIR R4 Encounter resource is used to capture details about an interaction between a patient and a healthcare provider. It represents the entire span of care provided, including hospital visits, outpatient consultations, or any other health-related interaction. This resource records information such as the encounter type, status, participants, and diagnoses.

Use Cases

  • Track patient admissions and discharges
  • Log patient encounters during hospital visits or outpatient visits
  • Retrieve encounter details for billing and reimbursement
  • Link diagnostic reports or procedures to encounters

Base URLs

Authentication

All requests require OAuth 2.0 authentication using a Bearer Token. Unauthorized requests return 401 Unauthorized responses.

Required scopes:

  • encounter.read for GET
  • encounter.write for POST, PUT, DELETE

For more information, go to: OAuth 2.0 Authentication.

Supported Methods

MethodOperationDescription
GETRead EncounterRetrieves a specific Encounter record by its FHIR ID.
GETSearch EncounterSearches for Encounter records for a specified patient.
POSTCreate EncounterSubmits a new Encounter record to the Health Gorilla FHIR server.
PUTUpdate EncounterUpdates an existing Encounter record by full resource replacement.
DELETEDelete EncounterRemoves an existing Encounter record from the system by full resource deletion.

Frequently Used Search Parameters

ParameterDescriptionFHIR Value Set / Example ValuesFHIR Data TypeRequired
patientFilters by patient IDPatient/{id}ReferenceYes
statusFilters by the current status of the encounterEncounterStatus (in-progress)tokenNo
typeFilters by the type of encounterEncounterType (outpatient)tokenNo
periodFilters by the time period of the encounterge2024-01-01, le2024-12-31dateNo
serviceProviderFilters by the healthcare provider responsible for the careOrganization/{id}ReferenceNo
diagnosisFilters by a diagnosis related to the encounterCondition/{id}ReferenceNo

Commonly Returned Resource Attributes

AttributeDescriptionExample ValuesFHIR Data TypeRequired
statusThe status of the encounterin-progressCodeableConceptYes
classThe class of the encounter (e.g., inpatient, outpatient)outpatient, emergency, inpatientCodeableConceptNo
typeThe type of the encounterEncounterType (office)CodeableConceptNo
periodThe duration of the encounter2024-02-12T12:34:56Z/2024-02-12T15:34:56ZPeriodYes
serviceProviderThe healthcare provider responsible for the encounterOrganization/{id}Reference(Organization)No
diagnosisDiagnoses associated with the encounterCondition/{id}ReferenceNo
participantParticipants involved in the encounterPractitioner/{id}, RelatedPerson/{id}ReferenceNo

Webhooks

Clients can subscribe to receive notifications when an encounter is created, updated, or closed. For more information, go to: Webhooks & Polling.

Error Handling

All Encounter operations follow standard Health Gorilla error handling, including use of FHIR OperationOutcome for structured responses. For more information, go to: Error Handling.

Additional Resources

HL7 FHIR Encounter