feat/encounter-status-107: wip
This commit is contained in:
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import { z } from 'zod'
|
||||
|
||||
// Check In
|
||||
const CheckInSchema = z.object({
|
||||
registeredAt: z.string({ required_error: 'Tanggal masuk harus diisi' }),
|
||||
responsible_doctor_id: z.number({ required_error: 'Dokter harus diisi' }).gt(0, 'Dokter harus diisi'),
|
||||
adm_employee_id: z.number({ required_error: 'PJA harus diisi' }).gt(0, 'PJA harus diisi'),
|
||||
})
|
||||
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' }),
|
||||
unit_id: z.number(),
|
||||
responsible_doctor_id: z.number(),
|
||||
})
|
||||
type CheckOutFormData = z.infer<typeof CheckOutSchema>
|
||||
|
||||
export { CheckOutSchema }
|
||||
export type { CheckOutFormData }
|
||||
Reference in New Issue
Block a user