{"v":"<h2 id=\"user-content-plan-choose-the-county-at-the-visit-when-vesta-has-none-owner-20-oct-2026\" dir=\"auto\">Plan: choose the county at the visit when VESTA has none (owner, 20 Oct 2026)<\/h2>\n<p dir=\"auto\">Most new clients have no county in VESTA until they reach the Master List (see the production figures above), and a Start of Care visit is for exactly those clients. <strong>The visit will offer a county selection, and the choice sets the vendor number on the forms.<\/strong><\/p>\n<h3 id=\"user-content-what-s-there-now\" dir=\"auto\">What&#39;s there now<\/h3>\n<ul dir=\"auto\">\n<li>The SOC\/AO interview already asks <strong>County<\/strong> (<code>hh_member.county<\/code>) on the client&#39;s address step, as <strong>free text<\/strong> filled from VESTA. Like every observed value, a change shows on Visit Review.<\/li>\n<li>The 3040 and the ISP print <code>vendor_no<\/code> from the <strong>branch<\/strong> (<code>&#34;prefill&#34;: {&#34;source&#34;: &#34;branch&#34;, &#34;path&#34;: &#34;vendor_no&#34;}<\/code>).<\/li>\n<\/ul>\n<h3 id=\"user-content-the-change\" dir=\"auto\">The change<\/h3>\n<ol dir=\"auto\">\n<li><strong>County becomes a choice, not a text box.<\/strong> The choices are the <strong>counties already on file for the client&#39;s agency<\/strong> (<code>vendor_region_counties<\/code>, the table loaded 20 Oct and edited on Admin \u2192 Systems \u2192 edit). They&#39;re read when the visit is prepared, so a county edited mid-visit doesn&#39;t change the question under the person filling it. That&#39;s the same rule as the answer lists (#183). They&#39;re listed by name, alphabetically, with no region or number on screen.<\/li>\n<li><strong>It starts from VESTA&#39;s county<\/strong> when that county is on the agency&#39;s list. It&#39;s still shown, and still changeable, like any observed value.\n<ul dir=\"auto\">\n<li><strong>VESTA has no county:<\/strong> the question starts blank and is <strong>required<\/strong>. The visit check lists it until it&#39;s chosen, in words (&#34;Choose the client&#39;s county: it decides the vendor number on the forms&#34;), and the forms can&#39;t be generated before then.<\/li>\n<li><strong>VESTA has a county on no list<\/strong> (Travis, Hays, Smith, San Jacinto): it&#39;s treated as no county, and the help says so. A choice that differs from VESTA shows on Visit Review, so the office can correct VESTA.<\/li>\n<\/ul>\n<\/li>\n<li><strong>The vendor number is worked out, never asked.<\/strong> <code>vendor_no<\/code> on both forms becomes a <strong>derived<\/strong> Shared Answer (like Total Hours). It&#39;s computed whenever the county changes, and shown read-only beside the county question (&#34;Vendor No. 1020655&#34;), so the person filling it in sees the effect of their choice.\n<ul dir=\"auto\">\n<li><strong>A state-program client<\/strong> (an active CAS \/ PHC \/ FC \/ CLASS authorization): the number is the authorization&#39;s <strong>Contract No.<\/strong>, whatever the county. That&#39;s Cassandra&#39;s rule for a client who moved regions. If the county chosen is in another region, the help says the authorization&#39;s number is used until a new authorization arrives.<\/li>\n<li><strong>Otherwise:<\/strong> the number is the chosen county&#39;s region number for the agency (<code>hh_vendor_region_for_county()<\/code>).<\/li>\n<li><strong>No number<\/strong> (no county yet, or a region the agency has no number for, such as Legacy Home Care in Victoria): it&#39;s a visit-check issue in words, and nothing prints. <strong>Never fall back to the branch&#39;s number<\/strong>, because that&#39;s what&#39;s wrong for Beeville.<\/li>\n<\/ul>\n<\/li>\n<li><strong>The choice stays on the visit.<\/strong> The county is PHI with the rest of the address, so it&#39;s saved in the visit&#39;s values as now. Copying a chosen county back to the client record waits for the office-accept step (#119 \/ #168), the same as the pharmacy picks (#196).<\/li>\n<\/ol>\n<h3 id=\"user-content-pieces\" dir=\"auto\">Pieces<\/h3>\n<ul dir=\"auto\">\n<li>The pure rule <code>form_v2_vendor_no($auth, $county, $regions)<\/code>: the authorization&#39;s number, then the county&#39;s, then null with a reason. It&#39;s tested beside the hh_rules vendor tests.<\/li>\n<li>The county question takes its choices from the agency&#39;s counties (a list sourced from the DB, like <code>options_from<\/code>, prepared once per visit).<\/li>\n<li>The derived <code>shared.agency.vendor_no<\/code> in <code>form_v2_shared.inc.php<\/code>, targeting <code>forms-3040.vendor_no<\/code> and <code>pas-eval-service-plan.vendor_no<\/code>. The forms&#39; <code>branch<\/code> prefill is dropped.<\/li>\n<li>The visit check issue, and the help wording.<\/li>\n<li>A new SOC\/AO release. Visits already prepared keep the branch&#39;s number on their pinned paper.<\/li>\n<\/ul>\n<h3 id=\"user-content-still-open-with-the-customer\" dir=\"auto\">Still open with the customer<\/h3>\n<ul dir=\"auto\">\n<li>Managed-care clients: confirm they use the county table. This plan assumes they do.<\/li>\n<li>Legacy Home Care clients in a Region 8 county (Victoria, Calhoun): which number?<\/li>\n<li>The El Paso office&#39;s address, phone and fax.<\/li>\n<\/ul>\n"}