12 lines
325 B
TypeScript
12 lines
325 B
TypeScript
import { z } from 'zod'
|
|
import type { Prescription } from '~/models/prescription'
|
|
|
|
const PrescriptionSchema = z.object({
|
|
'encounter-id': z.number().nullable().optional(),
|
|
})
|
|
|
|
type PrescriptionFormData = z.infer<typeof PrescriptionSchema> & Prescription
|
|
|
|
export { PrescriptionSchema }
|
|
export type { PrescriptionFormData }
|