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-Visits
31 tasks · PAA
sub-job / Flow action SQL / native step▶ expand a sub-job inline · ↗ open it as its own page · a typed step opens its doc
- Identify and queue visits or accounts affected by configuration changes to ensure historical data reflects updated pricing or insurance rules.reprocess visitsDISABLED
- Augment VisitDelta from ReprocessChangedConfigurationssql
load_visits__augment_visitdelta_from_reprocesschangedconfigurations.sql✨ Updates the visit change tracking table with records flagged for reprocessing due to configuration updates.writesVisitDelta· readsTransformVisitVisitVisitDeltaVisitReprocessQueueItem↳ feeds from Sync Batch Tables - LoadVisitBatchLoadVisitBatchLoad scheduled visits and associated charges into the processing pipeline using custom SQL queries for pricing estimation and quote generation.writes
QuoteBatchVisitBatch· readsInsuranceMapPatientTransformVisitTransformVisitChargeTransformVisitInsuranceVisitVisitChangeEventVisitDelta↳ feeds from Augment VisitDelta from ReprocessChangedConfigurations, Sync Batch Tablesauto visit querycustom charge querycustom service type querycustom coverage queryadd zero charge - Load TempBatchVisitsql
load_visits__load_tempbatchvisit.sqldisabled✨ Builds a temporary batch table to determine which visits require new insurance eligibility checks based on scheduling and previous results.writesTempBatchVisitTempEligTxnSentMemberID - Verifies insurance eligibility and retrieves detailed benefits information for visits by making real-time API calls to insurance providers.· reads
TempBatchVisitcustom queryDISABLED - CheckBenefitsflowVerifies insurance eligibility and retrieves detailed benefits information for visits by making real-time API calls to insurance providers.auto query
- Verifies insurance eligibility and retrieves detailed benefits information for visits by making real-time API calls to insurance providers.· reads
CommonDataEligibilityTxnTempBatchVisitTempVisitBatchInsertTimecustom queryDISABLED - AutoApplyBenefitsAutoApplyBenefitsPopulates insurance benefits like copays and deductibles on batch visits using data from eligibility verification transactions.
- CalculateVisitsflowCompute the good-faith estimate (CalculateVisits).· reads
DimensionMemberVisitBatch↳ feeds from LoadVisitBatchcustom querycalculate chargesbatch mode - LogVisitChangeEventsBatchLogVisitChangeEventsBatchCompare batch visits against production records to detect and log specific property changes for auditing and compliance tracking.
- Synchronizes processed data from batch staging tables to production tables, updating visits, quotes, and custom property mappings.writes
QuoteVisitVisitChangeEvent· readsQuoteBatchVisitBatchVisitChangeEventBatchsync quotesync visitsync visit change eventDISABLED - TempDeleteVisitBatchsql
load_visits__tempdeletevisitbatch.sqldisabled✨ Cleans the visit batch table by removing records that are not in a scheduled or missing information status.writesVisitBatch - AutoSendLettersAutoSendLettersGenerates and sends patient cost estimate letters for visits in the batch table based on configured qualification and communication rules.
- CustomProperties- Patient Email InformationUpdateCustomPropertyFromQuery· reads
CustomPropertyMapPatientVisitBatch↳ feeds from LoadVisitBatch, Sync Batch Tablesentity=Visitcustom property key=PatientEmailInformationauto querybatch mode - CustomProperties- Charges PresentUpdateCustomPropertyFromQuery· reads
CustomPropertyMapTransformVisitChargeVisitBatch↳ feeds from LoadVisitBatch, Sync Batch Tablesentity=Visitcustom property key=ChargesPresentauto querybatch mode - CustomProperties- Primary Coverage StatusUpdateCustomPropertyFromQuery· reads
CustomPropertyMapEligibilityTxnVisitBatchVisitCoverageBatch↳ feeds from LoadVisitBatch, Sync Batch Tablesentity=Visitcustom property key=PrimaryCoverageStatusauto querybatch mode - CustomProperties- Secondary Coverage StatusUpdateCustomPropertyFromQuery· reads
CustomPropertyMapEligibilityTxnVisitBatchVisitCoverageBatch↳ feeds from LoadVisitBatch, Sync Batch Tablesentity=Visitcustom property key=SecondaryCoverageStatuscustom querybatch mode - Sync Batch TablesSyncBatchSynchronizes processed data from batch staging tables to production tables, updating visits, quotes, and custom property mappings.writes
CustomPropertyMapQuoteVisitVisitChangeEvent· readsCustomPropertyMapBatchQuoteBatchVisitBatchVisitChangeEventBatch↳ feeds from LoadVisitBatchsync quotesync visitsync custom property mapsync visit change event - AutoSendLettersForFutureVisitsAutoSendLettersForFutureVisitsGenerates and sends cost estimate letters for upcoming scheduled visits based on patient preferences and configured qualification criteria.
- AutoSendReminderAutoSendReminderResends patient cost estimate letters via email or SMS if they remain unviewed after a specified time interval.
- SearchForInsuranceflowdisabledFind coverage for visits missing insurance.· reads
EligibilityStatusMapEligibilityTxnBatchcustom querytable name=InsuranceSearch_Resultbatch modeDISABLED - ExportBatchVisitEligibilityflowdisabledPush the batch to the app / export results.· reads
EligibilityTxnTempVisitBatchInsertTimecustom querytable name=BatchEligibility_Resultsarchive table name=BatchEligibility_ResultsArchiveDISABLED - Load TransformVisitInsuranceCoverageStatussql
load_visits__load_transformvisitinsurancecoveragestatus.sql✨ Updates the insurance coverage status table with the latest eligibility transaction results and active coverage indicators for each visit. - CustomProperties- Patient Email InformationUpdateVisitCustomPropertyFromQuerydisabled· reads
PatientVisitBatchcustom visit update custom property queryDISABLED - CustomProperties- Charges PresentUpdateVisitCustomPropertyFromQuerydisabled· reads
CustomPropertyMapTransformVisitChargeVisitBatchcustom visit update custom property queryDISABLED - CustomProperties- Coverage StatusUpdateVisitCustomPropertyFromQuerydisabled· reads
TransformVisitInsuranceCoverageStatusVisitBatchcustom visit update custom property queryDISABLED - CustomProperties- Eligibility StatusUpdateVisitCustomPropertyFromQuerydisabled· reads
CustomPropertyMapVisitBatchauto visit update custom property queryDISABLED - CustomProperties- Estimate StatusUpdateVisitCustomPropertyFromQuerydisabled· reads
CustomPropertyMapVisitBatchauto visit update custom property queryDISABLED - CustomProperties- Auto Generated LetterUpdateCustomPropertyFromQuerydisabled· reads
PatientLetterVisitBatchentity=Visitcustom property key=LetterAutoGeneratedcustom queryDISABLED - CustomProperties- Auto Sent LetterUpdateCustomPropertyFromQuerydisabled· reads
PatientLetterVisitBatchentity=Visitcustom property key=LetterAutoSentcustom queryDISABLED ▶Load-Visit-Factsub-job · 1↗
- Load VisitFactsql
load_visit_fact__load_visitfact.sql✨ Refreshes the visit fact table by recalculating metrics for encounters with recent updates, payments, eligibility checks, or patient communications.writesVisitFact· readsEligibilityStatusMapEligibilityTxnPatientLetterPaymentTxnVisit