{"v":"<h2 id=\"user-content-update-20-oct-a-visit-type-is-an-interview\" dir=\"auto\">Update, 20 Oct: a visit type <em>is<\/em> an interview<\/h2>\n<p dir=\"auto\">Each interview file (<code>docs\/form-v2-interviews\/{PACKET}.json<\/code>) is a visit type. An AR interview will have its own questions, answers, starting answers, and its own lists of what is shown and what is not. So the &#34;make the visit type a fact&#34; idea (idea 1 above) isn&#39;t needed. The interview file already knows which visit type it is.<\/p>\n<p dir=\"auto\">On that basis, here is what is built since the comment above:<\/p>\n<table>\n<thead>\n<tr>\n<th>Varies per interview<\/th>\n<th>Built?<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Which forms<\/td>\n<td><span class=\"emoji\" aria-label=\"check mark button\" data-alias=\"white_check_mark\">\u2705<\/span> the packet<\/td>\n<\/tr>\n<tr>\n<td>Which questions, in what order, wording (<code>say<\/code> \/ <code>help<\/code>), conditions<\/td>\n<td><span class=\"emoji\" aria-label=\"check mark button\" data-alias=\"white_check_mark\">\u2705<\/span><\/td>\n<\/tr>\n<tr>\n<td>Starting answers (<code>starts_as<\/code>)<\/td>\n<td><span class=\"emoji\" aria-label=\"check mark button\" data-alias=\"white_check_mark\">\u2705<\/span><\/td>\n<\/tr>\n<tr>\n<td>Answers that are never asked but still print (<code>fixed_if<\/code> \/ <code>fixed_as<\/code>, #185 #187 #109)<\/td>\n<td><span class=\"emoji\" aria-label=\"check mark button\" data-alias=\"white_check_mark\">\u2705<\/span> This is idea 2(b). <code>fixed_if: true<\/code> means &#34;this visit type always answers it&#34;. A condition fixes it only some of the time.<\/td>\n<\/tr>\n<tr>\n<td>Read-only values from the client&#39;s record (<code>shows<\/code>)<\/td>\n<td><span class=\"emoji\" aria-label=\"check mark button\" data-alias=\"white_check_mark\">\u2705<\/span><\/td>\n<\/tr>\n<tr>\n<td><strong>A smaller set of a form&#39;s choices<\/strong> (idea 4)<\/td>\n<td><span class=\"emoji\" aria-label=\"cross mark\" data-alias=\"x\">\u274c<\/span> An interview can relabel choices (<code>options<\/code>) but can&#39;t offer fewer of them.<\/td>\n<\/tr>\n<tr>\n<td><strong>Showing a fixed answer<\/strong> (idea 3)<\/td>\n<td><span class=\"emoji\" aria-label=\"cross mark\" data-alias=\"x\">\u274c<\/span> A fixed question is always hidden, and <code>shows<\/code> lists only values from the record.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"user-content-still-to-do\" dir=\"auto\">Still to do<\/h3>\n<ul dir=\"auto\">\n<li><strong>Code:<\/strong> the two <span class=\"emoji\" aria-label=\"cross mark\" data-alias=\"x\">\u274c<\/span> rows. Writing <code>AR.json<\/code> will show whether either one is needed. I&#39;d build them then, not before.<\/li>\n<li><strong>Interview files, not code:<\/strong> the Client Information Sheet <code>visit_type<\/code> is still a question in <code>SOC_AO.json<\/code>. It can be <code>fixed_if: true<\/code> with <code>starts_as: &#34;soc&#34;<\/code> today, and AR would fix it as <code>ar<\/code>. The same may be true of the 3040 attendant visit type (question 3 above).<\/li>\n<li><strong>Only SOC_AO has an interview.<\/strong> The other visit types need one each.<\/li>\n<\/ul>\n<h3 id=\"user-content-question-for-the-customer-combined-visits\" dir=\"auto\">Question for the customer: combined visits<\/h3>\n<p dir=\"auto\">Each visit runs <strong>one<\/strong> interview, and nothing merges two of them. Do staff ever do two visit types in a single visit, for example AR + SV, or SOC + a transfer?<\/p>\n<ul dir=\"auto\">\n<li><strong>If not:<\/strong> nothing more is needed. A visit is one type, and staff start the right one.<\/li>\n<li><strong>If so:<\/strong> we need a way to combine two interviews into one visit (questions asked once, a single order). We also need a rule for when the two types answer the same box differently, e.g. the Client Information Sheet visit type being Start of Care in one and Annual Reassessment in the other. The rule could be one visit type winning, or that combination being refused when the paperwork is published.<\/li>\n<\/ul>\n"}