Skip to content

Conversation

@D3V41
Copy link
Contributor

@D3V41 D3V41 commented Aug 21, 2025

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 June 13, 2025 02:17
- 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`.
@D3V41 D3V41 marked this pull request as ready for review August 21, 2025 20:14
@D3V41 D3V41 marked this pull request as draft August 22, 2025 13:49
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