VoxelPulse

Health records & appointment packets

Private lab reports, visit summaries, reviewed details and appointment PDFs.

Private health records and appointment packets

Open Personal health → Health records (/health-records). This inbox is private to the signed-in owner, including when another user is an administrator or a project collaborator. The first milestone assumes one person's reviewed documents and medicines; PACS archives can contain multiple people, so verify identity when selecting imaging.

For the full priority review and remaining design work, see Personal EHR roadmap.

Health timeline

The Health timeline indexes your lab reports, visit summaries, discharge summaries, vaccination records, visit agendas, home measurements, saved appointment packets, current prescriptions, saved prescription version events and dose reports, owner-archived imaging, journal entries and symptom episodes. It includes drafts with their review status; it does not imply that a record is clinically verified. Their existing detailed pages remain available. Patient names stay visible because an account can hold records for multiple people. No identities are merged.

Search titles, patient names and providers/clinicians or measurement devices. Provider exactly (optional) restricts results to the exact saved provider/prescriber text, with case and wildcard characters treated literally. Filter by record type or event-date range, and choose dated or undated records. Select Apply timeline filters; Reset timeline filters returns to all records. Results are ordered by the recorded report or appointment date, newest first, with unknown dates last. Upload timestamps never substitute for missing event dates; a packet uses its appointment date. Date ranges exclude unknown dates. Search treats percent and underscore as literal text, not wildcard operators. Full clinical text is not searched or included in this index.

Show synthetic timeline example switches to nine read-only fictional index entries: two different patients, reviewed and draft reports, a planned and completed visit, a saved packet, an unknown date, two saved prescription versions and one reported dose whose patient identity remains unknown. The same filters operate on the examples. They have no source-opening controls, do not fetch private timeline data while displayed, and cannot be saved, reviewed or selected for export. Back to my timeline resets the filters and reloads your real records. No examples are inserted into accounts automatically.

Prescription version event lists each saved prescription version, including drafts, separately from the Current prescription summary. Version events use UTC calendar days: revision 1 uses the prescription's creation time, later revisions use their recorded save time. The initial schedule's effective date can be backdated and is not substituted for the first-save time. Current prescription summaries continue to use the current version's recorded start date. Within each day, ties use stable kind/record IDs rather than time-of-day order. No dose, treatment start, adherence or clinical approval is inferred.

Show fictional prescription history opens a read-only four-version example: draft, active with a recorded refill date, paused with revised directions and a reported concern of unknown cause, then discontinued with a fictional date/source. Choose a revision to inspect the same source layout used for real versions, including the backdated first schedule and separate UTC save times. All four share a fictional prescription identifier and retain distinct version identifiers; patient identity remains unknown. Examples contain no real source IDs or photos, make no API calls, cannot open private records, and do not seed an account or change reminders, packets or dose logs. Opening examples clears any real timeline source panel; applying filters, reloading or opening a real source closes the examples.

Open a version event to inspect its exact saved name, status, directions, schedule, lifecycle details and original photo if still available. This private read-only source view labels the historical revision, current revision when fetched, UTC event timestamp and schedule effective interval. A later save may close the prior version's effective interval; it does not replace its directions. Historical sources remain readable after later revisions. A wrong version/revision pair is rejected, and missing/deleted sources show unavailable rather than substituting the current prescription. Patient identity stays unknown; account ownership does not assign a version to a person. Nothing is selected for a packet, shared, saved, sent to AI or recorded as a dose when opening it. Timeline metadata excludes directions, notes, photos and owner IDs. Every query/source access rechecks the active owner and disables caching. No migration or backfill is required.

Saved dose record lists only reports saved through Prescriptions & reminders, including reported taken/skipped, pending, pending with a recorded snooze, and corrected as-needed records. Generated reminders without a saved report are excluded. A taken report uses its reported taken timestamp's UTC day when available; other reports use the scheduled or original manual record timestamp's UTC day. A legacy taken report without a taken timestamp is labeled Reported taken (time not recorded) and explicitly uses the scheduled/manual day. The recorded prescription timezone is retained in the source. Snooze labels describe a saved snooze, not whether it is still active. Pending, missing and corrected reports never imply a missed dose or adherence.

Open a dose source to inspect its exact report revision, timestamps, note and linked prescription version, even after the prescription changes. Both the dose and its linked prescription must belong to the active owner; neither family assignment nor caregiver packet access grants live access. Corrections update the same timeline item and may move its day. Stale report revisions are rejected and unavailable reports are never replaced with another source. The source shows the latest saved report; View saved dose history opens separately captured changes. Taken reports may also appear as separate medicine journal entries. Source opening does not change reminders, journals, reports or packets. Metadata excludes notes/directions; source responses disable caching. The development-only preview includes a fictional taken report scheduled before UTC midnight and reported taken after midnight.

Show fictional saved dose examples opens seven separate read-only reports: scheduled taken, skipped, pending, recorded snooze, manual taken, corrected manual, and taken with an unknown time. Select a report to inspect its timeline day and the same source layout used for saved reports. The taken example crosses UTC midnight; the missing-time example explicitly uses its scheduled day. Scheduled examples link a historical prescription version; manual examples link an as-needed version. Fictional source IDs cannot resolve to real records, photos and private navigation are disabled, and example interactions make no API calls or account writes. Opening either example viewer clears real source details and closes the other viewer. Filters, reloads and opening a real source close examples. No real account is seeded.

Load more timeline records uses bounded cursor pagination with deterministic tie ordering. Reload timeline starts again with the applied filters; reload after changes from another session. Local document, packet and agenda changes refresh the index automatically. Concurrent edits that move a record's date can change its position; this live index is not an immutable snapshot.

Open source checks ownership again and opens the actual document review, agenda editor or saved packet. Changed document/agenda revisions require a timeline reload. Unsaved edits are protected by discard confirmation. The timeline never selects a source for export, reviews a draft, calls AI or creates a copy. It uses the existing private tables and requires no database migration. Current prescription entries show the current saved version per medicine using its recorded start date; separate version events retain earlier saves. Neither represents dose events or adherence. Journal entries (including medicine journal records) use the UTC calendar day of their recorded timestamp for sorting and date filters. Their source shows the timestamp and recorded timezone; this may differ from the date in that timezone. Neither prescriptions nor journal entries currently store a patient name, so the timeline does not assign one from account ownership. Imaging uses a complete valid Gregorian study date; invalid, partial or missing imported dates stay undated while the original stored date remains visible in the source. No creation/import timestamp substitutes for an unknown event date.

