sub-job
Commonwealth · Cutover-Load-Account-Data
Load Account-Level Tables (click to read more) We no longer need the reprocesschangedconfigurations, insurance map changes will show up in the dagster delta. When we create the Staging tables that feed into the LoadAccountQueries we will see these mapping differences will result in those accounts automatically getting added to the delta
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
Cutover-Load-Account-Data
7 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
- Augment AccountDeltaReprocessChangedConfigsdisabledreprocess accountsDISABLED
- Augment AccountDelta ReprocessChangedConfigurationssql
cutover_load_account_data__augment_accountdelta_reprocesschangedconfigurations.sqldisabled✨ Adds accounts requiring reprocessing due to configuration changes into the account delta table for downstream processing.writesAccountDelta· readsAccountDeltaAccountsToReprocessTransformAccount - Load ChargeMeasuressql
cutover_load_account_data__load_chargemeasures.sqldisabled✨ Calculates and loads financial metrics like payments, adjustments, and denials for specific accounts into the charge measures table.writesChargeMeasures· readsAccountDeltaTransformChargeTransformChargeTransactionMeasure - LoadAccountDataLoadAccountDataImports historical billing data from external systems into core account tables while preserving manual user modifications and application fields.· reads
PatientStagingAccountStagingAccountChargeStagingAccountInsuranceStagingAccountRemitcustom account charge querycustom account querycustom account remit querycustom account insurance query ▶Cutover-Load-Custom-Propertiessub-job · 2↗We'll be moving the logic of this custom property load to dagster to make a custom property asset. We'll sync that table to a staging table and load the precomputed values instead
- Load Claim ID Custom PropertyUpdateCustomPropertyFromQuery· reads
StagingAccountStagingAccountChargeStagingAccountInsuranceStagingAccountRemitStagingCustomPropertyMemberentity=Accountcustom property key=CustomProperty-[id]auto 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
▶Cutover-Load-Dimension-Memberssub-job · 15↗time dimenison, place of service, diagnosis code all read from transform tables only used in dagster. We'll construct those there, and read in the same way as we read custom properties
- Load Insurance Dimensionsql
cutover_load_dimension_members__load_insurance_dimension.sqldisabled✨ Populates the insurance dimension with unique carrier keys to enable filtering and analysis by payer.writesDimensionMember· readsInsurance - Load EligibilityInsurance Dimensionsql
cutover_load_dimension_members__load_eligibilityinsurance_dimension.sqldisabled✨ Loads insurance members that support electronic eligibility and benefits verification via API integration.writesDimensionMember· readsDimensionMemberInsurance - Load QuoteInsurance Dimensionsql
cutover_load_dimension_members__load_quoteinsurance_dimension.sqldisabled✨ Builds a dimension of insurance providers associated with active contracts to facilitate accurate patient cost estimates.writesDimensionMember· readsContractMapInsurance - 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
cutover_load_dimension_members__load_time_dimensions.sql✨ Synchronizes time-based dimensions for days, months, and years to support temporal reporting and trend analysis.writesDimensionMember· readsStagingDimensionMember - Load VisitStatus Dimensionsql
cutover_load_dimension_members__load_visitstatus_dimension.sqldisabled✨ Loads appointment status values into the visit status dimension to track patient encounter progress.writesDimensionMember· readsTransformVisit - Load Provider Dimensionsql
cutover_load_dimension_members__load_provider_dimension.sql✨ Updates provider and provider type dimensions with names and classifications to organize data by clinical staff.writesDimensionMember· readsProvider - Load Facility Dimensionssql
cutover_load_dimension_members__load_facility_dimensions.sql✨ Loads facility names and their associated groups into the dimension table to track services by location.writesDimensionMember· readsFacility - Load FacilityGroup Dimensionsql
cutover_load_dimension_members__load_facilitygroup_dimension.sql✨ Builds the facility group dimension by extracting unique parent identifiers from existing facility records.writesDimensionMember· readsDimensionMember↳ feeds from Load DiagnosisCode Dimension, Load Facility Dimensions, Load FacilityType Dimension, Load PlaceOfService Dimension, Load Provider Dimension, Load State Dimensions, Load Time Dimensions, LoadInsuranceDimensionMembers - Load FacilityType Dimensionsql
cutover_load_dimension_members__load_facilitytype_dimension.sql✨ Loads facility type dimension members from facility records to enable standardized categorization across the revenue cycle pipeline.writesDimensionMember· readsFacility - Load VisitType Dimensionssql
cutover_load_dimension_members__load_visittype_dimensions.sqldisabled✨ Loads visit type dimension members from HL7 visit data to standardize appointment types for reporting and analysis.writesDimensionMember· readsHL7Visit - Load SourceInsurance Dimensionssql
cutover_load_dimension_members__load_sourceinsurance_dimensions.sql✨ Loads source insurance dimension members from insurance mapping data to track and categorize insurance plans used in patient accounts. - Load PlaceOfService Dimensionsql
cutover_load_dimension_members__load_placeofservice_dimension.sql✨ Loads place of service dimension members from staging tables to maintain consistent location data for billing and reporting.writesDimensionMember· readsStagingDimensionMember - Load DiagnosisCode Dimensionsql
cutover_load_dimension_members__load_diagnosiscode_dimension.sql✨ Loads diagnosis code dimension members from staging tables to ensure standardized medical coding for claims and cost estimates.writesDimensionMember· readsStagingDimensionMember - Load State Dimensionssql
cutover_load_dimension_members__load_state_dimensions.sql✨ Updates state dimensions using facility location data to allow for geographic segmentation of healthcare services and revenue.writesDimensionMember· readsFacility
▶Score-Accountssub-job · 1↗
- Score All AccountsBatchProcessAccountswrites
AccountEstimate· readsQuoteBatchVisitBatchincremental