feat/encounter: wip
This commit is contained in:
No files matched your search
@@ -8,16 +8,24 @@ const CheckInSchema = z.object({
|
||||
})
|
||||
type CheckInFormData = z.infer<typeof CheckInSchema>
|
||||
|
||||
export { CheckInSchema }
|
||||
export type { CheckInFormData }
|
||||
|
||||
// Check Out
|
||||
const CheckOutSchema = z.object({
|
||||
dischargeMethod_code: z.string({ required_error: 'Metode pulang harus diisi' }),
|
||||
// Check Out Consul Polis
|
||||
const ConsulPoliesSchema = z.object({
|
||||
unit_id: z.number(),
|
||||
responsible_doctor_id: z.number(),
|
||||
|
||||
})
|
||||
type ConsulPoliesFormData = z.infer<typeof ConsulPoliesSchema>
|
||||
|
||||
// Checkout
|
||||
const CheckOutSchema = z.object({
|
||||
dischargeMethod_code: z.string({ required_error: 'Metode pulang harus diisi' }),
|
||||
// unit_id: z.number(),
|
||||
consulPolies: z.array(ConsulPoliesSchema),
|
||||
responsible_doctor_id: z.number(),
|
||||
|
||||
})
|
||||
type CheckOutFormData = z.infer<typeof CheckOutSchema>
|
||||
|
||||
export { CheckOutSchema }
|
||||
export type { CheckOutFormData }
|
||||
// Exports
|
||||
export { CheckInSchema, CheckOutSchema }
|
||||
export type { CheckInFormData, CheckOutFormData, ConsulPoliesFormData }
|
||||
Reference in New Issue
Block a user