{% extends "review_base.html" %} {% macro gate_hint(meds, allergies, sample=false) -%} {#- Made-up records (r6/voice.py): the same gate, about the sample person. -#} {%- if sample and meds and allergies -%} Answer each medication and each allergy. Then confirm an allergy, or tick the box if the sample person has no known allergies, to continue. {%- elif sample and meds -%} Answer each medication. Then tick the box if the sample person has no known allergies, to continue. {%- elif sample and allergies -%} Answer each allergy. Then confirm one, or tick the box if the sample person has no known allergies, to continue. {%- elif sample -%} Tick the box if the sample person has no known allergies, to continue. {%- elif meds and allergies -%} Answer each medication and each allergy. Then confirm an allergy, or check "I have no known allergies", to continue. {%- elif meds -%} Answer each medication. Then check "I have no known allergies" if that is true for you, to continue. {%- elif allergies -%} Answer each allergy. Then confirm one, or check "I have no known allergies", to continue. {%- else -%} Check "I have no known allergies" if that is true for you, to continue. {%- endif -%} {%- endmacro %} {% block title %}{% if voice == 'sample' %}Review the sample person's intake form{% else %}Review your intake form{% endif %} — HealthClaw Guardrails{% endblock %} {% block head %}{% if voice == 'sample' %} {% endif %}{% endblock %} {% block content %}
{% if voice == 'sample' %} {# Made-up records (r6/voice.py). The banner is CareAgents' own sentence (beta.SAMPLE_FRAME). The link is filled from the relay's rewritten form action, as the post-approval one is: the engine does not know which assistant this is, and anywhere but the relay it stays hidden. #}
{{ sample_banner }}
{% endif %}
{% if voice == 'sample' %}

Check each item on the sample person's form

This is practice on made-up records. Nothing is submitted until you answer every medication and allergy below. Having no allergies is never assumed: you tick the box yourself.

{% else %}

Check each item before we make your form

Nothing is submitted until you confirm every medication and allergy below. Having no allergies is never assumed for you: you say so yourself with the "I have no known allergies" box.

{% endif %}
{% if voice == 'sample' %}About the sample person{% else %}About you{% endif %} {% if voice == 'sample' %}From the sample records{% else %}From your records{% endif %}
{% if demographics %}
{% for label, value in demographics %}
{{ label }}
{{ value }}
{% endfor %}
{% elif record_readable %}

{% if voice == 'sample' %}No details about the sample person found in the sample records.{% else %}No details about you found in your records.{% endif %}

{% else %}

{% if voice == 'sample' %}We could not read the sample records, so nothing has been filled in here.{% else %}We could not read your records, so nothing has been filled in here.{% endif %}

{% endif %}
Current medications
{% if meds %}

{% if voice == 'sample' %}Each medication below is from the sample records. Say whether the sample person is still taking it.{% else %}Each medication below is from your records. Tell us whether you are still taking it.{% endif %}

{% for med in meds %}
{{ med.name }}
{% if med.dose %}
{{ med.dose }}
{% endif %}
{% if voice == 'sample' %}from the sample records{% else %}from your records{% endif %}
{% endfor %} {% elif record_readable %}

{% if voice == 'sample' %}No medications found in the sample records.{% else %}No medications found in your records.{% endif %}

{% else %}

{% if voice == 'sample' %}We could not read the sample records, so no medications have been listed here.{% else %}We could not read your records, so no medications have been listed here.{% endif %}

{% endif %}
Allergies
{# Three states, not two. "We looked and found none" and "we could not work out whose record to look at" are different sentences, and only the first may appear above the attestation below (#390). #} {% if not record_readable %} {% if voice == 'sample' %} {% else %} {% endif %} {% endif %} {% if allergies %}

Each allergy below is {% if voice == 'sample' %}from the sample records{% else %}from your records{% endif %}. Confirm or remove each one.

{% for allergy in allergies %}
{{ allergy.allergen }}
{% if allergy.reaction %}
Reaction: {{ allergy.reaction }}
{% endif %}
{% if voice == 'sample' %}from the sample records{% else %}from your records{% endif %}
{% endfor %} {% elif record_readable %} {% endif %}
{% if voice == 'sample' %} {# One column beside the box: the shell's .form-check is a flex row, which set the note in a third, word-wide column at 375px. #}
{% endif %}
{% if voice == 'sample' %}It is never ticked for you.{% else %}Only check this if you know you have no allergies.{% endif %} {%- if not record_readable %} {% if voice == 'sample' %}It confirms nothing about what is on file.{% else %}It is your own statement and confirms nothing about what is on file.{% endif %} {%- endif %}
{% if voice == 'sample' %}
{% endif %}
{% if conditions %}
Problems / conditions

Each condition below is {% if voice == 'sample' %}from the sample records{% else %}from your records{% endif %}.

{% for condition in conditions %}
{{ condition.name }}
{% if voice == 'sample' %}from the sample records{% else %}from your records{% endif %}
{% endfor %}
{% endif %} {# The gate names only what is on the page (#884 G7): no "confirm an allergy" when none is listed, no medications when none is. #}
{% endblock %} {% block scripts %} {% endblock %}