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-Account-Data
21 tasks · MNEye
sub-job / Flow action SQL / native step▶ expand a sub-job inline · ↗ open it as its own page · a typed step opens its doc
- Create EncounterDeltasql
load_account_data__create_encounterdelta.sql✨ Identifies and captures recent encounter changes into a delta table for incremental processing across specific practice locations.writesEncounterDelta - Load SourceEncounterMapsql
load_account_data__load_sourceencountermap.sql✨ Updates the source encounter mapping table by replacing records for recently changed encounters identified in the delta step.writesSourceEncounterMap· readsEncounterDeltaSourceEncounters↳ feeds from Create EncounterDelta - Load SourceAccountChargesql
load_account_data__load_sourceaccountcharge.sql✨ Loads and updates detailed charge information for recent encounters, including codes, balances, and provider assignments.writesSourceAccountCharge· readsChargeTypeEncounterDeltaProviderSourceChargeMasterSourceChargesSourceEncounters↳ feeds from Create EncounterDelta - Load SourceTransactionPaymentsAdjustmentssql
load_account_data__load_sourcetransactionpaymentsadjustments.sql✨ Loads and categorizes posted transaction payments, adjustments, and refunds from source detail records for specific encounters.writesSourceTransactionPaymentsAdjustments· readsEncounterDeltaSourceAccountChargeSourceChargesSourceEncountersSourceTransactionDetail↳ feeds from Create EncounterDelta, Load SourceAccountCharge - Load SourceRemitAdjustmentsql
load_account_data__load_sourceremitadjustment.sql✨ Loads posted remittance adjustments and maps reason codes to standardized adjustment types and categories for encounter tracking.writesSourceRemitAdjustment· readsAdjustmentCodeMapMNEncounterDeltaSourceAccountChargeSourceAdjustmentsSourceChargesSourceEncounters↳ feeds from Create EncounterDelta, Load SourceAccountCharge - Load SourceRemitsql
load_account_data__load_sourceremit.sql✨ Consolidates remittance data from adjustments and transaction payments into a unified table for comprehensive payment tracking.writesSourceRemit· readsEncounterDeltaSourceRemitAdjustmentSourceTransactionPaymentsAdjustments↳ feeds from Create EncounterDelta, Load SourceRemitAdjustment, Load SourceTransactionPaymentsAdjustments - Create TempZeroBalanceDatesql
load_account_data__create_tempzerobalancedate.sqldisabled✨ Identifies the earliest date each encounter reached a zero balance by calculating cumulative transaction totals against total charges.writesTempTransactionsSummaryTempZeroBalanceDate· readsTempTransactionsSummary - Load SourceRemitOrdersql
load_account_data__load_sourceremitorder.sql✨ Sequences remittance records chronologically and flags their status relative to the encounter's zero balance date. - Load SourcePatientResponsibilityChargessql
load_account_data__load_sourcepatientresponsibilitycharges.sql✨ Identifies and loads charges where the patient is designated as the responsible party for payment. - Load SourceRemitAdjustmentAggregatesql
load_account_data__load_sourceremitadjustmentaggregate.sql✨ Aggregates remittance adjustment amounts by type, including contractals and denials, for each charge and payer combination.writesSourceRemitAdjustmentAggregate· readsEncounterDeltaSourceRemitAdjustmentSourceRemitOrder↳ feeds from Create EncounterDelta, Load SourceRemitAdjustment - Load SourceChargeTransactionMeasuressql
load_account_data__load_sourcechargetransactionmeasures.sql✨ Calculates total financial measures for charges, including payments, refunds, and bad debt transfers, grouped by payer and source.writesSourceChargeTransactionMeasures· readsEncounterDeltaSourceEncountersSourceTransactionPaymentsAdjustments↳ feeds from Create EncounterDelta, Load SourceTransactionPaymentsAdjustments - LoadAccountDataLoadAccountDataImports historical billing data from external systems into core account tables while preserving manual user modifications and application fields.· reads
AccountChargeEncounterDeltaFacilityPatientSourceAccountChargeSourceAdjustmentsSourceCarrierMapSourceChargeTransactionMeasures↳ feeds from Create EncounterDelta, Load SourceAccountCharge, Load SourceChargeTransactionMeasures, Load SourceRemit, Load SourceRemitAdjustmentAggregatecustom account charge querycustom account querycustom account remit querycustom account insurance query - Load AccountTransactionsql
load_account_data__load_accounttransaction.sql✨ Loads and categorizes financial transactions, including payments and adjustments, for updated patient accounts.writesAccountTransaction· readsAccountEncounterDeltaSourceTransactionPaymentsAdjustments↳ feeds from Create EncounterDelta, Load SourceTransactionPaymentsAdjustments - Load AccountAdjustmentsql
load_account_data__load_accountadjustment.sql✨ Updates detailed insurance and patient adjustment records, incorporating remittance data and payer information for processed healthcare encounters.writesAccountAdjustment· readsEncounterDeltaSourceEncounterInsuranceSourceRemitAdjustmentSourceRemitOrder↳ feeds from Create EncounterDelta, Load SourceRemitAdjustment ▶Score-Accountssub-job · 19↗
- Score Medicare AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2016-01-01incrementalupdate dimensions - Score AARP Senior Plan AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2018-01-01incrementalupdate dimensions - Score Aetna AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2016-01-01incrementalupdate dimensions - Score Aetna Allina AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2024-08-01incrementalupdate dimensions - Score BIND AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2018-09-01incrementalupdate dimensions - Score BCBS AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2016-07-01incrementalupdate dimensions - Score Blue Cross Medicare AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2016-01-01incrementalupdate dimensions - Score Blue Cross MSHO AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2016-01-01incrementalupdate dimensions - Score GEHA AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2018-09-01incrementalupdate dimensions - Score HP AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2016-01-01incrementalupdate dimensions - Score Medica AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2016-01-01incrementalupdate dimensions - Score PreferredOne AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2016-01-01incrementalupdate dimensions - Score SelectCare/LaborCare AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2016-01-01incrementalupdate dimensions - Score Surest AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2018-09-01incrementalupdate dimensions - Score UCare Ind Family PlanBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2019-01-01incrementalupdate dimensions - Score UCare Seniors and MSHO AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2016-01-01incrementalupdate dimensions - Score UHC/UMR AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2018-09-01incrementalupdate dimensions - Score Old UHC pointing to SelectCare/LaborCareBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2016-01-01max service date=2018-08-31incrementalupdate dimensions - Score First Health AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2023-03-01incrementalupdate dimensions
▶Score-Accounts-Medicare-Scenariosub-job · 2↗Consolidated to a single task! We are currently running this for all Insurances / all Facilities 2023*-forward. No reason it couldn't just be a single task. * Updated from a MinServiceDate of [date] to [date] as the result of ZD ticket #14587. ** Updated to query to score all acc
- Score All Accounts Against Medicare ScenarioBatchProcessAccountsdisabledwrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2023-01-01scenario insurance=MedicareincrementalDISABLED - Score All Accounts against ScenarioProcessAccountDataFromQuery· reads
AccountEncounterDeltacustom queryscenario insurance=Medicare
▶Score-Accounts-Medicare-Proposed-Scenariosub-job · 17↗
- Score Medicare AccountsBatchProcessAccountsdisabledwrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2016-01-01scenario insurance=Proposed Medicareincrementalupdate dimensionsDISABLED - Score AARP Senior Plan Accounts Medicare ScenarioProcessAccountDataFromQuery· reads
AccountEncounterDeltacustom queryscenario insurance=Proposed Medicare - Score Aetna Accounts Medicare ScenarioProcessAccountDataFromQuery· reads
AccountEncounterDeltacustom queryscenario insurance=Proposed Medicare - Score BIND Accounts Medicare ScenarioProcessAccountDataFromQuery· reads
AccountEncounterDeltacustom queryscenario insurance=Proposed Medicare - Score BCBS Accounts Medicare ScenarioProcessAccountDataFromQuery· reads
AccountEncounterDeltacustom queryscenario insurance=Proposed Medicare - Score Blue Cross Medicare Accounts Medicare ScenarioProcessAccountDataFromQuery· reads
AccountEncounterDeltacustom queryscenario insurance=Proposed Medicare - Score Blue Cross MSHO Accounts Medicare ScenarioProcessAccountDataFromQuery· reads
AccountEncounterDeltacustom queryscenario insurance=Proposed Medicare - Score GEHA Accounts Medicare ScenarioProcessAccountDataFromQuery· reads
AccountEncounterDeltacustom queryscenario insurance=Proposed Medicare - Score HP Accounts Medicare ScenarioProcessAccountDataFromQuery· reads
AccountEncounterDeltacustom queryscenario insurance=Proposed Medicare - Score Medica Accounts Medicare ScenarioProcessAccountDataFromQuery· reads
AccountEncounterDeltacustom queryscenario insurance=Proposed Medicare - Score PreferredOne Accounts Medicare ScenarioProcessAccountDataFromQuery· reads
AccountEncounterDeltacustom queryscenario insurance=Proposed Medicare - Score SelectCare/LaborCare Accounts Medicare ScenarioProcessAccountDataFromQuery· reads
AccountEncounterDeltacustom queryscenario insurance=Proposed Medicare - Score UCare Ind Family Plan Medicare ScenarioProcessAccountDataFromQuery· reads
AccountEncounterDeltacustom queryscenario insurance=Proposed Medicare - Score UCare Seniors and MSHO Accounts Medicare ScenarioProcessAccountDataFromQuery· reads
AccountEncounterDeltacustom queryscenario insurance=Proposed Medicare - Score UHC/UMR Accounts Medicare ScenarioProcessAccountDataFromQuery· reads
AccountEncounterDeltacustom queryscenario insurance=Proposed Medicare - Score Old UHC pointing to SelectCare/LaborCare Medicare ScenarioProcessAccountDataFromQuery· reads
AccountEncounterDeltacustom queryscenario insurance=Proposed Medicare - Score Non-Quote Insurance Accounts Medicare Scenario 2021-ForwardProcessAccountDataFromQuery· reads
AccountDimensionMemberEncounterDeltaInsurancecustom queryscenario insurance=Proposed Medicare
- Create TempEncounterEventMapsql
load_account_data__create_tempencountereventmap.sql✨ Builds a temporary mapping of patient appointments to encounters to prioritize and sequence clinical events for reporting.writesTempEncounterEventMap - Load AccountDetailsql
load_account_data__load_accountdetail.sql✨ Populates comprehensive encounter-level details, including insurance balances, provider information, and clinical metadata for updated patient accounts. - Load AccountChargeDetailsql
load_account_data__load_accountchargedetail.sql✨ Loads granular charge-level data, including procedure codes, modifiers, and calculated patient liability for individual healthcare services.writesAccountChargeDetail· readsAccountChargeAccountEstimateChargeEncounterDeltaPOSCodesSourceAccountChargeSourceChargeTransactionMeasuresSourceEncountersSourcePatientResponsibilityCharges↳ feeds from Create EncounterDelta, Load SourceAccountCharge, Load SourceChargeTransactionMeasures, Load SourceRemitAdjustmentAggregate - Load AccountLoadHistorysql
load_account_data__load_accountloadhistory.sql✨ Records a timestamped log of the total number of accounts processed during each data pipeline execution.writesAccountLoadHistory· readsEncounterDelta↳ feeds from Create EncounterDelta