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_idvarcharPKnot nullDax identifier for the encounter.
person_idvarcharnot nullThe individual who received care. Joins to patient.
encounter_typevarcharEncounter typeFine-grained classification of the episode, for example acute inpatient or emergency department.
encounter_groupvarcharCoarser grouping of encounter_type, for high-level rollups.
encounter_start_datedateFirst date of service in the episode.
encounter_end_datedateLast date of service in the episode.
length_of_stayintegerDays between start and end, for facility-based encounters.
admit_source_codevarcharAdmit sourceCoded source of admission.
admit_source_descriptionvarchar
admit_type_codevarcharAdmit typeCoded type of admission, for example emergency or elective.
admit_type_descriptionvarchar
discharge_disposition_codevarcharDischarge dispositionCoded disposition at discharge.
discharge_disposition_descriptionvarchar
attending_provider_idvarcharPractitioner with primary responsibility for the encounter.
attending_provider_namevarchar
facility_npivarcharNPI of the facility where care was delivered.
facility_namevarchar
facility_typevarchar
observation_flaginteger
lab_flaginteger
dme_flaginteger
ambulance_flaginteger
pharmacy_flaginteger
ed_flagintegerSet 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-CMPrincipal diagnosis for the encounter.
primary_diagnosis_descriptionvarchar
drg_code_typevarchar
drg_codevarcharDiagnosis-related group assigned to the stay, where applicable.
drg_descriptionvarchar
paid_amountnumberSum of amounts paid across the claims in this encounter.
allowed_amountnumberSum of contractually allowed amounts across the encounter.
charge_amountnumberSum of amounts billed across the encounter.
claim_countintegerNumber of claims rolled into this encounter.
inst_claim_countinteger
prof_claim_countinteger
source_modelvarchar
encounter_source_typevarchar
ingest_datetimetimestamp
dax_last_runtimestampTimestamp of the warehouse build that produced this row.
data_sourcevarcharPKnot nullLabel for the contributing system. Part of the grain.

Querying

select *
from dax_core.encounter
limit 100;