refactor(treatment-report): restructure treatment report form and components
- Replace SelectDPJP with SelectDoctor component - Update schema naming from ActionReport to TreatmentReport - Add doctor selection functionality to treatment report form - Improve form layout and field organization - Update related model imports to use single quotes - add fragment for better form grouping - cherry pick form field from another branch
This commit is contained in:
@@ -12,7 +12,7 @@ const OperatorTeamSchema = z.object({
|
||||
surgeryDate: isoDateTime,
|
||||
actionDiagnosis: z.string().min(1),
|
||||
|
||||
postOpNurseId: z.number().int().optional().nullable(),
|
||||
postSurgeryNurseId: z.number().int().optional().nullable(),
|
||||
})
|
||||
|
||||
const ProcedureSchema = z.object({
|
||||
@@ -73,7 +73,7 @@ const TissueNoteSchema = z.object({
|
||||
note: z.string().min(1),
|
||||
})
|
||||
|
||||
export const ActionReportSchema = z.object({
|
||||
export const TreatmentReportSchema = z.object({
|
||||
operatorTeam: OperatorTeamSchema,
|
||||
procedures: z.array(ProcedureSchema).min(1),
|
||||
|
||||
@@ -86,4 +86,4 @@ export const ActionReportSchema = z.object({
|
||||
tissueNotes: z.array(TissueNoteSchema).optional(),
|
||||
})
|
||||
|
||||
export type ActionReportFormData = z.infer<typeof ActionReportSchema>
|
||||
export type TreatmentReportFormData = z.infer<typeof TreatmentReportSchema>
|
||||
|
||||
Reference in New Issue
Block a user