fix (encouter): fix dto, change createdto from object to embedded in create-with-patient

This commit is contained in:
dpurbosakti
2025-12-15 13:15:46 +07:00
parent a87eed7eaa
commit eea6bc7700
3 changed files with 23 additions and 23 deletions

No files matched your search

@@ -294,6 +294,6 @@ func ToResponseList(data []Encounter) []ResponseDto {
}
type CreateWithPatientDto struct {
Encounter CreateDto `json:"encounter"`
Patient ep.CreateDto `json:"patient"`
CreateDto
Patient ep.CreateDto `json:"patient"`
}