Merge pull request #214 from dikstub-rssa/fix/anything-moko
Fix/anything moko
This commit is contained in:
@@ -2,6 +2,7 @@ package resume
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||||
|
ed "simrs-vx/internal/domain/main-entities/doctor"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
erc "simrs-vx/internal/domain/references/common"
|
erc "simrs-vx/internal/domain/references/common"
|
||||||
@@ -54,6 +55,7 @@ type ResponseDto struct {
|
|||||||
ecore.Main
|
ecore.Main
|
||||||
Encounter_Id *uint `json:"encounter_id"`
|
Encounter_Id *uint `json:"encounter_id"`
|
||||||
Doctor_Code *string `json:"doctor_code"`
|
Doctor_Code *string `json:"doctor_code"`
|
||||||
|
Doctor *ed.Doctor `json:"doctor,omitempty" gorm:"foreignKey:Doctor_Code;references:Code"`
|
||||||
Value *string `json:"value"`
|
Value *string `json:"value"`
|
||||||
FileUrl *string `json:"fileUrl"`
|
FileUrl *string `json:"fileUrl"`
|
||||||
Status_Code erc.DataVerifiedCode `json:"status_code"`
|
Status_Code erc.DataVerifiedCode `json:"status_code"`
|
||||||
@@ -63,6 +65,7 @@ func (d Resume) ToResponse() ResponseDto {
|
|||||||
resp := ResponseDto{
|
resp := ResponseDto{
|
||||||
Encounter_Id: d.Encounter_Id,
|
Encounter_Id: d.Encounter_Id,
|
||||||
Doctor_Code: d.Doctor_Code,
|
Doctor_Code: d.Doctor_Code,
|
||||||
|
Doctor: d.Doctor,
|
||||||
Value: d.Value,
|
Value: d.Value,
|
||||||
FileUrl: d.FileUrl,
|
FileUrl: d.FileUrl,
|
||||||
Status_Code: d.Status_Code,
|
Status_Code: d.Status_Code,
|
||||||
|
|||||||
Reference in New Issue
Block a user