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
Daily-Visit-Processing-Flow
5 tasks · HeatonEye
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-NextGen-Files-Flowsub-job · 2↗Job Description: Downloads and imports NextGen data -Flow
- DownloadDownloadDownloads files from remote FTP or SFTP servers to local directories with support for archiving and parallel transfers.server=HeatonEye_ProdMirror-mdcssh-sftpremote directory=/Flow/local directory={SourceDataFolderFlow}remote archive directory=/Flow/Archive/
▶Load-ExportAppointments-Flowsub-job · 1↗Loads appointment data
- Load-ExportAppointmentLoad-ExportAppointmentwrites
ImportAppointmentSourceAppointmentfile path={FilePath}archive directory={SourceDataArchiveFlow}base table name=Appointmentrow terminator=Newlinecolumn separator=Pipe
▶Load-Visit-Transform-Tables-Flowsub-job · 5↗Loads transform tables for Visits
- Load TempVisitDeltasql
load_visit_transform_tables_flow__load_tempvisitdelta.sql✨ Identifies surgical visits and insurance updates that require processing by comparing recent source changes against previously transformed records. ▶Load-SourceAppointmentChain-Flowsub-job · 1↗
- Load SourceAppointmentChainsql
load_sourceappointmentchain_flow__load_sourceappointmentchain.sql✨ Builds a history of rescheduled appointments to track the progression and relationship between original and updated visit records.writesSourceAppointmentChain· readsSourceAppointmentVisitDelta
- Load TransformVisitsql
load_visit_transform_tables_flow__load_transformvisit.sqldisabled✨ Builds the transformed visit table by mapping appointment details, statuses, and service types from source data for processing.writesTransformVisit· readsFacilitySourceAppointmentSourceAppointmentChainSourceEventVisitDelta - ExecuteMergeSqlExecuteMergeSqlSynchronizes data from external sources into target tables by performing batched insert, update, and delete operations based on keys.writes
TransformVisit· readsFacilitySourceAppointmentSourceAppointmentChainVisitDeltamerge 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.sql✨ Loads insurance coverage details for visits, determining coordination of benefits and mapping source payers to standardized insurance categories.writesTransformVisitInsurance· readsInsuranceMapSourcePatientSourcePatientInsuranceTransformPatientTransformVisitVisitDelta↳ feeds from ExecuteMergeSql
▶Load-Dimension-Members-Flowsub-job · 2↗Loads Dimension Members
- Load VisitStatussql
load_dimension_members_flow__load_visitstatus.sql✨ Loads visit status members into the dimension table using appointment status values extracted from transformed visit data.writesDimensionMember· readsTransformVisit - Load VisitType Dimensionsql
load_dimension_members_flow__load_visittype_dimension.sql✨ Populates the visit type dimension by mapping unique event identifiers and practice-specific descriptions from source event records.writesDimensionMember· readsSourceEvent
▶Load-Visits-Flowsub-job · 20↗
- ReprocessChangedConfigurationsReprocessChangedConfigurationsIdentify and queue visits or accounts affected by configuration changes to ensure historical data reflects updated pricing or insurance rules.reprocess visits
- Visits to Reprocesssql
load_visits_flow__visits_to_reprocess.sql✨ Flags visits from the reprocess queue for inclusion in the current data processing delta.writesVisitDelta· readsVisitVisitDeltaVisitReprocessQueueItem↳ feeds from Sync Visits and Quotes - LoadVisitBatchLoadVisitBatchLoad scheduled visits and associated charges into the processing pipeline using custom SQL queries for pricing estimation and quote generation.writes
QuoteBatchVisitBatch· readsInsuranceMapPatientTransformVisitTransformVisitInsuranceVisitVisitDelta↳ feeds from Sync Visits and Quotes, Visits to Reprocesscustom visit queryauto charge querycustom service type querycustom coverage queryadd zero charge ▶Load-Custom-Properties-Flowsub-job · 3↗Load custom properties from Load-Visits
- UpdateVisitNoveltyStatusUpdateVisitNoveltyStatus· reads
PatientSourcePatientVisitBatchentity=Visitcustom property key=NewVisitStatusauto querybatch mode - Surgical TypeUpdateCustomPropertyFromQuery· reads
SourceAppointmentSourceAppointmentChainVisitBatchentity=Visitcustom property key=CustomProperty-[id]custom querybatch mode - Referral RequiredUpdateCustomPropertyFromQuery· reads
CustomPropertyMapDimensionMemberSourceAppointmentChainTransformVisitInsuranceVisitBatchentity=Visitcustom property key=CustomProperty-[id]custom querybatch mode
- AutoApplyBundlesToVisitBatchAutoApplyBundlesToVisitBatchApplies matching charge bundles to batch visits based on facility and insurance to ensure consistent pricing across service types.
- Verifies insurance eligibility and retrieves detailed benefits information for visits by making real-time API calls to insurance providers.· reads
TempBatchVisitVisitBatchcustom 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
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 - AutoSendLettersAutoSendLettersGenerates and sends patient cost estimate letters for visits in the batch table based on configured qualification and communication rules.
- LogVisitChangeEventsBatchLogVisitChangeEventsBatchCompare batch visits against production records to detect and log specific property changes for auditing and compliance tracking.
- Load TransformVisitInsuranceCoverageStatussql
load_visits_flow__load_transformvisitinsurancecoveragestatus.sqldisabled✨ Updates insurance coverage status for visits by analyzing the latest eligibility transactions to determine if coverage is active or failed.writesTempEligibilityStatsTransformVisitInsuranceCoverageStatus· readsTempEligibilityStatsTransformVisitInsuranceVisitBatch ▶Load-CustomProperty-CoverageStatus-Flowsub-job · 3↗
- Load Primary Coverage StatusUpdateCustomPropertyFromQuery· reads
CustomPropertyMapEligibilityTxnVisitBatchVisitCoverageBatchentity=Visitcustom property key=PrimaryCoverageStatuscustom querybatch mode - Load Secondary Coverage StatusUpdateCustomPropertyFromQuery· reads
CustomPropertyMapEligibilityTxnVisitBatchVisitCoverageBatchentity=Visitcustom property key=SecondaryCoverageStatuscustom querybatch mode - Load Tertiary Coverage StatusUpdateCustomPropertyFromQuery· reads
CustomPropertyMapEligibilityTxnVisitBatchVisitCoverageBatchentity=Visitcustom property key=TertiaryCoverageStatuscustom 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 - ExportBatchVisitEligibilityflowdisabledPush the batch to the app / export results.· reads
EligibilityTxnVisitBatchcustom querytable name=BatchEligibility_Resultsarchive table name=BatchEligibility_ResultsArchiveDISABLED - SearchForInsuranceflowdisabledFind coverage for visits missing insurance.· reads
EligibilityTxnBatchcustom querytable name=InsuranceSearch_Resultbatch modeDISABLED ▶Load-Visit-Fact-Flowsub-job · 1↗
- Load VisitFactsql
load_visit_fact_flow__load_visitfact.sql✨ Updates the visit fact table by refreshing records that have recent activity in payments, eligibility checks, or patient communications.writesVisitFact· readsEligibilityStatusMapEligibilityTxnPatientLetterPaymentTxnVisit
- Data-Integrity-Reportsub-job