Skip to content

Conversation

@arshiyaTW2021
Copy link
Contributor

JIRABN-49

Description

This PR is to resolve the issue raised after QA where it was observed that lab investigation order requests are getting duplicated when a user places an order and subsequently removes ordered requests.

devsingh05298 and others added 2 commits June 9, 2025 15:21
export const PATIENT_LAB_INVESTIGATION_RESOURCE_URL = (patientUUID: string) =>
OPENMRS_FHIR_R4 +
`/ServiceRequest?category=${LAB_ORDER_TYPE_UUID}&patient=${patientUUID}&numberOfVisits=5`;
`/ServiceRequest?category=${LAB_ORDER_TYPE_UUID}&patient=${patientUUID}&numberOfVisits=5&_count=100`;
Copy link
Member

Choose a reason for hiding this comment

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

add the sort parameter as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

Copy link
Contributor

Choose a reason for hiding this comment

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

I feel

  • FhirLabTestBundle could potentially be replaced with the standard Bundle type from fhir/r4
  • FhirLabTest could potentially be replaced with the standard ServiceRequest type from fhir/r4

Using standard FHIR R4 types (like ServiceRequest) ensures architectural consistency, reduces maintenance, improves type safety, enhances interoperability, and delivers better tooling, clarity, and long-term support.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@mohan-13 mohan-13 merged commit 3b569ef into main Jun 12, 2025
2 checks passed
@mohan-13 mohan-13 deleted the BN-49-New branch June 12, 2025 05:18
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