# intake-form-normalize

Turn a filled patient intake form (text export) into clean JSON with required fields checked and values normalised

- **Space:** healthcare-admin-public (https://github.com/Tech-Realm/space-healthcare-admin-public/tree/main/intake-form-normalize)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** local-python; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use healthcare-admin-public/intake-form-normalize` or MCP `get_pack healthcare-admin-public/intake-form-normalize`
- **Files:** CHANGELOG.md, code/intake.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/form.txt, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

A JSON record from a key: value intake form export with normalised DOB (ISO), phone (E.164-ish digits), allergies/medications lists, and a list of missing required fields.

Verified by: Synthetic form: DOB 03/04/1980 -> 1980-03-04, 'NKDA' -> [], missing insurance_id reported.

## Steps

1. Export the form to text (`pdftotext -layout form.pdf form.txt`).
2. Run `python3 code/intake.py form.txt > record.json`.
3. Fix missing fields with the patient; import the JSON into the PM/EHR by its own import route.

## Edge cases

- US date order (MM/DD/YYYY) is assumed; pass --dmy for DD/MM/YYYY forms.
- Unknown keys are kept under 'other'.

## Don'ts

- Never put real patient data in fixtures, prompts, logs or git; fixtures are synthetic.
- Don't guess missing values; report them.



---

Canonical URL: https://logicpacks.io/packs/healthcare-admin-public/intake-form-normalize

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
