Batch / file feed · RevFind pipeline
ISpine · RevFind-Daily-Processing
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 - iSpine | daily at 03:45 | prod-db-3 | enabled | standalone |
shape
The RevFind back-office spine
RevFind pipelines share a back-office shape: ingest → load accounts → reconcile remits → model contracts → surface underpayments. Lit stages are the ones this pipeline runs.
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 SQLMedicaidMedicare
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).
RevFind-Daily-Processing
▶RevFind-EDI-Processingsub-job · 5↗
- Download EDI & Archive 835sDownloadDownloads files from remote FTP or SFTP servers to local directories with support for archiving and parallel transfers.server=ISpine_ProdMirror-mdcssh-sftpremote directory=/835/local directory={SourceDataFolder}
- Download EDI & Archive 837sDownloadDownloads files from remote FTP or SFTP servers to local directories with support for archiving and parallel transfers.server=ISpine_ProdMirror-mdcssh-sftpremote directory=/local directory={SourceDataFolder}
▶RevFind-EDI-LoadFilessub-job · 2↗
- Bulk Insert into DatabaseExecuteProcesscommand=powershell.exe
- Archive EDI FilesExecuteProcesscommand=cmd.exe
▶RevFind-EDI-TransformAndParseEDIsub-job · 5↗
- EDITransformsql
revfind_edi_transformandparseedi__editransform.sql✨ Loads unique EDI messages from staging into the transformation table while preventing duplicate records.writesEDITransform· readsEDIFileStagingEDITransform - EDIBatchsql
revfind_edi_transformandparseedi__edibatch.sql✨ Builds a batch of unprocessed EDI messages, excluding empty records, for subsequent parsing and transformation.writesEDIBatch - Clean EDIBatch (for bug w EDIFabric)sql
revfind_edi_transformandparseedi__clean_edibatch_for_bug_w_edifabric.sqldisabled✨ Updates EDI message formatting by replacing specific delimiters to ensure compatibility with the parsing engine.· readsEDIBatch - EDIParserEDIParserwrites
EDIBatchtable name=EDIBatch ▶RevFind-EDI-LoadMetadatasub-job · 4↗
- Load EDIFacilityMapsql
revfind_edi_loadmetadata__load_edifacilitymap.sql✨ Loads the facility map with unique billing and service facility details extracted from electronic claim transactions.writesEDIFacilityMap· readsEDIFacilityMapTxn837P - Load EDIProviderMapsql
revfind_edi_loadmetadata__load_ediprovidermap.sqldisabled✨ Builds the provider map by combining rendering provider information from claim transactions with national provider registry data.writesEDIProviderMap· readsEDIProviderMapNPIDataTxn837P - Load EDIPayerMapsql
revfind_edi_loadmetadata__load_edipayermap.sql✨ Builds a mapping table of payer names and filing indicators from electronic remittance transactions to standardize payer metadata.writesEDIPayerMap· readsTxn835Txn835ClaimPayment - ExecuteMergeSql-EDIProviderMapExecuteMergeSql-EDIProviderMapwrites
EDIProviderMap· readsEDIProviderMapTxn837ITxn837Pmerge data source type=ThisDatabasetable name=EDIProviderMapmerge mode=InsertUpdatebulk copy timeout seconds=300bulk copy use table lock
▶RevFind-Load-Transform-EDIDatasub-job · 18↗
- Load RemitDeltasql
revfind_load_transform_edidata__load_remitdelta.sql✨ Identifies recently processed or updated electronic remittance claims to determine which records require incremental transformation and loading.writesRemitDelta· readsEDIFilesProcessedRemitDeltaTransformRemitTxn835Txn835ClaimPayment↳ feeds from Load TempRemitCOB, Load TransformRemit - Load TransformRemitsql
revfind_load_transform_edidata__load_transformremit.sql✨ Extracts and transforms electronic remittance advice data from raw transaction files into a structured format for processing.writesTransformRemit· readsTxn835Txn835ClaimPaymentTxn835ClaimPaymentLineTxn835ClaimPaymentOtherClaimAmount - Load TransformRemitEncounterMapsql
revfind_load_transform_edidata__load_transformremitencountermap.sqldisabled✨ Maps remittance claim identifiers to internal account records to link insurance payments with specific patient encounters.writesTransformRemitEncounterMap· readsTransformRemitEncounterMap - Update TransformRemitEncounterMapsql
revfind_load_transform_edidata__update_transformremitencountermap.sqldisabled✨ Updates remittance mapping records with patient account identifiers by matching service dates and charge IDs at the line level.· readsTransformChargeTransformRemitEncounterMapTransformRemitLinerem - Load TempRemitCOB (old)sql
revfind_load_transform_edidata__load_tempremitcob_old.sqldisabled✨ Builds a temporary table to determine claim status, member IDs, and coordination of benefits order for remittance data. - Load TempRemitCOBsql
revfind_load_transform_edidata__load_tempremitcob.sql✨ Determines the coordination of benefits order and current claim status by analyzing historical remittance and adjustment data.writesTempRemitCOBTransformRemit· readsTempRemitCOBTransformRemitTransformRemitAdjustment↳ feeds from Load TransformRemit, Load TransformRemitAdjustment - Load TransformRemitAdjustmentsql
revfind_load_transform_edidata__load_transformremitadjustment.sql✨ Loads claim and line-level adjustments by unpivoting reason codes and amounts from electronic remittance advice transactions.writesTransformRemitAdjustment· readsTransformRemitTxn835ClaimAdjustment↳ feeds from Load TempRemitCOB, Load TransformRemit - Load TransformRemitLinesql
revfind_load_transform_edidata__load_transformremitline.sql✨ Loads detailed remittance line items, mapping procedure codes, service dates, and payment amounts from electronic remittance advice.writesTransformRemitLine· readsTransformRemitTxn835ClaimPaymentLine↳ feeds from Load TempRemitCOB, Load TransformRemit - Load TransformTxn837sql
revfind_load_transform_edidata__load_transformtxn837.sql✨ Consolidates and transforms professional and institutional claim submission data into a unified format for billing tracking.writesTransformTxn837· readsTxn837ITxn837IServiceLineTxn837PTxn837PServiceLine - Load TransformTxn837Linesql
revfind_load_transform_edidata__load_transformtxn837line.sql✨ Builds a unified table of professional and institutional claim service lines, extracting procedure codes, charges, and provider details.writesTransformTxn837Line· readsTransformTxn837Txn837ITxn837IServiceLineTxn837PServiceLine↳ feeds from Load TransformTxn837 - Load TransformAccountsql
revfind_load_transform_edidata__load_transformaccount.sql✨ Loads account-level records by mapping claim data to patients, providers, and insurance payers using the latest claim versions.writesTransformAccount· readsEDIFacilityMapTransformTxn837↳ feeds from Load TransformTxn837 - Load TransformChargesql
revfind_load_transform_edidata__load_transformcharge.sql✨ Transforms claim service lines into individual charge records linked to accounts, capturing procedure codes, units, and financial amounts.writesTransformCharge· readsTransformAccountTransformTxn837TransformTxn837Line↳ feeds from Load TransformAccount, Load TransformTxn837, Load TransformTxn837Line - Load TransformChargeFamilyPoolsql
revfind_load_transform_edidata__load_transformchargefamilypool.sql✨ Maps historical claim service lines to their latest charge versions to establish a consistent charge family for longitudinal tracking.writesTransformChargeFamilyPool· readsTransformChargeTransformChargeFamilyPoolTransformTxn837TransformTxn837Line↳ feeds from Load TransformCharge, Load TransformTxn837, Load TransformTxn837Line - Load TransformPatientMergeSqlwrites
TransformPatient· readsTransformAccountTransformTxn837↳ feeds from Load TransformAccount, Load TransformTxn837merge data source type=ThisDatabasetable name=TransformPatientmerge mode=InsertUpdatebulk copy timeout seconds=300bulk copy use table lock - Load TransformRemitAccountMapsql
revfind_load_transform_edidata__load_transformremitaccountmap.sql✨ Matches remittance advice records to patient accounts using tiered logic based on identifiers like Tax ID and service dates.writesTransformRemitAccountMap· readsTransformAccountTransformRemit↳ feeds from Load TempRemitCOB, Load TransformAccount, Load TransformRemit - Load TransformRemitTransactionssql
revfind_load_transform_edidata__load_transformremittransactions.sql✨ Consolidates remittance payments and adjustments into a single transaction table, categorizing reason codes for financial reporting and analysis.writesTransformRemitTransactions· readsAdjustmentCodeRollupTransformRemitTransformRemitAdjustmentTransformRemitLine↳ feeds from Load TempRemitCOB, Load TransformRemit, Load TransformRemitAdjustment, Load TransformRemitLine - Load TransformChargeRemitMatchsql
revfind_load_transform_edidata__load_transformchargeremitmatch.sql✨ Matches normalized remittance service lines to specific charges within the charge family pool using tiered logic and procedure codes.writesTransformChargeRemitMatch· readsTransformChargeFamilyPoolTransformChargeRemitMatchTransformRemitTransformRemitAccountMapTransformRemitLine↳ feeds from Load TempRemitCOB, Load TransformChargeFamilyPool, Load TransformRemit, Load TransformRemitAccountMap, Load TransformRemitLine - Load TransformAccountRemitsql
revfind_load_transform_edidata__load_transformaccountremit.sql✨ Links remittance transactions to specific charges or accounts, providing a detailed view of payments and adjustments at the charge level.writesTransformAccountRemit· readsTransformAccountRemitTransformChargeRemitMatchTransformRemitAccountMapTransformRemitTransactions↳ feeds from Load TransformChargeRemitMatch, Load TransformRemitAccountMap, Load TransformRemitTransactions
▶Load-Entitiessub-job · 2↗Load Facility, Provider
- Load FacilityLoadEntitieswrites
Facility· readsEDIFacilityMapFacilityentity type=Facilitycustom querykey prefix=F - Load ProviderMergeSqlwrites
Provider· readsEDIProviderMapProviderProviderTaxonomysql file=sql/load_entities__load_provider.sqlmerge data source type=ThisDatabasetable name=Providermerge mode=InsertUpdatebulk copy timeout seconds=300
▶Load-Charge-Dimensionsub-job · 1↗
- ExecuteMergeSqlExecuteMergeSqlSynchronizes data from external sources into target tables by performing batched insert, update, and delete operations based on keys.writes
ChargeType· readsProcedureCodeTransformTxn837TransformTxn837Linemerge data source type=ThisDatabasetable name=ChargeTypemerge mode=InsertUpdatebulk copy timeout seconds=300bulk copy use table lock
▶Load-InsuranceMapsub-job · 1↗
- LoadEntitiesFromQueryLoadEntitiesFromQueryLoad or update entity records from custom SQL query results into their corresponding system tables using intelligent merge logic.writes
InsuranceMap· readsInsuranceMapTransformTxn837entity type=InsuranceMapcustom querykey prefix=IM
▶Load-Dimension-Memberssub-job · 20↗
- Synchronize insurance-specific dimension members from the insurance table to update contract and eligibility filtering options across the application.writes
DimensionMemberload insuranceload quote insuranceload eligibility insuranceDISABLED - Load Time Dimensionssql
load_dimension_members__load_time_dimensions.sql✨ Populates the time dimension table with day, month, and year members to support temporal reporting and analysis.writesDimensionMember· readsTransformAccount - Load ChargeType Dimensionsql
load_dimension_members__load_chargetype_dimension.sqldisabled✨ Loads appointment status values into the visit status dimension to track patient encounter progress.writesDimensionMember· readsTransformVisit - Load DenialCategory Dimensionsql
load_dimension_members__load_denialcategory_dimension.sql✨ Loads denial category dimensions from adjustment code rollup data to categorize claim denials.writesDimensionMember· readsAdjustmentCodeRollup - Load Provider + ProviderType Dimensionssql
load_dimension_members__load_provider_providertype_dimensions.sql✨ Synchronizes provider and provider type dimensions by mapping individual providers to their respective specialty or classification categories.writesDimensionMember· readsDimensionMemberProvider↳ feeds from Load AllowedStatus Dimension, Load ChargeType Dim, Load DenialCategory Dimension, Load DiagnosisCode Dimension, Load Facility + FacilityGroup Dimensions, Load FacilityType Dimensions, Load PlaceOfService Dimensions, Load ProcedureCode Dim, Load ProcedureModifier Dim, Load RevenueCode Dim, Load State Dimension, Load Time Dimensions, Load-Source-Insurance-Dimension, LoadDimensionMembers - Load Facility + FacilityGroup Dimensionssql
load_dimension_members__load_facility_facilitygroup_dimensions.sql✨ Updates facility and facility group dimensions to organize locations within their parent organizational structures for reporting.writesDimensionMember· readsDimensionMemberFacility↳ feeds from Load AllowedStatus Dimension, Load ChargeType Dim, Load DenialCategory Dimension, Load DiagnosisCode Dimension, Load FacilityType Dimensions, Load PlaceOfService Dimensions, Load ProcedureCode Dim, Load ProcedureModifier Dim, Load Provider + ProviderType Dimensions, Load RevenueCode Dim, Load State Dimension, Load Time Dimensions, Load-Source-Insurance-Dimension, LoadDimensionMembers - Load FacilityType Dimensionssql
load_dimension_members__load_facilitytype_dimensions.sql✨ Loads unique facility types into the dimension table to categorize locations by their specific service or operational model.writesDimensionMember· readsFacility - Load Practice Dimensionssql
load_dimension_members__load_practice_dimensions.sqldisabled✨ Loads practice dimension members from the practice map for entities that have associated encounter records.writesDimensionMember· readsPracticeMapsourceencounter - Load PlaceOfService Dimensionssql
load_dimension_members__load_placeofservice_dimensions.sql✨ Loads the place of service dimension by synchronizing standardized facility codes and names from common reference data.writesDimensionMember· readsPOSCodes - Load VisitType Dimensionssql
load_dimension_members__load_visittype_dimensions.sqldisabled✨ Loads and synchronizes visit type dimensions from event mapping data while removing entries no longer present in the source.writesDimensionMember· readsSourceEventTransformEventMap - Load AccountStatus Dimensionsql
load_dimension_members__load_accountstatus_dimension.sqldisabled✨ Updates account status dimensions using encounter status information to track the lifecycle of patient accounts.writesDimensionMember· readsSourceEncounter - Load AllowedStatus Dimensionsql
load_dimension_members__load_allowedstatus_dimension.sql✨ Builds allowed status dimensions to categorize how actual payments compare to expected insurance contract rates.writesDimensionMember - Load DiagnosisCode Dimensionsql
load_dimension_members__load_diagnosiscode_dimension.sql✨ Builds diagnosis code dimensions by extracting codes from account charges and mapping them to standardized medical categories.writesDimensionMember· readsAccountChargeDimensionMember↳ feeds from Load AllowedStatus Dimension, Load ChargeType Dim, Load DenialCategory Dimension, Load Facility + FacilityGroup Dimensions, Load FacilityType Dimensions, Load PlaceOfService Dimensions, Load ProcedureCode Dim, Load ProcedureModifier Dim, Load Provider + ProviderType Dimensions, Load RevenueCode Dim, Load State Dimension, Load Time Dimensions, Load-Source-Insurance-Dimension, LoadDimensionMembers - Load-Source-Insurance-Dimensionsql
load_dimension_members__load_source_insurance_dimension.sql✨ Updates the insurance dimension table with source insurance names and identifiers from EDI data for reporting.writesDimensionMember· readsAccountInsuranceInsuranceMap - Load State Dimensionsql
load_dimension_members__load_state_dimension.sql✨ Updates state dimensions using facility location data to allow for geographic segmentation of healthcare services and revenue.writesDimensionMember· readsFacility - LoadDimensionMembersLoadDimensionMembersSynchronize facility, provider, and insurance metadata into the dimension member table to refresh dashboard filters and reporting categories.writes
DimensionMemberload insuranceload quote insuranceload eligibility insuranceload facilityload provider - Load ChargeType DimMergeSqlwrites
DimensionMember· readsChargeTypemerge data source type=ThisDatabasetable name=DimensionMembermerge mode=InsertUpdatebulk copy timeout seconds=300bulk copy use table lock - Load ProcedureCode DimMergeSqlwrites
DimensionMember· readsChargeTypemerge data source type=ThisDatabasetable name=DimensionMembermerge mode=InsertUpdatebulk copy timeout seconds=300bulk copy use table lock - Load ProcedureModifier DimMergeSqlwrites
DimensionMember· readsAccountChargeProcedureModifiermerge data source type=ThisDatabasetable name=DimensionMembermerge mode=InsertUpdatebulk copy timeout seconds=300bulk copy use table lock - Load RevenueCode DimMergeSqlwrites
DimensionMember· readsTransformChargemerge data source type=ThisDatabasetable name=DimensionMembermerge mode=InsertUpdatebulk copy timeout seconds=300bulk copy use table lock
▶RevFind-Load-Account-Datasub-job · 9↗Load Account-Level Tables
- ReprocessChangedConfigurationsReprocessChangedConfigurationsIdentify and queue visits or accounts affected by configuration changes to ensure historical data reflects updated pricing or insurance rules.reprocess accounts
- LoadPatientsLoadPatientsUpsert patient records into the patient dimension.· reads
PatientTransformPatientcustom patient query - Load ChargeMeasuressql
revfind_load_account_data__load_chargemeasures.sql✨ Aggregates remittance activity by charge to calculate paid, denied, and allowed amounts for financial analysis.writesChargeMeasures· readsTransformAccountRemitTransformCharge - LoadAccountDataLoadAccountDataImports historical billing data from external systems into core account tables while preserving manual user modifications and application fields.· reads
AccountChargeChargeMeasuresChargeTypeFacilityInsuranceMapPatientProviderTransformAccount↳ feeds from Load ChargeMeasurescustom account charge queryauto account querycustom account remit querycustom account insurance query - Synchronizes processed data from batch staging tables to production tables, updating visits, quotes, and custom property mappings.writes
CustomPropertyMap· readsCustomPropertyMapBatchsync custom property mapDISABLED ▶Score-Accountssub-job · 3↗
- Rescore Profee AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatch - Rescore Accounts FacilityBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchincremental - Medicare ScenarioBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchscenario insurance=Medicareincremental
- Load AccountDetailsql
revfind_load_account_data__load_accountdetail.sqldisabled✨ Builds a comprehensive account summary table by combining patient, insurance, and financial data for detailed encounter reporting.writesAccountDetail· readsAccountAccountChargeAccountDeltaAccountEstimateDimensionMemberPatientSourceEncounterInsuranceSourcePayer - Load AccountChargeDetailsql
revfind_load_account_data__load_accountchargedetail.sqldisabled✨ Loads granular charge-level details including procedure codes, modifiers, and payment metrics for individual service line analysis.writesAccountChargeDetail· readsAccountAccountChargeAccountDeltaAccountEstimateCalculationAccountEstimateChargeDimensionMemberPatientSourceEncounterInsurance
- WorkqueueAssignmentWorkqueueAssignmentAssigns accounts or visits to workqueue stacks by evaluating matching criteria and updating item lists based on search terms.