task tree
What the sub-job runs
Tasks in order, each with what it does — typed stepsfrom the MDClarity task docs (click to open the reference), sub-jobsyou can expand inline (▶) to reveal their own tasks, and SQL steps summarized by Gemini (✨). Every step shows the tables it writes/reads and which earlier step it feeds from(sqlglot lineage).
sub-job
Load-Visit-Transform-Tables
7 tasks · PPRM
sub-job / Flow action SQL / native step▶ expand a sub-job inline · ↗ open it as its own page · a typed step opens its doc
- Load TempVisitDeltasql
load_visit_transform_tables__load_tempvisitdelta.sql✨ Identifies visits and insurance records updated since the last process run to populate a delta table for incremental processing.writesVisitDelta· readsProcessLogVisitDelta ▶Load-SourceAppointmentChainsub-job · 1↗
- Load SourceAppointmentChainsql
load_sourceappointmentchain__load_sourceappointmentchain.sql✨ Builds a chain of rescheduled appointments to identify and retain the most recent record for each visit.writesSourceAppointmentChain· readsSourceAppointmentVisitDelta
- Load TransformPatientsql
load_visit_transform_tables__load_transformpatient.sql✨ Synchronizes patient demographic and contact information from source records into the transformed patient table using a merge operation.writesTransformPatient· readsSourcePatient - Load TransformVisitsql
load_visit_transform_tables__load_transformvisit.sql✨ Updates the transformed visit table with current appointment details, statuses, and facility information for records identified in the delta set.writesTransformVisit· readsSourceAppointmentSourceAppointmentChainSourceEventVisitDelta↳ feeds from Load TempVisitDelta - Load TransformCustomPropertiessql
load_visit_transform_tables__load_transformcustomproperties.sql✨ Extracts and loads custom appointment properties and key-value pairs into the transformed properties table for updated visits.writesTransformCustomProperties· readsSourceAppointmentSourceAppointmentChainVisitDelta↳ feeds from Load TempVisitDelta - Load TransformVisitInsurancesql
load_visit_transform_tables__load_transformvisitinsurance.sql✨ Updates transformed insurance coverage and coordination of benefits data for visits, including logic to identify self-pay and unmapped payers.writesTransformVisitInsurance· readsSourceAppointmentSourceAppointmentChainSourceInsuranceMapSourcePatientInsuranceSourcePatientRelationTransformCustomPropertiesTransformPatientTransformVisit↳ feeds from Load TempVisitDelta, Load TransformCustomProperties, Load TransformPatient, Load TransformVisit - Load TransformVisitChargesql
load_visit_transform_tables__load_transformvisitcharge.sql✨ Builds visit charges by mapping appointment types and patient demographics to procedure codes and quantities for cost estimation.writesTransformVisitCharge· readsChargeTypeImportGFEMappingSourceEventTransformPatientTransformVisitVisitDelta↳ feeds from Load TempVisitDelta, Load TransformPatient, Load TransformVisit