Open source for prescriptions, saved dose reports, imaging and journal entries opens a read-only Private timeline source panel on this page. It rechecks owner access and the requested revision, including historical prescription versions, draft prescriptions and imaging revision zero. The panel preserves recorded instructions, schedules, archive text, journal items, zero/missing nutrition values, timestamp/timezone and attached-photo references. Existing private photo controls recheck file access. It does not change a record, confirm a draft, select a packet, record a dose or call AI. Manage prescriptions and history and Open journal lead to their existing pages; Open private study targets the selected archive study. Filters, reloads, source-open failures and switching to synthetic timeline examples clear the panel; source data is fetched anew when reopened.

All timeline responses require an active owner and disable caching; search terms and results are not stored in browser storage.

Private dose correction history

New confirmed scheduled and as-needed dose saves append an owner-private history event with the report before/after, server save time and prescription text/version used for that save. The report, linked journal update and history event commit or roll back together. Manual retry IDs do not append duplicate events; a unique report/revision constraint protects the history. Snoozing, skipping, correcting or editing a note creates a new saved revision. There are no event-edit, delete or restore endpoints. This is application-level append-only history, not a tamper-proof external audit service.

From a saved dose source, select View saved dose history, then expand a revision. Each event retains its report notes and prescription directions even after later changes; before/after timestamps remain distinct from the event save time. Photos and owner identifiers are excluded from snapshots. History never grants access to originals or automatically joins a packet/caregiver share. Patient identity remains unrecorded. Closing the history or changing the source clears fetched events. Requests are authenticated, owner-scoped, uncached and revision-checked; a correction from another session requires reloading/reopening the dose source. Lists contain at most 20 events per page.

Select Show fictional dose history in the timeline overview for read-only complete correction, partial legacy and no-history examples. The same before/after renderer is used for real and fictional history. Scenarios use local synthetic text only, make no API requests and never seed an account or grant original-source access. Switching scenarios resets expanded revisions.

Migration 4a7b18c96ea3 adds medication_dose_event without rewriting existing reports or reconstructing earlier edits. Legacy reports show no captured history until another confirmed save. Their first captured update can retain the preceding saved state, but older changes remain unknown; the viewer distinguishes partial coverage from capture since the first save. Downgrade refuses to remove nonempty history. Existing owner-only access and current timeline date semantics remain unchanged.

Home measurements

Home measurements records blood pressure (systolic/diastolic in mmHg), pulse (bpm), weight (kg or lb), temperature (°C or °F), and glucose (mg/dL or mmol/L). Choose New home measurement, enter the person's name and measurement date, values and units, and optionally a device, context and notes. Dates are owner entered. An optional measurement time accepts ISO text with an explicit UTC offset (for example, 2026-10-18T08:30:00-04:00); its local calendar date must match the reading date. Exact spelling, fractional seconds and offset are retained. Leave it blank when time or offset is unknown. Existing date-only records keep no inferred time. Use context to describe additional measurement conditions. Each reading is a separate record; readings from the same date are never averaged or merged.

Values use plain decimals with up to six digits before and three after the decimal point. Blood pressure requires two positive values; pulse, weight and glucose require one positive value. For glucose, choose Not recorded, Fasting, Before a meal, After a meal, or Other reported context. After-meal readings optionally accept an integer duration from 0 to 1440 minutes; blank is unknown and zero is retained. Other glucose contexts cannot retain a meal duration, and non-glucose readings cannot retain glucose context. Changing type or meal context clears incompatible draft fields and resets confirmation. Timing is never inferred from notes, source metadata, or values. Glucose units remain separate without conversion. Temperature may be zero or negative. Unknown values cannot be saved as zero. These are input constraints, not clinical reference ranges. Original decimal spelling and selected units are retained without conversion, normal/abnormal labels, or treatment advice. No information is sent to AI. Every save requires checking the person, date, values and units; edits clear that confirmation.

Load example measurement draft is available when no saved reading is open and there are no unsaved changes. It fills a new unsaved blood-pressure draft with clearly labeled fictional details, clears measurement selections, and leaves the accuracy confirmation unchecked. Nothing is saved or selected for export automatically. Reload home measurements discards the example after confirmation. The development preview starts with eight fictional readings covering every supported type and unit, exact decimal spelling, zero and negative temperature inputs. The temperature edge cases demonstrate input preservation, not real body temperatures or clinical reference values. No examples are automatically inserted into real accounts.

The owner-only list shows newest saved records first with Load more home measurements for older readings. Editing opens the current revision. Reload home measurements asks before discarding unsaved edits and clears packet selections. Save/delete conflicts require reloading; concurrent sessions cannot overwrite a newer revision. Deletion has an explicit confirmation. The health timeline indexes saved measurements by their measurement date and opens the saved revision; reloading is required if it changed.

Select up to 30 saved readings with Include this saved reading in next packet. Selection does not fill or assume patient identity; confirm all selected sources belong to the appointment patient before generating the packet. Editing a reading removes its selection. Packets recheck ownership and exact revisions, then retain immutable measurement copies, including date, values, units, device, context, notes and provenance in the saved packet and PDF. Editing or deleting a reading does not change older packets; delete those copies separately. Older packets remain readable and retryable without a measurement field.

Measurement trends

Show synthetic measurement trends example opens 15 fictional readings in a read-only local comparison. It demonstrates separate systolic/diastolic series, duplicate dates, flat pulse values, three-decimal weight changes, separate kg/lb, °C/°F and mg/dL/mmol/L groups, and zero/negative temperature input edge cases (not body-temperature examples). Fictional sources cannot open private records. Showing examples cancels pending comparisons and clears comparison selections and identity confirmation; packet selections remain unchanged. Nothing is saved or sent to the API. Clear the comparison or select saved readings to leave the example.

