feat (encounter): fix naming dto conventioon

This commit is contained in:
dpurbosakti
2025-10-16 08:55:07 +07:00
parent 609119c306
commit b4a4334504
@@ -29,9 +29,9 @@ type CreateDto struct {
VisitDate time.Time `json:"visitDate"`
PaymentMethod_Code erc.PaymentMethodCode `json:"paymentMethod_code" gorm:"size:10"`
InsuranceCompany_Id *uint `json:"insuranceCompany_id"`
Member_Number *string `json:"memberNumber" validate:"maxLength=20"`
Ref_Number *string `json:"refNumber" validate:"maxLength=20"`
Trx_Number *string `json:"trxNumber" validate:"maxLength=20"`
Member_Number *string `json:"member_number" validate:"maxLength=20"`
Ref_Number *string `json:"ref_number" validate:"maxLength=20"`
Trx_Number *string `json:"trx_number" validate:"maxLength=20"`
Appointment_Doctor_Id *uint `json:"appointment_doctor_id"`
Adm_Employee_Id *uint `json:"adm_employee_id"`
Responsible_Doctor_Id *uint `json:"responsible_doctor_id"`
@@ -49,7 +49,7 @@ type FilterDto struct {
Patient_Id *uint `json:"patient-id"`
Patient *ep.Patient `json:"patient,omitempty"`
RegisteredAt *time.Time `json:"registeredAt"`
Class_Code ere.EncounterClassCode `json:"class_code" validate:"maxLength=10"`
Class_Code ere.EncounterClassCode `json:"class-code" validate:"maxLength=10"`
Unit_Id *uint `json:"unit-id"`
Specialist_Id *uint16 `json:"specialist-id"`
Subspecialist_Id *uint16 `json:"subspecialist-id"`
@@ -107,9 +107,9 @@ type ResponseDto struct {
VisitDate time.Time `json:"visitDate"`
PaymentMethod_Code erc.PaymentMethodCode `json:"paymentMethod_code"`
InsuranceCompany_Id *uint `json:"insuranceCompany_id"`
Member_Number *string `json:"memberNumber"`
Ref_Number *string `json:"refNumber"`
Trx_Number *string `json:"trxNumber"`
Member_Number *string `json:"member_number"`
Ref_Number *string `json:"ref_number"`
Trx_Number *string `json:"trx_number"`
Appointment_Doctor_Id *uint `json:"assignment_doctor_id"`
Appointment_Doctor *ed.Doctor `json:"assignment_doctor,omitempty"`
Responsible_Doctor_Id *uint `json:"responsible_doctor_id"`