feat(sep): integrate sep create

This commit is contained in:
riefive
2025-10-22 14:50:00 +07:00
parent 00302ece84
commit 891c67d6ff
4 changed files with 53 additions and 53 deletions
+2 -4
View File
@@ -1,6 +1,4 @@
import { not } from '@vueuse/math'
import { z } from 'zod'
import { serviceAssessments, serviceTypes } from '~/lib/constants.vclaim'
const ERROR_MESSAGES = {
required: {
@@ -88,10 +86,10 @@ const IntegrationBpjsSchema = z.object({
.min(1, ERROR_MESSAGES.required.clinicExcecutive),
procedureType: z
.string({ required_error: ERROR_MESSAGES.required.procedureType })
.min(1, ERROR_MESSAGES.required.procedureType),
.min(1, ERROR_MESSAGES.required.procedureType).optional(),
supportCode: z
.string({ required_error: ERROR_MESSAGES.required.supportCode })
.min(1, ERROR_MESSAGES.required.supportCode),
.min(1, ERROR_MESSAGES.required.supportCode).optional(),
note: z.string({ required_error: ERROR_MESSAGES.required.note }).min(1, ERROR_MESSAGES.required.note).optional(),
trafficAccident: z
.string({ required_error: ERROR_MESSAGES.required.trafficAccident })