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
10 tasks · USDH
sub-job / Flow action SQL / native step▶ expand a sub-job inline · ↗ open it as its own page · a typed step opens its doc
- Identify and queue visits or accounts affected by configuration changes to ensure historical data reflects updated pricing or insurance rules.reprocess accountsDISABLED
- LoadPatientsLoadPatientsUpsert patient records into the patient dimension.· reads
PatientTransformPatientcustom patient query - Load ChargeMeasuressql
load_account_data__load_chargemeasures.sql✨ Aggregates financial metrics including paid, adjusted, and denied amounts at the charge level to support recovery insights and reporting.writesChargeMeasures· readsChargeMeasuresTempTransactionsAggTotalTransformAccountTransformCharge - LoadAccountDataLoadAccountDataImports historical billing data from external systems into core account tables while preserving manual user modifications and application fields.· reads
AccountChargeAdjustmentCodeRollupChargeMeasuresChargeTypeInsuranceMapPatientProviderTempTransactions↳ feeds from Load ChargeMeasurescustom account charge querycustom account querycustom account remit querycustom account insurance query ▶Load-Dimension-Memberssub-job · 16↗
- LoadInsuranceDimensionMembersLoadInsuranceDimensionMembersSynchronize insurance-specific dimension members from the insurance table to update contract and eligibility filtering options across the application.writes
DimensionMemberload insuranceload quote insuranceload eligibility insurance - 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 VisitStatus Dimensionsql
load_dimension_members__load_visitstatus_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 DenialCategory Dimension, Load DiagnosisCode Dimension, Load Facility + FacilityGroup Dimensions, Load FacilityType Dimensions, Load Modifier Dimension, Load PlaceOfService Dimensions, Load State Dimension, Load Time Dimensions, Load-Source-Insurance-Dimension, LoadInsuranceDimensionMembers - 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 DenialCategory Dimension, Load DiagnosisCode Dimension, Load FacilityType Dimensions, Load Modifier Dimension, Load PlaceOfService Dimensions, Load Provider + ProviderType Dimensions, Load State Dimension, Load Time Dimensions, Load-Source-Insurance-Dimension, LoadInsuranceDimensionMembers - 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 DenialCategory Dimension, Load Facility + FacilityGroup Dimensions, Load FacilityType Dimensions, Load Modifier Dimension, Load PlaceOfService Dimensions, Load Provider + ProviderType Dimensions, Load State Dimension, Load Time Dimensions, Load-Source-Insurance-Dimension, LoadInsuranceDimensionMembers - 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-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
▶Load-Custom-Propertiessub-job · 2↗
- Staging of Division Custom Prop Valuessql
load_custom_properties__staging_of_division_custom_prop_values.sql✨ Stages account-level division properties by identifying practice ID changes that need to be updated in the custom property mapping.writesTempCustomProperty· readsTempCustomProperty - UpdateCustomPropertyFromQueryUpdateCustomPropertyFromQuery· reads
TempCustomProperty↳ feeds from Staging of Division Custom Prop Valuesentity=Accountcustom property key=Divisionauto querybatch mode
- SyncBatchSyncBatchSynchronizes processed data from batch staging tables to production tables, updating visits, quotes, and custom property mappings.writes
CustomPropertyMap· readsCustomPropertyMapBatchsync custom property map ▶Score-Accountssub-job · 17↗
- MedicareMedicarewrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2023-01-01incrementalupdate dimensions - RGAL - Capital BlueBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2024-01-01incrementalupdate dimensions - RGAL - UHCBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2023-01-01incrementalupdate dimensions - RGAL - CignaBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2023-01-01incrementalupdate dimensions - RGAL - AetnaBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2024-01-01incrementalupdate dimensions - RGAL - Highmark CommercialBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2023-01-01incrementalupdate dimensions - RGAL - Independence CommercialBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2023-01-01incrementalupdate dimensions - RGAL - Preferred Healthcare CommercialBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2024-10-01incrementalupdate dimensions - DCDC - AetnaBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2024-01-01incrementalupdate dimensions - DCDC - AmerihealthBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2023-01-01incrementalupdate dimensions - DCDC - CignaBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2023-01-01incrementalupdate dimensions - DCDC - DE First HealthBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2023-01-01incrementalupdate dimensions - DCDC - HighmarkBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2023-01-01incrementalupdate dimensions - DCDC - TricareBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2023-01-01incrementalupdate dimensions - DCDC - UHCBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2023-01-01incrementalupdate dimensions - DCDC - World Trade CenterBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2023-01-01incrementalupdate dimensions - UPMCUPMCwrites
AccountEstimate· readsQuoteBatchVisitBatchmin service date=2025-01-01incremental
- Load AccountDetailsql
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
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