-- =============================================================================
-- publish_mystateconnews_notice_00001.sql — publishes Notice No. 00001
-- (LarCare Inc., Home Health Agency, Chester County SC) on MyStateCONNews with
-- the final public-notice text.
--
-- Edit-safe: only touches the entry while it is still the draft exactly as
-- seed_mystateconnews_site.sql wrote it (status + MD5 of its data). If the
-- notice was edited or published in Aggie > Website first, this does nothing.
-- Idempotent.
-- =============================================================================
SET NAMES utf8mb4;
SET @site_id := (SELECT id FROM dim_web_sites WHERE public_site_key = 'YPIYmVgmODxVTxgcSNwb1yAKdCtFe1M9kGT5YnTxEkL3xxs9' LIMIT 1);

UPDATE fact_web_entries
SET title = 'LarCare Inc. — Home Health Agency', data_json = '{"noticeNumber":"00001","isSample":false,"organization":"LarCare Inc.","stateCode":"sc","stateName":"South Carolina","county":"Chester County","countyKey":"chester","zip":"29706","facilityType":"Home Health Agency","facilityShort":"Home Health","facilityKey":"home-health","projectType":"CON Application — New Home Health Agency","status":"published","publicationDate":"2026-11-12","runDates":"November 12, 13 and 14, 2026 (3 runs)","affidavitStatus":"Issued after the final run","summary":"Establish a Home Health Agency in Chester County providing skilled nursing and home health aide services. Estimated project capital cost: $47,000.","noticeText":"<strong>PUBLIC NOTICE — CERTIFICATE OF NEED APPLICATION</strong><br><br>LarCare INC. hereby gives public notice that it is applying to the South Carolina Department of Public Health for a Certificate of Need to establish a Home Health Agency with an administrative office at 178 Columbia Street, Chester, SC 29706. The proposed agency will provide skilled nursing and home health aide services to patients in their homes in Chester County, South Carolina. The estimated project capital cost is $47,000."}', status = 'published'
WHERE site_id = @site_id AND slug = '00001-larcare-home-health-aide-services' AND status = 'draft'
  AND collection_id = (SELECT id FROM dim_web_collections WHERE site_id = @site_id AND collection_key = 'notices')
  AND MD5(data_json) = '3f1b14ef2be84dc27aeaa6360f94d34a';
