feat (resume): add doctor into response

This commit is contained in:
dpurbosakti
2025-12-12 10:12:39 +07:00
parent 4a62316548
commit 0e7d50265d
@@ -2,6 +2,7 @@ package resume
import (
ecore "simrs-vx/internal/domain/base-entities/core"
ed "simrs-vx/internal/domain/main-entities/doctor"
"time"
erc "simrs-vx/internal/domain/references/common"
@@ -54,6 +55,7 @@ type ResponseDto struct {
ecore.Main
Encounter_Id *uint `json:"encounter_id"`
Doctor_Code *string `json:"doctor_code"`
Doctor *ed.Doctor `json:"doctor,omitempty" gorm:"foreignKey:Doctor_Code;references:Code"`
Value *string `json:"value"`
FileUrl *string `json:"fileUrl"`
Status_Code erc.DataVerifiedCode `json:"status_code"`
@@ -63,6 +65,7 @@ func (d Resume) ToResponse() ResponseDto {
resp := ResponseDto{
Encounter_Id: d.Encounter_Id,
Doctor_Code: d.Doctor_Code,
Doctor: d.Doctor,
Value: d.Value,
FileUrl: d.FileUrl,
Status_Code: d.Status_Code,