In Measurement trends, expand Choose measurements for comparison, select up to 30 saved readings, confirm they belong to the same person and check their measurement conditions, then choose Compare saved measurements. Load more readings for comparison reaches older saved records while keeping the current comparison selection. These checkboxes are independent of the appointment-packet checkboxes; comparing does not select, save, publish or export anything.

Each measurement type and unit stays separate, including kg versus lb and °C versus °F. Blood pressure plots systolic and diastolic readings as separately labeled series with distinct shapes. Charts require numeric readings on at least two different dates. They use scatter points without connecting lines, time jitter or averaging: the chart intentionally uses calendar dates even when optional exact timestamps are recorded. Repeated readings on the same date are retained, although overlapping points may appear as one. All exact values, units, dates, optional times/offsets, glucose context/duration, patient names, devices, context, notes and source revisions remain in the tables and immutable packet PDF/JSON copies. Charts and tables scroll horizontally on narrow screens. Zero and negative temperature values are preserved. No clinical thresholds, interpretation, diagnosis or treatment advice are added.

Review measurement source rechecks ownership and the saved revision, opens the original editor, and protects unsaved edits with discard confirmation. Changed or deleted sources require reloading the home measurement list and selecting again. Editing an existing reading or reloading the list clears comparison selections, confirmation and results. Comparison failures clear previous results; late responses cannot restore results after a source refresh. Clear measurement comparison removes only the comparison state, preserving packet selections. The view reflects saved revisions at comparison time; it does not update automatically from other sessions.

Comparisons are temporary and are not attached to appointment packets. Use the independent packet selections to export original readings with their exact saved values and revisions. The comparison endpoint requires an active owner, CSRF protection, explicit identity confirmation, unique bounded source references, and current revisions. Responses disable caching; no readings are sent to AI or stored in browser storage. No migration is needed for measurement trends.

Migration d9b41052f736 adds the private health_measurement table and owner index, preserving existing records. Its downgrade refuses to remove the table while measurements remain. Home measurement APIs require an active owner; mutations require CSRF; responses disable caching. Nothing from this feature is persisted in browser storage. The development preview simulates measurement CRUD, timeline entries and packet copies in memory only.

Upload and review

  1. Choose Lab report, Visit summary, Discharge summary or Vaccination record and upload a PDF, JPEG, PNG, WebP, or HEIC/HEIF file, up to 10 MB. Images have a 50-megapixel limit. Uploading preserves the original without calling AI.
  2. Open the document's Review details panel and Open original. Read PDF text locally parses a text PDF on the server without external AI. Reading-order errors are possible.
  3. Optionally consent to Extract draft with AI. The configured provider receives document text or image pixels, including visible names and other identifying content. Image camera metadata is removed. HEIC and other supported images have a browser-compatible JPEG review preview; the original remains available to download. No user-supplied provider URL or model is accepted. AI replaces an unreviewed saved draft, so save or discard unsaved edits first. Extraction failures leave the saved record unchanged.
  4. Compare patient name, date, provider, summary, laboratory names/values/units/reference ranges/printed flags, and documented follow-up with the original. Empty fields mean unknown, not zero or normal. Values are not converted or clinically interpreted.
  5. Save a draft to continue later, or check the review confirmation and Save reviewed details. Only reviewed documents can enter a packet. Opening an editor does not itself confirm a record. Vaccination and discharge details use the same reviewed narrative/results/follow-up fields; they do not automatically update immunizations or medicines in other records.

The development preview adds two fictional inbox records: a reviewed discharge summary and an unreviewed vaccination record with an unknown date. Their synthetic PDF sources include the narrative and stated follow-up. The vaccination record cannot enter a new packet until explicitly reviewed. A prefilled fictional saved packet contains the reviewed discharge summary and glucose readings in separate units with varied meal contexts and optional exact times, so Download structured JSON can be exercised immediately. These fixtures and their packet copies exist only in the development preview's memory; no real account is seeded. Its PDF export is simulated.

Duplicate uploads and conflicting-information review

Uploads compare the SHA-256 of the complete original bytes with this owner's inbox, across filenames and document categories. Matching bytes pause the upload with a private list of up to 20 matching records; no new document or source object is created by that check. The list includes patient/date, type, review status and exact revision. It never searches another owner's documents, even for administrators. The HTTP client redacts health-record response bodies from generic error logs, including private duplicate-match labels. This detects byte-identical files, not re-scanned, re-encoded or visually similar documents.

Choose Open matching record to inspect an existing source, or deliberately select a match, check I reviewed the matching record and want to keep another separate copy, then Keep another document copy. The server rechecks ownership, digest and the referenced revision. A kept copy is a new unreviewed record with fresh draft fields; it does not copy review confirmation or overwrite the existing transcription. Storage may reuse the owner's existing file object. Cancel duplicate upload clears the pending file. Changing file, type or matched record clears confirmation. Failed/stale confirmations require checking matches again. Retry-safe upload IDs still work after an upload succeeds.

PostgreSQL serializes document uploads per owner with a session advisory lock on a dedicated database connection, including across the storage service's commits. A lock timeout asks the caller to retry. Locks are released on success or failure, and failed cleanup invalidates the connection so a lock cannot leak into the pool. SQLite is supported as a single-process development/test fallback with process-local serialization. Existing duplicate documents are preserved; there is no uniqueness migration or automatic deletion/merging.

In Conflicting-information review, expand Choose two documents, select two related saved sources, explicitly confirm the selection, then Compare document details. Drafts can be compared and remain unreviewed. Selection is independent of packet checkboxes. Load more documents in the inbox reaches older sources without losing a current selection. The comparison checks ownership and exact revisions. Editing/deleting a selected source and refreshing the inbox clears its comparison state; failed requests clear old results, and clearing a pending comparison prevents late responses from restoring it.

The review shows both sources, byte identity, patient name, recorded date, provider, title, summary and stated follow-up. States distinguish the same recorded text, different text, missing in one source and missing in both sources. Text comparisons are exact, so formatting differences may appear. Lab results group recorded test names ignoring surrounding whitespace/case, with units kept exact and separate. All repeated result values, reference ranges and printed flags are retained; repeated rows are not assumed to correspond by position, converted or averaged. Missing values are not treated as zero. Review source 1/2 and original rechecks the revision and opens the source editor, where Open original remains available; unsaved edits require discard confirmation.

