-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
bugSomething isn't workingSomething isn't workingcodexdocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Milestone
Description
Summary
Add a medication-label OCR flow so users can snap or upload a prescription label image and prefill medication reminder fields when barcode/QR data is unavailable.
Motivation
SymptomSync already supports barcode scanning, but many labels are damaged, missing, or not machine-readable. OCR-based autofill would reduce manual typing and lower data-entry friction while still keeping users in control.
Proposed scope (MVP)
- Label capture/input
- Allow image upload and camera capture from the medication creation/edit flow.
- OCR extraction
- Extract structured candidates for:
- medication name
- strength
- dosage instructions
- frequency text
- optional NDC / Rx number if present
- Parsing + confidence scoring
- Normalize OCR text into medication form fields.
- Return per-field confidence (
high,medium,low) to drive UX.
- Human verification step (required)
- Show extracted values in editable form fields before save.
- Require explicit user confirmation; never auto-save to database directly from OCR output.
- Provenance + observability
- Store extraction metadata (source=
ocr_label, timestamp, confidence summary) for debugging and quality tracking.
Suggested technical approach
- Frontend:
- Add "Scan Label" CTA in medication form.
- Reuse existing medication form validation, but prefill values from OCR response.
- Backend:
- Add
/api/med/ocrendpoint that accepts image input and returns normalized fields + confidence. - Use a pluggable OCR service layer so provider changes do not affect UI contracts.
- Add
- Data:
- Add optional metadata columns (or side table) for OCR provenance and confidence snapshots.
Acceptance criteria
- User can upload/capture a medication label image from medication form.
- OCR response prefills medication fields in editable state.
- User must review and confirm before medication is created/updated.
- Low-confidence fields are visibly flagged for manual review.
- OCR failures return actionable messages without blocking manual entry.
- Unit/integration tests cover OCR parsing, confidence mapping, and confirmation gating.
Out of scope (later)
- Full handwriting recognition for cursive notes.
- Direct pharmacy integrations/e-prescription import.
Suggested labels
enhancement, help wanted
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcodexdocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Projects
Status
Backlog