Skip to content

Conversation

@arshiyaTW2021
Copy link
Contributor

@arshiyaTW2021 arshiyaTW2021 commented May 23, 2025

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).

devsingh05298 and others added 30 commits May 9, 2025 13:05
@arshiyaTW2021 arshiyaTW2021 requested review from mohan-13 and rahu1ramesh and removed request for rahu1ramesh May 23, 2025 04:10
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');
Copy link
Contributor

@rahu1ramesh rahu1ramesh May 23, 2025

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will undo

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RESOLVED

}, [labTests]);

if (isLoading && labTests.length === 0) {
return <div>{t('LOADING_LAB_TESTS')}</div>;
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SkeletonText is more suitable

@rahu1ramesh rahu1ramesh self-requested a review May 23, 2025 08:28
@devsingh05298 devsingh05298 changed the title BN- 49 frontend BN- 49 | Display lab orders on patient dashboard May 27, 2025
@mohan-13 mohan-13 merged commit 27024ff into main May 28, 2025
2 checks passed
@mohan-13 mohan-13 deleted the BN-49-Frontend branch May 28, 2025 00:01
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.

5 participants