sub-job
PAA · Load-Phygen-Files
The Load SourceAppointment File file mask has a temp hack pattern match (? x12) to exclude the Endo file that is being sent with the same beggining of the file name ("AnFutSched").
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-Phygen-Files
15 tasks · PAA
sub-job / Flow action SQL / native step▶ expand a sub-job inline · ↗ open it as its own page · a typed step opens its doc
- DownloadDownloadDownloads files from remote FTP or SFTP servers to local directories with support for archiving and parallel transfers.server=PAA_ProdMirror-mdcssh-sftpremote directory=/local directory={SourceDataFolder}remote archive directory=/StagingProcessingTest/
▶Load-Appointment-Filesub-job · 4↗
- Analyzes a delimited file's structure to automatically infer column definitions and save a reusable specification for future imports.data file spec key=ImportAppointmenttable name=ImportAppointmentrow terminator=Linefeedcolumn separator=CommaDISABLED
- Clean AnFutSched FileExecuteProcesscommand=powershell.exe
- Load AppointmentLoadFilewrites
ImportAppointmentdata file spec=ImportAppointmentfile path={FilePath}import mode=Replacearchive file path={SourceDataArchive} - Load SourceAppointmentsql
load_appointment_file__load_sourceappointment.sql✨ Loads appointment data into the source table while mapping payer details and refreshing records from the import staging area.writesSourceAppointment· readsImportAppointmentMappedSourceAppointment↳ feeds from Load Appointment
▶Load-Appointment-File-HollySpringssub-job · 1↗
▶Load-Appointment-File-Mobilesub-job · 3↗
- Load PAA Mobile AppointmentLoadFilewrites
ImportMobileAppointmentdata file spec=ImportMobileAppointmentfile path={FilePath}import mode=Replacearchive file path={SourceDataArchive} - OLD - Attempt to Match Existing SourceAppointment Tablesql
load_appointment_file_mobile__old_attempt_to_match_existing_sourceappointment_table.sqldisabled✨ Loads mobile appointment data into the source table by mapping fields from the mobile import staging area for processing.writesSourceAppointment· readsImportMobileAppointment - Load SourceAppointmentMobilesql
load_appointment_file_mobile__load_sourceappointmentmobile.sql✨ Builds the mobile-specific source appointment table by transforming and importing data from the mobile application staging area.writesSourceAppointmentMobile· readsImportMobileAppointment↳ feeds from Load PAA Mobile Appointment
▶Load-Appointment-File-EdgeWatersub-job · 1↗
▶Clean-And-Load-Edgewater-Filesub-job · 3↗
- Execute updateEdgewaterFile.ps1ExecuteProcessdisabledcommand=powershell.exeDISABLED
- Load EdgerwaterFutSched FileLoadFilewrites
ImportEdgeWaterAppointmentdata file spec=ImportEdgeWaterAppointmentfile path={SourceDataFolder}\{FileName}.csvimport mode=Replacearchive file path={SourceDataArchive} - Load SourceEdgewaterAppointmentsql
clean_and_load_edgewater_file__load_sourceedgewaterappointment.sql✨ Loads external appointment and surgical case data into the staging area to prepare for downstream processing and estimation.writesSourceEdgeWaterAppointment· readsImportEdgeWaterAppointment↳ feeds from Load EdgerwaterFutSched File
▶Load-Appointment-File-Pinehurstsub-job · 2↗
- Load AppointmentLoadFilewrites
ImportAppointmentPinehurstdata file spec=ImportAppointmentPinehurstfile path={FilePath}import mode=Replacearchive file path={SourceDataArchive} - Load SourceAppointmentsql
load_appointment_file_pinehurst__load_sourceappointment.sql✨ Loads Pinehurst-specific appointment data into the source table while mapping payer identifiers and names from the import staging area.writesSourceAppointment· readsImportAppointmentSourceAppointment
▶Load-EndoAppointment-Filesub-job · 3↗
- Load EndoAppointmentLoadFiledisabledwrites
ImportEndoscopyCasesdata file spec=ImportEndoscopyCasesfile path={FilePath}import mode=Replacearchive file path={SourceDataArchive}DISABLED - Load SourceEndoAppointmentsql
load_endoappointment_file__load_sourceendoappointment.sqldisabled✨ Loads endoscopy appointment details and parsed insurance payor information into the source table for cost estimate processing.writesSourceEndoAppointment· readsImportEndoScopyCasesSourceEndoAppointment - ProcessDataFileProcessDataFileImport delimited files by automatically detecting their structure and merging the data into source tables.writes
ImportAppointmentEndoscopySourceAppointmentEndoscopyfile path={SourceDataFolder}\{FileName}.csvarchive directory={SourceDataArchive}base table name=AppointmentEndoscopyrow terminator=Linefeedcolumn separator=Comma
▶Load-Appointment-File-Meditechsub-job · 3↗
- ProcessDataFile (disabled bcs of dupes issue)ProcessFiledisabledwrites
ImportAppointmentMeditechSourceAppointmentMeditechfile path={FilePath}archive directory={SourceDataArchive}base table name=AppointmentMeditechrow terminator=Newlinecolumn separator=Comma - LoadDataFileLoadDataFileImports delimited data files into database tables using predefined specifications for validation, loading, and optional file archiving.writes
ImportAppointmentMeditechdata file spec=ImportAppointmentMeditechfile path={FilePath}import mode=Replacearchive file path={SourceDataArchive} - ExecuteMergeSqlExecuteMergeSqlSynchronizes data from external sources into target tables by performing batched insert, update, and delete operations based on keys.writes
SourceAppointmentMeditech· readsImportAppointmentMeditech↳ feeds from LoadDataFilemerge data source type=ThisDatabasetable name=SourceAppointmentMeditechmerge mode=InsertUpdatebulk copy timeout seconds=300bulk copy use table lock
▶Load-Bundles-Filesub-job · 2↗
- Load BundlesLoadFilewrites
ImportBundlesCombineddata file spec=ImportBundlesCombinedfile path={FilePath}import mode=Replacearchive file path={SourceDataArchive} - Load SourceBundlesCombinedsql
load_bundles_file__load_sourcebundlescombined.sql✨ Updates the combined bundles source table by merging imported surgical bundle details, procedure codes, and surgeon information.writesSourceBundlesCombined· readsImportBundlesCombined↳ feeds from Load Bundles
▶Load-EpicFacilityReference-Filesub-job · 2↗
- Load EpicFacilityReferenceLoadFilewrites
ImportEpicFacilityReferencedata file spec=ImportEpicFacilityReferencefile path={FilePath}import mode=Replacearchive file path={SourceDataArchive} - Load SourceEpicFacilityReferencesql
load_epicfacilityreference_file__load_sourceepicfacilityreference.sql✨ Updates facility identifiers and aliases between Epic and internal systems to maintain consistent facility cross-referencing.writesSourceEpicFacilityReference· readsImportEpicFacilityReference↳ feeds from Load EpicFacilityReference
▶Load-EpicEndoFacilityReference-Filesub-job · 3↗
- Scan EpicEndoFacilityReferenceScanFiledisableddata file spec key=ImportEpicEndoFacilityReferencetable name=ImportEpicEndoFacilityReferencerow terminator=Newlinecolumn separator=CommaDISABLED
- Load EpicEndoFacilityReferenceLoadFilewrites
ImportEpicEndoFacilityReferencedata file spec=ImportEpicEndoFacilityReferencefile path={FilePath}import mode=Replace - Load SourceEpicFacilityReferencesql
load_epicendofacilityreference_file__load_sourceepicfacilityreference.sql✨ Updates the mapping between procedure rooms and their corresponding Epic facility aliases to ensure accurate facility identification.writesSourceEpicEndoFacilityReference· readsImportEpicEndoFacilityReference↳ feeds from Load EpicEndoFacilityReference
▶Load-EpictoBFSInsuranceMapping-Filesub-job · 2↗
- Load EpictoBFSInsuranceMappingLoadFilewrites
ImportEpictoBFSInsuranceMappingdata file spec=ImportEpictoBFSInsuranceMappingfile path={FilePath}import mode=Replace - Load SourceEpictoBFSInsuranceMappingsql
load_epictobfsinsurancemapping_file__load_sourceepictobfsinsurancemapping.sql✨ Loads insurance plan and payor mapping data to translate Epic insurance records into standardized billing system formats.writesSourceEpictoBFSInsuranceMapping· readsImportEpictoBFSInsuranceMappingSourceEpictoBFSInsuranceMapping↳ feeds from Load EpictoBFSInsuranceMapping
▶Load-FeeSchedule-Filesub-job · 2↗
- Load EpicFacilityReferenceLoadFilewrites
ImportFeeScheduledata file spec=ImportFeeSchedulefile path={FilePath}import mode=Replace - Load SourceFeeSchedulesql
load_feeschedule_file__load_sourcefeeschedule.sql✨ Loads fee schedule data into the source table, formatting procedure codes and updating records based on unique identifiers.writesSourceFeeSchedule· readsImportFeeScheduleSourceFeeSchedule↳ feeds from Load EpicFacilityReference
▶Load-PhygenFacility-Filesub-job · 2↗
- Load PhygenFacilityLoadFilewrites
ImportPhygenFacilitydata file spec=ImportPhygenFacilityfile path={FilePath}import mode=Replacearchive file path={SourceDataArchive} - Load SourcePhygenFacilitysql
load_phygenfacility_file__load_sourcephygenfacility.sql✨ Updates the facility source table by replacing existing records with the latest facility and profit center information.writesSourcePhygenFacility· readsImportPhygenFacility↳ feeds from Load PhygenFacility
▶Load-PhygenSurgeon-Filesub-job · 2↗KB [date] : Had to update import table to LineFeed vs New line based on how we were receiving the file.
- Load PhygenSurgeonsLoadFilewrites
ImportPhygenSurgeonsdata file spec=ImportPhygenSurgeonsfile path={FilePath}import mode=Replacearchive file path={SourceDataArchive} - Load SourcePhygenSurgeonssql
load_phygensurgeon_file__load_sourcephygensurgeons.sql✨ Loads surgeon data into the source table, deduplicating by NPI to retain only the most recent records.writesSourcePhygenSurgeons· readsImportPhygenSurgeons↳ feeds from Load PhygenSurgeons