|
@@ -9,7 +9,7 @@ import {
|
|
|
import { RegisterInfo } from '@/API/patient/workActions';
|
|
|
import { Rule } from 'antd/es/form';
|
|
|
|
|
|
-type IgnoredKeys = 'views';
|
|
|
+type IgnoredKeys = 'views' | 'study_type';
|
|
|
const registerInfoSchema: Record<
|
|
|
keyof Omit<RegisterInfo, IgnoredKeys>,
|
|
|
z.ZodTypeAny
|
|
@@ -32,7 +32,6 @@ const registerInfoSchema: Record<
|
|
|
weight: z.number().optional(),
|
|
|
thickness: z.number().optional(),
|
|
|
length: z.number().optional(),
|
|
|
- study_type: z.string().nonempty(),
|
|
|
comment: z.string().optional(),
|
|
|
// views: z.array(z.object({
|
|
|
// view_id: z.string(),
|
|
@@ -187,14 +186,6 @@ export const registerFormFields = {
|
|
|
message: 'Length is optional',
|
|
|
trigger: ['onChange', 'onBlur'],
|
|
|
},
|
|
|
- study_type: {
|
|
|
- label: 'Study Type',
|
|
|
- required: true,
|
|
|
- requiredLabel: '',
|
|
|
- validation: zodToAntdRules(registerformSchema.shape.study_type),
|
|
|
- message: 'Study Type is optional',
|
|
|
- trigger: ['onChange', 'onBlur'],
|
|
|
- },
|
|
|
comment: {
|
|
|
label: 'Comment',
|
|
|
required: false,
|