Quick Profile Due Date Display
Displays a patient's due date and live-calculated gestational age in the client overview — staff can edit the date inline and see gestational age update instantly.
Built by SE Team
The problem it solves
OB/GYN and women's health providers need gestational information immediately visible during encounters, not buried in chart sections.
What's included
- Auto-calculated gestational age (weeks + days) from the stored due date
- Inline edit mode with a date picker; gestational age updates live as the date changes
- Reads/writes via a specifically configured "Gestation Age" custom form template
- Saves update the patient's chart as a completed form response
- Self-hides when not configured with a form ID — no setup, no widget
How it works
Requires a "Gestation Age" custom module form pre-configured in Healthie with a single gestational_age-type field. The widget is embedded on the client overview page and reads a formId URL parameter (and optionally a patient id, also passed via postMessage from the host frame) — if formId is missing, the widget renders nothing. On load, it fetches the most recent FormAnswerGroup for that form/patient and displays the stored due date and calculated gestational age. Staff can edit the date inline; on save, the widget submits a new completed FormAnswerGroup via createFormAnswerGroup. In production, authentication works the same way as Healthie's other staff-side widgets: a JWT delivered via postMessage, sent as a Bearer token with an AuthorizationSource: ThirdPartyApp header.
Example configuration
mutation SaveDueDate($input: createFormAnswerGroupInput!) {
createFormAnswerGroup(input: $input) {
form_answer_group { id }
messages { field message }
}
}
# Example variables
{
"input": {
"custom_module_form_id": "YOUR_FORM_ID",
"user_id": "patient_id",
"finished": true,
"form_answers": [
{ "custom_module_id": "gestational_age_field_id", "user_id": "patient_id", "answer": "2026-09-15" }
]
}
}Quick Profile Due Date Display surfaces a patient's estimated due date and live-calculated gestational age directly in the client overview. It's built for prenatal care teams, and requires a "Gestation Age" custom form pre-configured with a single gestational_age-type field. Staff can edit the date inline and watch gestational age recalculate instantly before saving. If the widget isn't configured with a form ID, it stays invisible rather than showing an error.
