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
12 tasks · Commonwealth
sub-job / Flow action SQL / native step▶ expand a sub-job inline · ↗ open it as its own page · a typed step opens its doc
- Check AccountDeltasql
load_account_transform_tables__check_accountdelta.sql✨ Ensures the account delta table exists with the correct schema, including necessary columns and indexes for tracking changed records.· readsAccountDelta↳ feeds from Create AccountDelta - Create AccountDeltasql
load_account_transform_tables__create_accountdelta.sql✨ Identifies and loads accounts, encounters, and claims updated since the last pipeline execution into the delta table.writesAccountDelta· readsProcessLogSourceAppointmentSourceClaimSourceClinicalEncounterSourceERADetailSourcePatientInsuranceSourceTransaction - Load TransformTransaction - Updated for Claims sans Visitssql
load_account_transform_tables__load_transformtransaction_updated_for_claims_sans_visits.sql✨ Standardizes and loads financial transaction data, including payments and adjustments, for updated accounts into the transaction transformation table.writesTransformTransaction· readsAccountDeltaSourceClaimSourcePatientInsuranceSourceTransactionsourceclaimnote↳ feeds from Create AccountDelta - Load TransformRemitAdjustment - Updated for Claims sans Visitssql
load_account_transform_tables__load_transformremitadjustment_updated_for_claims_sans_visits.sql✨ Processes and loads remittance adjustment details, including denial categories and group codes, from electronic remittance advice into the transformation table.writesTransformRemitAdjustment· readsAccountDeltaAdjustmentCodeRollupSourceClaimSourceERABatchSourceERADetailSourceERAKickSourceERARecordSourcePatientInsurance↳ feeds from Create AccountDelta - Load TransformCharge - Updated for Claims sans Visitssql
load_account_transform_tables__load_transformcharge_updated_for_claims_sans_visits.sql✨ Transforms and loads charge-level details, including procedure codes, modifiers, and diagnosis information, for updated accounts into the charge table.writesTransformCharge· readsAccountDeltaSourceClaimSourceDepartmentSourceTimesheetEntryTransactionSourceTransactionSourceTransactionCharge↳ feeds from Create AccountDelta - Load TransformAccount - Updated for Claims sans Visitssql
load_account_transform_tables__load_transformaccount_updated_for_claims_sans_visits.sql✨ Builds unified account records by merging clinical encounter and billing claim data for comprehensive financial tracking.writesTransformAccount· readsAccountDeltaSourceClaimSourceClinicalEncounterSourceDepartmentSourcePatientInsuranceSourceProvider↳ feeds from Create AccountDelta - Load TransformRemitAdjustmentAggregatesql
load_account_transform_tables__load_transformremitadjustmentaggregate.sql✨ Aggregates insurance remittance adjustments and denial categories to summarize payment impacts at the encounter level.writesTransformRemitAdjustmentAggregate· readsAccountDeltaTransformChargeTransformRemitAdjustment↳ feeds from Create AccountDelta, Load TransformCharge - Updated for Claims sans Visits, Load TransformRemitAdjustment - Updated for Claims sans Visits - Load TransformChargeTransactionMeasuressql
load_account_transform_tables__load_transformchargetransactionmeasures.sql✨ Calculates total financial measures per charge, including payments, adjustments, and denials, for detailed revenue analysis.writesTransformChargeTransactionMeasure· readsAccountDeltaTransformChargeTransformRemitAdjustmentAggregateTransformTransaction↳ feeds from Create AccountDelta, Load TransformCharge - Updated for Claims sans Visits, Load TransformRemitAdjustmentAggregate, Load TransformTransaction - Updated for Claims sans Visits - Load TransformPatientsql
load_account_transform_tables__load_transformpatient.sqldisabled✨ Updates and maintains patient demographic information in the transformation layer to ensure accurate patient identification.writesTransformPatient· readsSourcePatient - ExecuteMergeSql (TransformPatient)MergeSqlwrites
TransformPatient· readsSourcePatientmerge data source type=ThisDatabasetable name=TransformPatientmerge mode=InsertUpdatebulk copy timeout seconds=300bulk copy use table lock - Load TransformPatientInsurancesql
load_account_transform_tables__load_transformpatientinsurance.sqldisabled✨ Manages patient insurance coverage records, updating active policies and removing expired or cancelled insurance information.writesTransformPatientInsurance· readsInsuranceMapSourcePatientInsuranceSourcePayer - ExecuteMergeSql (TransformPatientInsurance)MergeSqlwrites
TransformPatientInsurance· readsInsuranceMapSourcePatientInsuranceSourcePayermerge data source type=ThisDatabasetable name=TransformPatientInsurancemerge mode=InsertUpdatebulk copy timeout seconds=300bulk copy use table lock