> ## Documentation Index
> Fetch the complete documentation index at: https://docs.connectivehealth.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Encounter

> The FHIR Encounter resource as produced by Connective Health

[FHIR R4 Encounter](https://www.hl7.org/fhir/R4/encounter.html) ·
[US Core Encounter](https://hl7.org/fhir/us/core/STU9/StructureDefinition-us-core-encounter.html)

<Info>
  This resource is produced for the [Patient Everything](/fhir/patient-everything-bundle) and
  [Patient Summary](/fhir/patient-summary-bundle) bundles. It is not produced for
  [Bulk Medication History](/fhir/bulk-medication-history-bundle).
</Info>

# Stable ID

Encounter does not currently generate a stable ID.

# Fields

| Field                 | Cardinality | Notes                                                                                                                                                                                                                                                                                                                      |
| --------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `meta.profile`        | 1..1        | Always set to the US Core Encounter profile URL.                                                                                                                                                                                                                                                                           |
| `status`              | 1..1        | Currently, always `finished`. Only completed visits are published.                                                                                                                                                                                                                                                         |
| `class`               | 1..1        | All codes come from the [v3-ActCode](http://terminology.hl7.org/CodeSystem/v3-ActCode) system.                                                                                                                                                                                                                             |
| `subject`             | 1..1        | Reference to the [Patient](/fhir/resources/patient).                                                                                                                                                                                                                                                                       |
| `period.start`        | 1..1        | The visit's start timestamp when available, otherwise the visit date.                                                                                                                                                                                                                                                      |
| `period.end`          | 0..1        | The visit's end timestamp, when available.                                                                                                                                                                                                                                                                                 |
| `type`                | 0..1        | A single `type` entry holding the visit's codings -- see [Encounter type coding](#encounter-type-coding).                                                                                                                                                                                                                  |
| `participant`         | 1..1        | One participant, always typed `PART` from the [v3-ParticipationType](http://terminology.hl7.org/CodeSystem/v3-ParticipationType) system. `participant.individual` is a contained [PractitionerRole](/fhir/resources/practitioner-role) built from the visit's provider and facility, and is omitted when neither is known. |
| `diagnosis.condition` | 1..1        | The visit's diagnosis, as a [Condition](/fhir/resources/condition#usage-2-encounter-diagnosis) contained inside this `Encounter`.                                                                                                                                                                                          |
| `partOf`              | 0..1        | **Patient Summary only.** On a follow-up visit, references the `Encounter` for the original visit it follows up on. Never set in the Patient Everything bundle.                                                                                                                                                            |

<Note>
  `serviceProvider`, `location`, `reasonCode`, and `hospitalization` are not populated. The facility is published as
  a contained [Location](/fhir/resources/location) inside the participant's `PractitionerRole` instead.
</Note>

# Encounter type coding

A single `type` entry is published, carrying one or more codings for the visit.

* In the **Patient Everything** bundle, the visit's code and all of its translated codes are considered, and one
  coding is published per code system -- preferring, in order,
  [ICD-10](http://hl7.org/fhir/sid/icd-10-cm), [ICD-9](http://hl7.org/fhir/sid/icd-9-cm),
  [SNOMED](http://snomed.info/sct), [CPT](http://www.ama-assn.org/go/cpt), and
  [HL7 Act Code](http://terminology.hl7.org/CodeSystem/v3-ActCode) -- plus the source's own code. Duplicate code
  systems are collapsed, so each system appears at most once.
* In the **Patient Summary** bundle, a single pre-resolved coding is published.

Codings with neither a code nor a display value are omitted, which is why `type` can be absent altogether.
