Maps scraped grid rows to the persistEpisodeLevelsOfCare shape. episode_number is the upsert
dedupe key (partial unique index needs it non-null); start_date fills both episode_start and
admission_date (the chrono CHECK guards the latter); level_of_care — never program — feeds
level_of_care_name, since it seeds the facility LOC catalog. Unsafe rows are dropped into
skipped rather than thrown: one bad row must not fail the single-statement upsert batch.
Maps scraped grid rows to the
persistEpisodeLevelsOfCareshape.episode_numberis the upsert dedupe key (partial unique index needs it non-null);start_datefills bothepisode_startandadmission_date(the chrono CHECK guards the latter);level_of_care— neverprogram— feedslevel_of_care_name, since it seeds the facility LOC catalog. Unsafe rows are dropped intoskippedrather than thrown: one bad row must not fail the single-statement upsert batch.