Legacy Pipeline Atlas worker-1snapshot 2026-07-15

sub-job

PPRM · Generate-Report

Generates the Daily Export report and pushed data into the Archive report for Load-Visits and Load-Visits-Reprocess

called by Load-Visits

sub-job PPRM/Generate-Report · db PPRM_ProdMirror · updated 2025-09-17

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

Generate-Report

5 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
  1. Load TempEligibilityReportsqlgenerate_report__load_tempeligibilityreport.sql
    Builds a temporary reporting table consolidating the latest insurance eligibility transaction details, member IDs, and coverage results for each visit.
    writes TempEligibilityReport · reads TempEligibilityReport
  2. Load TempInsSearchResultssqlgenerate_report__load_tempinssearchresults.sql
    Loads a temporary table with successful insurance search results to identify and rank new coverage found for patients.
    writes TempInsSearchResults
  3. Generate Reportsqlgenerate_report__generate_report.sql
    Generates the final eligibility report by consolidating primary, secondary, and tertiary insurance results with any newly discovered coverage information.
    writes BatchEligibility_ResultsReport
  4. Create BatchEligibility_ResultsReportArchive if doesn't existsqlgenerate_report__create_batcheligibility_resultsreportarchive_if_doesn_t_exist.sql
    Builds the archive table for storing historical insurance eligibility and benefit results if it does not already exist.
  5. Archive Reportsqlgenerate_report__archive_report.sql
    Updates the eligibility results archive by replacing existing records with the latest report data for specific visits and dates.
    writes BatchEligibility_ResultsReportArchive · reads BatchEligibility_ResultsReport
    ↳ feeds from Generate Report