Skip to content

Commit

Permalink
Make the reference number and instructions fields nullish
Browse files Browse the repository at this point in the history
  • Loading branch information
vasharma05 committed Jan 10, 2025
1 parent 583aa07 commit 25e8370
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ export function OrderForm({
const OrderFormSchema = useMemo(
() =>
z.object({
instructions: z.string().optional(),
instructions: z.string().nullish(),
urgency: z.string().refine((value) => value !== '', {
message: translateFrom(moduleName, 'addLabOrderPriorityRequired', 'Priority is required'),
}),
accessionNumber: z.string().optional(),
accessionNumber: z.string().nullish(),
concept: z.object(
{ display: z.string(), uuid: z.string() },
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ export function LabOrderForm({
const labOrderFormSchema = useMemo(
() =>
z.object({
instructions: z.string().optional(),
instructions: z.string().nullish(),
urgency: z.string().refine((value) => value !== '', {
message: translateFrom(moduleName, 'addLabOrderPriorityRequired', 'Priority is required'),
}),
accessionNumber: z.string().nullable(),
accessionNumber: z.string().nullish(),
testType: z.object(
{ label: z.string(), conceptUuid: z.string() },
{
Expand Down

0 comments on commit 25e8370

Please sign in to comment.