diff --git a/internal/domain/main-entities/resume/dto.go b/internal/domain/main-entities/resume/dto.go index e7ddf09b..d75fe3da 100644 --- a/internal/domain/main-entities/resume/dto.go +++ b/internal/domain/main-entities/resume/dto.go @@ -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,