{"v":[{"id":2957,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/213#issuecomment-2957","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/213","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Charles confirmed the form: 03:30 to 04:08 in the recording is the **Patient Information & Emergency \/ Disaster Preparation Plan** (`emergency-disaster-form`). At 04:13 she says \"This was perfectly fine\". That is this form too. No change to the steps.","assets":[],"created_at":"2026-11-06T17:42:39-06:00","updated_at":"2026-11-06T17:42:39-06:00"},{"id":2959,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/216#issuecomment-2959","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/216","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Charles confirmed (06:43 in the recording): Cassandra will send an updated Task Guide with real boxes. The X marks go in the new boxes. They are not removed. This issue waits for the form.","assets":[],"created_at":"2026-11-06T17:42:39-06:00","updated_at":"2026-11-06T17:42:39-06:00"},{"id":2964,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/212#issuecomment-2964","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/212","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**All three agency copies are here** (`docs\/Updated Forms\/CHHC|LHCS|LHHA Client Information Sheet - Veteran Status Added.pdf`). Their text is the same. Only the logo is different. One blank is sufficient.\n\n**The new form has more changes than the veteran line.** Compared with our current blank (`docs\/form-blanks\/client-information-sheet.pdf`), the new form adds or changes these items:\n\n| Item | Current blank | New form |\n|---|---|---|\n| Date of Visit | not there | new line at the top right |\n| Client Address | not there | new line below Social Security # |\n| Veteran Status | not there | Yes \/ No boxes below Date of Birth |\n| Classification | \"Circle one below\", long text (\"Bed Confined\/services may not be postponed\"...) | a box at each class, short text (\"Class 1: Bed Confined\") |\n| Types of Services | not there | new boxes: PHC, PCS, CA, NON HCBS, FC, HCBS |\n| Physician | not there | Physician Name, Physician Phone #, Physician Address |\n| Signatures | not there | Individual\/Caregiver Signature and Date, Agency Representative Signature and Date |\n\nDo these extra steps:\n1. Add each new field to the form definition and the placement. Fill from data that we have where possible:\n   - Date of Visit: the visit date.\n   - Address: the client address from VESTA.\n   - Types of Services: the authorization program (`auth.program_type`).\n   - Physician name, phone and address: use the same Shared Answer as the ISP physician fields. Do not ask again.\n2. Classification: print an X in the box. Do not draw a circle.\n3. Signatures: add the two signature lines to the signing step of each visit that prints this form.\n4. Ask Cassandra if the CA, NON HCBS, FC and HCBS boxes map to program types that VESTA sends.","assets":[],"created_at":"2026-11-06T18:02:56-06:00","updated_at":"2026-11-06T18:02:56-06:00"},{"id":2965,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/211#issuecomment-2965","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/211","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**All three agency copies are here** (`docs\/Updated Forms\/CHHC PAS-PHC Consent Form.pdf`, `LHCS PAS_PHC Consent Form.pdf`, `LHHA PAS_PHC Consent Form.pdf`).\n\n**Compared with our current blank (RVSD 09.2023):** the Legacy Home Health Agency copy has the same wording. Only these items changed:\n- The revision is RVSD 11.2025.\n- The agency data is typed on the form: the agency name (3 places), the 24-hour number (2 places), and \"Agency Administrator \u2013 Ambrose Hernandez\". We print these from the agency now. Remove them from the blank, or stop printing them. Do not print them two times.\n- The red circles are drawings. They are not text.\n\n**The three agencies' copies are not all the same:**\n| | CHHC (Coastal) | LHCS (Legacy Home Care Services) | LHHA (Legacy Home Health Agency) |\n|---|---|---|---|\n| 24-hour number | 1-877-795-2566 | 1-877-750-7444 | 1-800-874-5112 |\n| Joint Commission paragraph (\"I may report any concerns about patient care and safety to The Joint Commission's Office of Quality & Patient Safety ... 1-800-994-6610 ...\") | **yes** | no | no |\n| Release section: \"Texas Health and Human Services (...)\" | **(DADS)** | (HHS) | (HHS) |\n\nDo these extra steps:\n1. Decide how to show the Joint Commission paragraph only for Coastal. One blank serves all agencies (`code\/form_blanks.inc.php`). Possible ways: a per-agency blank for this form, or print the paragraph from agency data. Ask Charles.\n2. Ask Cassandra if \"(DADS)\" on the Coastal copy is an error. The other two copies say \"(HHS)\", and our current blank says \"(HHS)\".","assets":[],"created_at":"2026-11-06T18:02:56-06:00","updated_at":"2026-11-06T18:02:56-06:00"},{"id":2971,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/212#issuecomment-2971","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/212","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**Types of Services: which boxes VESTA can fill.** The new boxes (PHC, PCS, CA, NON HCBS, FC, HCBS) are the same six boxes as \"Types of Services\" on ISP page 1. Use the same answer (`auth.service_types`, from `form_map_service_types()` in `code\/form_prefill.inc.php`). Do not ask again.\n\nLive `hh_auth.programtype` for the three agencies (counted in Sept 2026, `docs\/Changelog.md`), and the box each one gets today:\n\n| VESTA program | Clients | Box today |\n|---|---|---|\n| STAR+PLUS | 3,029 | **none** |\n| CAS | 2,423 | CA only if the contract name has \"CA\" (see the new issue for the CAS fix) |\n| STAR Kids | 110 | **none** |\n| FC | 82 | FC |\n| STAR+PLUS HCBS | 42 | HCBS |\n| PHC | 38 | PHC |\n| PRIVATE | 18 | none |\n| MMP | 6 | none |\n| PCS | 5 | PCS |\n| CLASS | 3 | none |\n\nNo VESTA program says \"NON HCBS\".\n\n**Ask Cassandra:** \"Which box do you tick for a STAR+PLUS client who is not on the HCBS waiver? And for STAR Kids, MMP, CLASS and private pay?\" Our guess is that plain STAR+PLUS is NON HCBS. Do not use the guess until she answers. Until then, the supervisor ticks the boxes in the interview.","assets":[],"created_at":"2026-11-06T18:15:25-06:00","updated_at":"2026-11-06T18:15:25-06:00"},{"id":2977,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/219#issuecomment-2977","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/219","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**Cassandra answered the address question (7 Nov 2026):**\n> Yes, the applicable licensed branch address based off the branch they are assigned on vesta.\n\n**What this changes in step 2:**\n- **Keep** the page 2 placement of `provider_agency_address` (instance 2). Its value is already the client's branch office: `prefill: { source: \"branch\", path: \"full_address\" }` in `docs\/forms\/pas-eval-service-plan.json`, matched from the VESTA branch by `hh_branch_row_for()`. No change to the data.\n- Measure its box again on the new blank. The old position was below the logo, in the area she removed. Put it in the same place if it is still empty.\n- **Remove** `provider_agency_phone`, `provider_agency_fax` and `provider_agency_toll_free` from page 2, as planned. Page 1 keeps all four.","assets":[],"created_at":"2026-11-07T11:54:52-06:00","updated_at":"2026-11-07T11:54:52-06:00"},{"id":2978,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/211#issuecomment-2978","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/211","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**Cassandra answered (7 Nov 2026), and sent the consent forms again** (`docs\/Updated Forms\/`, the three files dated 7 Nov):\n\n> Actually Coastal and Legacy Home Care should both have that additional paragraph. I already updated the DADS section (on the Coastal form) as well as updated all forms with the correct link for reporting through Texas HHSC Complaint and Intake (TULIP) - the previous link was no longer valid.\n\nOn the PCS consent form:\n> Let me review and I will get back to you on this one. It should be needing updates.\n\n**I checked the new files.** They have the same text apart from the items below:\n| | CHHC (Coastal) | LHCS (Legacy Home Care Services) | LHHA (Legacy Home Health Agency) |\n|---|---|---|---|\n| Joint Commission paragraph | yes | **yes (new)** | no |\n| Release section | **(HHS)**, was (DADS) | (HHS) | (HHS) |\n| Complaint and Intake link | `https:\/\/tulip.hhs.texas.gov\/LTCcomplaint\/s\/` | same | same |\n\nOur current blank (RVSD 09.2023) has the old link, `https:\/\/txhhs.my.site.com\/complaint\/s\/`. The new blank fixes this for all three agencies.\n\n**This changes the extra steps in the comment above:**\n1. **Joint Commission paragraph:** two agencies have it, and one does not. The decision is still open: a per-agency blank, or print the paragraph from agency data (for example, a setting on the agency). Ask Charles. The paragraph must stay off the LHHA form.\n2. **(DADS):** answered. All three copies say (HHS). There is nothing to do.\n3. **PCS consent form (`consent-pcs`):** Cassandra will review it and send the changes. Do not change `consent-pcs` before she does. When she sends it, check the TULIP link and the Joint Commission paragraph on it too. The old link is probably on that form as well.","assets":[],"created_at":"2026-11-07T11:54:52-06:00","updated_at":"2026-11-07T11:54:52-06:00"},{"id":2979,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/211#issuecomment-2979","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/211","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**Something to tell Cassandra for her PCS review.** Our current `consent-pcs` blank still names DADS in four places: \"DADS' Consumer Rights and Services Division ... 1-800-458-9858\" (the complaint line), and three times in the release section (\"Texas Department of Aging and Disability Services (DADS)\"). It has no TULIP link and no Joint Commission paragraph. It has no RVSD date that pdftotext can read. It is probably older than the PAS\/PHC form she just updated.","assets":[],"created_at":"2026-11-07T11:55:01-06:00","updated_at":"2026-11-07T11:55:01-06:00"},{"id":2980,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/211#issuecomment-2980","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/211","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**Decision (Charles, 7 Nov 2026): all three agencies use the same updated consent blank. That blank includes the Joint Commission paragraph.** The LHHA copy without the paragraph was probably an old file that was sent by mistake.\n\n**This replaces extra step 1 in the comments above:**\n- Use one blank, as now. Do not make a per-agency blank, and do not add an agency setting for the paragraph.\n- Make the new blank from the CHHC or LHCS copy (RVSD 11.2025). They have the same text: the Joint Commission paragraph, \"(HHS)\" and the TULIP link. Remove the agency name, the 24-hour number and \"Agency Administrator \u2013 Ambrose Hernandez\", as described above.\n- Do not use the LHHA copy as the source.\n\n**Note:** the LHHA copy is not completely old. It has the new TULIP link. Only the Joint Commission paragraph is missing. If Cassandra sends a corrected LHHA copy, check that its text is the same as the other two copies.","assets":[],"created_at":"2026-11-07T12:02:06-06:00","updated_at":"2026-11-07T12:02:06-06:00"},{"id":2981,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/210#issuecomment-2981","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/210","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Done in 80387a8, not yet published.\n\n\"Do these services appear to duplicate PHC services?\" is now No on every visit type, and Comments is \"None\". Both are fixed Shared Answers (`shared.isp.duplicate_phc` and `shared.isp.duplicate_phc_comments` in `code\/form_v2_shared.inc.php`). The questions are removed from SOC_AO, AR and ISP_COA.\n\nWhy it printed blank before: the No was `fixed_if`, but it was hidden when the client had no other services. A hidden answer prints nothing.\n\n**To ship:** `php scripts\/form-v2-pipeline.php --packet=SOC_AO --import --replace` (then AR, ISP_COA), then publish and activate.","assets":[],"created_at":"2026-11-08T17:27:55-06:00","updated_at":"2026-11-08T17:27:55-06:00"},{"id":2982,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/213#issuecomment-2982","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/213","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Done in 80387a8, not yet published.\n\n1. **DME \/ emergency contact.** If these are left blank, DME, DME Phone Number and the emergency contact's Name, Relationship and Phone Number print **\"None\"**. This uses `\"blank\": \"None\"` on the placements. The emergency contact is a Shared Answer with the Client Information Sheet. Only this form prints \"None\"; the CIS still prints blank.\n2. **Policies.** The three X marks are `unplaced`, with a reason given. On the \"Check\" question: the interview **still asks** \"Did you go over these agency policies with the client?\" (starts as Yes, #195). Cassandra said field staff still go over the policies, so the question records that they did, even though nothing prints.\n\nChecked with a rendered proof. **To ship:** the same pipeline run as #210 (SOC_AO, AR).","assets":[],"created_at":"2026-11-08T17:27:56-06:00","updated_at":"2026-11-08T17:27:56-06:00"},{"id":2985,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/214#issuecomment-2985","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/214","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Done in 80387a8, not yet published, with a **correction to this issue**.\n\nThe issue named `agency_responsibilities_reviewed`. But that field, and `patient_responsibilities_reviewed` and `special_needs_reviewed` too, are `not_asked` in SOC_AO and never print. The only X the interview puts on the 211 is **`responsibilities_acknowledged`** (\"I have been informed of my responsibilities and the agency's responsibilities\u2026\", page 2, just above the signatures). At 04:19 Cassandra says \"just the X here \u2026 the signature is fine\", singular, so that is the X she meant.\n\nThat X is now `unplaced`, with a reason given. The question is still asked and still starts as Yes (#195). Only the paper changed.\n\n**To ship:** the same pipeline run as #210 (SOC_AO).","assets":[],"created_at":"2026-11-08T17:27:56-06:00","updated_at":"2026-11-08T17:27:56-06:00"},{"id":2988,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/217#issuecomment-2988","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/217","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**Step 1 (N\/A) is done** in 80387a8, not yet published. The five N\/A boxes now print in each section's **Agency Providing Care** box (the `sn_agency`, `therapy_agency`, `dialysis_agency`, `adc_agency` and `other_agency` positions), not across the row. Skilled Nursing and Home Health Aide share one set of lines, so N\/A prints there only when neither is ticked, as before. Checked with a rendered proof.\n\n**Step 2 (bottom signature) is still open.** `coc_rep_signature` is marked required in `docs\/forms\/coordination-of-care.json`. More importantly, it is a **signing slot on the published placement map** in the database. Slots are proposed from the definition's signature fields and then kept as an author's decision (`form_pdf_attest_merge()`). Nothing in the pipeline removes a slot. Declaring the field `unplaced` would not work either: the slot has no host to fold into, so the map would fail `slot_unplaced` at publish.\n\nTwo ways to fix it:\n- A slot role or flag for a line **another party signs by hand**. The sign plan would skip it, and the paper would leave the line blank.\n- Remove the signature and date fields from the definition and let the pipeline drop slots whose fields are gone.\n\nThe first keeps the definition a faithful copy of the paper. Needs a decision before building.","assets":[],"created_at":"2026-11-08T17:27:56-06:00","updated_at":"2026-11-08T17:27:56-06:00"},{"id":2989,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/220#issuecomment-2989","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/220","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Done in 80387a8.\n\n`form_map_service_types()` now matches the whole word `CAS` as well as `CA` (`\/\\bCAS?\\b\/`), so \"CASE\" and \"CASA\" don't match. This agrees with the SOC\/AO packet, which already treats CAS as the PAS\/PHC consent.\n\nTests added to `scripts\/test-form-prefill.php` (65 pass): `CAS`, the contract name `1234-CA-TMHP`, a word with CA inside it, and `STAR+PLUS HCBS` \u2192 HCBS.\n\n**Counts (dev database, current authorizations):** 2,387 CAS clients. 2,331 already got the CA box from a `-CA-` contract name segment. The fix adds the remaining **56**.\n\nThis is a code change, so it takes effect on deploy. No publish is needed. STAR+PLUS, STAR Kids, MMP, CLASS and private pay are not changed; they wait on Cassandra's answer (#212).","assets":[],"created_at":"2026-11-08T17:27:56-06:00","updated_at":"2026-11-08T17:27:56-06:00"},{"id":2991,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/215#issuecomment-2991","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/215","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Steps 1\u20136 are done. The commit is on main (see the commit that mentions #215); not yet published.\n\n1. **Task grid.** Each authorized task's box gets an X. These are new `task_*_freq` mark placements at the boxes in front of the task names. The frequency is asked only for a task in `auth.service_tasks`, so only authorized tasks get one. The \"other\" row gets one once a name is given.\n2. **Attendants B and C.** Items 4, 5, 8 and 9 are now `visible_if` the attendant's visit type is not blank. An empty slot clears its visit type (#198), so these questions are hidden and **print nothing**. Before, items 4 and 5 printed N\/A there. The task grid's B and C columns were already blank.\n3. **Items 4 and 5.** Each named attendant gets an X in their own \"Attendant A\/B\/C\" box. These are new `attendant_{x}_visit_type` mark placements (instances 1\u20134, one per item), so the box is ticked exactly when the attendant is named. Yes\/No\/N\/A is unchanged for a named attendant: N\/A at an AO, as the paper says; asked at SV\/SA.\n4. **Item 8.** Yes, not asked, for every named attendant, plus the X in their box.\n5. **Item 9.** At an AO it is N\/A, not asked, plus the X. At SV\/SA it is asked. It has **no starting answer**, by the rule that client answers start blank. If Cassandra wants it to start as Yes, that is a one-line change.\n6. **Item 10-4.** The name moved from x 254.7 to x 318, so it starts after \"precautions.\" The phone moved from x 425 to x 478.\n\nThe same rules are in SOC_AO, AO, SV and AR. Checked with a rendered proof of an AO visit (one attendant, four tasks) on both pages. `test-form-v2-workflow.php` passes (400): it pinned the old N\/A-for-an-empty-slot rule, which is now replaced, and it now checks items 8 and 9.\n\n**One thing to confirm:** at an AO, items 4 and 5 print the attendant's X **and** N\/A, the same as Cassandra described for item 9. If Charles's answer meant the X replaces N\/A, change `fixed_as` for those items.\n\n**Still open:**\n- **Step 7:** do the red circles on page 2 print on our copy? A question for Cassandra.\n- Cassandra will check whether other visit forms ask item 9.\n\n**To ship:** `php scripts\/form-v2-pipeline.php --packet=SOC_AO --import --replace`, then AO, SV and AR. Then publish and activate.","assets":[],"created_at":"2026-11-08T17:44:19-06:00","updated_at":"2026-11-08T17:44:19-06:00"},{"id":2993,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/216#issuecomment-2993","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/216","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Done in b0cb237.\n\n- Cassandra's updated Task Guide is now the blank. Its hidden layer was removed (the same problem as #104), and so was the logo.\n- Each authorized task's X now prints in its new box.\n- The three X marks at the bottom (safety instructions, notify supervisor, PHC scope) no longer print. Their questions are still asked during the visit.\n- The citation now reads \"26 TAC 277.41\" on the form and in the on-screen text for SOC\/AO and AO.\n\nThe new file replaces the old blank under the same name. Before activating, finish any open V2 visit that hasn't printed yet.","assets":[],"created_at":"2026-11-08T20:04:17-06:00","updated_at":"2026-11-08T20:04:17-06:00"},{"id":2995,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/212#issuecomment-2995","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/212","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Done in eb85896. This is the full redesign.\n\n- The new blank is in, with the logo removed.\n- New boxes: Date of Visit, Address\/City\/State\/Zip, Veteran Status, Types of Services, Physician Name\/Phone\/Address, and a client and agency signature row with dates.\n- Most boxes reuse answers the visit already collects:\n  - Date of Visit copies the 3040's date.\n  - Types of Services comes from the authorization.\n- New questions:\n  - \"Is the client a veteran?\"\n  - The client's State. No form printed it before.\n  - Physician address. This is now one Shared Answer for the ISP and this sheet.\n- Rehearsed with SOC\/AO and AR, and a proof was checked.\n\nStill open: Veteran Status is recorded on the visit only. It isn't kept on the client record or shown in a report. Open a follow-up if that's wanted.","assets":[],"created_at":"2026-11-08T20:04:17-06:00","updated_at":"2026-11-08T20:04:17-06:00"},{"id":2996,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/211#issuecomment-2996","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/211","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Interview half done in 7d6af03. The new blank is **blocked**.\n\nDone:\n- With no Medical Power of Attorney, the MPOA name and phone print \"None\" on the PAS\/PHC consent, the PCS consent and the Private Pay agreement.\n- \"I authorize ___\" is no longer asked. The line stays blank.\n- The release expiry is no longer asked. It is now one year after the visit date.\n\nBlocked: the three agency copies differ, so one blank can't serve all three.\n- The paragraph about reporting concerns to The Joint Commission is in the Coastal and Legacy Home Care Services copies but not in Legacy Home Health Agency's. It moves everything below it.\n- Agency name, phone and administrator are typed into each copy.\n- Coastal's copy names \"Legacy Home Care Services\" as the release recipient. This looks like a copy slip.\n\nWe are asking Cassandra whether the Joint Commission paragraph is only for accredited agencies, and whether LHHA's form should have it. Depending on her answer, we use one blank or one blank per agency.","assets":[],"created_at":"2026-11-08T20:04:17-06:00","updated_at":"2026-11-08T20:04:17-06:00"},{"id":2997,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/219#issuecomment-2997","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/219","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Done in c8b76e2.\n\n- Page 1 of the ISP is unchanged. Page 2 is Cassandra's new page, with the logo removed.\n- All page-2 boxes moved to the new layout, mostly 6.6pt up. The attendant signature row didn't move.\n- Type of ISP: \"Pre-Initial Case\" was added and \"Change in Schedule\" removed.\n- The office address and phone lines no longer print on page 2. Page 1 still prints them.\n- Rehearsed with SOC\/AO, AO, AR and ISP\/COA, and a proof was checked.\n\nStill open: the Pre-Initial visit has no V2 interview yet, so no visit starts on \"Pre-Initial Case\". The new blank replaces the old one under the same name. Before activating, finish any open V2 visit that hasn't printed yet.","assets":[],"created_at":"2026-11-08T20:04:17-06:00","updated_at":"2026-11-08T20:04:17-06:00"},{"id":2998,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/211#issuecomment-2998","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/211","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"The new blank is done in 6a76bbc.\n\n**Decided (Charles, 9 Nov 2026):** the Joint Commission paragraph goes on the consent for all three agencies. The release section must name the correct agency.\n\nDone:\n- One consent blank for all three agencies. It is made from the Legacy Home Care Services copy of 7 Nov, which has the same text as the Coastal copy. It has the Joint Commission paragraph and the new HHSC Complaint and Intake link (`https:\/\/tulip.hhs.texas.gov\/LTCcomplaint\/s\/`).\n- The release section (\"release the information to\") prints each agency's own name from its settings. Coastal's copy had \"Legacy Home Care Services\" typed there. That name is removed from the blank.\n- The agency name, the 24-hour number and the administrator also print from the agency's settings, as before. They are removed from the blank, so nothing prints two times.\n- The customer's red circles are part of the page. The agency name and the phone numbers print in the circles.\n- All placements are measured again for the new layout. The new page has no footer, so the agency name no longer prints in a footer.\n- The SOC\/AO and AR visit types pass the completeness check in a rehearsal. Nothing is published yet.\n\nNote: the new page has no revision stamp, so the list of blank forms shows \"no revision printed on the form\".\n\nOpen:\n- PCS consent form (`consent-pcs`): Cassandra is reviewing it. When she sends it, check the TULIP link and the Joint Commission paragraph on it too.\n- Publish the new release for SOC\/AO and AR on `\/admin\/form-v2-publish`.","assets":[],"created_at":"2026-11-09T09:21:19-06:00","updated_at":"2026-11-09T09:21:19-06:00"},{"id":3014,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/212#issuecomment-3014","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/212","user":{"id":3,"login":"connect-bot","login_name":"","source_id":0,"full_name":"","email":"connect-bot@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/68a2723f7ad70dee2e1415be7488d84b","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/connect-bot","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2026-10-01T08:49:35-05:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"connect-bot"},"original_author":"","original_author_id":0,"body":"**Charles W.** _(via Connect)_\n<!-- connect:user=1 -->\n\nLet's record the veteran status in the client record.","assets":[],"created_at":"2026-11-09T09:30:32-06:00","updated_at":"2026-11-09T09:30:32-06:00"},{"id":3015,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/215#issuecomment-3015","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/215","user":{"id":3,"login":"connect-bot","login_name":"","source_id":0,"full_name":"","email":"connect-bot@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/68a2723f7ad70dee2e1415be7488d84b","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/connect-bot","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2026-10-01T08:49:35-05:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"connect-bot"},"original_author":"","original_author_id":0,"body":"**Charles W.** _(via Connect)_\n<!-- connect:user=1 -->\n\nFor AO, the attendant gets an X and the N\/A gets an X. If there's an attendant A, B, or C in the visit then there needs to be an X for the attendant on 3040.","assets":[],"created_at":"2026-11-09T09:33:25-06:00","updated_at":"2026-11-09T09:33:25-06:00"},{"id":3016,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/217#issuecomment-3016","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/217","user":{"id":3,"login":"connect-bot","login_name":"","source_id":0,"full_name":"","email":"connect-bot@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/68a2723f7ad70dee2e1415be7488d84b","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/connect-bot","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2026-10-01T08:49:35-05:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"connect-bot"},"original_author":"","original_author_id":0,"body":"**Charles W.** _(via Connect)_\n<!-- connect:user=1 -->\n\nFix it by having the other party sign by hand. Remove it from our signature requirements. It's not a signature our rep, client, or attendant would sign.","assets":[],"created_at":"2026-11-09T09:36:40-06:00","updated_at":"2026-11-09T09:36:40-06:00"},{"id":3017,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/217#issuecomment-3017","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/217","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**Step 2 is done** in 8994f98, not yet published. The other agency signs the bottom line by hand. It is no longer one of our signings.\n\n- The placement file has a new declaration, `by_hand`. It lists a signature line that someone outside the visit signs on paper, with a reason. `coc_rep_signature` and its date are listed there.\n- The pipeline removes the signing that was on the published map for that line, and does not propose it again. Nobody in the visit is asked to sign it, and it prints blank.\n- The `required` rules on those two fields are removed. Our agency's line (\"is providing the following services\", `services_rep_signature`) is unchanged.\n- The rehearsal of SOC_AO passes every completeness check. The Coordination of Care map shows \"1 signing line removed\".\n\n**To ship:** `php scripts\/form-v2-pipeline.php --packet=SOC_AO --import --replace`, then AR and PHV, which also print this form. Then publish and activate.","assets":[],"created_at":"2026-11-09T09:43:11-06:00","updated_at":"2026-11-09T09:43:11-06:00"},{"id":3018,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/215#issuecomment-3018","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/215","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Confirmed, no change needed. This is what was built: at an AO, items 4, 5 and 9 print the X in the box of each named attendant (A, and B and C if present) **and** the X at N\/A. An attendant who is not on the visit gets no X and no N\/A.\n\nStill open:\n- **Step 7:** does Cassandra want the red circles on page 2 printed on our copy?\n- Cassandra will check whether other visit forms ask item 9.","assets":[],"created_at":"2026-11-09T09:43:11-06:00","updated_at":"2026-11-09T09:43:11-06:00"},{"id":3019,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/212#issuecomment-3019","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/212","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Veteran Status goes with the other things we hold from forms, such as the pharmacy. It is reported, and then the office is offered a chance to save it to the client. This is tracked in #196, which is blocked on the office step that accepts a visit (#119, #168). Until then, the answer is kept on each visit, so it can be carried over when that step is built. No report or screen shows it yet.\n\nNothing else is open here. This issue can close.","assets":[],"created_at":"2026-11-09T09:49:45-06:00","updated_at":"2026-11-09T09:49:45-06:00"},{"id":3023,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/217#issuecomment-3023","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/217","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Two corrections to my last comment:\n\n- **The date question.** In 8994f98, the bottom line's date fell into the interview's \"Not placed yet\" step. Staff would have been asked a date that the other agency writes. This is fixed in 0475d22: a line signed by hand, and its date, are never asked. The SOC_AO and AR rehearsals now import with no \"Not placed yet\" step, and both pass.\n- **PHV.** It prints this form, but it has no V2 interview yet. To ship, run SOC_AO and AR only: `php scripts\/form-v2-pipeline.php --packet=SOC_AO --import --replace`, the same for AR, then publish and activate.","assets":[],"created_at":"2026-11-09T09:57:06-06:00","updated_at":"2026-11-09T09:57:06-06:00"},{"id":3024,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/196#issuecomment-3024","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/196","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**Add Veteran Status** (from #212). Charles, 9 Nov: it is one of the things we hold from forms, like the pharmacy. Report it, then offer to save it to the client.\n\n- It is asked on the Client Information Sheet in SOC\/AO and AR (\"Is the client a veteran?\", Yes \/ No). The answer is kept, encrypted, on the visit. Like the pharmacy picks, it collects on the visits until the office step exists.\n- The same rule applies: copy it to the client only after the office accepts the visit.\n- **The question is already tied to the client fact** (0475d22): `hh_member.veteran_status`, enum `yes`\/`no`, in `form_fact_catalog()`. When this is built, store the value on the client and have `form_prefill_sources()` return it. A later visit then starts with it, and staff can still change it. No interview change is needed.\n- **Carry over both versions of old answers.** Visits prepared before 0475d22 keep the answer under the old form-only name, `form.client-information-sheet.veteran_status`. Newer visits use `hh_member.veteran_status`.\n- Where staff see it (the client detail window, or a list of what was learned from forms) is decided later. For now we only hold it.","assets":[],"created_at":"2026-11-09T09:59:56-06:00","updated_at":"2026-11-09T09:59:56-06:00"},{"id":3026,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/219#issuecomment-3026","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/219","user":{"id":3,"login":"connect-bot","login_name":"","source_id":0,"full_name":"","email":"connect-bot@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/68a2723f7ad70dee2e1415be7488d84b","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/connect-bot","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2026-10-01T08:49:35-05:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"connect-bot"},"original_author":"","original_author_id":0,"body":"**Charles W.** _(via Connect)_\n<!-- connect:user=1 -->\n\nShould the agency address still print on ISP page 2? Cassandra: \"Yes, the applicable licensed branch address based off the branch they are assigned on vesta.\"\r\n\r\nWe haven't been given a Pre-Initial Case visit yet so there's no interview yet.","assets":[],"created_at":"2026-11-09T10:05:00-06:00","updated_at":"2026-11-09T10:05:00-06:00"},{"id":3027,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/219#issuecomment-3027","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/219","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Done in d2f0d19. It corrects c8b76e2, which had removed the address from page 2.\n\n- Page 2 of the ISP prints the client's branch address again, centred under the logo where the old agency lines were. The address comes from the branch the client is assigned to in VESTA, as Cassandra said.\n- The phone, fax and toll-free numbers still print on page 1 only.\n- A proof of page 2 was checked. Trial runs pass for SOC\/AO, AR, AO and ISP\/COA.\n\nStill open: Pre-Initial Case. We haven't been given a Pre-Initial visit yet, so there is no interview to set it.","assets":[],"created_at":"2026-11-09T10:08:24-06:00","updated_at":"2026-11-09T10:08:24-06:00"},{"id":3040,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/212#issuecomment-3040","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/212","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**Types of Services: Cassandra's answer (9 Nov)**\n\nQuestion: \"Do the CA, NON HCBS, FC and HCBS boxes match program types that we get from VESTA data?\"\nCassandra: \"Yes please see snip its below.\" She sent two VESTA Authorizations screenshots:\n- Program **CAS**, Service Description \"PAS CAS NON-PRIORITY\". This gives **CA**, which is already built (#220).\n- STAR+PLUS, Service Description \"UNITED **HCBS** CFC (U3 U7)\" and \"UNITED **NON-HCBS** CFC (U5 U7)\". This gives **HCBS** \/ **NON HCBS**.\n\n**Bug found:** the mapper read `hh_auth.service`. That field holds the service **code** (for example \"310\"), not the description. So no STAR+PLUS client ticked HCBS or NON HCBS.\n\n**Fix (built 9 Nov, a code change, in the deploy):**\n- `form_prefill_sources()` gets the Service Description from `hh_service` (agency + code, the same lookup as the member detail). The description sets the two HCBS boxes only. The program boxes do not change.\n- Some rows have no HCBS wording (for example \"MOLINA RESPITE (U3)\", \"ERROR\", or a code that `hh_service` does not have). For these, the first modifier sets the box: U3 = HCBS, U5 = NON HCBS. Every live row's modifier agrees with its description.\n- `test-form-prefill.php`: 7 new tests.\n\n**Effect on live data:**\n- STAR+PLUS: 904 clients now tick HCBS and 1,862 tick NON HCBS. Before, they ticked no box. 22 still tick no box.\n- MMP: 3 clients now tick a box.\n- 2 \"STAR+PLUS HCBS\" clients whose service is \"MOLINA NON HCBS (U5)\" change to NON HCBS, because the description decides.\n\n**Still open (waiting on Cassandra):** which box for **STAR Kids**, **CLASS** and **private pay**?\n\n**Possible question for compliance:** about 17 PHC, FC and CLASS clients have a VESTA contract for a different program (for example program PHC, contract \"\u2026-CA-TMHP\"). These clients tick two boxes. Is the program or the contract correct?","assets":[],"created_at":"2026-11-09T14:58:34-06:00","updated_at":"2026-11-09T14:58:34-06:00"},{"id":3046,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/215#issuecomment-3046","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/215","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**Step 7 and item 9: settled (Charles, 9 Nov).**\n\n**Red circles: yes, print them on our copy.** Done in 974ee26 (not published yet).\n- We do not have a 3040 copy with the circles. Every 3040 in `docs\/` is clean. So we drew them on page 2 of `docs\/form-blanks\/forms-3040.pdf`, at the places in the 06:16 screenshot:\n  - Item 10-4: the agency name and phone.\n  - \"Fall or Injury \/ Rash or Skin Breakdown\".\n  - Item 10-5: \"Other: Call 911\u2026\".\n- The circles are red ovals (1.3 pt) in the page content. They are not annotations and not a layer.\n- The text and layout do not change (`pdftotext` output is the same). The measured boxes stay correct. Only `template_sha256` in `docs\/form-placements\/forms-3040.json` changes.\n- `test-form-blanks.php` (252), `test-form-pdf.php` (234) and `test-form-v2-workflow.php` (402) pass.\n\n**Item 9: no change needed.** Charles: it is an automatic N\/A at SOC\/AO or AO. It is asked at SV, ISP and post-hospital visits. This is how it is built. The rule uses each attendant's visit type on the 3040:\n- AO: N\/A with the X, not asked. This applies to SOC\/AO and AO visits.\n- SV\/SA: asked. This applies to SV and AR visits.\n- The ISP\/COA visit does not print a 3040.\n- PHV has no V2 interview yet. It will get the same rule when its questions are written.\n\nThe open question \"do other forms ask item 9\" came from Cassandra's own words in the recording (\"I would have to double check, but that should be a question\"). It is now closed.\n\n**To ship:** the paperwork release (`form-v2-pipeline.php` for SOC_AO, AO, SV and AR, then publish and activate). Close this issue when the release is in use.","assets":[],"created_at":"2026-11-09T15:11:56-06:00","updated_at":"2026-11-09T15:11:56-06:00"},{"id":3047,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/212#issuecomment-3047","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/212","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Committed and pushed: e76cff3 (the HCBS \/ NON HCBS fix, code and tests) and 78b4096 (Action Plan and changelogs). It is a code change, so it goes out with the next deploy. The open question has not changed: which box for STAR Kids, CLASS and private pay?","assets":[],"created_at":"2026-11-09T15:11:56-06:00","updated_at":"2026-11-09T15:11:56-06:00"},{"id":3105,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/232#issuecomment-3105","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/232","user":{"id":3,"login":"connect-bot","login_name":"","source_id":0,"full_name":"","email":"connect-bot@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/68a2723f7ad70dee2e1415be7488d84b","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/connect-bot","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2026-10-01T08:49:35-05:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"connect-bot"},"original_author":"","original_author_id":0,"body":"**Charles W.** _(via Connect)_\n<!-- connect:user=1 -->\n\nReply from Charles: \r\n\r\n\"Thank you for the service area list. I compared it with the vendor numbers and counties Cassandra sent on October 20, which is what the forms use today to choose the vendor number for each client. Most of it matches. There are two differences, and a few smaller questions.\r\n\r\n1. Legacy Home Health Agency in the Houston area (Region 6)\r\nOn October 20, we were given a Region 6 vendor number for Legacy Home Health Agency (1034689), covering Brazoria, Fort Bend, Galveston, Harris and Montgomery. Marina's list says Houston is only Coastal.\r\n- Does Legacy Home Health Agency still hold that Region 6 number?\r\n- If it does, should it be on the service area list? If it doesn't, we'll remove it.\r\n\r\nLegacy Home Health Agency has no active clients in those counties today, so nothing prints differently either way.\r\n\r\n2. Legacy Home Care Services in Region 8 (the San Antonio area counties)\r\nMarina's list includes Legacy Home Care Services in all 18 Region 8 counties. On October 22, Cassandra told us Legacy Home Care Services has no TMHP license for Region 8. She said it is approved by the MCOs in Victoria County, and Victoria clients are billed under its Region 11 number.\r\n- Does the list show the areas the MCOs have approved, rather than the TMHP licenses?\r\n- Does Legacy Home Care Services now have a Region 8 vendor number? If so, please send it.\r\n- If it doesn't, should its Victoria County clients still print the Region 11 number? Legacy Home Care Services has 4 active clients in Victoria County: 2 managed by the Brownsville branch and 2 by the McAllen branch.\r\n\r\n3. Which number prints\r\nThank you for explaining that the branch can differ from the contracted region, such as clients in Gonzales County managed from Beeville. The forms already choose the vendor number by the client's county, not by the branch that manages them, so a Gonzales County client prints the Region 8 number. Can you confirm that managed-care clients (STAR+PLUS, STAR Kids) follow the same rule, using the same county list?\"","assets":[],"created_at":"2026-11-12T13:12:31-06:00","updated_at":"2026-11-12T13:12:31-06:00"},{"id":3106,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/232#issuecomment-3106","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/232","user":{"id":3,"login":"connect-bot","login_name":"","source_id":0,"full_name":"","email":"connect-bot@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/68a2723f7ad70dee2e1415be7488d84b","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/connect-bot","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2026-10-01T08:49:35-05:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"connect-bot"},"original_author":"","original_author_id":0,"body":"**Charles W.** _(via Connect)_\n<!-- connect:user=1 -->\n\nReply from Cassandra (11\/12\/2026):\r\n\r\n1. LHHA is currently on a vendor hold for the Houston area, and we are appealing the hold. At this time, I am not sure what the outcome will be.\r\n2. LHCS does not have a Region 8 contract with TMHP. We are approved to provide services in those areas, and if we have clients in those counties, we would use the Region 11 vendor number.\r\n3. Yes, our agency enters the vendor number based on the client's county with one minor exception: \r\n      * If a TMHP client moves to a different region after services have started, we must wait for the TMHP caseworker to send a new authorization for the new region before we can complete paperwork using the new vendor number. For example, a CHHC SA client begins services in the San Antonio area with vendor number 1031679 on the paperwork. If the client moves to CHHC HOU on November 1 and we need to complete a attendant orientation or any other type of visit; but we have not yet received an authorization for the new region, we can continue providing services but must continue using vendor number 1031679. Once TMHP sends the new 2101 Form (Authorization) for Region 6 with vendor number 1033946, we can use the new vendor number for visits occurring on or after the authorization's effective date.","assets":[],"created_at":"2026-11-12T13:13:14-06:00","updated_at":"2026-11-12T13:13:14-06:00"},{"id":3110,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/229#issuecomment-3110","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/229","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**Part A done** (7ef30cf): `scripts\/fax-accuracy.php`, `fax\/testset.py`, `fax\/bench.py`. Usage is in docs\/Fax.md \u00a75.\n\n**Production baseline, 2026-11-13: 1 field checked** (a 2101 client name, right). Production has no faxes accepted yet and almost no corrections, so A.1 has nothing to count. It becomes a baseline only once staff accept or correct faxes on the review screen. Until then the scores come from the test set.\n\n**Test set baseline** (synthetic 2101 + 2067, invented values, 5 variants): **84 \/ 120 fields exact.**\n\n| Variant | 2101 | 2067 |\n|---|---|---|\n| clean | 13\/16 | 6\/8 |\n| shifted+rotated | 14\/16 | 5\/8 |\n| stretched | 14\/16 | 7\/8 |\n| fax (200 DPI, 1 bit, speckle) | 13\/16 | 6\/8 |\n| fax+rotated | 5\/16 | 1\/8 |\n\nFindings for parts C and E:\n- The 2101's comments box (25) also reads the printed labels of the Authorizing Agents section below it.\n- The 2067's boxes pick up leading and trailing junk from leaders and rules (\"5125550142 .\", \"- _ _ _ QUIXOTE\").\n- A rotated page at fax quality loses most fields.\n\n**Timing** (`fax\/bench.py`, ExampleFax 2101, cache off): 78 calls, 12.3 s. Of that, 42 calls and 5.6 s go to finding labels (D.1). Classification takes 3.0 s, of which only 0.9 s is OCR; the rest is registration against each template tried (D.4).\n\n**Found along the way:** the synthetic 2101 had never printed 10 of its 19 invented values, because `insert_textbox()` silently writes nothing when the text doesn't fit. `fax\/test_redact.py`'s \"no identifier survived\" check passed on those 10 with nothing to remove. This is fixed in `fax\/synthetic.py`, but `test_redact.py` has not been re-run since the fix.","assets":[],"created_at":"2026-11-13T09:38:11-06:00","updated_at":"2026-11-13T09:38:11-06:00"},{"id":3112,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/229#issuecomment-3112","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/229","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**D.1 done** (130d22d) and **D.2 done** (f392c1c): Tesseract now runs in the worker's own process through `tesserocr`.\n\n**Same answers.** `fax\/test_tess.py --full` recorded all 503 Tesseract calls the reader makes on the test set and ExampleFax and ran each through both engines, the in-process one in shuffled order. Every answer was identical, byte for byte. `testset.py --compare`: 84\/120, same readings and boxes.\n\n**Timing** (`fax\/bench.py`, ExampleFax 2101, cache off):\n\n| | Start (A) | After D.1 | After D.2 |\n|---|---|---|---|\n| Tesseract calls | 78 | 54 | 54 |\n| Labels: anchors | 5.6 s | 1.94 s | 1.10 s |\n| Labels: region | 0.6 s | 0.63 s | 0.49 s |\n| Reading the fields | 1.2 s | 1.21 s | 0.15 s |\n| Classification (OCR) | 0.7 s | 0.69 s | 0.35 s |\n| Not Tesseract | 2.9 s | 2.86 s | 2.84 s |\n| **Page** | **12.3 s** | **7.34 s** | **4.93 s** |\n\n- **No OCR crop is written to `\/tmp`:** pixels are passed straight in, and `test_tess.py` asserts it.\n- **One thread per worker:** `OMP_THREAD_LIMIT=1` is now set in `tess.py` before the library loads. In-process, it would otherwise be read before `review_queue.py` sets it.\n- **Fallback:** without tesserocr, or with `FAX_TESS=cli`, the reader runs the command as before and warns once.\n\n**Secure box, before deploying:**\n1. `apt install libtesseract-dev libleptonica-dev pkg-config`\n2. `venv\/bin\/pip install -r fax\/requirements.txt` (builds tesserocr against the system Tesseract, never the wheel, which bundles its own version)\n3. `venv\/bin\/python fax\/test_tess.py`\n\n`tess.py` is part of the reader signature, so every fax is analysed again, with the same results.\n\n**Left for the 3 s target:** 2.8 s of the 4.9 s is not Tesseract, mostly registering the page against each template tried (D.4).","assets":[],"created_at":"2026-11-13T10:16:11-06:00","updated_at":"2026-11-13T10:16:11-06:00"},{"id":3117,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/229#issuecomment-3117","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/229","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**Part C done** (a8a92a7). This closes #224.\n\n**Field kinds.** 169 template fields now declare a `kind`: `person_name`, `medicaid_no`, `date`, `phone`, `number`, or `code` with a `pattern` (ICD-10 on the 3052's diagnosis codes). The new pure `fax\/field_rules.py` cleans each reading by its kind and names a wrong shape:\n- \"is not 9 digits\"\n- \"is not a date\"\n- \"has fewer than 10 digits\"\n- \"is not a number\"\n- \"has a digit in it\"\n\nA wrong shape caps the confidence at 0.35, so the field shows red on the review screen. The value is kept as read, never invented.\n\n**Names (C.2).** In a name, `!`, `|` and `1` touching a letter are read as I (l among lower case). A date of birth beside a client's name, such as \"(01\/02\/1950)\" or \"DOB 1-2-1950\", is taken off the name and kept in a new `<key>_dob` field: 13 such fields, on the 2101, 2067, 3052 and H2067-MC templates. Each declares `\"from\"` and uses the name's box. It is PHI and redacted like the name. A date of birth that isn't a real date is kept as read, with its problem. A glued suffix is left for B.7.\n\n**Production (C.3, C.4).**\n- **Values:** `raw_value_enc` holds the reading as read; `normalized_value_enc` holds it as cleaned.\n- **Problems:** they go in the new `fax_fields.problem` column (migration `20261113_fax-field-problem.sql`). It is unencrypted, so production keeps only the reader's fixed phrases (`FAX_FIELD_PROBLEM_RE`) and drops anything else.\n- **Review screen:** `\/fax-review\/N` shows the problem under its field until staff correct it. A blank `_dob` field isn't shown.\n\n**Correction to this issue's plan:** `normalized_value_enc` was not unused. The review save wrote the correction into it. Corrections have been in `fax_field_correction` since 11 Nov, so the save no longer writes there, and the column always holds the reader's cleaned value. The update comparison (`fax_intake_stored_values()`) and the stale check in `fax-accuracy.php` were adjusted to match.\n\n**Numbers.**\n- Medicaid numbers on dev: 30,087 of 30,214 are 9 digits, so the shape check flags about 0.4% of clients. It is a \"check this\" note, not a refusal.\n- Test set: **85\/120** (was 84). No box moved.\n- Tests: `fax\/test_field_rules.py` 59 (new); `fax\/test_extract_fields.py` +12, plus a check of every template field; `scripts\/test-fax-push-rules.php` +14; `scripts\/test-fax-intake-state.php` +9.\n\n**Deploy:**\n1. **Production first:** run `php scripts\/migrate.php --apply` before deploying the code. Without the column, intake fails on the first push.\n2. **Secure box:** the templates, `extract.py` and the reader signature changed, so every fax is analysed again. Some readings change this time: cleaned names and new problem notes.\n\n**Next in the plan:** part B, which uses the client record on production and closes #225.","assets":[],"created_at":"2026-11-13T13:04:27-06:00","updated_at":"2026-11-13T13:04:27-06:00"},{"id":3120,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/229#issuecomment-3120","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/229","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**Part B done** (0e04387). This closes #225. It runs on production only: the reader is unchanged, and nothing new goes to the secure box.\n\n**When the number as read finds nobody** (`fax_member_possible()`; pure rules in `code\/fax_match_rules.inc.php`). Every lookup is by hash in the fax's agency. The client list is never decrypted to search it.\n1. **Near number (B.1, B.2).** Every number one step away is hashed and looked up: one digit changed, missing or extra, or two neighbours swapped. That is about 200 numbers for 9 digits. One letter a reader writes for a digit (such as O for 0) counts as that digit. Only the names of clients found this way are decrypted, and the name must agree with the form's (`fax_match_name_distance()`):\n   - word order, punctuation, initials and a suffix are ignored;\n   - a word of up to 3 letters must match exactly, up to 6 may be 1 letter off, and longer ones 2;\n   - one letter more per word is allowed when the form's date of birth, with the record's name, gives that client's `name_dob_hash`.\n2. **Name and date of birth (B.3).** The key is built exactly as the VESTA load builds `name_dob_hash`, for every way the name splits into last and first. The suffix is tried in the last name first (\"DOE SR\"), then without, then as read. Checked on dev: 20,000 records all store `Y-m-d`, and 19,949 rebuild their hash.\n3. **Name only (B.6).** This runs only when 1 and 2 find nobody, and only when exactly one client has the name. It is an exact match on `name_hash`: a fuzzy name search would mean a plaintext scan of the client list.\n\n**Exactly one, or nothing (B.4, B.5).** One client is offered. Two or more is shown as \"More than one client matches\", decided before caseload scope, so a client outside the reader's caseload never makes another the only one. Per the 13 Nov decision, **nothing attaches by itself**:\n- The review screen shows **Possibly**, the name on record next to the name as read, and why, with a **This is the client** button.\n- Taking it is a manual attachment. The `fax_form_match` row records how it was suggested (e.g. \"suggested: number 1 step off\"), never a value, and only when `fax_suggestion_detail()` re-derives the same suggestion. The request's word is not trusted.\n- The queue shows an icon.\n\n**Suffix (B.7, #225).** \"LASTNAMESR\" is shown as \"LASTNAME SR\" when the client on record (attached, found or offered) has that word. A last name that really ends in those letters, or a name with no client, stays as read. The stored reading is never rewritten.\n\n**Within one fax (B.8).** Forms whose numbers are one step apart and whose names agree are treated as one client. The summary lists both numbers and says which to believe: the one on record, else the one read more clearly.\n\n**Numbers.** Tests: `test-fax-match-rules.php` 70, `test-fax-match-state.php` 33 (scratch agencies), `test-fax-queue-rules.php` +19. The other fax suites still pass. Dev's 21 faxes: 7 found by number, 1 offered by name only, 10 ms. None of them uses the near-number or date-of-birth path, so those are covered by the tests only.\n\n**Deploy:** code only, with no migration and no change on the secure box.\n\n**Done when**, checked against the tests:\n- A number one digit wrong with the right name shows \"Possibly \u2026\"; with a different name it shows nobody.\n- A name and date of birth with no number shows the client.\n- \"LASTNAMESR\" shows as \"LASTNAME SR\", and a last name that really ends in SR stays whole.\n- Two near clients are never resolved.\n\n**Next in the plan:** E.1 and E.2 (grey page, `tessdata_best`), scored with part A.","assets":[],"created_at":"2026-11-13T13:29:20-06:00","updated_at":"2026-11-13T13:29:20-06:00"},{"id":3126,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/229#issuecomment-3126","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/229","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**E.1 and E.2 done** (5f69194). Both are kept: together they score best.\n\n**Test set: 85 \u2192 98\/120** (character error rate 34.5% \u2192 30.5%). A rotated page at fax quality goes from 6 to 13 of 24.\n\n| What Tesseract reads | Tesseract's own model | tessdata_best |\n|---|---|---|\n| Thresholded page (before) | 85 | 90 |\n| Grey page, blurred | 97 | **99** |\n| Grey page, not blurred | 72 | \u2014 |\n| Grey page, everything far from ink whitened | 85 | \u2014 |\n\n**E.1: the grey page.** Tesseract now reads each field's value from the page before it is thresholded (`preprocess.grey_page()`). The page keeps the same crop, deskew and median blur, so every box crops the same place.\n- Rules and leaders are whitened using the thresholded crop.\n- Whether a box is empty is still judged on the thresholded crop.\n- Placing boxes, labels, checkboxes, classification and registration are unchanged.\n- The blur has to stay. Without it, a fax's speckle was read as punctuation around every value: the fax-quality 2101 dropped from 13 to 4.\n- ExampleFax's 2101 comes out about even. One stray quote is gone and one full stop is found, but \"Annual\" now reads \"Annuai\" and \"individual\" reads \"individua!\".\n\n**E.2: tessdata_best for values only.** Using it for every call scored 99, but ExampleFax's page took 7.8 s instead of 5.0 s, almost all of it in finding labels and classifying. Those decide where boxes are, not what they say.\n- `tess.py` now has two models. `fields` (tessdata_best English 4.1.0) reads values, 26 calls a page: 0.16 \u2192 0.45 s. `labels` (Tesseract's own) does everything else. **Page: 4.9 \u2192 5.2 s.**\n- The model file is `fax\/tessdata\/eng.traineddata`, which is not committed. The new `fax\/get_model.py` fetches it and refuses a file whose SHA-256 differs; `--check` only checks.\n- Without the file, values are read with Tesseract's own model, and a warning says so once.\n\n**Fixed along the way:**\n- **The OCR cache key had no model in it**, so after a change of model the reader would have kept giving the old model's cached answers. Each key now carries its model file's digest, and the analysis signature carries both models.\n- With `--tessdata-dir`, the command-line engine wrote nothing: the `tsv` config file is looked up in the model's folder. It now asks for TSV with `-c tessedit_create_tsv=1`.\n- `test_tess.py --full` replays all 503 calls with their model through both engines: every answer identical.\n\n**Secure box:** run `venv\/bin\/python fax\/get_model.py`, or copy the file over and run `--check`. The reader signature changes, so every fax is analysed again, and this time readings change.\n\n**Still open for E.1:** `pdfimages -list` on one real fax, to see whether faxes arrive at 200 DPI, 1 bit. ExampleFax is a 300 DPI colour scan, so it does not answer this.\n\n**Next in the plan:** E.3 \/ E.4 is only needed if identity fields are still short. On the test set, almost every remaining miss is a stray leading or trailing mark (\". \", \"* \", \"\u2018\"), which is a clean-up job rather than a reading problem.","assets":[],"created_at":"2026-11-13T15:02:29-06:00","updated_at":"2026-11-13T15:02:29-06:00"},{"id":3127,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/229#issuecomment-3127","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/229","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**E.1's open check: what the real faxes hold.** I ran `pdfimages -list` on three faxes (10 pages). The output shows only image properties, no content.\n\nEvery page is one **1-bit CCITT image, 1728 px wide, at 204 \u00d7 196 DPI** (standard fax fine mode). Two pages are 730 bytes, which means they are blank. So the test set's fax-quality variant (200 DPI, 1 bit) is a fair stand-in.\n\n**One difference.** A 1-bit CCITT page built the same way and rasterised at 300 DPI, as the reader does it, does **not** come out pure black and white. Poppler smooths it while scaling it up: 256 grey levels, with about 2.4% of pixels in between. The test set instead upscales its fax pages with nearest-neighbour, so they stay pure black and white.\n\nThis means real faxes give the grey page more to work with than the test set does. If anything, E.1 should help real faxes at least as much as it helped the test set.\n\nTo make the test set truer, `testset.fax_quality()` could round-trip the page through a CCITT PDF and poppler. That would change the baseline numbers, so it is left as a separate step.","assets":[],"created_at":"2026-11-13T15:03:56-06:00","updated_at":"2026-11-13T15:03:56-06:00"},{"id":3130,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/229#issuecomment-3130","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/229","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**Real faxes measured, and the test set rebuilt to match** (ef6b629, ed4c85e).\n\n`fax\/fax_profile.py` (new) measures fax pages and prints numbers only: no values, file names or images. It writes nothing. I ran it on 40 real faxes (152 pages):\n\n| | Real faxes | Test set's fax pages until now |\n|---|---|---|\n| Image | one 1-bit CCITT image a page, 1728 px wide, 204 \u00d7 196 DPI; **10% at 204 \u00d7 98** (\"standard\" mode) | 200 \u00d7 200, never 98 |\n| Grey pixels after rasterising at 300 DPI | median 3.6%, p90 7.1% | 0 |\n| Isolated specks per megapixel | median 0.1, p90 17, max 197 | about 670 |\n| Skew | under 0.3\u00b0 almost always, max 1.1\u00b0 | 0.6\u20130.8\u00b0 |\n| Stroke width | 4 px | 3.5 px |\n\nForm mix: 108 pages were forms the reader doesn't know, 23 were cover sheets, 16 were 2101s, 2 were 2067s, and one each was a 3052p2, an H2067-MC and an incident report. Most pages are ones the reader skips, so classification speed (D.3) matters.\n\n**The new `testset.fax_quality()`** makes a page the way a real fax arrives:\n1. Scale it to 204 \u00d7 196 (or 204 \u00d7 98).\n2. Make it 1-bit and flip 4e-5 of its pixels, which gives about real p90 speckle.\n3. Put it in a PDF at that resolution.\n4. Rasterise it with poppler, as `reading.rasterize()` does.\n\nIts pages measure 5% grey, 14\u201320 specks per MP, and 4\u20135 px strokes. There are now seven variants, adding \"fax standard\" (204 \u00d7 98) and \"fax noisy\" (5e-4, about the most speckle seen): 168 fields in all.\n\n**E.1 re-scored on the realistic pages** (field values read with tessdata_best):\n\n| What field values are read from | Right of 168 | Character error rate |\n|---|---|---|\n| **Grey page with blur (shipped)** | **141** | 27.6% |\n| Grey page without blur | 137 | 26.3% |\n| Thresholded page (before E.1) | 118 | 32.8% |\n\nThe blur stays. Before this, it might have been winning only because of the old test set's heavy speckle, but it holds on realistic pages too. The grey page also gains more on realistic faxes than the old test set showed: +23 of 168, against +13 of 120. The reader itself is unchanged. The new baseline is 141\/168.","assets":[],"created_at":"2026-11-13T15:49:09-06:00","updated_at":"2026-11-13T15:49:09-06:00"},{"id":3132,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/229#issuecomment-3132","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/229","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"**D.3 measured, and not done as planned. Registration's rule matching made 2\u20134\u00d7 faster instead** (47dec6b). Same readings.\n\n**What a skipped page costs.** I timed every classification step on fax-quality test pages: a blank 2076, a typed letter, a cover sheet, a 2101 and a 2067.\n\n| Step | Seconds |\n|---|---|\n| Six id-box reads, together | about 0.05 |\n| Header band and cover-sheet reads | 0.3\u20131.2 |\n| Registering against the six templates | 0.6\u20133.2 |\n| Deskew (`preprocess.skew_angle()`, `HoughLinesP`) | 1.1\u20132.4 |\n\nReading the top of the page once would save only 0.1\u20130.3 s, and it changes the words classification sees. It was not done. The plan's estimate of 1 s assumed the id boxes were expensive, and they are not.\n\n**What was slow.** `register.fit_band()`, for every candidate fit, found the nearest unused page rule with a `min()` over all of them. The new `register.nearest_unused()` finds the same index with `bisect`, with ties to the lowest index as before.\n\n| Registration | Before | After |\n|---|---|---|\n| Blank 2076 (many rules) | 3.20 s | 0.72 s |\n| 2101 | 2.08 s | 0.92 s |\n| ExampleFax's 2101, whole page | 5.2 s | 5.0 s |\n\n**Same answers:**\n- `fax\/test_register.py` checks the new search against the old `min()` on 20,000 random cases, with repeated values and ties: 175\/175.\n- `testset.py --compare`: 141\/168, same readings, no box moved.\n- `test_classify` 29\/29, `test_extract_fields` 645\/645, `test_classify_rules` 148\/148, `test_review_queue` pass.\n\n**Secure box:** `register.py` is part of the reader signature, so every fax is analysed again after the deploy, with the same results. Restart `review_data.py work`: its child processes keep the old code loaded until they are restarted.\n\n**Still open for the targets** (skipped page under 0.7 s, cold 2101 under 3 s):\n1. **The deskew's `HoughLinesP`**, 1.1\u20132.4 s on every page, at 0.1\u00b0 steps over 180\u00b0. A narrower angle range, or `register.rule_skew()`'s shear search, would change the angle found. It is an experiment to score against the test set, not a speed-up with identical results.\n2. **The header and cover reads**, about 1 s on a page full of text.","assets":[],"created_at":"2026-11-13T16:30:01-06:00","updated_at":"2026-11-13T16:30:01-06:00"},{"id":3135,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/222#issuecomment-3135","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/222","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Done in ed9bd10: a client who isn't transferring gets a blank transfer statement, not \"Not a transfer case\". The new transfer form from 11 Nov (ac98a0c) still works this way.","assets":[],"created_at":"2026-11-16T14:04:53-06:00","updated_at":"2026-11-16T14:04:53-06:00"},{"id":3136,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/232#issuecomment-3136","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/232","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Done in b200b3a, following Cassandra's 12 Nov answers:\n- A TMHP client's authorization decides the vendor number before the county does. A client who moves region keeps the old number until the new region's 2101 starts.\n- Legacy Home Care Services clients in the 18 Region 8 counties print its Region 11 number.\n- Managed care and PCS still go by the client's county.\n\nStill to watch: Legacy Home Health Agency's Region 6 number (1034689) is on a vendor hold that's being appealed. If the appeal fails, remove that number from the vendor list. No active clients are affected today.","assets":[],"created_at":"2026-11-16T14:04:53-06:00","updated_at":"2026-11-16T14:04:53-06:00"},{"id":3137,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/228#issuecomment-3137","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/228","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Done in bb50d5f: the signing screen asks whether each attendant is here to sign. \"Not here to sign\" means their lines are no longer required and print blank.\n\nThe questions still open with the customer (Attendant Orientation without the attendant's signature; blank or \"Not present\") are now #234.","assets":[],"created_at":"2026-11-16T14:04:53-06:00","updated_at":"2026-11-16T14:04:53-06:00"},{"id":3143,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/235#issuecomment-3143","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/235","user":{"id":3,"login":"connect-bot","login_name":"","source_id":0,"full_name":"","email":"connect-bot@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/68a2723f7ad70dee2e1415be7488d84b","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/connect-bot","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2026-10-01T08:49:35-05:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"connect-bot"},"original_author":"","original_author_id":0,"body":"**Charles W.** _(via Connect)_\n<!-- connect:user=1 -->\n\nSee transcript of screen recording at: docs\/Recording 2026-11-13 093935.vtt","assets":[],"created_at":"2026-11-16T15:48:12-06:00","updated_at":"2026-11-16T15:48:12-06:00"},{"id":3146,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/235#issuecomment-3146","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/235","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"Cassandra's request to combine visit types is now Action Item #236. That item covers combining at the start of a visit and adding a visit type during a visit.","assets":[],"created_at":"2026-11-16T16:20:33-06:00","updated_at":"2026-11-16T16:20:33-06:00"},{"id":3149,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/236#issuecomment-3149","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/236","user":{"id":3,"login":"connect-bot","login_name":"","source_id":0,"full_name":"","email":"connect-bot@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/68a2723f7ad70dee2e1415be7488d84b","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/connect-bot","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2026-10-01T08:49:35-05:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"connect-bot"},"original_author":"","original_author_id":0,"body":"**Charles W.** _(via Connect)_\n<!-- connect:user=1 -->\n\nMessage from Cassandra: \r\n\"A start of care without a AO would only include the following: \r\n\r\n Other combinations could be: \r\nAO\/PHV\r\nAO\/PHV\/Change of Address\r\nAO\/PHV\r\nAO\/PHV\/Service Plan for Increase or Decrease\r\nAO\/PHV\/AR\r\nAO\/ Change of Address\r\n\r\n\r\nChange in tasks\/PHV\r\nChange in tasks\/AR\/PHV\r\n\r\nChange of Address\/AO\r\nChange of Address\/PHV\r\nChange of Address\/AR\r\nChange of Address\/AO\/PHV\r\nChange of Address\/AR\/AO\r\n\r\nPHV\/AR\r\n\r\nAR\/AO\r\n\r\nI believe I got them all, maybe some I include that they obviously overlap....Let me know if I am not clear.\"","assets":[{"id":10,"name":"photo-20261119-083815-1.png","size":53444,"download_count":4,"created_at":"2026-11-19T08:38:16-06:00","uuid":"8c13e2c3-a859-4c3a-a52e-e2e3316609fb","browser_download_url":"https:\/\/www-s01.apinet.com\/codeforge\/attachments\/8c13e2c3-a859-4c3a-a52e-e2e3316609fb","type":"attachment"}],"created_at":"2026-11-19T08:38:15-06:00","updated_at":"2026-11-19T08:38:16-06:00"},{"id":3150,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/236#issuecomment-3150","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/236","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"## Implementation plan\n\nThis plan tells how we will do this Action Item. It has seven phases. Each phase is one commit or a small set of commits, with its tests. No phase stops a visit that is in progress.\n\n### The main decision: one release for the visit types that combine\n\nToday, each visit type has its own release. A release pins one visit type, one interview and one version of each form. A visit pins one release.\n\nWe will make **one release for all the visit types that can combine**. We call these visit types the **family**. The family code is `CLIENT_VISIT` (D3). The family release pins:\n\n- the packet of each visit type in the family,\n- one interview for the family,\n- one version of each form that the family uses.\n\nWe use this design for three reasons:\n\n1. A visit pins one release, as it does today. When the supervisor adds a visit type, the visit uses the release that it already has. The visit does not read the active release again.\n2. Each form has one version in the release. Two visit types cannot pin two different versions of one form.\n3. Each question occurs one time in the family interview. Thus the system does not merge interviews during a visit. We merge them one time, when we write the family interview.\n\nWe compared the five interview files (`SOC_AO`, `AO`, `AR`, `ISP_COA`, `SV`):\n\n- They ask 313 different questions. 283 of these questions occur in two or more files.\n- 269 of the 283 questions are the same in each file. All 283 questions are in the same step in each file.\n- 14 questions are different. 7 of them get a different start value from the visit type. 6 have only a different help text. 1 has a different lookup.\n\nThus one interview for the family is possible.\n\n**The family:** SOC (new), AO, AR, PHV, ISP_COA, SPC_CHANGE, SPC_ADDED_TASKS.\n\nPHV, SPC_CHANGE and SPC_ADDED_TASKS do not need their own interview. All their forms are in the AR or AO interview. When these visit types join the family, the family interview asks their questions.\n\n**Not in the family:** SV, AE, PHONE_AO, PRE_INITIAL, INIT_TRANSFER, CHANGE_PROGRAM, PAY_RATE_INCREASE and TOKEN_INSTALL. Each of these keeps its own release, as today. Their visits have a list with one visit type.\n\n**The alternative that we do not use:** a release for each visit type, merged when the visit starts. Two releases can pin different versions of one form. Two interviews can word one question differently. Then a question can change on the screen when the supervisor adds a visit type.\n\n---\n\n### Phase 1 \u2014 The rules and the files (no database)\n\n1. Make `docs\/form-packets\/soc.json` from `soc-ao.json`. Remove `task_guide`, `things_may_not_do`, `employee_visit_plan` and `payroll_action`. Set Form 3040 to `require: {\"pages\":[1]}`.\n2. The family interview file (Phase 2) lists the visit types of the family. This list is the setting that we control. There is no screen for it.\n3. Write the pure file `code\/form_v2_combine_rules.inc.php`:\n   - `form_v2_combine_error($family, $types)` refuses an empty list, a visit type that is not in the family, and a visit type that occurs two times. It refuses SOC with a visit type other than AO.\n   - `form_v2_combine_change($types, $op, $type)` gives the new list for `add`, `remove` or `cancel`. It refuses to remove the last visit type. Only AO can be cancelled. When AO is the only visit type, a cancel gives \"abandon the visit\" (D1), not an empty list.\n   - `form_v2_combine_diff($before, $after)` gives the forms and pages that a change adds or removes. The screen shows this before the supervisor confirms.\n   - `form_v2_combine_title($types)` gives the name of the visit, for example \"Annual Reassessment + Attendant Orientation\".\n   - `form_v2_combine_visit_kind($types)` gives the one visit type that the paper shows (D2): SOC if the list has SOC, then AR, then AO.\n4. Write `scripts\/test-form-v2-combine-rules.php`. It must show that:\n   - SOC + AO merges to the same outputs as SOC_AO.\n   - Each of Cassandra's 12 combinations gives the forms and pages in the issue.\n   - When AO is cancelled from SPC_ADDED_TASKS + AO, only the Payroll Action Form goes.\n   - A cancel of AO when AO is the only visit type gives \"abandon the visit\".\n   - The rules refuse each incorrect list in step 3.\n\n### Phase 2 \u2014 One interview for the family\n\n1. Make `docs\/form-v2-interviews\/CLIENT_VISIT.json`. Start from `SOC_AO.json`: it has all the steps of `AO`, `AR` and `ISP_COA`. Add the questions that only the other files have.\n2. Add the fact `visit.types`: the list of visit types that are active in the visit. Conditions can read it. Add a start value that has a condition, if the interview format does not have one.\n3. Change the 7 questions that get their start value from the visit type:\n\n| Question | Today | In the family interview |\n|---|---|---|\n| Client Information Sheet, visit type | SOC: `soc`. AR: `ar`. | `soc` if the list has SOC, else `ar`. |\n| `visit.visit_kind` (used in the ISP limitations sentence) | One value for each file | `form_v2_combine_visit_kind()`: SOC, then AR, then AO (D2). |\n| ISP, new or ongoing schedule | SOC: `new`. AR: `ongoing`. | `new` if the list has SOC, else `ongoing`. |\n| Service start date | SOC and AO: always shown. AR and ISP_COA: shown only for a new schedule. | Always shown if the list has SOC. Else shown only for a new schedule. |\n| Form 3040, visit type for attendants A, B and C (3 questions) | AO or SV, from the file | AO if the list has AO, else SV. |\n\n4. Compare each form's \"visit type\" box with the paper. Do this before Phase 2 is complete (D2).\n5. For the 6 questions with a different help text, select one help text. For `shared.other_services.dahs_name`, select one lookup.\n6. Change the publish check (`form_v2_publish_check()`). It must validate the interview against each permitted combination of visit types, not against one set of forms. If one combination fails, the check stops the publish and names the combination.\n7. Do not delete the old interview files yet. Phase 7 retires them.\n\n### Phase 3 \u2014 The family release\n\n1. The release manifest gets `packets` (a list) in place of `packet`. A release with one visit type has a list with one item. Read the old `packet` key as a list with one item, so that old releases continue to operate.\n2. `form_v2_pipeline_run()` publishes the family interview, the packet of each visit type in the family, and all their forms in one release.\n3. Activation stays per agency. When the family release is active, the start screen offers its visit types in place of the old releases for SOC_AO, AO, AR and ISP_COA.\n4. **Pages come from the visit, not from the release.** Today `form_v2_release_pages()` reads the pages from the one packet in the manifest. After this phase, the pages come from the merged outputs of the visit's list. Change each place that narrows the pages: `form_v2_workflow_validation_ctx()`, `form_v2_release_runtime()` (through `form_v2_visit_runtime()`), `form_v2_signing_maps()` and `form_v2_release_pdf()`. Update `scripts\/test-form-v2-pages.php`.\n\n### Phase 4 \u2014 A visit with a list of visit types\n\n1. Add a migration for the table `form_v2_visit_type`: the visit, the agency, the visit type, the packet version, the status (`active`, `removed` or `cancelled`), the order, who added it and when, and who ended it and when.\n2. In the same migration, add one row for each visit that exists. Then all the code reads the list, and no code reads `form_v2_visit.packet_code` as the visit type.\n3. Change `form_v2_visit_plan()` and `form_v2_visit_prepare()` to accept a list. They merge the packets of the list with `form_packet_merge()`.\n4. The start screen lets the supervisor select one or more visit types of the family. It asks for a choice (for example, the Consent Form) before the visit starts, as today.\n5. The visit, the visit list and the visit history show all the visit types. They show a removed visit type as removed and a cancelled AO as cancelled.\n\n### Phase 5 \u2014 Add or remove a visit type during the visit\n\n1. Add the endpoint `backend\/formV2VisitTypes.php`. It is a POST with the CSRF token. It checks `client.visitsV2\/Conduct`, the client's scope and the writer token, as a save does.\n2. To add a visit type:\n   - Merge again with the release that the visit pinned.\n   - Ask for a new choice, if one is necessary.\n   - Seed only the questions that are new to the visit. Do not change an answer that the visit has.\n   - Show the forms and pages that the visit adds (`form_v2_combine_diff()`). The supervisor confirms.\n3. To remove a visit type, merge again without it. The visit keeps all the stored answers. If the supervisor adds the visit type again, the answers are there.\n4. **Correct `form_v2_visit_drop_hidden()`.** Today it deletes the answers to the questions that the visit does not show. After a remove, the questions of a removed form are not shown, so the function would delete their answers. Change it: delete only an answer that a `visible_if` condition hides, not an answer whose form left the visit.\n5. Each change increases the visit's revision. Thus the review candidate is not current. The next candidate uses `form_v2_candidate_carry()`, so the client signs again only the new forms and pages, and the forms whose answers changed.\n6. Record each change in `form_v2_visit_op` and in the audit: who, when, and which visit type.\n7. No office approval is necessary.\n\n### Phase 6 \u2014 Attendant presence at signing (#228)\n\n1. Before the review candidate is made, ask for each active attendant: \"Is attendant A present?\" Use the existing \"not here\" record (`form_v2_visit_signer`, `absent`).\n2. Replace the rules that read one `packet_code` (`FORM_V2_SIGN_ATTENDANT_MUST_SIGN`, `FORM_V2_SIGN_ATTENDANT_OPTIONAL`, `form_v2_sign_absence_error()`, `form_v2_sign_default_absent()`) with rules that read the visit's list.\n3. If an attendant is present, the attendant signs. The supervisor cannot mark a present attendant \"not here to sign\".\n4. If no attendant is present, and the list has AO with other visit types, the system tells the supervisor that the Attendant Orientation will be cancelled. When the supervisor confirms, the system cancels AO with Phase 5. It does not ask for a reason.\n5. If no attendant is present, and AO is the only visit type, the system tells the supervisor that the visit will be abandoned. The supervisor must confirm. Then the system abandons the visit (`form_v2_visit_abandon()`). If the supervisor does not confirm, nothing changes (D1).\n6. If no attendant is present, and the list has SPC_ADDED_TASKS, the Change in tasks continues. Its attendant lines stay unsigned. This does not stop the visit.\n7. Tests: add cases to `scripts\/test-form-v2-sign-rules.php` for AO, AO alone, SPC_ADDED_TASKS, AO with SPC_ADDED_TASKS, and a visit with two attendants where only one is present.\n\n### Phase 7 \u2014 Retire the old visit types, and the documents\n\n1. Activate the family release at each agency. Then no new visit starts on SOC_AO, AO, AR or ISP_COA as a single release.\n2. Visits that are in progress on an old release continue on it. Their pins do not change.\n3. Retire the old interview files and `soc-ao.json` when no visit in progress uses them. Look at all files that name `SOC_AO` (`grep -rl SOC_AO code scripts docs`).\n4. Update docs\/Forms.md, docs\/FormsV2Plan.md, docs\/UserChangelog.md and docs\/Changelog.md.\n\n---\n\n### Decisions (19 November 2026, Charles)\n\n- **D1. AO alone, with no attendant present.** The system warns the supervisor that the visit will be abandoned. The supervisor must confirm. Then the system abandons the visit. (Phase 6, step 5.)\n- **D2. What the paper shows for a combination.** `visit.visit_kind` is SOC if the list has SOC, then AR, then AO. We compare each form's \"visit type\" box with the paper before Phase 2 is complete.\n- **D3. Name of the family.** `CLIENT_VISIT`. Staff do not see this name.\n","assets":[],"created_at":"2026-11-19T09:06:34-06:00","updated_at":"2026-11-19T09:16:10-06:00"},{"id":3152,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/236#issuecomment-3152","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/236","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"## Progress: Phases 1\u20136 built (2026-11-19)\n\nEverything is committed on `main`; nothing is pushed yet. Phase 7 is still open (see below).\n\n| Commit | Phase |\n|---|---|\n| `73b596e` | **1.** Combining rules (`code\/form_v2_combine_rules.inc.php`) and a new Start of Care packet (`soc.json`: SOC\/AO minus the orientation-only forms) |\n| `47cd43d` | **2.** One shared interview for the family `CLIENT_VISIT` (D3), checked against all 65 allowed combinations; conditions can read `visit.types`; `starts_as_if` |\n| `5401a9e` | **3.** One release that pins every member's packet; page narrowing follows the visit's types |\n| `d3c00ac` | **4.** A visit holds a list of visit types (`form_v2_visit_type`, migration `20261119_form-v2-visit-type.sql`, which backfills existing visits); several can be chosen at the start |\n| `45ccbf3` | **5.** Add, remove or cancel a visit type during the visit. A preview comes first, then a confirm; no answer is ever deleted; no office approval |\n| `a032d37` | **6.** Signing: attendant presence decides the orientation (with #235). With nobody present, AO is cancelled, or the visit is abandoned when AO is the only type (D1); a Change in tasks continues unsigned |\n| `4c9512f` | Docs: Forms.md \u00a79.3.1, FormsV2Plan, changelogs, DesignRationale |\n\nThe visit's kind follows D2: SOC, then AR, then AO.\n\n### Tested\n- All the forms test suites pass, including the database ones.\n- **Tried in a browser on dev:**\n  - Choosing Start of Care clears Annual Reassessment and keeps Attendant Orientation.\n  - An AR + AO visit plans and starts with the right forms.\n  - Removing AO previews 3040 page 2, Task Guide, Things Your Attendant May Not Do, Employee Visit Plan and Payroll Action Form; after confirming, the visit becomes an Annual Reassessment, with \"Attendant Orientation (AO): removed\" shown.\n- **Not yet tried in a browser:** the nobody-present signing flow (cancel the orientation, or abandon the visit). The rules have their own tests.\n\n### Still open (Phase 7)\n- [ ] **Production:**\n  - run the migration;\n  - activate the `CLIENT_VISIT` release for each agency on `\/admin\/form-v2-releases`.\n- [ ] **Retire `soc-ao.json` and the AO, AR and Change of Address interviews** once no visit in progress uses them. Until then, a change to one of them must also go into `CLIENT_VISIT.json`.\n- [ ] **Confirm with the customer:** in a Change in tasks visit, does each attendant start as SV or as AO? Each one starts as SV for now.","assets":[],"created_at":"2026-11-19T11:53:40-06:00","updated_at":"2026-11-19T11:53:40-06:00"},{"id":3168,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/231#issuecomment-3168","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/231","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"## Phase 0 decisions (2026-11-19)\n\n- **D1** Interview offline; checking, printing, review and signing stay online. FormsV2Plan \u00a78.4 is unchanged. The app says so before the visit starts.\n- **D2** Source goes in `ios\/` in this repository.\n- **D3** One app (`com.apinet.homehealth`) with an agency selector.\n- **D4 \/ D5** Deferred to Phase 4. Decide them only if the Phase 3 field test shows that Phase 4 is needed.\n- **D6** TestFlight for the field test, then unlisted App Store distribution when the app is in full use.\n\nRecorded in `docs\/DesignRationale.md` (Sign-in \u2192 The native iOS app) and in `docs\/FormsV2Plan.md` \u00a73.2 and \u00a78.4.\n\n## Phase 1, server half: done (84b7d99)\n\n- Enrollment exchange: `\/mobile-enroll` (the system browser; the person confirms) \u2192 `com.apinet.homehealth:\/\/enroll?code&state` \u2192 `POST \/do\/mobileEnrollExchange {code, code_verifier, platform, device_id, app_version}`. The code is bound to a PKCE S256 challenge, lives 120 s and is spent on its first use. Pure rules are in `code\/mobile_enroll_rules.inc.php` and tested by `scripts\/test-mobile-enroll-rules.php`. Migration `20261119-02`.\n- One gate for both ways to get a token: `mobile_token_refusal()` and `mobile_token_mint()`.\n- The menus offer Visits (native screen `visits`) on `client.visitsV2\/Conduct` or Superuser.\n- `mobileSessionStart` returns `idle_timeout_seconds` (900). `docs\/TokenHelp.md` is corrected.\n- Verified on dev with curl. A Bearer request reaches the `formV2Visit*` guards. A full save with a Bearer token and no cookie is still not tried.\n\n## Phase 1, app shell: built (6545515)\n\n`ios\/` is SwiftUI for iOS 17, with the project generated by XcodeGen from `ios\/project.yml`. It has:\n\n- enrollment through `ASWebAuthenticationSession`;\n- the device token in the Keychain;\n- the app lock (the server's idle limit, and going to the background);\n- the agency selector;\n- the visit pages in a `WKWebView`, with a new `htoken` each time it opens;\n- the cover in the app switcher;\n- the different ways to lose the sign-in: a 401 keeps the local data, a sign-out erases it, and a different person erases the first person's data;\n- the sign-out guard.\n\n`backend\/mobileSignOut.php` is new. 16 XCTest cases pass, and the simulator build is clean.\n\n**Not yet verified:** the interactive sign-in in the simulator, and the visit pages inside the app.","assets":[],"created_at":"2026-11-19T14:30:25-06:00","updated_at":"2026-11-19T14:39:08-06:00"},{"id":3169,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/231#issuecomment-3169","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/231","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"## Phase 2: done (5a98a74)\n\n- **Local copies.** Every library that the layout pins with SRI is now in `web\/lib\/{library}\/{version}\/`. Each file is the same as the cdnjs file, byte for byte, and the layout keeps its SRI. The Font Awesome webfonts are included. Leaflet has no pin and stays on the CDN.\n- **Static scripts.** The scripts of the two visit pages are now `web\/js\/visit-v2.js` and `web\/js\/visits-v2.js`. The code is unchanged. The pages give their values in a JSON block and load each script by a content-hash URL (#230 B13).\n- **Transport.** `HHTransport` (`web\/js\/hh-transport.js`) carries every POST that the visit pages make. In a browser it uses `fetch()`. In the app it sends a message to Swift. The app's `NativeTransport` uses the device token. It accepts only `formV2Visit*` requests, only for the selected agency, and only from our own main frame.\n- **Manifest.** `\/{agency}\/do\/mobileAssetManifest` gives each file under `web\/js\/` and `web\/lib\/` with its SHA-256, and one `version` for all of them.\n- **Browser check.** On dev the browser operates as before: open a visit, save an answer, search for a client. There were no console errors.\n- **\u00a711, first item: verified.** A visit opened and saved with only the device token and no cookie. A retry with the same `op_uuid` gave the same result.\n\n**Still not verified (\u00a711):** PDF.js and the CSP nonce rule when the app serves pages from the iPad. These belong to Phase 4.\n\n**Next: Phase 3.** The native outbox goes into `NativeTransport`, so that answers are held on the iPad.","assets":[],"created_at":"2026-11-19T14:48:57-06:00","updated_at":"2026-11-19T14:48:57-06:00"},{"id":3171,"html_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/231#issuecomment-3171","pull_request_url":"","issue_url":"https:\/\/www-s01.apinet.com\/codeforge\/apiintl\/hhmanager\/issues\/231","user":{"id":1,"login":"charles","login_name":"","source_id":0,"full_name":"Charles Willgren","email":"charles@noreply.www-s01.apinet.com","avatar_url":"https:\/\/www-s01.apinet.com\/codeforge\/avatars\/d3c894f7297c5a18eb3f6ac837c335b11a00aa9cc0961323771632b1e2d61bb2","html_url":"https:\/\/www-s01.apinet.com\/codeforge\/charles","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-08T10:03:41-06:00","restricted":false,"active":false,"prohibit_login":false,"location":"","pronouns":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"charles"},"original_author":"","original_author_id":0,"body":"## Phase 3: done (eede1fe)\n\n**The outbox** (`ios\/HomeHealth\/Session\/Outbox.swift`; pure rules in `Core\/OutboxRules.swift`, 20 tests) follows the rules of \u00a75.2:\n\n1. The app writes each save to the iPad before the page shows \"Kept on this iPad\".\n2. A batch that the app sent one time does not change. A retry sends the same bytes.\n3. Saves to one visit that are not sent become one save. The newer answer wins, up to the limit of 200 changes.\n4. The app sends the batches in sequence to `formV2VisitSave` with the device token.\n5. The app removes a batch only when the server sends the receipt.\n6. A conflict, a refused answer or a refused save goes to **Needs your attention** on the home screen (Use mine, Keep theirs, Discard, OK). The sending for that visit stops until a person decides.\n\n**Base revision.** The app raises a held save's `base_revision` only when every receipt since then was from this iPad: `revision == sent base + (accepted ? 1 : 0)`. So a second change to an answer does not conflict with the first change from this iPad. A change by a different person is still a conflict.\n\n**Encryption.** The outbox is one AES-GCM file. Its key is in the Keychain (this device only). The file has iOS file protection and is not in backups. It belongs to one `pk_user`. A sign-out or a different person erases it. A 401 keeps it. The app writes no answers to its logs. The app does not expire held answers: they leave the iPad only by the server's receipt, or when a person discards them.\n\n**When the app sends.**\n- At once, when there is a connection.\n- When `NWPathMonitor` reports a network, and a real request to `sessionCheck` succeeds.\n- Every 30 s while the app is open.\n- When the person taps **Send now**.\n- Before the app opens a visit. Opening a visit makes a new writer token, so the held saves must go before that.\n\n**#230 B10: corrected.** The page sends what is typed when it becomes hidden (`visibilitychange` \/ `pagehide`). This applies in a browser too.\n\n**The lock.** The lock now covers the open visit and does not close it. An unlock gets a new cookie and does not reload the page.\n\n**Acceptance: end-to-end test on dev** (`ios\/Tools\/e2e.sh`). The test enrolls through the real exchange and stops the connection with a proxy. Then it gives answers, closes the app, starts the connection again and opens the app again. Result: revision 17 \u2192 19, exactly 2 saves, 3 changes, no change applied two times. The test then puts the visit back. The debug launch arguments for the test are not in Release builds (checked).\n\n**Not yet:**\n- An open with no connection, and prepared visits (Phase 4).\n- The airplane-mode test with 50 answers on a real iPad (Phase 5, field test).\n- Sending while the app is in the background (no `BGTaskScheduler` yet). Held answers go when the app is opened again.","assets":[],"created_at":"2026-11-19T15:11:47-06:00","updated_at":"2026-11-19T15:11:47-06:00"}]}