Skip to content

Commit

Permalink
Merge pull request #102 from OHDSI/ladams-cleanup-column-metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrenceadams authored Nov 23, 2024
2 parents de6bd50 + 9327252 commit d6fe36d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 23 deletions.
39 changes: 16 additions & 23 deletions models/staging/synthea/_synthea__models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ models:
- name: patient_suffix
data_type: text
description: "Name suffix, such as PhD, MD, JD, etc."
- name: patient_maiden_name
- name: maiden_name
data_type: text
- name: marital_status
description: "Marital Status. M is married, S is single. Currently no support for divorce (D) or widowing (W)."
Expand Down Expand Up @@ -151,7 +151,7 @@ models:
description: "Diagnosis code from SNOMED-CT that this care plan addresses."
- name: careplan_reason_description
data_type: text

- name: stg_synthea__claims_transactions
description: Synthea claim transactions table
columns:
Expand Down Expand Up @@ -179,7 +179,7 @@ models:
- name: transaction_amount
data_type: double precision
description: "Dollar amount for a CHARGE or TRANSFERIN."
- name: transaction_method
- name: transaction_method
data_type: text
description: "Payment made by CASH, CHECK, ECHECK, COPAY, SYSTEM (adjustments without payment), or CC (credit card)."
- name: transaction_from_date
Expand All @@ -198,11 +198,11 @@ models:
- name: procedure_code
data_type: text
- name: procedure_code_modifier_1
data_type: text
- name: procedure_code_modifier_2
data_type: text
- name: procedure_code_modifier_2
data_type: text
- name: claim_diagnosis_ref_1
data_type: double precision
data_type: double precision
description: "Number indicating which diagnosis code from the claim applies to this transaction, 1-8 are valid options."
- name: claim_diagnosis_ref_2
data_type: double precision
Expand All @@ -223,7 +223,7 @@ models:
- name: per_unit_amount
data_type: double precision
description: "Cost per unit."
- name: transfer_out_id
- name: transfer_out_id
data_type: double precision
description: "If the transaction is a TRANSFERIN, the Charge ID of the corresponding TRANSFEROUT row."
- name: transfer_type
Expand Down Expand Up @@ -378,7 +378,7 @@ models:
- name: claim_type_id_2
data_type: integer
description: "Type of claim: 1 is professional, 2 is institutional."

- name: stg_synthea__conditions
description: Synthea conditions table
columns:
Expand All @@ -402,7 +402,7 @@ models:
data_type: text
- name: condition_description
data_type: text

- name: stg_synthea__devices
description: Synthea devices table
columns:
Expand Down Expand Up @@ -496,7 +496,7 @@ models:
description: "Diagnosis code from SNOMED-CT, only if this encounter targeted a specific condition."
- name: encounter_reason_description
data_type: text

- name: stg_synthea__imaging_studies
description: Synthea imaging studies table
columns:
Expand Down Expand Up @@ -563,7 +563,7 @@ models:
- name: immunization_base_cost
data_type: double precision
description: "The line item cost of the immunization."

- name: stg_synthea__medications
description: Synthea medications table
columns:
Expand Down Expand Up @@ -614,7 +614,7 @@ models:
description: "Diagnosis code from SNOMED-CT specifying why this medication was prescribed."
- name: medication_reason_description
data_type: text

- name: stg_synthea__observations
description: Synthea observations table
columns:
Expand Down Expand Up @@ -748,12 +748,6 @@ models:
- name: uncovered_encounters
data_type: integer
description: "The number of Encounters not paid for by this Payer, and paid out of pocket by patients."
- name: covered_medications
data_type: integer
description: "The number of Medications paid for by this Payer."
- name: uncovered_medications
data_type: integer
description: "The number of Medications not paid for by this Payer, and paid out of pocket by patients."
- name: covered_procedures
data_type: integer
description: "The number of Procedures paid for by this Payer."
Expand All @@ -769,13 +763,13 @@ models:
- name: unique_customers
data_type: integer
description: "The number of unique patients enrolled with this Payer during the entire simulation."
- name: avg_qols
- name: qols_avg
data_type: double precision
description: "The average Quality of Life Scores (QOLS) for all patients enrolled with this Payer during the entire simulation."
- name: member_months
- name: payer_member_months
data_type: integer
description: "The total number of months that patients were enrolled with this Payer during the simulation and paid monthly premiums (if any)."

- name: stg_synthea__procedures
description: Synthea procedures table
columns:
Expand Down Expand Up @@ -846,7 +840,7 @@ models:
- name: provider_utilization
data_type: integer
description: "The number of Encounters performed by this Provider."

- name: stg_synthea__supplies
description: Synthea supplies table
columns:
Expand All @@ -870,4 +864,3 @@ models:
data_type: text
- name: supply_quantity
data_type: integer

2 changes: 2 additions & 0 deletions models/staging/synthea/stg_synthea__payers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ WITH cte_payers_lower AS (
, revenue AS payer_revenue
, covered_encounters
, uncovered_encounters
, covered_medications
, uncovered_medications
, covered_procedures
, uncovered_procedures
, covered_immunizations
Expand Down
1 change: 1 addition & 0 deletions seeds/synthea/_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ seeds:
PATIENT: varchar
ENCOUNTER: varchar
CODE: varchar
DESCRIPTION: varchar
- name: devices
config:
column_types:
Expand Down

0 comments on commit d6fe36d

Please sign in to comment.