-
Notifications
You must be signed in to change notification settings - Fork 3
BN- 49 | Display lab orders on patient dashboard #21
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
src/utils/__tests__/date.test.ts
Outdated
| const timestamp = new Date(2024, 2, 28).getTime(); | ||
| const formatted = formatDate(timestamp); | ||
| expect(formatted.formattedResult).toBe('28/03/2024'); | ||
| expect(formatted.formattedResult).toBe('March 28, 2024'); |
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.
Do not change the existing test cases, unless there is a definitive need.
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.
Will undo
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.
RESOLVED
src/displayControls/labinvestigation/LabInvestigationControl.tsx
Outdated
Show resolved
Hide resolved
| }, [labTests]); | ||
|
|
||
| if (isLoading && labTests.length === 0) { | ||
| return <div>{t('LOADING_LAB_TESTS')}</div>; |
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.
Can this be moved into the accordion with aSkeletonPlaceholder?
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.
SkeletonText is more suitable
src/displayControls/labinvestigation/LabInvestigationControl.tsx
Outdated
Show resolved
Hide resolved
src/displayControls/labinvestigation/__tests__/LabInvestigationControl.test.tsx
Outdated
Show resolved
Hide resolved
…nical-frontend into BN-49-Frontend
As a healthcare provider, when I view a patient's dashboard, I want to see the lab orders, if available, so that I can quickly access important diagnostic information. The lab orders will be placed from existing Consultation → Orders page.
Acceptance criteria
Lab orders must be displayed on the patient dashboard in a display control labelled ‘Lab Investigations’.
Display the priority of the request (e.g. urgent or routine) as displayed in the below table (attached screenshot).
Display the name of the provider who made the request and date of the request as displayed in the below table (attached screenshot).
The orders should be grouped by the request date.
By default it should display orders from the n latest visits. The number of visits for which orders must be displayed should be taken from the configuration. If the latest visit does not have any investigation requests, the orders from the previous visit must be displayed.
The position of the display control on the dashboard should be configurable.
If there are no investigations requested for the patient till date, display the message ‘No lab Investigations available’.
I18N for the Lab orders Display control should be completed.
If a test panel is ordered, the name of the panel is shown as displayed in the below table (attached screenshot).