From 51a4f209a8c6a8e48fbdafd67c60c5a1efadb479 Mon Sep 17 00:00:00 2001 From: munania Date: Fri, 13 Dec 2024 03:35:34 -0600 Subject: [PATCH 1/4] adding OrderReason to Imaging order --- .../imaging-order-form.component.tsx | 27 +++++++++++++++++++ .../src/form/imaging-orders/api.ts | 3 +++ .../src/hooks/useOrdersWorklist.ts | 2 +- .../esm-imaging-orders-app/src/types/index.ts | 1 + 4 files changed, 32 insertions(+), 1 deletion(-) diff --git a/packages/esm-imaging-orders-app/src/form/imaging-orders/add-imaging-orders/imaging-order-form.component.tsx b/packages/esm-imaging-orders-app/src/form/imaging-orders/add-imaging-orders/imaging-order-form.component.tsx index acb0928..72df1c8 100644 --- a/packages/esm-imaging-orders-app/src/form/imaging-orders/add-imaging-orders/imaging-order-form.component.tsx +++ b/packages/esm-imaging-orders-app/src/form/imaging-orders/add-imaging-orders/imaging-order-form.component.tsx @@ -74,6 +74,9 @@ export function ImagingOrderForm({ commentsToFulfiller: z.string().optional(), laterality: z.string().optional(), bodySite: z.string().optional(), + orderReasonNonCoded: z.string().min(1, { + message: translateFrom(moduleName, 'addOrderReasonRequired', 'Order reason is required'), + }), }); const { @@ -317,6 +320,30 @@ export function ImagingOrderForm({ + + + + ( +