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-HL7-Transform
9 tasks · SWOrofacial
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_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_hl7_transform__importhl7adtcombined.sql✨ Builds a combined view of patient demographics and insurance by merging the latest visit and patient records from HL7 messages.writesImportHL7ADTCombined· readsHL7DeltaHL7PatientHL7Visit - Merge TransformPatientMergeSqlwrites
TransformPatient· readsImportHL7ADTCombined↳ feeds from ImportHL7ADTCombinedmerge data source type=ThisDatabasetable name=TransformPatientmerge mode=InsertUpdatebulk copy timeout seconds=300bulk copy use table lock - ImportTransformPatientInsurancesql
flow_hl7_transform__importtransformpatientinsurance.sql✨ Loads patient insurance details by unpivoting multiple coverage layers from combined HL7 data and mapping them to standardized insurance entities.writesImportTransformPatientInsurance· readsImportHL7ADTCombinedInsuranceMap↳ feeds from ImportHL7ADTCombined - TransformPatientInsurance+VisitDeltasql
flow_hl7_transform__transformpatientinsurance_visitdelta.sql✨ Updates patient insurance records and flags future visits in the delta table when insurance changes are detected.writesTransformPatientInsuranceVisitDelta· readsInsuranceChangesTransformVisitimporttransformpatientinsurance↳ feeds from ImportTransformPatientInsurance, MergeTransformVisit+VisitDelta - ImportTransformVisitsql
flow_hl7_transform__importtransformvisit.sql✨ Loads visit and appointment data from HL7 messages, determining the current status based on message type and schedule date.writesImportTransformVisit· readsFacilityHL7ArchiveHL7DeltaHL7Visit - MergeTransformVisit+VisitDeltasql
flow_hl7_transform__mergetransformvisit_visitdelta.sql✨ Updates the main visit transformation table and flags new or modified visits in the delta table for downstream processing.writesTransformVisitVisitDelta· readsImportTransformVisitVisitDelta↳ feeds from ImportTransformVisit, TransformPatientInsurance+VisitDelta, TruncateVisitDelta - ImportTransformVisitInsurancesql
flow_hl7_transform__importtransformvisitinsurance.sql✨ Loads visit-specific insurance records by joining the latest patient insurance data with visits identified in the delta table.writesImportTransformVisitInsurance· readsTransformPatientInsuranceTransformVisitVisitDelta↳ feeds from MergeTransformVisit+VisitDelta, TransformPatientInsurance+VisitDelta, TruncateVisitDelta - MergeTransformVisitInsurancesql
flow_hl7_transform__mergetransformvisitinsurance.sql✨ Updates the visit insurance transformation table by replacing existing records with the latest imported insurance data for each visit.writesTransformVisitInsurance· readsImportTransformVisitInsurance↳ feeds from ImportTransformVisitInsurance