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
Flow-MM-HL7-Transform
9 tasks · EugeneGI
sub-job / Flow action SQL / native step▶ expand a sub-job inline · ↗ open it as its own page · a typed step opens its doc
- TruncateVisitDeltasql
flow_mm_hl7_transform__truncatevisitdelta.sql✨ Clears the visit delta table to prepare for a fresh set of changed records in the current pipeline run.writesVisitDelta - ImportHL7ADTCombinedsql
flow_mm_hl7_transform__importhl7adtcombined.sql✨ Consolidates patient and visit information from various HL7 message types into a unified staging table for further transformation.writesImportHL7ADTCombined - TransformPatientsql
flow_mm_hl7_transform__transformpatient.sql✨ Synchronizes patient demographic information by updating existing records or inserting new ones based on the latest HL7 data.writesTransformPatient· readsImportHL7ADTCombined↳ feeds from ImportHL7ADTCombined - ImportTransformPatientInsurancesql
flow_mm_hl7_transform__importtransformpatientinsurance.sql✨ Extracts and stages the most recent insurance details for patients from combined HL7 message data.writesImportTransformPatientInsurance· readsImportHL7ADTCombinedInsuranceMap↳ feeds from ImportHL7ADTCombined - TransformPatientInsurance+VisitDeltasql
flow_mm_hl7_transform__transformpatientinsurance_visitdelta.sql✨ Updates patient insurance records and flags associated future visits in the delta table for reprocessing.writesTransformPatientInsuranceVisitDelta· readsInsuranceChangesTransformVisitimporttransformpatientinsurance↳ feeds from ImportTransformPatientInsurance, MergeTransformVisit+VisitDelta - ImportTransformVisitsql
flow_mm_hl7_transform__importtransformvisit.sql✨ Builds the visit import table by extracting the latest appointment data from HL7 messages while mapping facilities and providers.writesImportTransformVisit· readsFacilityHL7DeltaHL7VisitMMFacilityMapMMProviderMap - MergeTransformVisit+VisitDeltasql
flow_mm_hl7_transform__mergetransformvisit_visitdelta.sql✨ Updates the main visit transformation table with imported data and flags new visits in the delta tracking table.writesTransformVisitVisitDelta· readsImportTransformVisitVisitDelta↳ feeds from ImportTransformVisit, TransformPatientInsurance+VisitDelta, TruncateVisitDelta - ImportTransformVisitInsurancesql
flow_mm_hl7_transform__importtransformvisitinsurance.sql✨ Builds the insurance import table by linking the latest patient insurance details to visits identified in the delta tracking table.writesImportTransformVisitInsurance· readsHL7DeltaTransformPatientInsuranceVisitDelta↳ feeds from MergeTransformVisit+VisitDelta, TransformPatientInsurance+VisitDelta, TruncateVisitDelta - MergeTransformVisitInsurancesql
flow_mm_hl7_transform__mergetransformvisitinsurance.sql✨ Updates the visit insurance transformation table by merging the latest imported insurance records for each visit.writesTransformVisitInsurance· readsImportTransformVisitInsurance↳ feeds from ImportTransformVisitInsurance