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
11 tasks · OrthoAlliance
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 AccountChargesql
load_account_data__load_accountcharge.sql✨ Calculates financial metrics for individual charges and loads detailed charge records for accounts identified in the current delta.writesAccountChargeChargeMeasures· readsAccountDeltaChargeMeasuresChargeTypePatientProviderTransformAccountTransformCharge - Load Accountsql
load_account_data__load_account.sql✨ Aggregates financial totals and denial categories to build account-level records, including insurance mapping and age-based plan logic.writesAccount· readsAccountChargeAccountDeltaAccountDetailInsuranceMapPatientSourceEncounterInsuranceTransformAccountTransformChargeTransactionMeasure↳ feeds from Load AccountCharge, Load AccountDetail - Load AccountRemitsql
load_account_data__load_accountremit.sql✨ Consolidates insurance remittance advice and posted transaction details into a unified table for account-level payment and adjustment tracking.writesAccountRemit· readsAccountDeltaSourcePayerTransformChargeTransformRemitAdjustmentTransformTransaction ▶Load-Dimension-Memberssub-job · 19↗
- Load Insurance Dimensionsql
load_dimension_members__load_insurance_dimension.sql✨ Loads the insurance dimension with unique insurance keys and a placeholder for unmapped records to support payer-level analysis.writesDimensionMember· readsInsurance - Load EligibilityInsurance Dimensionsql
load_dimension_members__load_eligibilityinsurance_dimension.sql✨ Loads insurance members that support electronic eligibility and benefits verification via API integration.writesDimensionMember· readsDimensionMemberInsurance↳ feeds from Load AllowedStatus Dimension, Load DenialCategory Dimension, Load DiagnosisCode Dimension, Load Facility Dimensions, Load FacilityGroup Dimensions, Load FacilityType Dimensions, Load Insurance Dimension, Load Modifier Dimension, Load PlaceOfService Dimensions, Load Provider Dimension, Load ProviderType Dimension, Load QuoteInsurance Dimension, Load State Dimension, Load Time Dimensions, Load VisitStatus Dimension, Load VisitType Dimensions - Load QuoteInsurance Dimensionsql
load_dimension_members__load_quoteinsurance_dimension.sql✨ Builds a dimension of insurance providers associated with active contracts to facilitate accurate patient cost estimates.writesDimensionMember· readsContractMapInsurance - Load Time Dimensionssql
load_dimension_members__load_time_dimensions.sql✨ Builds time-based dimension members for days, months, and years to support temporal reporting across the pipeline.writesDimensionMember· readsTransformVisit - Load VisitStatus Dimensionsql
load_dimension_members__load_visitstatus_dimension.sql✨ 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 Dimensionsql
load_dimension_members__load_provider_dimension.sql✨ Loads provider dimension members and their classifications into the central dimension table for reporting and filtering.writesDimensionMember· readsProvider - Load ProviderType Dimensionsql
load_dimension_members__load_providertype_dimension.sql✨ Builds the provider type dimension by extracting unique parent categories from existing provider dimension records.writesDimensionMember· readsDimensionMember↳ feeds from Load AllowedStatus Dimension, Load DenialCategory Dimension, Load DiagnosisCode Dimension, Load EligibilityInsurance Dimension, Load Facility Dimensions, Load FacilityGroup Dimensions, Load FacilityType Dimensions, Load Insurance Dimension, Load Modifier Dimension, Load PlaceOfService Dimensions, Load Provider Dimension, Load QuoteInsurance Dimension, Load State Dimension, Load Time Dimensions, Load VisitStatus Dimension, Load VisitType Dimensions - Load Facility Dimensionssql
load_dimension_members__load_facility_dimensions.sql✨ Builds facility dimension members by mapping source locations to specific regional and ownership categories for organizational reporting.writesDimensionMember· readsSourceLocationSourceLocationMap - Load FacilityGroup Dimensionssql
load_dimension_members__load_facilitygroup_dimensions.sql✨ Builds the facility group dimension by extracting unique parent identifiers from existing facility records.writesDimensionMember· readsDimensionMember↳ feeds from Load AllowedStatus Dimension, Load DenialCategory Dimension, Load DiagnosisCode Dimension, Load EligibilityInsurance Dimension, Load Facility Dimensions, Load FacilityType Dimensions, Load Insurance Dimension, Load Modifier Dimension, Load PlaceOfService Dimensions, Load Provider Dimension, Load ProviderType Dimension, Load QuoteInsurance Dimension, Load State Dimension, Load Time Dimensions, Load VisitStatus Dimension, Load VisitType Dimensions - Load FacilityType Dimensionssql
load_dimension_members__load_facilitytype_dimensions.sql✨ Loads unique facility types into the dimension table to allow for the categorization of different healthcare service locations.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.sql✨ Loads unique visit type dimension members from appointment data to standardize encounter classifications across the system.writesDimensionMember· readsHL7Visit - 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 DenialCategory Dimension, Load EligibilityInsurance Dimension, Load Facility Dimensions, Load FacilityGroup Dimensions, Load FacilityType Dimensions, Load Insurance Dimension, Load Modifier Dimension, Load PlaceOfService Dimensions, Load Provider Dimension, Load ProviderType Dimension, Load QuoteInsurance Dimension, Load State Dimension, Load Time Dimensions, Load VisitStatus Dimension, Load VisitType Dimensions - Load Modifier Dimensionsql
load_dimension_members__load_modifier_dimension.sql✨ Loads the procedure modifier dimension by extracting unique codes from account charges and mapping them to their descriptive labels.writesDimensionMember· readsAccountChargeProcedureModifier - 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
- Clean Estimatessql
load_account_data__clean_estimates.sql✨ Removes outdated non-scenario insurance estimates and associated charge calculations for encounters identified in the delta table.writesAccountEstimateAccountEstimateCalculationAccountEstimateCharge· readsAccountEstimateEncounterDelta ▶Score-Accountssub-job · 9↗
- Score AetnaBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2022-07-01incremental - Score AnthemBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2022-01-01incremental - Score CignaBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2022-01-01incremental - Score Humana MedicareBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2022-01-01incremental - Score MedicareBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2023-01-01incremental - Score MMOBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2023-03-01incremental - Score UHCBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2022-08-01incremental - BatchProcessAccountDataBatchProcessAccountDataCalculates patient account estimates across multiple facilities and insurance types to update pricing after contract or configuration changes.writes
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2023-01-01incremental - BatchProcessAccountData (Catch All)BatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchincremental
▶Load-Custom-Propertiessub-job · 2↗Load custom properties from Load-Visits
- UpdateVisitCustomPropertyFromQueryUpdateVisitCustomPropertyFromQuerydisabled· reads
InsuranceSearch_ResultTransformVisitInsuranceCoverageStatusVisitBatchcustom visit update custom property queryDISABLED - LoadCustomNotesCustomPropertyLoadCustomNotesCustomPropertydisabled· reads
BundleNotesMappingHL7DeltaHL7VisitVisitBatchentity=Visitcustom property key=CustomNotescustom querybatch modeDISABLED
- Load AccountDetailsql
load_account_data__load_accountdetail.sql✨ Builds a comprehensive account summary by joining patient, insurance, and financial data to track balances, denials, and estimated opportunities.writesAccountDetail· readsAccountAccountChargeAccountDeltaAccountEstimateDimensionMemberPatientSourceEncounterInsuranceSourcePayer↳ feeds from Clean Estimates, Load Account, Load AccountCharge - Load AccountChargeDetailsql
load_account_data__load_accountchargedetail.sql✨ Loads granular charge-level details, including procedure codes, modifiers, and provider information, for comprehensive reporting on account financial activity.writesAccountChargeDetail· readsAccountAccountChargeAccountDeltaAccountEstimateCalculationAccountEstimateChargeDimensionMemberPatientSourceEncounterInsurance↳ feeds from Clean Estimates, Load Account, Load AccountCharge - Update Modifier 22 Custom PropertyUpdateCustomPropertyFromQuery· reads
AccountChargeAccountDelta↳ feeds from Load AccountChargeentity=Accountcustom property key=Modifier22custom query