Skip to content

Commit

Permalink
Merge pull request #100 from OHDSI/97-chore-update-seed-column-metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrenceadams authored Nov 16, 2024
2 parents a90b50a + 4ea8999 commit ad027ee
Show file tree
Hide file tree
Showing 2 changed files with 303 additions and 75 deletions.
75 changes: 0 additions & 75 deletions dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,78 +32,3 @@ seeds:
synthea:
+enabled: true
+schema: synthea_seeds
allergies:
+column_types:
CODE: varchar
REACTION1: varchar
careplans:
+column_types:
CODE: varchar
REASONCODE: varchar
claims_transactions:
+column_types:
PROCEDURECODE: varchar
AMOUNT: numeric
UNITAMOUNT: numeric
PAYMENTS: numeric
ADJUSTMENTS: numeric
TRANSFERS: numeric
OUTSTANDING: numeric
claims:
+column_types:
DIAGNOSIS1: varchar
DIAGNOSIS2: varchar
DIAGNOSIS3: varchar
DIAGNOSIS4: varchar
DIAGNOSIS5: varchar
DIAGNOSIS6: varchar
DIAGNOSIS7: varchar
DIAGNOSIS8: varchar
REFERRINGPROVIDERID: varchar
conditions:
+column_types:
CODE: varchar
devices:
+column_types:
CODE: varchar
STOP: timestamp
encounters:
+column_types:
CODE: varchar
REASONCODE: varchar
BASE_ENCOUNTER_COST: numeric
TOTAL_CLAIM_COST: numeric
PAYER_COVERAGE: numeric
imaging_studies:
+column_types:
CODE: varchar
BODYSITE_CODE: varchar
MODALITY_CODE: varchar
SOP_CODE: varchar
PROCEDURE_CODE: varchar
immunizations:
+column_types:
CODE: varchar
BASE_COST: numeric
medications:
+column_types:
CODE: varchar
REASONCODE: varchar
BASE_COST: numeric
PAYER_COVERAGE: numeric
TOTALCOST: numeric
observations:
+column_types:
CODE: varchar
patients:
+column_types:
SUFFIX: varchar
ZIP: varchar
procedures:
+column_types:
CODE: varchar
REASONCODE: varchar
BASE_COST: numeric
supplies:
+column_types:
CODE: varchar
303 changes: 303 additions & 0 deletions seeds/synthea/_sources.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,303 @@
seeds:
- name: allergies
config:
column_types:
START: date
STOP: date
PATIENT: varchar
ENCOUNTER: varchar
CODE: varchar
SYSTEM: varchar
DESCRIPTION: varchar
TYPE: varchar
CATEGORY: varchar
REACTION1: varchar
DESCRIPTION1: varchar
SEVERITY1: varchar
REACTION2: varchar
DESCRIPTION2: varchar
SEVERITY2: varchar
- name: careplans
config:
column_types:
ID: varchar
START: date
STOP: date
PATIENT: varchar
ENCOUNTER: varchar
CODE: varchar
DESCRIPTION: varchar
REASONCODE: varchar
REASONDESCRIPTION: varchar
- name: claims
config:
column_types:
ID: varchar
PATIENTID: varchar
PROVIDERID: varchar
PRIMARYPATIENTINSURANCEID: varchar
SECONDARYPATIENTINSURANCEID: varchar
DEPARTMENTID: integer
PATIENTDEPARTMENTID: integer
DIAGNOSIS1: varchar
DIAGNOSIS2: varchar
DIAGNOSIS3: varchar
DIAGNOSIS4: varchar
DIAGNOSIS5: varchar
DIAGNOSIS6: varchar
DIAGNOSIS7: varchar
DIAGNOSIS8: varchar
REFERRINGPROVIDERID: varchar
APPOINTMENTID: varchar
CURRENTILLNESSDATE: timestamp
SERVICEDATE: timestamp
SUPERVISINGPROVIDERID: varchar
STATUS1: varchar
STATUS2: varchar
STATUSP: varchar
OUTSTANDING1: float
OUTSTANDING2: float
OUTSTANDINGP: float
LASTBILLEDDATE1: timestamp
LASTBILLEDDATE2: timestamp
LASTBILLEDDATEP: timestamp
HEALTHCARECLAIMTYPEID1: integer
HEALTHCARECLAIMTYPEID2: integer
- name: claims_transactions
config:
column_types:
ID: varchar
CLAIMID: varchar
CHARGEID: integer
PATIENTID: varchar
TYPE: varchar
AMOUNT: float
METHOD: varchar
FROMDATE: timestamp
TODATE: timestamp
PLACEOFSERVICE: varchar
PROCEDURECODE: varchar
MODIFIER1: varchar
MODIFIER2: varchar
DIAGNOSISREF1: integer
DIAGNOSISREF2: integer
DIAGNOSISREF3: integer
DIAGNOSISREF4: integer
UNITS: integer
DEPARTMENTID: integer
NOTES: varchar
UNITAMOUNT: float
TRANSFEROUTID: integer
TRANSFERTYPE: varchar
PAYMENTS: float
ADJUSTMENTS: float
TRANSFERS: float
OUTSTANDING: float
APPOINTMENTID: varchar
LINENOTE: varchar
PATIENTINSURANCEID: varchar
FEESCHEDULEID: integer
PROVIDERID: varchar
SUPERVISINGPROVIDERID: varchar
- name: conditions
config:
column_types:
START: date
STOP: date
PATIENT: varchar
ENCOUNTER: varchar
CODE: varchar
- name: devices
config:
column_types:
START: timestamp
STOP: timestamp
PATIENT: varchar
ENCOUNTER: varchar
CODE: varchar
DESCRIPTION: varchar
UDI: varchar
- name: encounters
config:
column_types:
ID: varchar
START: timestamp
STOP: timestamp
PATIENT: varchar
ORGANIZATION: varchar
PROVIDER: varchar
PAYER: varchar
ENCOUNTERCLASS: varchar
CODE: varchar
DESCRIPTION: varchar
BASE_ENCOUNTER_COST: float
TOTAL_CLAIM_COST: float
PAYER_COVERAGE: float
REASONCODE: varchar
REASONDESCRIPTION: varchar
- name: imaging_studies
config:
column_types:
ID: varchar
DATE: timestamp
PATIENT: varchar
ENCOUNTER: varchar
SERIES_UID: varchar
BODYSITE_CODE: varchar
BODYSITE_DESCRIPTION: varchar
MODALITY_CODE: varchar
MODALITY_DESCRIPTION: varchar
INSTANCE_UID: varchar
SOP_CODE: varchar
SOP_DESCRIPTION: varchar
PROCEDURE_CODE: varchar
- name: immunizations
config:
column_types:
DATE: timestamp
PATIENT: varchar
ENCOUNTER: varchar
CODE: varchar
DESCRIPTION: varchar
BASE_COST: float
- name: medications
config:
column_types:
START: timestamp
STOP: timestamp
PATIENT: varchar
PAYER: varchar
ENCOUNTER: varchar
CODE: varchar
DESCRIPTION: varchar
BASE_COST: float
PAYER_COVERAGE: float
DISPENSES: integer
TOTALCOST: float
REASONCODE: varchar
REASONDESCRIPTION: varchar
- name: observations
config:
column_types:
DATE: timestamp
PATIENT: varchar
ENCOUNTER: varchar
CATEGORY: varchar
CODE: varchar
DESCRIPTION: varchar
VALUE: varchar
UNITS: varchar
TYPE: varchar
- name: organizations
config:
column_types:
ID: varchar
NAME: varchar
ADDRESS: varchar
CITY: varchar
STATE: varchar
ZIP: varchar
LAT: float
LON: float
PHONE: varchar
REVENUE: float
UTILIZATION: integer
- name: patients
config:
column_types:
ID: varchar
BIRTHDATE: date
DEATHDATE: date
SSN: varchar
DRIVERS: varchar
PASSPORT: varchar
PREFIX: varchar
FIRST: varchar
LAST: varchar
SUFFIX: varchar
MAIDEN: varchar
MARITAL: varchar
RACE: varchar
ETHNICITY: varchar
GENDER: varchar
BIRTHPLACE: varchar
ADDRESS: varchar
CITY: varchar
STATE: varchar
COUNTY: varchar
ZIP: varchar
LAT: float
LON: float
HEALTHCARE_EXPENSES: float
HEALTHCARE_COVERAGE: float
- name: payer_transitions
config:
column_types:
PATIENT: varchar
MEMBERID: varchar
START_YEAR: timestamp
END_YEAR: timestamp
PAYER: varchar
SECONDARY_PAYER: varchar
OWNERSHIP: varchar
OWNERNAME: varchar
- name: payers
config:
column_types:
ID: varchar
NAME: varchar
ADDRESS: varchar
CITY: varchar
STATE_HEADQUARTERED: varchar
ZIP: integer
PHONE: varchar
AMOUNT_COVERED: float
AMOUNT_UNCOVERED: float
REVENUE: float
COVERED_ENCOUNTERS: integer
UNCOVERED_ENCOUNTERS: integer
COVERED_MEDICATIONS: integer
UNCOVERED_MEDICATIONS: integer
COVERED_PROCEDURES: integer
UNCOVERED_PROCEDURES: integer
COVERED_IMMUNIZATIONS: integer
UNCOVERED_IMMUNIZATIONS: integer
UNIQUE_CUSTOMERS: integer
QOLS_AVG: float
MEMBER_MONTHS: integer
- name: procedures
config:
column_types:
START: timestamp
STOP: timestamp
PATIENT: varchar
ENCOUNTER: varchar
CODE: varchar
DESCRIPTION: varchar
BASE_COST: float
REASONCODE: varchar
REASONDESCRIPTION: varchar
- name: providers
config:
column_types:
ID: varchar
ORGANIZATION: varchar
NAME: varchar
GENDER: varchar
SPECIALITY: varchar
ADDRESS: varchar
CITY: varchar
STATE: varchar
ZIP: varchar
LAT: float
LON: float
UTILIZATION: integer
- name: supplies
config:
column_types:
DATE: date
PATIENT: varchar
ENCOUNTER: varchar
CODE: varchar
DESCRIPTION: varchar
QUANTITY: integer

0 comments on commit ad027ee

Please sign in to comment.