Skip to main content

encounter

One row per encounter, where an encounter is a single episode of care assembled from one or more claims. This is the table to use for counting visits, admissions and stays; it collapses the claim-line detail of medical_claim into clinically meaningful events and carries the classification (encounter_type, encounter_group), the timing, the responsible provider and facility, and rolled-up cost.

At a glance​

Schemadax_core
Tableencounter
LayerCore Data Model
Object typetable
Columns46
Grainencounter_id, data_source
Tagscore, encounters

Columns​

ColumnTypeKeyTerminologyConstraintsDescription
encounter_idvarcharPK—not nullDax identifier for the encounter.
person_idvarchar—not nullThe individual who received care. Joins to patient.
encounter_typevarcharEncounter type—Fine-grained classification of the episode, for example acute inpatient or emergency department.
encounter_groupvarchar——Coarser grouping of encounter_type, for high-level rollups.
encounter_start_datedate——First date of service in the episode.
encounter_end_datedate——Last date of service in the episode.
length_of_stayinteger——Days between start and end, for facility-based encounters.
admit_source_codevarcharAdmit source—Coded source of admission.
admit_source_descriptionvarchar———
admit_type_codevarcharAdmit type—Coded type of admission, for example emergency or elective.
admit_type_descriptionvarchar———
discharge_disposition_codevarcharDischarge disposition—Coded disposition at discharge.
discharge_disposition_descriptionvarchar———
attending_provider_idvarchar——Practitioner with primary responsibility for the encounter.
attending_provider_namevarchar———
facility_npivarchar——NPI of the facility where care was delivered.
facility_namevarchar———
facility_typevarchar———
observation_flaginteger———
lab_flaginteger———
dme_flaginteger———
ambulance_flaginteger———
pharmacy_flaginteger———
ed_flaginteger——Set when the episode involved emergency department services.
delivery_flaginteger———
delivery_typevarchar———
newborn_flaginteger———
nicu_flaginteger———
snf_part_b_flaginteger———
primary_diagnosis_code_typevarcharCode type——
primary_diagnosis_codevarcharICD-10-CM—Principal diagnosis for the encounter.
primary_diagnosis_descriptionvarchar———
drg_code_typevarchar———
drg_codevarchar——Diagnosis-related group assigned to the stay, where applicable.
drg_descriptionvarchar———
paid_amountnumber——Sum of amounts paid across the claims in this encounter.
allowed_amountnumber——Sum of contractually allowed amounts across the encounter.
charge_amountnumber——Sum of amounts billed across the encounter.
claim_countinteger——Number of claims rolled into this encounter.
inst_claim_countinteger———
prof_claim_countinteger———
source_modelvarchar———
encounter_source_typevarchar———
ingest_datetimetimestamp———
dax_last_runtimestamp——Timestamp of the warehouse build that produced this row.
data_sourcevarcharPK—not nullLabel for the contributing system. Part of the grain.

Querying​

select *
from dax_core.encounter
limit 100;