Patient Intake Form
A three-page fillable intake form for Verdania Medical Clinic, completed on screen or on paper before a first appointment. The clinic header carries the form number and revision, and a framed scan-to-index label pairs a DataMatrix with a Code 128 of the form ID so a returned paper copy is filed without typing.
- Every field type. Text fields, date pickers, drop-downs, radio groups and checkboxes, laid out as cards in nine numbered sections, from demographics and insurance to lifestyle, history and medications.
- Office-use card. A dashed panel at the top of page 1 for clinic staff, with the patient ID, date received and vitals (height, weight, blood pressure, pulse, temperature, SpO₂).
- Clinical detail. A 0 to 10 pain scale on a gradient band, an immunization checklist, family-history and medication tables built of fields, and a consent block that ends in a signature field.
Features used: PDF/A-2b conformance, columns, tables, SVG, barcodes (code128, datamatrix), form fields (checkbox, choice, datepicker, radio, text, textArea), empty signature fields, headers and footers
- Output
- Template
- Data
How it's built
Sections as cards of fields
Each numbered section is a heading paragraph, its number in a [span, secNum] oval, followed by a columns block in the card style that holds one grid of fields per row. Most fields are block fields with a label. The date pickers are tags inside a paragraph, [datepicker, dateOfBirth, , 155.5|16], because a date picker has no block form. Radio buttons that share a name form one group: contactPref, tobacco, and the eleven buttons of painToday (Field types).
The scan-to-index label
The label is one svg drawing with two barcode shapes, each placed by x, y, width and height and given its symbology and data in spec. The DataMatrix carries the form, its revision and the document ID; the Code 128 carries the ID alone, repeated under it in the OCR-B face the document declares in fonts.
{ "barcode": { "x": 8, "y": 22, "width": 54, "height": 54, "spec": { "type": "datamatrix", "code": "MC-101|REV 2026-09|DOC MC101-00481730" } } }
{ "barcode": { "x": 78, "y": 30, "width": 130, "height": 22, "spec": { "type": "code128", "code": "MC101-00481730" } } }
The pain scale
The band is a rect whose style fills it with a linearGradient, green to amber to red, with ten tick lines drawn over it. Under it, a columns block of eleven equal columns holds the painToday radio buttons, 0 to 10.
{
"styles": {
"painBand": {
"fill": {
"linearGradient": {
"angle": 90,
"stops": [
{ "offset": 0, "color": "#16A34A" },
{ "offset": 0.5, "color": "#F59E0B" },
{ "offset": 1, "color": "#DC2626" }
]
}
},
"stroke": "none"
}
}
}
Tables made of fields
The family-history and medication tables have a field in each cell, written as a tag in a paragraph: a checkbox per relative and a textfield for the details. Every field name is distinct, built from the condition and the column, as in fhHeartM for the mother's heart disease.
{
"table": {
"style": "fh",
"widths": [4, 2, 2, 2, 3, 4],
"rows": [
[{ "th": "CONDITION", "style": "th" }, { "th": "MOTHER", "style": "thC" }, { "th": "FATHER", "style": "thC" }, { "th": "SIBLING", "style": "thC" }, { "th": "GRANDPARENT", "style": "thC" }, { "th": "DETAILS", "style": "th" }],
[{ "td": "Heart disease", "style": "td" }, { "p": "[checkbox, fhHeartM, false, 10|10]", "style": "tdC" }, { "p": "[checkbox, fhHeartF, false, 10|10]", "style": "tdC" }, { "p": "[checkbox, fhHeartS, false, 10|10]", "style": "tdC" }, { "p": "[checkbox, fhHeartG, false, 10|10]", "style": "tdC" }, { "p": "[textfield, fhHeartDetails, , 99.4|13]", "style": "td" }]
]
}
}
The consent block ends in a signature field, patientSignature, beside the guardian's name and the date.