-
Notifications
You must be signed in to change notification settings - Fork 69
(feat) O3-5020: Add a review & approval workflow for lab results configurable #445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…rendering - Add enableReviewingLabResultsBeforeApproval config option - Implement dual workflow in LabResultsForm (ON_HOLD vs COMPLETED) - Add conditional rendering for pending review tabs and tiles - Hide edit results action when approval workflow is enabled - Maintain backward compatibility with existing workflow Components updated: - LabResultsForm: merged workflows with conditional logic - LaboratoryOrdersTabs: conditional pending review tab - LaboratorySummaryTiles: conditional pending review tile - OrdersDataTable: conditional edit results menu item
ESLint was treating '__dirname' as a string literal in the JSON config. Removed it since 'project': true handles tsconfig discovery automatically.
src/lab-tabs/data-table-extensions/pending-review-lab-request-table.extension.tsx
Outdated
Show resolved
Hide resolved
|
@pirupius I Believe we are okay now |
|
@chibongho @ibacher ping |
pirupius
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor clean ups before we get this in. Also don't forget to push the updated lock file once you've updated the package.json
|
@its-kios09 lets resolve conflicts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add these lines after Install dependencies in to the e2e.yml to resolve the e2e error
- name: 🎭 Install Playwright Browsers
run: npx playwright install --with-deps chromium
|
@pirupius sorted |
| type OrderUrgency, | ||
| type OrderAction as ExternalOrderAction, | ||
| } from '@openmrs/esm-patient-common-lib'; | ||
| export type FulfillerStatus = 'DRAFT' | 'RECEIVED' | 'IN_PROGRESS' | 'EXCEPTION' | 'ON_HOLD' | 'DECLINED' | 'COMPLETED'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The FulfillerStatus enum does not have "DRAFT" as a valid value. Do we plan on adding that to the backend? @pirupius @its-kios09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chibongho i believe he made that change after this comment #445 (comment) from Ian but the part am not sure about is if it needs an extra configuration or update to esm-core
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chibongho I think we should update the backend to support correct FulfillerStatus enum as Draft as @ibacher suggest ^IMO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chibongho I have this PR on adding the enum openmrs/openmrs-core#5447 maybe you can see some light
|
|
||
| const filteredExtensions = tilesExtensions | ||
| .filter((extension) => Object.keys(extension.meta).length > 0) | ||
| .filter((extension) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this test code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chibongho Thanks, I didn't see it I have done a follow up PR for it #532
|
Isn't it more appropriate to default this config property to |
|
I've pushed a commit here making the behaviour opt-in by default ecc7701. |
|
I agree @denniskigen thanks for the quick fix. |

Requirements
Summary
As a laboratory technician/manager, I want to have the ability to review lab results before they are finalized, so that I can ensure quality control and accuracy of test results before they become available to clinicians.
global configuration
Screenshots
Related Issue
https://openmrs.atlassian.net/browse/O3-5020
Other