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
21 tasks · SeaRad
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 VisitDeltasql
load_visits__load_visitdelta.sql✨ Identifies new or updated visits with future appointment dates to determine which records require processing in the pipeline.writesVisitDelta· readsVisitDelta↳ feeds from Augment Visit Delta - Load TempBatchVisitsql
load_visits__load_tempbatchvisit.sql✨ Flags visits requiring eligibility verification based on insurance details, service types, and scheduled appointment timing.writesTempBatchVisit· readsDimensionMemberEligibilityTxnTransformVisitTransformVisitInsuranceTransformVisitInsuranceCoverageStatusVisit↳ feeds from Load TransformVisitInsuranceCoverageStatus, Sync Visits and Quotes - Augment Visit Deltasql
load_visits__augment_visit_delta.sql✨ Adds visit records requiring new insurance eligibility lookups to the change tracking table for processing.writesVisitDelta· readsTempBatchVisitVisitDelta↳ feeds from Load TempBatchVisit, Load VisitDelta - LoadVisitBatchLoadVisitBatchLoad scheduled visits and associated charges into the processing pipeline using custom SQL queries for pricing estimation and quote generation.writes
QuoteBatchVisitBatch· readsPatientTransformVisitTransformVisitChargeTransformVisitInsuranceVisitVisitDelta↳ feeds from Augment Visit Delta, Load VisitDelta, Sync Visits and Quotescustom visit querycustom charge queryauto service type querycustom coverage queryadd zero charge - CheckBenefitsflowVerifies insurance eligibility and retrieves detailed benefits information for visits by making real-time API calls to insurance providers.· reads
TempBatchVisitVisitBatch↳ feeds from Load TempBatchVisit, LoadVisitBatchcustom query - Verifies insurance eligibility and retrieves detailed benefits information for visits by making real-time API calls to insurance providers.· reads
EligibilityStatusMapEligibilityTxnTempBatchVisitVisitBatchcustom 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.
- AutoSendLettersAutoSendLettersGenerates and sends patient cost estimate letters for visits in the batch table based on configured qualification and communication rules.
- Load TransformVisitInsuranceCoverageStatussql
load_visits__load_transformvisitinsurancecoveragestatus.sql✨ Updates insurance coverage statuses for visits by analyzing the most recent eligibility transaction results and error logs.writesTempEligibilityStatsTransformVisitInsuranceCoverageStatus· readsTempEligibilityStatsTransformVisitInsuranceVisitBatch↳ feeds from LoadVisitBatch ▶Load-CustomProperty-CoverageStatussub-job · 2↗
- Load Primary Coverage StatusUpdateCustomPropertyFromQuery· reads
TransformVisitInsuranceCoverageStatusVisitBatchentity=Visitcustom property key=PrimaryCoverageStatuscustom querybatch mode - Load Secondary Coverage StatusUpdateCustomPropertyFromQuery· reads
TransformVisitInsuranceCoverageStatusVisitBatchentity=Visitcustom property key=SecondaryCoverageStatuscustom querybatch mode
- Custom Property Has Medicare Part C CoverageUpdateVisitCustomPropertyFromQuerydisabled· reads
EligibilityTxnVisitbatchcustom visit update custom property queryDISABLED - Custom Property Has Medicare Part C CoverageUpdateCustomPropertyFromQuery· reads
CustomPropertyMapEligibilityTxnVisitBatch↳ feeds from LoadVisitBatch, Sync Visits and Quotesentity=Visitcustom property key=HasMedicarePartCCoverageauto querybatch mode - Sync Visits and QuotesSyncBatchSynchronizes 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 - ExportBatchVisitEligibilityflowPush the batch to the app / export results.· reads
EligibilityTxnVisitBatch↳ feeds from LoadVisitBatchcustom querytable name=BatchEligibility_Resultsarchive table name=BatchEligibility_ResultsArchive - SearchForInsuranceflowdisabledFind coverage for visits missing insurance.· reads
EligibilityTxnBatchcustom querytable name=InsuranceSearch_Resultbatch modeDISABLED ▶Generate-Reportsub-job · 4↗Generates the Daily Export report and pushed data into the Archive report for Load-Visits and Load-Visits-Reprocess
- Load TempEligibilityReportsql
generate_report__load_tempeligibilityreport.sql✨ Builds a temporary table of eligibility results for specific visits and insurance plans to support reporting.writesTempEligibilityReport - Load TempInsSearchResultssql
generate_report__load_tempinssearchresults.sql✨ Loads active insurance search results into a temporary table to identify new coverage found during the eligibility process.writesTempInsSearchResults - Generate Reportsql
generate_report__generate_report.sql✨ Generates a comprehensive batch eligibility report by consolidating patient visit data with primary, secondary, and tertiary insurance verification results.writesBatchEligibility_ResultsReport - Archive Reportsql
generate_report__archive_report.sql✨ Updates the eligibility report archive by replacing existing visit records with the most recent verification results.writesBatchEligibility_ResultsReportArchive· readsBatchEligibility_ResultsReport↳ feeds from Generate Report
- Custom PropertiesUpdateVisitCustomPropertyFromQuerydisabled· reads
BatchEligibility_ResultsReportCustomPropertyMapauto visit update custom property queryDISABLED ▶Load-Visit-Factsub-job · 1↗
- Load VisitFactsql
load_visit_fact__load_visitfact.sql✨ Updates the visit fact table by refreshing records with recent activity, including payments, eligibility checks, and patient communications.writesVisitFact· readsEligibilityStatusMapEligibilityTxnPatientLetterPaymentTxnVisit
▶Update-Dashboard-Tablessub-job · 1↗
- UpdateDashboardTablesUpdateDashboardTablesRegenerates optimized aggregate tables for all dashboard reports and updates their definitions to reflect the latest source data.