sub-job
Commonwealth · Cutover-Load-Athena-Data-ImportSql
leaving this the same as the other Load-Athena-Data-ImportSql. We waste a bit of time loading the source tables, but this'll be very useful for if we need to swap back to the old daily processing and reload accounts
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-Athena-Data-ImportSql
44 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
- ImportClinicalEncounterImportClinicalEncounterImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportClinicalEncounterconnection string={AthenaConnectionString}table name=ImportClinicalEncounterimport mode=Replacedata source type=Snowflake - Merge SourceClinicalEncountersql
cutover_load_athena_data_importsql__merge_sourceclinicalencounter.sql✨ Synchronizes clinical encounter details from imported data to the source layer to reflect the most recent patient visits.writesSOURCECLINICALENCOUNTER· readsImportClinicalEncounter↳ feeds from ImportClinicalEncounter - ImportAppointmentImportAppointmentImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportAppointmentconnection string={AthenaConnectionString}table name=ImportAppointmentimport mode=Replacedata source type=Snowflake - Merge SourceAppointmentsql
cutover_load_athena_data_importsql__merge_sourceappointment.sql✨ Updates the source appointment table with the latest scheduling, check-in, and status information from the import layer.writesSourceAppointment· readsImportAppointment↳ feeds from ImportAppointment - ImportClaimImportClaimImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportClaimconnection string={AthenaConnectionString}table name=ImportClaimimport mode=Replacedata source type=Snowflake - Merge SourceClaimsql
cutover_load_athena_data_importsql__merge_sourceclaim.sql✨ Merges the latest insurance claim data into the source layer to track billing status and outstanding balances.writesSOURCECLAIM· readsImportClaim↳ feeds from ImportClaim - ImportTransactionImportTransactionImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportTransactionconnection string={AthenaConnectionString}table name=ImportTransactionimport mode=Replacedata source type=Snowflake - Merge SourceTransactionsql
cutover_load_athena_data_importsql__merge_sourcetransaction.sql✨ Updates the master transaction table with new or modified records from the imported transaction data.writesSOURCETRANSACTION· readsImportTransaction↳ feeds from ImportTransaction - Merge SourceTransactionChargesql
cutover_load_athena_data_importsql__merge_sourcetransactioncharge.sql✨ Updates the charge transaction table by filtering and synchronizing charge-type records from the main transaction source.writesSOURCETRANSACTIONCHARGE· readsSOURCETRANSACTION↳ feeds from Merge SourceTransaction - Merge SourceTransactionPaymentsql
cutover_load_athena_data_importsql__merge_sourcetransactionpayment.sql✨ Updates the payment transaction table by filtering and synchronizing payment-type records from the main transaction source.writesSOURCETRANSACTIONPAYMENT· readsSOURCETRANSACTION↳ feeds from Merge SourceTransaction - Merge SourceTransactionAdjustmentsql
cutover_load_athena_data_importsql__merge_sourcetransactionadjustment.sql✨ Updates the adjustment transaction table by filtering and synchronizing adjustment-type records from the main transaction source.writesSOURCETRANSACTIONADJUSTMENT· readsSOURCETRANSACTION↳ feeds from Merge SourceTransaction - Merge SourceTransactionTransfersql
cutover_load_athena_data_importsql__merge_sourcetransactiontransfer.sql✨ Updates the transfer transaction table by filtering and synchronizing transfer-in and transfer-out records from the main transaction source.writesSOURCETRANSACTIONTRANSFER· readsSOURCETRANSACTION↳ feeds from Merge SourceTransaction - ImportERABatchImportERABatchImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportERABatchconnection string={AthenaConnectionString}table name=ImportERABatchimport mode=Replacedata source type=Snowflake - Merge SourceERABatchsql
cutover_load_athena_data_importsql__merge_sourceerabatch.sql✨ Synchronizes electronic remittance advice batch information from the import staging area to the source batch table.writesSOURCEERABATCH· readsImportERABatch↳ feeds from ImportERABatch - ImportERARecordImportERARecordImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportERARecordconnection string={AthenaConnectionString}table name=ImportERARecordimport mode=Replacedata source type=Snowflake - Merge SourceERARecordsql
cutover_load_athena_data_importsql__merge_sourceerarecord.sql✨ Synchronizes individual electronic remittance advice records from the import staging area to the source record table.writesSOURCEERARECORD· readsImportERARecord↳ feeds from ImportERARecord - ImportERADetailImportERADetailImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportERADetailconnection string={AthenaConnectionString}table name=ImportERADetailimport mode=Replacedata source type=Snowflake - Merge SourceERADetailsql
cutover_load_athena_data_importsql__merge_sourceeradetail.sql✨ Synchronizes granular electronic remittance advice details from the import staging area to the source detail table.writesSOURCEERADETAIL· readsImportERADetail↳ feeds from ImportERADetail - ImportERAKickImportERAKickImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportERAKickconnection string={AthenaConnectionString}table name=ImportERAKickimport mode=Replacedata source type=Snowflake - Merge SourceERAKicksql
cutover_load_athena_data_importsql__merge_sourceerakick.sql✨ Updates or inserts electronic remittance advice kick records to track claim rejections and mapping details within the pipeline.writesSOURCEERAKICK· readsImportERAKick↳ feeds from ImportERAKick - ImportClaimNoteImportClaimNoteImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportClaimNoteconnection string={AthenaConnectionString}table name=ImportClaimNoteimport mode=Replacedata source type=Snowflake - Merge SourceClaimNotesql
cutover_load_athena_data_importsql__merge_sourceclaimnote.sql✨ Updates or inserts claim notes and status information to maintain a history of billing actions and denial reasons.writesSOURCECLAIMNOTE· readsImportClaimNote↳ feeds from ImportClaimNote - ImportDenialClaimNoteImportDenialClaimNoteImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportDenialClaimNoteconnection string={AthenaConnectionString}table name=ImportDenialClaimNoteimport mode=Replacedata source type=Snowflake - Merge SourceDenialClaimNotesql
cutover_load_athena_data_importsql__merge_sourcedenialclaimnote.sql✨ Updates or inserts denial-specific claim notes to track rejection reasons, provider details, and claim status changes.writesSOURCEDENIALCLAIMNOTE· readsImportDenialClaimNote↳ feeds from ImportDenialClaimNote - ImportPatientImportPatientImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportPatientconnection string={AthenaConnectionString}table name=ImportPatientimport mode=Replacedata source type=Snowflake - Merge SourcePatientsql
cutover_load_athena_data_importsql__merge_sourcepatient.sql✨ Updates or inserts patient demographic and contact information to ensure accurate patient identification and communication records.writesSOURCEPATIENT· readsImportPatient↳ feeds from ImportPatient - ImportPayerImportPayerImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportPayerconnection string={AthenaConnectionString}table name=ImportPayerimport mode=Replacedata source type=Snowflake - Merge SourcePayersql
cutover_load_athena_data_importsql__merge_sourcepayer.sql✨ Updates or inserts insurance payer and package details to manage coverage types, reporting categories, and effective dates.writesSOURCEPAYER· readsImportPayer↳ feeds from ImportPayer - ImportPatientInsuranceImportPatientInsuranceImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportPatientInsuranceconnection string={AthenaConnectionString}table name=ImportPatientInsuranceimport mode=Replacedata source type=Snowflake - Merge SourcePatientInsurancesql
cutover_load_athena_data_importsql__merge_sourcepatientinsurance.sql✨ Updates or inserts patient insurance policy records, including coverage sequence, policy numbers, and eligibility status.writesSOURCEPATIENTINSURANCE· readsImportPatientInsurance↳ feeds from ImportPatientInsurance - ImportProviderImportProviderImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportProviderconnection string={AthenaConnectionString}table name=ImportProviderimport mode=Replacedata source type=Snowflake - Merge SourceProvidersql
cutover_load_athena_data_importsql__merge_sourceprovider.sql✨ Updates or inserts healthcare provider information, including NPI numbers, specialties, and taxonomy codes for billing and reporting.writesSOURCEPROVIDER· readsImportProvider↳ feeds from ImportProvider - ImportDepartmentImportDepartmentImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportDepartmentconnection string={AthenaConnectionString}table name=ImportDepartmentimport mode=Replacedata source type=Snowflake - Merge SourceDepartmentsql
cutover_load_athena_data_importsql__merge_sourcedepartment.sql✨ Updates or inserts clinical department and facility location data to support accurate service location tracking and billing.writesSOURCEDEPARTMENT· readsImportDepartment↳ feeds from ImportDepartment - ImportFeeScheduleProcedureImportFeeScheduleProcedureImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportFeeScheduleProcedureconnection string={AthenaConnectionString}table name=ImportFeeScheduleProcedureimport mode=Replacedata source type=Snowflake - Merge SourceFeeScheduleProceduresql
cutover_load_athena_data_importsql__merge_sourcefeescheduleprocedure.sql✨ Updates the source fee schedule procedure table with the latest pricing and procedure code mappings from imported data.writesSOURCEFEESCHEDULEPROCEDURE· readsImportFeeScheduleProcedure↳ feeds from ImportFeeScheduleProcedure - ImportProcedureCodeImportProcedureCodeImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportProcedureCodeconnection string={AthenaConnectionString}table name=ImportProcedureCodeimport mode=Replacedata source type=Snowflake - Merge SourceProcedureCodesql
cutover_load_athena_data_importsql__merge_sourceprocedurecode.sql✨ Updates the master procedure code list with current descriptions, groups, and effective dates from the source system.writesSOURCEPROCEDURECODE· readsImportProcedureCode↳ feeds from ImportProcedureCode - ImportFeeScheduleImportFeeScheduleImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportFeeScheduleconnection string={AthenaConnectionString}table name=ImportFeeScheduleimport mode=Replacedata source type=Snowflake - Merge SourceFeeSchedulesql
cutover_load_athena_data_importsql__merge_sourcefeeschedule.sql✨ Updates the source fee schedule headers with current names, insurance package links, and effective dates from imported data.writesSOURCEFEESCHEDULE· readsImportFeeSchedule↳ feeds from ImportFeeSchedule - ImportProcedureCodeModifierImportProcedureCodeModifierImports data from SQL Server or Snowflake queries into target tables using bulk copy operations with configurable loading modes.writes
ImportProcedureCodeModifierconnection string={AthenaConnectionString}table name=ImportProcedureCodeModifierimport mode=Replacedata source type=Snowflake - Merge SourceProcedureCodeModifiersql
cutover_load_athena_data_importsql__merge_sourceprocedurecodemodifier.sql✨ Updates the source procedure code modifier table with the latest descriptions and metadata from the imported source data.writesSOURCEPROCEDURECODEMODIFIER· readsImportProcedureCodeModifier↳ feeds from ImportProcedureCodeModifier - Merge SourceChargeMastersql
cutover_load_athena_data_importsql__merge_sourcechargemaster.sql✨ Builds the charge master by joining fee schedules and procedure codes to maintain standard pricing and modifier details.writesSOURCECHARGEMASTER· readssourcefeeschedulesourcefeescheduleproceduresourceprocedurecode↳ feeds from Merge SourceFeeSchedule, Merge SourceFeeScheduleProcedure, Merge SourceProcedureCode - Merge SourceTimesheetEntryTransactionMergeSqlwrites
SourceTimesheetEntryTransaction· readsTIMESHEETENTRYTIMESHEETENTRYTRANSACTIONmerge data source type=Snowflakeconnection string={AthenaConnectionString}table name=SourceTimesheetEntryTransactionmerge mode=InsertUpdatebulk copy timeout seconds=300