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
18 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
- Insert TempVisitBatchInsertTimesql
load_visits__insert_tempvisitbatchinserttime.sql✨ Creates a temporary table to record the current timestamp for tracking when a batch of visits was loaded.writesTempVisitBatchInsertTime - LoadVisitBatchLoadVisitBatchLoad scheduled visits and associated charges into the processing pipeline using custom SQL queries for pricing estimation and quote generation.writes
QuoteBatchVisitBatch· readsDimensionMemberPatientTransformVisitTransformVisitInsuranceVisitVisitDeltatransformvisitchargevisitdelta↳ feeds from Sync QuoteBatch,VisitBatch,CustomPropertyMapBatchcustom visit querycustom charge queryauto service type queryauto coverage queryadd zero charge - Applies matching charge bundles to batch visits based on facility and insurance to ensure consistent pricing across service types.DISABLED
- Load TempBatchVisitsql
load_visits__load_tempbatchvisit.sqldisabled✨ Populates a temporary table with visit and insurance details to identify which appointments require insurance eligibility verification.writesTempBatchVisit - Verifies insurance eligibility and retrieves detailed benefits information for visits by making real-time API calls to insurance providers.· reads
InsuranceServiceTypeMapSourceEventTypeServiceTypeMapTempBatchVisitcustom queryDISABLED - Verifies insurance eligibility and retrieves detailed benefits information for visits by making real-time API calls to insurance providers.· reads
CommonDataEligibilityTxnInsuranceServiceTypeMapSourceEventTypeServiceTypeMapTempBatchVisitTempVisitBatchInsertTimecustom queryDISABLED - Populates insurance benefits like copays and deductibles on batch visits using data from eligibility verification transactions.DISABLED
- CalculateVisitsflowCompute the good-faith estimate (CalculateVisits).· reads
DimensionMemberVisitBatch↳ feeds from LoadVisitBatchcustom querycalculate chargesbatch mode ▶Load-Custom-Propertiessub-job · 10↗Load custom properties from Load-Visits
- UpdateVisitCustomPropertyFromQueryUpdateVisitCustomPropertyFromQuerydisabled· reads
InsuranceSearch_ResultTransformVisitInsuranceCoverageStatusVisitBatchcustom visit update custom property queryDISABLED - Custom Properties: OtherActiveCoverageUpdateVisitCustomPropertyFromQuerydisabled· reads
TransformVisitInsuranceCoverageStatusVisitBatchcustom visit update custom property queryDISABLED - Custom Properties: OtherInactiveCoverageUpdateVisitCustomPropertyFromQuerydisabled· reads
TransformVisitInsuranceCoverageStatusVisitBatchcustom visit update custom property queryDISABLED - Custom Properties: Update MostRecentBatch to clear the previous recordsUpdateVisitCustomPropertyFromQuerydisabled· reads
CustomPropertyMapVisitcustom visit update custom property queryDISABLED - Custom Properties: MostRecentBatchUpdateVisitCustomPropertyFromQuerydisabledauto visit update custom property queryDISABLED
- Custom Properties: OAS ReasonUpdateCustomPropertyFromQuerydisabled· reads
CustomPropertyMapsourceappointmentchaintransformcustompropertiesvisitbatchvisitdeltaentity=Visitcustom property key=OASReasonauto querybatch modeDISABLED - Custom Properties: Has BundleUpdateCustomPropertyFromQuerydisabled· reads
CustomPropertyMapTransformVisitChargeVisitBatchvisitdeltaentity=Visitcustom property key=HasBundleauto querybatch modeDISABLED - Custom Properties: GFE ReasonUpdateCustomPropertyFromQuerydisabled· reads
CustomPropertyMaptransformcustompropertiesvisitbatchvisitdeltaentity=Visitcustom property key=GFEReasoncustom querybatch modeDISABLED - Custom Properties: Set LetterPrinted to NoUpdateCustomPropertyFromQuery· reads
CustomPropertyMapVisitBatchentity=Visitcustom property key=LetterPrintedcustom querybatch mode - UpdateCustomPropertyFromQuery (GFEDueDate)UpdateCustomPropertyFromQuery· reads
SourceAppointmentSourceAppointmentChainTransformVisitVisitBatchentity=Visitcustom property key=GFEDueDatecustom querybatch mode
- AutoSendLettersAutoSendLettersGenerates and sends patient cost estimate letters for visits in the batch table based on configured qualification and communication rules.
- Synchronizes 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 - 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 ▶Generate-Reportsub-job · 5↗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 reporting table consolidating the latest insurance eligibility transaction details, member IDs, and coverage results for each visit.writesTempEligibilityReport· readsTempEligibilityReport - Load TempInsSearchResultssql
generate_report__load_tempinssearchresults.sql✨ Loads a temporary table with successful insurance search results to identify and rank new coverage found for patients.writesTempInsSearchResults - Generate Reportsql
generate_report__generate_report.sql✨ Generates the final eligibility report by consolidating primary, secondary, and tertiary insurance results with any newly discovered coverage information.writesBatchEligibility_ResultsReport - Create BatchEligibility_ResultsReportArchive if doesn't existsql
generate_report__create_batcheligibility_resultsreportarchive_if_doesn_t_exist.sql✨ Builds the archive table for storing historical insurance eligibility and benefit results if it does not already exist. - Archive Reportsql
generate_report__archive_report.sql✨ Updates the eligibility results archive by replacing existing records with the latest report data for specific visits and dates.writesBatchEligibility_ResultsReportArchive· readsBatchEligibility_ResultsReport↳ feeds from Generate Report
- Load TransformVisitInsuranceCoverageStatussql
load_visits__load_transformvisitinsurancecoveragestatus.sqldisabled✨ Updates insurance coverage status for visits by linking them to the most recent successful or failed eligibility verification transactions. - Load VisitDetailsql
load_visits__load_visitdetail.sqldisabled✨ Loads comprehensive visit details including patient demographics, provider information, and insurance coverage status into a reporting table.writesVisitDetail· readsBatchEligibility_ResultsArchiveCustomPropertyMapEligibilityTxnPatientTransformVisitVisitVisitDeltaVisitDetail ▶Load-Visit-Factsub-job · 2↗
- Create Visit Factsql
load_visit_fact__create_visit_fact.sql✨ Creates the VisitFact table to store aggregated visit data, including scheduling, insurance, and payment status, if it does not exist. - Load Visit Factsql
load_visit_fact__load_visit_fact.sql✨ Refreshes the VisitFact table by deleting and re-inserting records for visits with recent updates, payments, eligibility checks, or letters.writesVisitFact· readsEligibilityStatusMapEligibilityTxnPatientLetterPaymentTxnVisit
- UpdateDashboardTablesUpdateDashboardTablesRegenerates optimized aggregate tables for all dashboard reports and updates their definitions to reflect the latest source data.