The development preview includes Synthetic source review A and Synthetic source review B. Both are unreviewed drafts referencing one identical fictional PDF, with an actual SHA-256 shared by both records. Their transcriptions deliberately differ in patient text, date, provider and lab results, including a zero, qualified value, repeated test and separate unit. Compare the drafts and open either original to inspect the same source bytes. Download that original and upload it again in the preview to exercise the duplicate warning and explicit-copy confirmation. The preview keeps all example changes in memory and never seeds real accounts or sends health-record API requests.

Differences are review prompts, not proof of incorrect or contradictory clinical facts. Different patients, dates, providers or methods may explain them. Names do not establish identity; neither source is preferred. Review originals and save corrections to each source through the existing review flow. No profiles, medicines, original files or old packet snapshots are changed by comparison. Results are temporary, owner-only, CSRF protected, uncached, and never sent to AI or browser storage. There is no persisted resolved/disputed status or automatic reconciliation in this delivery.

Document sources use a dedicated health_document storage purpose. They cannot be assigned to research projects or attached to community stories. Sources remain in My files → Health documents, owner-only, where you can delete them separately. Deleting a source does not erase reviewed details. Deleting a document record does not erase its source or existing packet snapshots. Optimistic revisions reject stale saves, extraction results, and deletions rather than overwrite concurrent edits.

Visit agendas and follow-up

Visit agendas & follow-up records appointment details, concerns, questions, notes and a private checklist. Create an agenda, enter its patient name and title, add optional dated tasks, and save. Changes to task completion or visit status require Save visit agenda. An overdue label compares a task's due date with the browser's local calendar day; it does not complete the task. Changing visit status preserves the checklist. Nothing is sent to AI, clinicians or external calendars.

Load example agenda draft fills an unsaved new agenda with fictional information and fresh task identifiers. It is available when no saved agenda is open and there are no unsaved changes; it never saves or selects the example automatically. Reload visit agendas discards it after confirmation. The development preview starts with two fictional agendas: one planned, and one completed with both done and open follow-up tasks. No examples are automatically inserted into real accounts.

Include saved agenda in next packet selects its saved revision and fills the packet patient name, date and clinician, preserving additional packet questions and record selections. Confirm patient identity before generating the packet. Unsaved agenda changes disable inclusion; saving or reloading clears the prior selection. The saved packet and PDF contain an immutable agenda snapshot, including the checklist state at packet creation. They do not update when the agenda or tasks change later.

You may link an existing saved appointment packet from the agenda editor. Confirm it belongs to the same person; use Load older packets for linking for older records. The linked packet is an independent record. Deleting it leaves the agenda and tasks intact and marks the link unavailable. Clear or replace that link when convenient. Deleting an agenda leaves already saved packet snapshots intact; delete those packets separately to remove their copies. Reload visit agendas asks before discarding unsaved edits and loads current revisions after a conflict. Agenda lists are paginated, and all create/update/delete paths are owner-only, CSRF protected and revision checked.

Migration c8a30941e625 adds the private health_visit table and owner index. It does not modify existing records and refuses downgrade while agendas remain. Existing packets remain readable and retryable without an agenda field.

Laboratory trends

Lab trends compares explicitly selected, reviewed lab reports without AI. Up to 30 reports may be selected; use Load more lab reports to reach older records. Patient names and dates are visible before selection. Confirm that the reports describe the same person and that their measurements are comparable. Shared ownership or matching test names do not establish identity or equivalent laboratory methods.

Show synthetic example displays four fictional reports in a read-only comparison. It demonstrates a numeric trend, different units, a zero value, qualified/qualitative results and an unknown date. It clears any report selection and never saves, uploads or reviews records. Example sources are labels rather than links to private reports. Back to my lab reports returns to the real report list. The development preview also starts with these four reports in memory and provides synthetic PDF sources for its review controls.

The comparison matches test names ignoring letter case and leading/trailing whitespace. Units remain case-sensitive and are never converted; results without a unit stay separate. Each table preserves the exact recorded value, unit, reference range, printed flag, provider, date and source revision. Qualified values such as <5, ranges, qualitative results, and numbers outside supported precision remain in tables without being turned into plot values. Missing dates are never inferred. Duplicate results are retained rather than averaged.

Charts need numeric results on at least two different recorded dates and a recorded unit. Dated nonnumeric values break connecting lines. Charts do not determine whether results are normal or abnormal. Review source opens the reviewed document; its original remains available through the existing source controls. Source revisions are rechecked when comparing and opening a report. Reload to see changes from another session; saving a document on this page clears the comparison. The comparison is a temporary view, not a saved clinical record or appointment-packet attachment.

All trend endpoints require an active owner, and comparison requests require CSRF protection and explicit identity confirmation. No data is shared publicly, sent to AI or persisted in browser storage. No migration is needed for lab trends.

Personal health profile

The profile editor on the same page records one person's name, optional birth date, allergies and reactions, conditions, procedures, immunizations, care team and emergency contacts, and emergency notes. It is separate from the public account profile and is never sent to AI. Choose Unknown / not recorded, None known (owner reported), or Recorded below for allergies and conditions. Recorded histories require entries; unknown and none-known states cannot contain contradictory entries. Dates and bounded fields are validated on the server.

Load example draft is available when no profile or unsaved changes exist. It fills every section with clearly labeled fictional information without saving or reviewing it. Use Reload profile to discard the draft. The development preview starts with the same synthetic profile, reviewed only within its in-memory simulation. No example data is automatically inserted into a real account.

Save a draft, or explicitly review the information and choose Save reviewed profile. Changes clear the review confirmation. Only a saved reviewed profile can be exported. Include this saved profile in the next appointment packet is off by default and identifies the person and revision. Confirm that it belongs to the appointment patient together with all other selections. A packet stores an immutable profile copy; editing or deleting the profile leaves previously saved packets intact. Delete those packets separately to remove their retained copies.

Download personal health summary produces an owner-only PDF of the saved reviewed profile, including its emergency contacts and notes. It does not include medicines, reports or imaging; use an appointment packet to select those. There is no public emergency link or automatic sharing. Reloading a dirty editor asks before discarding unsaved changes. Stale edits, exports and deletions are rejected. Deleting and recreating the profile uses a new identifier so old selections cannot silently refer to replacement information.

