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-Schedule-Data-File
9 tasks · SSR
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 Schedule Data FileLoadFilewrites
ImportScheduleDatadata file spec=ImportScheduleDatafile path={FilePath}import mode=Replace - Load SourcePatientAppointmentsql
load_schedule_data_file__load_sourcepatientappointment.sql✨ Transforms and loads imported schedule data into the source appointment table, mapping patient demographics, insurance details, and procedure information.writesSourcePatientAppointment· readsImportScheduleData↳ feeds from Load Schedule Data File - Load TempPatientDeltasql
load_schedule_data_file__load_temppatientdelta.sql✨ Creates a temporary list of unique patient IDs from the imported schedule data to identify records requiring updates.writesTempPatientDelta - Load Patients - Oldsql
load_schedule_data_file__load_patients_old.sqldisabled✨ Updates the master patient table with demographic information derived from the earliest recorded appointment for each patient in the delta.writesPatientTempNextPatientAppointmentDemographics· readsTempNextPatientAppointmentDemographics - Load TempNextPatientAppointmentDemographicssql
load_schedule_data_file__load_tempnextpatientappointmentdemographics.sql✨ Extracts the most recent demographic information for patients in the delta into a temporary table based on their latest appointment.writesTempNextPatientAppointmentDemographics - Load PatientsLoadPatientsUpsert patient records into the patient dimension.· reads
PatientTempNextPatientAppointmentDemographics↳ feeds from Load TempNextPatientAppointmentDemographicsauto patient query - Load ImportScheduleDataArchivesql
load_schedule_data_file__load_importscheduledataarchive.sql✨ Archives current schedule data into a historical storage table with a timestamp for record-keeping.writesImportScheduleDataArchive· readsImportScheduleData↳ feeds from Load Schedule Data File - Delete History from ImportScheduleDataArchivesql
load_schedule_data_file__delete_history_from_importscheduledataarchive.sql✨ Deletes archived schedule data older than thirty days to maintain the size of the historical storage table.writesImportScheduleDataArchive - Archive FileExecuteProcesscommand=cmd.exe