trigger
How it's scheduled
The Batch / file feed arrives as a scheduled drop, so one overnight pass is enough: it ingests the day's file and works the whole batch to process the visits. A tighter loop would just re-scan the same file.
| Scheduled task | Cadence | Server | State | Coordination |
|---|---|---|---|---|
\MDC\Daily - Processing - MNEye | daily at 03:15 | prod-db-3 | enabled | then runs \MDC\Daily - Processing - MNEye - Accounts, \MDC\Daily - Processing - MNEye - Visits |
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).
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-Source-Data
▶Load-NextGen-Datasub-job · 16↗
- DownloadDownloadDownloads files from remote FTP or SFTP servers to local directories with support for archiving and parallel transfers.server=MNEye_ProdMirror-mdcssh-sftpremote directory=/local directory={SourceDataFolder}
- Download FilesExecuteProcessdisabledcommand={SSHToolPath}\SSH.exeserver=MNEye_ProdMirror-mdcssh-sftpDISABLED
- Load AppointmentsLoadFilewrites
ImportAppointmentsdata file spec=ImportAppointmentsimport mode=Replace - Load PatientsLoadFilewrites
ImportPatientsdata file spec=ImportPatientsfile path={SourceDataFolder}\ExportPatient.txtimport mode=Replace - Load Patient InsuranceLoadFilewrites
ImportPatientInsurancedata file spec=ImportPatientInsuranceimport mode=Replace - Load PayerLoadFilewrites
ImportPayerdata file spec=ImportPayerfile path={SourceDataFolder}\ExportPayer.txtimport mode=Replace - Load ProvidersLoadFilewrites
ImportProvidersdata file spec=ImportProvidersfile path={SourceDataFolder}\ExportProviders.txtimport mode=Replace - Load ChargeMasterLoadFilewrites
ImportChargeMasterdata file spec=ImportChargeMasterimport mode=Replace - Load EncountersLoadFilewrites
ImportEncountersdata file spec=ImportEncountersfile path={SourceDataFolder}\ExportEncounters.txtimport mode=Replace - Load ChargesLoadFilewrites
ImportChargesdata file spec=ImportChargesfile path={SourceDataFolder}\ExportCharges.txtimport mode=Replace - Load AdjustmentsLoadFilewrites
ImportAdjustmentsdata file spec=ImportAdjustmentsimport mode=Replace - Load TransactionDetailLoadFilewrites
ImportTransactionDetaildata file spec=ImportTransactionDetailimport mode=Replace - Load Encounter InsuranceLoadFilewrites
ImportEncounterInsurancedata file spec=ImportEncounterInsuranceimport mode=Replace - Load LocationsLoadFilewrites
ImportLocationsdata file spec=ImportLocationsfile path={SourceDataFolder}\ExportLocation.txtimport mode=Replace - Load EventLoadFilewrites
ImportEventdata file spec=ImportEventfile path={SourceDataFolder}\ExportEvent.txtimport mode=Replace - Archive FilesExecuteProcesscommand=cmd.exe
▶Load-Source-Tablessub-job · 13↗
- Merge SourceAppointmentMergeSqlwrites
SourceAppointment· readsImportAppointmentsmerge data source type=ThisDatabasetable name=SourceAppointmentmerge mode=InsertUpdatebulk copy timeout seconds=300bulk copy use table lock - Load SourcePatientInsurancesql
load_source_tables__load_sourcepatientinsurance.sql✨ Loads patient insurance data while identifying inactive policies and calculating the coordination of benefits order for each coverage record.writesSourcePatientInsurance· readsImportPatientInsurance - Merge SourcePatientMergeSqlwrites
SourcePatient· readsImportPatientmerge data source type=ThisDatabasetable name=SourcePatientmerge mode=InsertUpdatebulk copy timeout seconds=300bulk copy use table lock - Load PatientsLoadPatientsUpsert patient records into the patient dimension.· reads
PatientSourcePatient↳ feeds from Merge SourcePatientcustom patient query - Load SourceEncounterssql
load_source_tables__load_sourceencounters.sql✨ Loads encounter records by transforming imported clinical and financial data into a standardized format for tracking patient visits and balances.writesSourceEncounters· readsImportEncounters - Load SourceEncounterInsurancesql
load_source_tables__load_sourceencounterinsurance.sql✨ Loads and refreshes encounter-level insurance coverage details, including payer information and policy dates, into the source storage table.writesSourceEncounterInsurance· readsImportEncounterInsurance - Load SourceChargessql
load_source_tables__load_sourcecharges.sql✨ Updates source charge records with procedure codes, financial balances, and rendering provider information for specific patient encounters.writesSourceCharges· readsImportCharges - Load SourceAdjustmentssql
load_source_tables__load_sourceadjustments.sql✨ Loads financial adjustment data, including adjudication dates and reason codes, to track modifications made to patient account balances.writesSourceAdjustments· readsImportAdjustments - Load SourceTransactionDetailsql
load_source_tables__load_sourcetransactiondetail.sql✨ Populates detailed transaction history, including allowed amounts and payments, while ensuring data integrity by removing duplicate or outdated records.writesSourceTransactionDetail· readsImportTransactionDetail - Merge SourceLocationsMergeSqlwrites
SourceLocations· readsFacilityImportLocationsmerge data source type=ThisDatabasetable name=SourceLocationsmerge mode=InsertUpdatebulk copy timeout seconds=300bulk copy use table lock - Load Provider (moved to Load-Entities)sql
load_source_tables__load_provider_moved_to_load_entities.sqldisabled✨ Synchronizes provider information, such as NPI and taxonomy codes, by merging new and updated records from multiple source systems. - Load SourcePayersql
load_source_tables__load_sourcepayer.sql✨ Refreshes the master list of insurance payers by importing the latest payer identification and contact data into the source table.writesSourcePayer· readsImportPayerSourcePayer - Merge SourcechargemasterMergeSqlwrites
SourceChargeMaster· readsImportChargeMastermerge data source type=ThisDatabasetable name=SourceChargeMastermerge mode=InsertUpdatebulk copy timeout seconds=300bulk copy use table lock
▶Load-Charge-Dimensionsub-job · 14↗
- TransformChargemaster ExecuteMergeSqlMergeSqlwrites
TransformChargemaster· readsSourceChargeMastermerge data source type=ThisDatabasetable name=TransformChargemastermerge mode=InsertUpdatebulk copy timeout seconds=300bulk copy use table lock - Add Missing Codes to Chargemaster (for now hack)sql
load_charge_dimension__add_missing_codes_to_chargemaster_for_now_hack.sql✨ Inserts manual charge code entries into the chargemaster to address missing data for specific practices.writesTransformChargemaster· readsTransformChargemaster↳ feeds from TransformChargemaster ExecuteMergeSql - End to end chargemaster updatesql
load_charge_dimension__end_to_end_chargemaster_update.sql✨ Builds the end-to-end mapping between chargemaster schedules, facilities, and insurance records for fee calculation.writesFeeScheduleRecordScheduleMapTempChargeSchedules· readsFacilityTempChargeSchedulesTransformChargeMaster↳ feeds from Add Missing Codes to Chargemaster (for now hack), TransformChargemaster ExecuteMergeSql - Load TempChargeSchedulessql
load_charge_dimension__load_tempchargeschedules.sqldisabled✨ Builds temporary charge schedules by determining the effective start and end dates for each practice's chargemaster.writesTempChargeSchedules - Load FeeScheduleRecordsql
load_charge_dimension__load_feeschedulerecord.sqldisabled✨ Loads fee schedule records with specific amounts and modifier filters based on practice-specific chargemaster data and schedules.writesFeeScheduleRecord· readsSourceChargeMasterTempChargeSchedules - Load ScheduleMapsql
load_charge_dimension__load_schedulemap.sqldisabled✨ Updates the schedule map to link professional and facility fee schedules with their respective facilities and insurance categories.writesScheduleMap· readsFacilityTempChargeSchedules - Load ContractMapsql
load_charge_dimension__load_contractmap.sqldisabled✨ Builds the contract mapping table by defining charge logic and bill types for various service categories across all locations.writesContractMap· readsFacility - Load ScheduleLoadEntitieswrites
Schedule· readsScheduleMapTempChargeSchedules↳ feeds from End to end chargemaster updateentity type=Schedulecustom query - Load SourceChargeMapsql
load_charge_dimension__load_sourcechargemap.sql✨ Loads a unified charge map by consolidating service-specific charge codes from the source master file for designated practices.writesSourceChargeMap· readsSourceChargeMaster - Load ChargeTypesql
load_charge_dimension__load_chargetype.sqldisabled✨ Builds the charge type table by mapping charge codes to display names, bill types, and specific billing rules or modifiers.writesChargeType· readsMedicareRVUScheduleMedicareRVUScheduleMapSourceChargeMap - Merge ChargeTypeMergeSqlwrites
ChargeType· readsChargeTypeMedicareRVUScheduleMedicareRVUScheduleMapSourceChargeMap↳ feeds from Load SourceChargeMapmerge data source type=ThisDatabasetable name=ChargeTypemerge mode=InsertUpdatebulk copy timeout seconds=300bulk copy use table lock - Load ChargeType Dimensionsql
load_charge_dimension__load_chargetype_dimension.sql✨ Updates the charge type dimension by populating unique charge codes and descriptions for multiple billing categories.writesDimensionMember· readsDimensionMemberSourceChargeMap↳ feeds from Load ProcedureCategory and Subcategory DM, Load ProcedureCode Dimension, Load SourceChargeMap - Load ProcedureCode Dimensionsql
load_charge_dimension__load_procedurecode_dimension.sql✨ Loads the procedure code dimension by organizing unique codes and descriptions into a hierarchical structure for reporting and analysis.writesDimensionMember· readsSourceChargeMap↳ feeds from Load SourceChargeMap - Load ProcedureCategory and Subcategory DMsql
load_charge_dimension__load_procedurecategory_and_subcategory_dm.sql✨ Builds hierarchical dimensions for procedure categories and subcategories to enable grouped analysis of medical services and billing codes.writesDimensionMember· readsSourceChargeMap↳ feeds from Load SourceChargeMap
▶Load-Entitiessub-job · 3↗
- Load FacilityLoadEntitiesdisabledwrites
Facility· readsFacilitySourceLocationsentity type=Facilitycustom querykey prefix=FDISABLED - Load FacilityLoadEntitieswrites
Facility· readsFacilitySourceAppointmentSourceEncountersSourceLocationsentity type=Facilitycustom querykey prefix=F - Merge ProvidersMergeSqlwrites
Provider· readsImportProvidersSourceEncounterssourceappointmentsql file=sql/load_entities__merge_providers.sqlmerge data source type=ThisDatabasetable name=Providermerge mode=InsertUpdatebulk copy timeout seconds=300
▶Load-InsuranceMapsub-job · 1↗
- Load InsuranceMapLoadEntitieswrites
InsuranceMap· readsInsuranceMapSourcePayerentity type=InsuranceMapcustom querykey prefix=IM