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-Transform-Tables
9 tasks · CCP
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 AccountDeltasql
load_account_transform_tables__load_accountdelta.sql✨ Builds a list of account identifiers from the import log to track records requiring transformation in the current pipeline run.writesAccountDelta· readsAccountDelta - Load TransformPatientsql
load_account_transform_tables__load_transformpatient.sql✨ Updates or inserts patient demographic information, including names, contact details, and addresses, from source data into the transformed patient table.writesTransformPatient· readsSourcePatient - Load TransformInvoiceChainsql
load_account_transform_tables__load_transforminvoicechain.sql✨ Builds a historical chain of invoice relationships for specific accounts, identifying current, cloned, and rebilled charge headers.writesTransformInvoiceChain· readsAccountDeltaSourceChargeHeader↳ feeds from Load AccountDelta - Load TransformAccountsql
load_account_transform_tables__load_transformaccount.sql✨ Consolidates account-level details, including facility, patient, and primary insurance information, for records identified in the current processing delta.writesTransformAccount· readsAccountDeltaSourceInsuranceSourceLocationSourceLogBookSourceLogDetailSourcePatBillingTransformInvoiceChain↳ feeds from Load AccountDelta, Load TransformInvoiceChain - Load TransformChargesql
load_account_transform_tables__load_transformcharge.sql✨ Loads detailed service charge information, including procedure codes, modifiers, and payment balances, for accounts requiring updates.writesTransformCharge· readsAccountDeltaSourceChargeDetailSourceChargeHeaderSourceInsuranceSourcePatBillingTransformInvoiceChain↳ feeds from Load AccountDelta, Load TransformInvoiceChain - Load TransformTransactionsql
load_account_transform_tables__load_transformtransaction.sql✨ Records financial transactions, such as payments and adjustments, while establishing chronological posting orders for each account's billing history.writesTransformTransaction· readsAccountDeltaSourceARDetailSourceARHeaderSourceInsuranceSourcePatBilling↳ feeds from Load AccountDelta - Load TransformRemitAdjustmentsql
load_account_transform_tables__load_transformremitadjustment.sql✨ Loads insurance remittance adjustments and denial codes from electronic advice, linking them to specific charges and invoice chains.writesTransformRemitAdjustment· readsAccountDeltaAdjustmentCodeRollupSourceARHeaderSourceERAAdjustmentSourceInsuranceSourcePatBillingTransformAccountTransformInvoiceChain↳ feeds from Load AccountDelta, Load TransformAccount, Load TransformInvoiceChain - Load TransformRemitAdjustmentAggsql
load_account_transform_tables__load_transformremitadjustmentagg.sql✨ Aggregates insurance denial data by category and amount to summarize initial and final remittance adjustments for each account.writesTransformRemitAdjustmentAgg· readsAccountDeltaTransformRemitAdjustment↳ feeds from Load AccountDelta, Load TransformRemitAdjustment - Load TransformChargeTransactionMeasuresql
load_account_transform_tables__load_transformchargetransactionmeasure.sql✨ Builds financial measures for charges, including payments, adjustments, and denials, while mapping coordination of benefits and denial categories.writesTransformChargeTransactionMeasure· readsAccountDeltaTransformAccountTransformChargeTransformInvoiceChainTransformRemitAdjustmentAggTransformTransaction↳ feeds from Load AccountDelta, Load TransformAccount, Load TransformCharge, Load TransformInvoiceChain, Load TransformRemitAdjustmentAgg, Load TransformTransaction