From 17e7875d4f8c789764542aa03a05315ba40a2781 Mon Sep 17 00:00:00 2001 From: dpurbosakti Date: Mon, 13 Oct 2025 12:17:03 +0700 Subject: [PATCH] feat (encounter): update validation maxlength dischargeMethod_code --- internal/domain/main-entities/encounter/dto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/domain/main-entities/encounter/dto.go b/internal/domain/main-entities/encounter/dto.go index 34b74d6a..608d26dd 100644 --- a/internal/domain/main-entities/encounter/dto.go +++ b/internal/domain/main-entities/encounter/dto.go @@ -77,7 +77,7 @@ type MetaDto struct { } type DischargeDto struct { Id uint `json:"id"` - DischargeMethod_Code *ere.DischargeMethodCode `json:"dischargeMethod_code" validate:"maxLength=10"` + DischargeMethod_Code *ere.DischargeMethodCode `json:"dischargeMethod_code" validate:"maxLength=16"` EarlyEducation *string `json:"earlyEducation"` MedicalDischargeEducation *string `json:"medicalDischargeEducation"` AdmDischargeEducation *string `json:"admDischargeEducation"`