Build an appointment packet

Select reviewed documents and confirmed prescriptions, then select relevant owner-archived imaging. Review patient names, IDs, and issuers; owning an imaging study does not establish that it belongs to you. Imaging impressions retain their archive status, including drafts.

Enter the appointment's patient name, optional date and clinician, and questions. Confirm that every selection belongs to the same person. Generate and save private packet validates ownership and each selected revision. A changed source requires refreshing and selecting again. No data is automatically sent to a clinician or published.

A saved packet is an immutable snapshot containing only selected records and their source revisions, not a complete clinical record. Open it later or download its PDF or Download structured JSON. PDFs contain document details, provenance/source identifiers, prescription instructions and schedules, selected imaging text/status, and visit questions. Images and original documents are not embedded. Access to archive images still requires authentication. Delete saved packets separately when no longer needed; downloaded copies are outside VoxelPulse's control.

The JSON download uses GET /api/v1/health-records/packets/{id}/json and returns an attachment with format voxelpulse.appointment-packet, format version 1, the packet ID/creation date and saved snapshot, and an explanatory notice. It preserves exact values, units, dates, source identifiers/revisions and missing values. It omits internal retry input and account-owner identifiers. It never refreshes from current sources, changes the packet, or grants source access. Older snapshots remain exportable without adding fields they never contained. This is a VoxelPulse format, not FHIR, and there is no JSON import yet. Both PDF and JSON require the owner to be signed in, disable caching and contain private information once downloaded. No migration is needed for the additional document categories, glucose, or JSON export.

Operator setup and validation

Install backend/requirements.txt in the project's .venv. From backend, run the standard backed-up migration process (../.venv/bin/alembic upgrade head). Migration a681e729c403 adds health documents and appointment snapshots and expands the private-file purpose constraint. Its downgrade refuses to remove the private-file purpose while health source files exist. Migration b792f830d514 adds the owner-private profile with a unique owner constraint and refuses downgrade while profiles exist.

AI uses the server's existing provider configuration. For Ollama, set AI_MODEL to an actually installed model; the default placeholder may not be installed. Local transcription requests schema-constrained JSON with thinking disabled, and still validates the returned fields before saving a draft. Manual records, source downloads, local PDF reading, and PDF exports need no AI configuration. PDFs are limited to 30 pages and 60,000 extracted characters; with explicit AI consent, up to 10 pages with little extractable text are rendered locally to metadata-free images (at most 1600 pixels on the longest edge) and included with the text. Local text reading does not render images or call AI. PDFs are parsed in a subprocess with a 20-second wall timeout, a CPU limit, decompression limits, and a Linux memory limit. Source reads verify storage length and SHA-256. All health APIs require an active user, all mutations require CSRF, and success/error responses disable caching. No health record content is stored in browser local storage by this feature.

