sub-job
PPRM · Load-NextGen-Files
*TROUBLESHOOTING NOTE: The password contains an escape character \ before the ". This WILL NOT WORK if attempting to connect manually via FileZilla. Remove it from the password first. Job Description: Downloads and imports NextGen data
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-NextGen-Files
30 tasks · PPRM
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=PPRM_ProdMirror-mdcssh-sftpremote directory=/local directory={SourceDataFolder}
- Load AppointmentsLoadFilewrites
ImportAppointmentdata file spec=ImportAppointmentimport mode=Replace - Load SourceAppointmentsql
load_nextgen_files__load_sourceappointment.sql✨ Loads appointment details from the import table into the source repository, replacing existing records to ensure data freshness.writesSourceAppointment· readsImportAppointment↳ feeds from Load Appointments - Load PatientsLoadFilewrites
ImportPatientdata file spec=ImportPatientfile path={SourceDataFolder}\ExportPatient.txtimport mode=Replace - Load SourcePatientsql
load_nextgen_files__load_sourcepatient.sql✨ Updates the source patient table by replacing existing records with the latest demographic and contact information from the import layer.writesSourcePatient· readsImportPatient↳ feeds from Load Patients - Load Patient InsuranceLoadFilewrites
ImportPatientInsurancedata file spec=ImportPatientInsuranceimport mode=Replace - Load SourcePatientInsurancesql
load_nextgen_files__load_sourcepatientinsurance.sql✨ Loads patient insurance coverage and eligibility details into the source table, overwriting existing records for the same individuals.writesSourcePatientInsurance· readsImportPatientInsurance↳ feeds from Load Patient Insurance - Load PayerLoadFilewrites
ImportPayerdata file spec=ImportPayerfile path={SourceDataFolder}\ExportPayer.txtimport mode=Replace - Load SourcePayersql
load_nextgen_files__load_sourcepayer.sql✨ Refreshes the source payer table with updated insurance company information, financial classes, and subgroup classifications from the import data.writesSourcePayer· readsImportPayerSourcePayer↳ feeds from Load Payer - Load ProvidersLoadFilewrites
ImportProviderdata file spec=ImportProviderfile path={SourceDataFolder}\ExportProviders.txtimport mode=Replace - Load SourceProvidersql
load_nextgen_files__load_sourceprovider.sql✨ Updates the source provider registry with current credentials, specialties, and NPI data by replacing existing records with imported values.writesSourceProvider· readsImportProviderSourceProvider↳ feeds from Load Providers - Load ChargeMasterLoadFilewrites
ImportChargeMasterdata file spec=ImportChargeMasterimport mode=Replace - Load SourceChargeMastersql
load_nextgen_files__load_sourcechargemaster.sql✨ Synchronizes the charge master by updating existing service prices and descriptions or inserting new charge codes and library definitions.writesSourceChargeMaster· readsImportChargeMaster↳ feeds from Load ChargeMaster - Load EncountersLoadFiledisabledwrites
ImportEncounterdata file spec=ImportEncounterfile path={SourceDataFolder}\ExportEncounters.txtimport mode=ReplaceDISABLED - Load SourceEncountersql
load_nextgen_files__load_sourceencounter.sqldisabled✨ Loads clinical encounter and billing balance information into the source table, replacing existing records to maintain current visit status.writesSourceEncounter· readsImportEncounterSourceEncounter - Load ChargesLoadFiledisabledwrites
ImportChargedata file spec=ImportChargefile path={SourceDataFolder}\ExportCharges.txtimport mode=ReplaceDISABLED - Load SourceChargesql
load_nextgen_files__load_sourcecharge.sqldisabled✨ Loads and refreshes encounter charge details from imported files into the source charge table.writesSourceCharge· readsImportChargeSourceCharge - Load AdjustmentsLoadFiledisabledwrites
ImportAdjustmentdata file spec=ImportAdjustmentimport mode=ReplaceDISABLED - Load SourceAdjustmentsql
load_nextgen_files__load_sourceadjustment.sqldisabled✨ Loads and refreshes financial adjustment records from imported files into the source adjustment table.writesSourceAdjustment· readsImportAdjustmentSourceAdjustment - Load TransactionDetailLoadFiledisabledwrites
ImportTransactionDetaildata file spec=ImportTransactionDetailimport mode=ReplaceDISABLED - Load SourceTransactionDetailsql
load_nextgen_files__load_sourcetransactiondetail.sqldisabled✨ Loads and refreshes detailed transaction data for encounters and patient accounts from imported files into the source table.writesSourceTransactionDetail· readsImportTransactionDetailSourceTransactionDetail - Load Encounter InsuranceLoadFiledisabledwrites
ImportEncounterInsurancedata file spec=ImportEncounterInsuranceimport mode=ReplaceDISABLED - Load SourceEncounterInsurancesql
load_nextgen_files__load_sourceencounterinsurance.sqldisabled✨ Loads and refreshes insurance coverage and policy details for specific encounters from imported files into the source table.writesSourceEncounterInsurance· readsImportEncounterInsuranceSourceEncounterInsurance - Load ImportEventLoadFilewrites
ImportEventdata file spec=ImportEventfile path={SourceDataFolder}\ExportEvent.txtimport mode=Replace - Load SourceEventsql
load_nextgen_files__load_sourceevent.sql✨ Synchronizes event definitions and metadata from imported files into the source event table to maintain current records.writesSourceEvent· readsImportEvent↳ feeds from Load ImportEvent - Load LocationsLoadFilewrites
ImportLocationdata file spec=ImportLocationfile path={SourceDataFolder}\ExportLocation.txtimport mode=Replace - Load SourceLocationsql
load_nextgen_files__load_sourcelocation.sql✨ Loads and refreshes facility and service location details from imported files into the source location table.writesSourceLocation· readsImportLocationSourceLocation↳ feeds from Load Locations - Load ImportPatientRelationLoadFilewrites
ImportPatientRelationdata file spec=ImportPatientRelationimport mode=Replace - Load SourcePatientRelationsql
load_nextgen_files__load_sourcepatientrelation.sql✨ Loads and refreshes patient relationship and guarantor data from imported files into the source patient relation table.writesSourcePatientRelation· readsImportPatientRelationSourcePatientRelation↳ feeds from Load ImportPatientRelation - Archive FilesExecuteProcesscommand=cmd.exe