feat/encounter: wip

This commit is contained in:
Andrian Roshandy
2025-10-13 06:26:30 +07:00
parent f7c53fc4e5
commit 6bdee66cc6
7 changed files with 130 additions and 74 deletions

No files matched your search

+16 -8
View File
@@ -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 }