trigger
How it's scheduled
This runs after its source-data load completes, as a follow-on stage rather than on an independent schedule.
| Scheduled task | Cadence | Server | State | Coordination |
|---|---|---|---|---|
\MDC\Daily - Processing - MNEye - Visits | on demand / chained | prod-db-3 | enabled | standalone |
shape
Against the canonical Flow spine
Every Flow pipeline is a variation on one shape. Lit stages are the ones this pipeline runs; the labels match the capability lens.
computed concepts · from the SQL
What it computes
Business concepts mined from this pipeline's SQL text — the meaning behind the typed steps. Each links to the concept lens (who else computes it).
Payers in SQLAetnaAnthemBCBSCignaHumanaMedicaidMedicareTricare
task tree
What the pipeline 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).
Daily-Processing-Visits
▶Load-Visit-Transform-Tables-Flowsub-job · 5↗Loads transform tables for Visits
- Load VisitDeltasql
load_visit_transform_tables_flow__load_visitdelta.sql✨ Identifies appointments and insurance records requiring updates by comparing source timestamps against existing transformed visit data.writesVisitDelta· readsSourceAppointmentSourcePatientInsuranceTransformVisitVisitDelta↳ feeds from Merge TransformVisit ▶Load-SourceAppointmentChain-Flowsub-job · 1↗
- Load SourceAppointmentChainsql
load_sourceappointmentchain_flow__load_sourceappointmentchain.sql✨ Builds a chain of rescheduled appointments to identify the most recent record for each original appointment number.writesSourceAppointmentChain· readsSourceAppointmentVisitDelta
- Merge TransformVisitMergeSqlwrites
TransformVisit· readsSourceAppointmentSourceAppointmentChainVisitDelta↳ feeds from Load VisitDeltamerge data source type=ThisDatabasetable name=TransformVisitmerge mode=InsertUpdatebulk copy timeout seconds=300bulk copy use table lock - Load TransformVisitInsurancesql
load_visit_transform_tables_flow__load_transformvisitinsurance.sqldisabled✨ Loads insurance coverage details for visits, determining coordination of benefits and mapping source payers to standardized insurance categories.writesTransformVisitInsurance· readsInsuranceMapSourcePatientSourcePatientInsuranceTransformPatientTransformVisitVisitDelta - Merge TransformVisitInsuranceMergeSqlwrites
TransformVisitInsurance· readsSourcePatientSourcePatientInsuranceTransformVisitVisitDelta↳ feeds from Load VisitDelta, Merge TransformVisitmerge data source type=ThisDatabasetable name=TransformVisitInsurancemerge mode=InsertUpdateHardDeletebulk copy timeout seconds=300bulk copy use table lock
▶Load-Visits-Flowsub-job · 18↗Removing references to TempVisitBundleCharge, which is loaded by ad-hoc tables, to transition MNEye to fully using the Bundle entity instead -CW [date]
- ReprocessChangedConfigurationsReprocessChangedConfigurationsIdentify and queue visits or accounts affected by configuration changes to ensure historical data reflects updated pricing or insurance rules.reprocess visits
- Augment VisitDelta from Change Configssql
load_visits_flow__augment_visitdelta_from_change_configs.sql✨ Adds visits from the reprocess queue to the delta table to ensure they are included in the next processing cycle.writesVisitDelta· readsVisitVisitDeltaVisitReprocessQueueItem↳ feeds from Sync Quotes, Visits, and CustomProperties - LoadVisitsLoadVisitsLoad scheduled visits and associated charges into the processing pipeline using custom SQL queries for pricing estimation and quote generation.writes
QuoteBatchVisitBatch· readsFacilityInsuranceMapPatientSourceEventCategoryMapSourceEventTypeMapTransformVisitTransformVisitInsuranceVisit↳ feeds from Augment VisitDelta from Change Configs, Sync Quotes, Visits, and CustomPropertiescustom visit queryauto charge querycustom service type querycustom coverage queryadd zero charge - AutoApplyBundlesToVisitBatchAutoApplyBundlesToVisitBatchApplies matching charge bundles to batch visits based on facility and insurance to ensure consistent pricing across service types.
- Load TempBatchVisitssql
load_visits_flow__load_tempbatchvisits.sqldisabled✨ Loads a temporary table with visits eligible for batch insurance verification based on scheduling, service type, and prior transaction history.writesTempBatchVisit - CheckBenefitsflowVerifies insurance eligibility and retrieves detailed benefits information for visits by making real-time API calls to insurance providers.auto query
- Auto BenefitsAutoBenefitsPopulates insurance benefits like copays and deductibles on batch visits using data from eligibility verification transactions.
- Calculate VisitsflowCompute the good-faith estimate (CalculateVisits).· reads
ContractMapDimensionMemberVisitBatch↳ feeds from Load Visitscustom querycalculate chargesupdate dimensionsbatch mode - AutoSendLettersAutoSendLettersGenerates and sends patient cost estimate letters for visits in the batch table based on configured qualification and communication rules.
- 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.
- LogVisitChangeEventsBatchLogVisitChangeEventsBatchCompare batch visits against production records to detect and log specific property changes for auditing and compliance tracking.
- VisitAfterDate1.1.26VisitAfterDate1.1.26· reads
CustomPropertyMapVisitBatch↳ feeds from Load Visits, Sync Quotes, Visits, and CustomPropertiesentity=Visitcustom property key=VisitAfterDate1.1.26custom querybatch mode - PrimaryCoverageStatus (CustomProp)UpdateCustomPropertyFromQuery· reads
CustomPropertyMapEligibilityTxnVisitBatchVisitCoverageBatch↳ feeds from Load Visits, Sync Quotes, Visits, and CustomPropertiesentity=Visitcustom property key=PrimaryCoverageStatuscustom querybatch mode - SecondaryCoverageStatus (CustomProp)UpdateCustomPropertyFromQuery· reads
CustomPropertyMapEligibilityTxnVisitBatchVisitCoverageBatch↳ feeds from Load Visits, Sync Quotes, Visits, and CustomPropertiesentity=Visitcustom property key=SecondaryCoverageStatuscustom querybatch mode - MedicarePartC Custom Prop (need to refine)UpdateCustomPropertyFromQuery· reads
CustomPropertyMapEligibilityTxnVisitBatch↳ feeds from Load Visits, Sync Quotes, Visits, and CustomPropertiesentity=Visitcustom property key=HasMedicarePartCCoverageauto querybatch mode - Synchronizes processed data from batch staging tables to production tables, updating visits, quotes, and custom property mappings.writes
CustomPropertyMapQuoteVisitVisitChangeEvent· readsCustomPropertyMapBatchQuoteBatchVisitBatchVisitChangeEventBatch↳ feeds from Load Visitssync quotesync visitsync custom property mapsync visit change event ▶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 insurance, eligibility, and payment status.writesVisitFactVisitFactDelta· readsEligibilityStatusMapEligibilityTxnFacilityPatientLetterPaymentTxnVisitVisitFactDelta
- Load Eligibility Status Dimensionsql
daily_processing_visits__load_eligibility_status_dimension.sql✨ Refreshes the eligibility status dimension with unique values from appointment benefit details to support insurance verification reporting.writesDimensionMember· readsvAppointmentBenefitDetailAll ▶Load-Default-CustomPropertiessub-job · 1↗See ZD Ticket #9685
- Update PriorAuth Custom PropertyUpdateVisitCustomPropertyFromQuery· reads
CustomPropertyMapDimensionMemberPriorAuthDefaultVisitvPriorAuthReportcustom visit update custom property query
markers
Why it classified as flow
Front-of-house actions found anywhere in the tree (including nested sub-jobs).