Skip to content

Allow providers to file results on behalf of other providers#197

Draft
D3V41 wants to merge 11 commits intoopen-osp:mainfrom
MagentaHealth:feature/remove-flagged-providers-from-lab-updated
Draft

Allow providers to file results on behalf of other providers#197
D3V41 wants to merge 11 commits intoopen-osp:mainfrom
MagentaHealth:feature/remove-flagged-providers-from-lab-updated

Conversation

@D3V41
Copy link
Copy Markdown
Contributor

@D3V41 D3V41 commented Feb 10, 2026

Status Quo

Currently, a logged-in provider cannot file lab results on behalf of another provider.


Change

We have added functionality to allow a provider to file results on behalf of other providers.
(Example shown logged in as doctor oscardoc.)

Important

This PR is designed to minimize support burden on OpenOSP.

  • By default, this PR will NOT change any behaviour because the functionality defaults to "off" for all providers.
  • Only if providers actively turn on this feature within the user preferences will this option to “file on their behalf” become enabled.
  • Note that for Magenta, we decided to turn on this feature for all providers automatically in our production, without any significant complaints.

Main Workflow

  • When more than one provider is attached to a lab:

    • Clicking Acknowledge now opens a File Dialog.
      • 1
      • 2
  • User selects providers they want to file for and clicks Yes.

    • 3
  • After confirmation, the user adds an acknowledgement comment, and the UI updates accordingly:

    • 4
    • 5

Preferences

Providers can configure the behavior under Preferences:

6
  1. Disable the file dialog
    Turn off the option:
    “Automatically offer to file results on behalf of other providers…”

  2. Prevent others from filing on your behalf
    Turn off the option:
    “Allow other providers to file results on your behalf…”

    • 7

Additional Feature

  • Even if a user has already acknowledged a lab, they can still file it for other providers using the File for… button.
    • 8
    • 9
    • 10

D3V41 added 9 commits January 20, 2026 14:30
- Added preference to allow other providers to file on their behalf
- Added preference to enable filing results on behalf of other providers
- Implemented `fileLabsForProviderUpToFlaggedLab` to file labs starting from a selected lab.
- Added support for filing labs up to a specific lab version.
- Ensured labs are only filed if their status is `Not Acknowledge`, and updated to `Filed but not acknowledged`.
…unction openAcknowledgementDialog() instead of openFileDialog(false)
  - Add combined "Acknowledge/File Document" modal (comment + provider selection in one step)
  - Add separate "File Document" dialog for the "File for..." button (no comment needed)
  - Fix isLabNotFiledOrAckFlag not being set when logged-in provider appeared first in ackList
  - Improve code comments and add full flow documentation for the ack/filing feature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant