{#- patient_view: opened from CareAgents with a valid tag (app.py, _opened_from_careagents, #937). That view has no HealthClaw nav, no tenant id, and no agent-access path at all — the read token is never minted or shown from it — and it links back to the CareAgents hub. Every other caller gets the developer page as it was. #} {% extends "connect_patient_base.html" if patient_view else "base.html" %} {% block title %}Connect your records{% if not patient_view %} · HealthClaw{% endif %}{% endblock %} {% block head %} {% endblock %} {% block content %} {% if patient_view %}
← Back to CareAgents
{% endif %}
{#- Plain words only (#326): the patient sees Fasten's provider search by default, and CLEAR / ID.me only when FASTEN_TEFCA_MODE=true. Network names (TEFCA, QHIN) mean nothing to them, so neither mode shows them. #}
{% if patient_view %}CareAgents{% else %}Fasten Connect{% endif %}
{% if tefca_mode %}

Verify once. Records arrive automatically.

Confirm who you are once, with CLEAR or ID.me, and your records can be found at the health systems that have them. You won't be asked to log in to each one. After that, records arrive over the next 5–45 minutes and HealthClaw applies the full guardrail stack (PHI redaction, audit, step-up, human-in-the-loop) before any AI agent sees them.

{% elif patient_view %}

Connect your health records.

Find your doctor's office or health system and sign in to its patient portal, the same way you would to see your records there. You sign in on their site, and CareAgents never sees your password.

{% else %}

Connect your health records.

Find your doctor's office or health system and sign in to its patient portal, the same way you would to see your records there. After that, records arrive over the next 5–45 minutes and HealthClaw applies the full guardrail stack (PHI redaction, audit, step-up, human-in-the-loop) before any AI agent sees them.

{% endif %} {% if not patient_view %} Tenant: {{ tenant_id }} {% endif %}
{% if tefca_mode %}

Step 1 — Verify your identity

{{ 'Tap' if patient_view else 'Click' }} the button below. A window will open where you confirm who you are with CLEAR or ID.me.

{% else %}

Step 1 — Find your health system

{{ 'Tap' if patient_view else 'Click' }} the button below. A window will open where you search for your health system and sign in.

{% endif %} {% if fasten_public_key %} {% else %}
FASTEN_PUBLIC_KEY is not set on this deployment.
Set it on the Railway service so the Stitch widget can render.
{% endif %}
{% if fasten_public_key %}
{% endif %} {% if patient_view %}

Step 2 — Your records arrive on your hub

Records usually arrive within 5 to 45 minutes. Sometimes it takes longer. You can close this page while you wait.

We don't send a message when they arrive. Your CareAgents hub shows them: the card changes from "Connecting…" to "Connected".

Back to CareAgents

Nothing there after a day? Write to contactus@healthclaw.io.

{% else %}

Step 2 — Records flow in the background

Once you finish, your records are copied into a private space that only you control. They arrive over the next 5–45 minutes, and each one is checked for obvious gaps or errors as it lands.

Nothing notifies you when records land, so there is no message to wait for. What to expect on this page instead:
  Within a minute or two — the connection is verified and your assistant setup appears in Step 1, under the Share Records button.
  5–45 minutes — records keep arriving in the background.
  Nothing appears — email support@healthclaw.io with your tenant id and we will check the connection.
{% endif %}
{% endblock %}