Run .venv/bin/python -m pytest backend/tests/test_health_records.py from the repository root and node --test src/features/healthRecords/*.test.mjs from frontend. The Vite development page /src/features/healthRecords/healthRecords.test.html provides an explicitly labeled synthetic browser preview. It stores data only in session memory, simulates AI, and never changes server records.

Personal health navigation

The Personal health sidebar now provides focused destinations: Health timeline, Medical documents, Lab results, Home measurements, Symptoms, Health profile, Visits & follow-up, Follow-up inbox, and Appointment packets. Exercises & activities, Daily journal and Prescriptions & reminders remain alongside them. Existing /health-records links open the timeline; each records page has a direct /health-records/<section> URL and is protected by the same authentication boundary.

The records workspace owns shared source revisions and packet selections; document, measurement, profile and agenda editors remain mounted while switching its pages. Drafts and selections are held only in memory, not local/session storage, and are cleared when leaving the workspace or reloading. Choose reviewed sources on their own pages, then choose medicines and imaging and generate the packet on Appointment packets. Timeline and lab source links move to the appropriate editor. Originals, review confirmations, owner-only APIs and saved packet snapshots retain their existing access rules.

Symptom episodes

Review symptom history opens a private read-only view of exact symptom/person labels within one explicitly assigned family profile or unassigned scope. It includes date/status filters, recorded severity ranges, unknown counts, individual severity bars and revision-checked sources. Group, episode and source views have separate back navigation. No identity, duration, recovery or causal relationship is inferred. See symptom-history.md for privacy boundaries and interpretation.

Open Personal health → Symptoms to record one named person's episode. Enter a symptom name, optional onset/end dates and exact times with explicit UTC offsets, ongoing/resolved status, optional whole number severity from 0 to 10, reported duration, body location, frequency, possible triggers, daily impact and notes. Blank severity is unknown; 0 is a recorded rating. Dates have day precision, and a resolved episode can have an unknown end date. An end date cannot belong to an ongoing episode. Date-only ordering and exact-time ordering are checked as described below.

Exact timing (optional) accepts onset/end ISO text with an explicit Z or UTC offset, such as 2026-10-20T08:30:00.123400-04:00. Each timestamp must match its corresponding local onset/end date. End dates/times require Resolved status; switching to Ongoing clears both end fields. Unknown times and offsets stay blank. No browser timezone, midnight, duration, diagnosis or causal relationship is inferred. Reported duration remains separate text.

When both exact times are present, the end must be on or after the onset as an instant in UTC, retaining microsecond precision. This can allow a local end date earlier than the onset date when explicit offsets establish the actual order (for example after travel). With either time missing, the original calendar-date ordering rule applies. Invalid/missing offsets, impossible dates/clock times, date/time mismatches and reversed instants are rejected without saving. Timestamp spelling, fractional zeros and offsets are preserved through editor round-trips, episode snapshots and appointment PDF/JSON exports. The timeline continues to use the recorded local onset date, with no time-of-day ordering or calculated episode duration.

Older records and saved packets are never backfilled. An unchanged legacy create retry still returns the original row; explicitly saving an edited legacy episode adds null timing defaults. The optional fields use the existing private JSON details, so no migration is required. Existing owner-only reads, explicit confirmation, CSRF, revision conflicts, family boundaries and uncached responses remain in force.

Use Find related records to select up to 20 owned visit agendas, home measurements or prescription versions. The picker never uses project access or public sharing. Check each person's identity explicitly; prescriptions do not carry patient identity. Confirm the episode details and every linked source before saving. Changing any field resets confirmation and removes the edited episode from packet selection. Nothing is sent to AI, a clinician or an external service.

Links retain kind, ID and exact revision. New links require an available owned revision; prescription versions can be historical. A saved link can remain during an episode edit even if its visit/measurement later changes or is deleted. Opening that link reports a conflict or unavailable source, and never substitutes the latest record. Changing the episode's person requires revalidating its links. Links provide owner-selected context, not a diagnosis or evidence of causation.

Saved episodes appear in the timeline using their recorded onset date, with unknown onsets undated. Timeline search indexes title and patient name, not full symptom notes. Select saved episodes on Symptoms and return to Appointment packets to review identity and create PDF/JSON copies. Packets retain the episode's saved values and source references even after edits or deletion; linked source contents are included only when separately selected. Episodes and links remain owner-only, including against unrelated administrators. There is no caregiver sharing grant.

Reload symptom episodes fetches current records and clears episode selections after discard confirmation. Saves use retry IDs and revision checks; stale saves/deletes return conflicts and leave the edit draft available. Lists and source pickers are paginated. The additive ea15b2630847 migration creates health_symptom with an owner/created index; its downgrade refuses to drop nonempty symptom records.

Show synthetic symptom examples displays three read-only fictional episodes for two different people: ongoing symptoms, resolved symptoms with severity zero, and unknown onset/severity. They now include optional onset timing and a resolved example with fractional seconds and different explicit offsets; the unknown example keeps its times blank. Examples have no source controls or packet selection, and switching back preserves the real draft. Load example symptom draft is a separate, explicit action available without an unsaved/existing episode edit. It clears symptom packet selections, loads an unconfirmed draft with fictional labels and no source links, and requires ordinary identity/detail confirmation before saving. No example records are inserted into an account automatically. The isolated development preview additionally contains these episodes in session memory; one is linked to its fictional visit, measurement and prescription for workflow testing.

Follow-up inbox

Personal health → Follow-up inbox lists tasks across all your saved visit agendas. Each item retains its source visit, patient name, clinician and visit revision. It includes tasks from completed or cancelled visits: visit status never silently completes a task. Open the source agenda to edit wording, type or due date. Types are Repeat test, Referral, Appointment, Prescription renewal and Other. Existing tasks without a type display as Other without a data migration or inferred clinical classification.

Filter by open/completed/all, task type, due category or literal text in the task, patient name or clinician. The reference day starts with the device's local calendar day and is sent explicitly to the API. Today is not overdue, completed tasks are not overdue, and missing due dates remain undated. Known due dates sort first, then source visit/task IDs provide stable ties. Lists are owner-scoped SQL queries with bounded pagination, not browser filtering over a truncated visit list. Reload when records change elsewhere; completion reloads the first page of applied filters.

Mark complete and Reopen task require an inline confirmation. A change updates only that task in its saved agenda, advances the visit revision, and appends its completion event in the same database transaction. Stale agendas or removed tasks are rejected; an identical retry ID returns the recorded event without applying it again, including after a later reopening. Other tasks and saved packet snapshots remain unchanged. An agenda already open in an editor retains its draft and shows a stale-revision notice with an explicit Load current agenda action; it is never silently overwritten by an inbox change. Completing a renewal task does not change a prescription; marking a test task complete does not create a lab result or establish that care occurred.

History shows recorded completion/reopening changes, original task/patient text, source (agenda or inbox), visit revision and the UTC recording timestamp. It is not a claim about the date care occurred. Agenda saves also record changed completion states and newly entered already-completed tasks. Changes before this feature have unknown history. Text/due-date edits do not manufacture completion events. Removing a task retains its recorded history until its agenda is deleted; deleting the agenda deletes its completion history, while previously saved packet copies remain. Packets contain the selected agenda checklist state and types, not the completion-event history.

The inbox and event histories are owner-only, even against unrelated administrators, with no-store responses and CSRF-protected writes. The fb26c3741958 migration adds health_follow_up_event; downgrade refuses to drop nonempty event history. No notifications are scheduled or delivered by this feature. Reliable opt-in reminder delivery, expiry and retry handling remain separate work.

The follow-up inbox includes Show synthetic follow-up examples, a separate, read-only view of six fictional tasks covering every type, completed/open states, missing dates, and separate patients. Its reference day starts at 2026-10-18 so filter demonstrations stay reproducible. Example filters update locally; no example IDs are sent to the API and no fictional records are saved. Back to my follow-ups restores the real inbox and its filters. Use the existing example agenda draft in Visits if you want to explicitly review and save a fictional agenda yourself.

Explicit profile history states

Allergies, conditions, procedures, immunizations, care contacts and emergency contacts each distinguish Unknown / not recorded, None known (owner reported) and Recorded below. For contacts the explicit none state is labeled None designated (owner reported). An empty list never establishes that no history exists, that vaccination is complete, or that no care contact is needed.

Selecting a non-recorded status on a populated section opens an inline confirmation. Keep entries leaves the draft untouched; confirmation clears only that section in the unsaved draft, resets accuracy review and removes the saved profile selection from the next packet. The change is persisted only when the profile is saved. Recorded histories require at least one entry. The API rejects contradictory status/list combinations even on draft saves.

Older procedure, immunization and contact lists have no explicit status. Editors and PDF/snapshot displays treat nonempty legacy lists as recorded and empty ones as unknown. Viewing or downloading never rewrites a record or packet. An explicit save stores the corresponding status fields with the new profile revision. Previously saved packet JSON retains absent fields, and PDF rendering uses the same conservative fallback. None-known and none-designated reports are printed only when explicitly saved. Profile summaries and selected appointment PDF/JSON copies retain their source revisions and remain owner-private. No schema migration, AI processing, external communication or new sharing permission is involved.

Show synthetic profile history examples opens a separate read-only view of three fictional profiles: unknown/legacy empty histories, explicit none-known reports, and mixed recorded/unknown/none states. Example scenario changes are local; no records, packet selections or AI requests are created. Back to my health profile restores the existing editor draft, review checkbox and packet selection. The existing Load example draft remains a separate explicit action for an empty profile and requires ordinary review and saving.

Controlled sharing

See Controlled sharing and caregivers for one-packet invitations, verified recipient acceptance, viewing/download permissions, expiry, revocation and access history. Live record and original-file permissions remain owner-only.

Separate family profiles

See Family health profiles for independent private histories, explicit source assignments, one-person packet validation and safe unassignment. The original health profile and unassigned records are preserved.

Provider and device imports

See Apple Health imports for the first device adapter: private manual XML/ZIP staging, source review, deduplication, person-specific home measurements, import status/errors and pause/forget controls. Live provider APIs and background device sync are not yet available.

Measurement timing compatibility

No migration is needed: optional timing fields use existing private measurement JSON. Legacy readings and packets are not backfilled; old snapshots retain absent fields. Identical create/import-review retries treat absent timing as unknown without rewriting the original receipt. Newly staged Apple Health readings carry the source start timestamp with its offset; original Apple attributes remain separately preserved. Apple imports do not infer meal context. Charts and the timeline still use the recorded local calendar date, and a timestamp is not treated as clinical verification.

Measurement timing examples

Choose an Example measurement and select Load example measurement draft to inspect a fictional reading. Options include fasting, before-meal, after-meal, a recorded zero-minute duration, an unknown after-meal duration, other context, and an entirely unknown time/meal context. Exact-time examples include UTC, fractional seconds, and different explicit offsets; date-only examples remain date-only. The picker never saves or confirms a draft. The development-only health-records preview also includes these fictional readings in memory; no real account is seeded.

Per-result laboratory collection details

Each laboratory result in Medical documents can optionally record its own collection date, exact collection time with UTC offset, specimen and method. Copy only what the source states for that result. A collection time requires its collection date, the same local calendar day, and an explicit offset (Z or +/-HH:MM). Fractional seconds and the recorded offset remain literal text. Unknown dates/times stay null; unknown specimen/method stay blank. Editing these fields clears reviewed confirmation. The document date, browser timezone and upload time are never copied into collection metadata automatically. Optional AI transcription remains separately consented and review-first.

Lab trends use the result collection date where supplied and otherwise use the document date, clearly labeled Document date (collection date unknown). Both the collection metadata and original document date remain in the comparison table. Unknown dates stay unplotted; charts remain based on calendar dates and do not normalize timezones. Matching labels/units alone do not establish equivalent specimens or methods; compare the stated methods and specimens before interpreting a trend.

Discrepancy review includes differences in collection date/time, specimen and method alongside literal values, ranges and flags. It never selects a correct source. Saved appointment packets retain exact collection metadata in PDF and JSON and do not refresh when a document changes. Older saved rows and packet snapshots are not backfilled or rewritten. These optional fields use existing private JSON, so no migration is needed.

The synthetic lab examples include a result collected the day before its document date, an exact offset/fractional-second timestamp, a different stated assay, a fictional capillary specimen with unknown method/time, and results with unknown collection details. The generated preview source PDF includes these collection fields so they can be checked against the example details. Examples and the development-only preview remain fictional and do not seed real accounts.

Emergency summary with selected medicines

In Health profile, save a reviewed profile, then choose Choose medicines for emergency summary. Family profiles offer the same builder under the selected person's history. The original profile-only download remains available. The builder lists current saved Active/As needed prescriptions only: unassigned medicines for the personal profile, or explicitly assigned medicines for a family profile. Draft, paused, discontinued and other-person prescriptions are excluded. Names do not establish identity; review assignments and current use yourself.

Select up to 100 medicines, check the same-person/current-use confirmation, then download PDF or JSON. The download rechecks owner access, profile review/revision, current prescription revisions/statuses and family assignments. Stale or reassigned selections fail instead of being silently updated. Changing selections, reloading, editing the profile or leaving the page clears confirmation. Loading another page of medicines retains selections but requires renewed confirmation. No medicines selected means not included, not none known. Active status alone does not verify current use, dates or adherence.

PDF includes the saved history and selected prescriptions, literal directions, schedule/timezone, recorded care details and version references. Unknown and explicitly none-known history states remain distinct. JSON uses format: voxelpulse.emergency-summary, format_version: 1, and a summary with generation time, profile type, saved profile and selected prescription versions. It excludes owner identifiers. Reports, image pixels and source photographs are not embedded. This is a VoxelPulse download, not FHIR or a complete clinical record.

The new POST downloads require authentication and CSRF validation, disable caching and accept bounded request bodies. They create no saved packet, sharing grant, medicine change or dose record. Downloaded copies remain private files on the device and do not update or disappear after source changes. Separate profile and caregiver permissions remain unchanged. No migration, provider connection or AI request is needed.

Home measurement source documents

The measurement editor offers an optional Source document picker. Choose a reviewed document only after checking it belongs to the named person and supports the reading. Linking stores its ID and exact reviewed revision; it never copies values or reviews a document. Changing or removing a link clears accuracy confirmation and the edited reading's packet selection. The picker is owner-only, paginated, and clears fetched choices when the editor or active section changes.

New and unassigned readings can link only unassigned documents. To link a family reading, save it first, assign the reading and document to the same person in Family profiles, then edit the reading and select the source. The server checks ownership, reviewed state, current revision and family assignment. Assigning a linked reading to a different person is rejected. Opening a saved link and creating a packet recheck current family assignments, including unassigned packets. Apple Health review uses the same source validation if an explicit document reference is supplied.

Open linked source document checks the saved reading revision and the linked document's revision, review status and family assignment before opening Medical documents. Use Open original there to view the preserved file. A changed or unreviewed document produces a conflict; a deleted document is reported as unavailable. Neither case substitutes a later revision. The saved reference can remain while unrelated reading details are edited, or be explicitly removed/replaced. Changing the reading's patient name requires revalidating the source. Linking records provenance, not clinical verification.

Appointment PDF and JSON snapshots preserve the reference without automatically including the source document or original file. Deleted sources leave their reference; source access is never granted by the reference. Downloaded copies and caregiver packet snapshots do not refresh when sources change. No migration or backfill is needed: legacy measurement JSON and saved snapshots remain unchanged, and absent source references remain compatible with identical create/import retries.

Emergency summary examples

Show fictional emergency summary examples is available in the summary builder, even before a reviewed profile is saved. Three read-only scenarios show a personal summary with active/as-needed medicines, a family summary with a separate medicine and recorded allergy, and an unknown-history summary with no medicines selected. They preserve unknown versus none-known states and contain only fictional names, strengths and directions. Opening or closing an example never changes saved records, grants access or sends a request; actual medicine selections and confirmation are cleared before entering examples.

The development-only browser preview additionally supplies isolated active/as-needed and paused prescription fixtures for the real picker UI. Its JSON export is marked is_example: true; its PDF is explicitly simulated. These fixtures exist only in session memory. No real account is seeded.

Saved document discrepancy reviews

In Medical documents → Conflicting-information review, select two current document revisions, explicitly confirm that you intend to compare them, and inspect their differences. Under Retain your review, choose Unresolved, Needs follow-up, Expected difference (your assessment), or Transcription checked by you. Enter a private note and explicitly confirm saving it. This records your assessment, not a clinical resolution. It never chooses a correct source, edits either document, marks a draft reviewed, reconciles medicines or changes a profile/packet.

The server regenerates the comparison from those exact revisions while holding document row locks. A concurrent edit or deletion prevents a stale save. A client-generated review ID makes an unchanged retry return the same note without duplication; reusing it for another assessment is rejected. Saved comparison text, exact lab values/units, collection details and reviewed/draft status are immutable. Later assessments are separate notes rather than edits to old notes. Neither original bytes nor file access handles, extraction metadata or owner identifiers are copied. No AI or external service is called.

Reload saved reviews fetches up to 20 private summaries per page; Load more saved reviews fetches older notes. Open a saved review to see its retained comparison and current/changed/missing source status. Source changes or deletion do not erase or rewrite saved review text. Only unchanged source revisions offer a current-source button; ownership and revision are checked again when opened. Close saved reviews clears fetched notes and snapshots. No browser storage, timeline entry, packet export or caregiver grant is created. Authentication, owner scope, CSRF protection for saves and no-store responses apply to every endpoint. Administrator/project access does not grant access.

API: POST /api/v1/health-records/document-reviews, GET /api/v1/health-records/document-reviews?offset=0, and GET /api/v1/health-records/document-reviews/{id}. There are no edit/delete/restore routes. Migration 5b8c29da7fb4 adds the private snapshot table without reconstructing past reviews. A downgrade refuses to destroy nonempty saved reviews. Review outcomes are personal notes, not structured reconciliation decisions or clinical contradiction detection.

Saved emergency-summary history

In Health profile or a selected Family profile, prepare the emergency summary, select current Active/As needed medicines, and explicitly confirm identity and current use. Save private emergency summary creates a retained copy. Immediate PDF/JSON download controls still create no saved copy by themselves. Saving clears confirmation, and each new save requires another confirmation. Unchanged retries retain a client-generated ID; after a network error reconfirm and retry without changing the selection. A revision/assignment conflict requires reloading the profile/medicines. Saving never changes care, reminders, journals, appointment packets or caregiver access.

Saved emergency summaries initially lists the selected profile only. All my saved summaries is an explicit owner-only view of separate copies for all people, including deleted profiles; it never merges them. Select Reload saved emergency summaries, then open a named, dated copy. History pages contain at most 20 small metadata records and load full snapshots only when opened. Close actions and profile navigation cancel pending reads and clear viewed copies. Data is not saved in browser storage.

Saved copies retain profile history states, emergency contacts/notes and the selected prescription versions, directions, schedules and recorded care details. Unknown and none-known states remain distinct, and zero selected medicines means not included, not none taken. Medicine photos/file handles and account identifiers are excluded. Source rows are locked while the server checks revisions and family assignments and creates the copy. Later profile edits/deletion, medicine changes or family reassignment cannot rewrite the saved text. Historical copies may be incomplete/outdated and do not verify current use. Reopen a saved copy for authenticated PDF/JSON downloads; JSON retains the existing voxelpulse.emergency-summary format and adds saved_summary metadata. There is no live source access or implicit sharing grant.

Delete this saved summary asks for confirmation beside that copy. Deletion removes that saved copy only; original profiles, medicines, other saved summaries and downloaded copies remain. Snapshots have no edit/restore endpoints. GET/list/download/delete paths recheck the owner even for administrators, enforce no-store responses, and saves/deletion require CSRF protection. Shared projects, stories and caregiver packet grants do not grant access.

Migration 6c9d30eb8ac5 adds saved_emergency_summary without live-profile/medicine foreign keys or reconstructed past downloads. Downgrade refuses to discard nonempty history. The development preview simulates history in isolated session memory, with explicitly synthetic JSON and simulated PDFs; it never seeds real accounts.

Structured vaccination details

Personal and family profiles support optional vaccination product, manufacturer, lot, dose/series text, route, site, administering service and plain-text source reference. Expand Vaccination details (optional) in an immunization entry. Profile summaries and packet PDF/JSON copies retain recorded fields; older copies stay unchanged. See immunization-details.md.

Timeline person scopes

Use Timeline person to show all owned records, unassigned records, or one explicitly assigned family profile. Name matching is never used. Scoped read-only source previews recheck current assignment and revision; prescription history follows its parent prescription’s current assignment, while packets keep their captured family profile. See family-timeline.md.

Family follow-up filters and repeated assignment checks are described in family-follow-ups.md.

Optional recorded condition course in personal/family profiles and their saved summary copies is described in condition-details.md.

Owner-confirmed records linked to conditions, scope/revision checks and export-reference boundaries are described in condition-linked-records.md.

Condition-specific filtering is available within one explicit person scope using saved reviewed profile links; see Condition-linked timeline for exact-revision behavior, unavailable links and privacy guards.

Reviewed documents can retain structured source medicine lists and compare one explicitly paired entry against a saved prescription within one person scope; see Source medicine lists and private comparison.

The personal calendar supports click-to-create events, dated visit agendas, timezone-aware times, and reviewed calendar-file downloads/device sharing.

Clinician access and appointment scheduling adds approved opt-in doctor/nurse listings, availability, reviewed private requests, clinician responses and calendar downloads. Scheduling never grants chart access.