26 lines
961 B
Go
26 lines
961 B
Go
package consultation
|
|
|
|
import (
|
|
"time"
|
|
|
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
|
ed "simrs-vx/internal/domain/main-entities/doctor"
|
|
ee "simrs-vx/internal/domain/main-entities/encounter"
|
|
eu "simrs-vx/internal/domain/main-entities/unit"
|
|
)
|
|
|
|
type Consultation struct {
|
|
ecore.Main // adjust this according to the needs
|
|
Encounter_Id *uint `json:"encounter_id"`
|
|
Encounter *ee.Encounter `json:"encounter" gorm:"foreignKey:Encounter_Id;references:Id"`
|
|
Date *time.Time `json:"date"`
|
|
|
|
Problem *string `json:"case" gorm:"size:10240"`
|
|
Solution *string `json:"solution" gorm:"size:10240"`
|
|
DstUnit_Id *uint `json:"dstUnit_id"`
|
|
DstUnit *eu.Unit `json:"dstUnit" gorm:"foreignKey:DstUnit_Id;references:Id"`
|
|
DstDoctor_Id *uint `json:"dstDoctor_id"`
|
|
DstDoctor *ed.Doctor `json:"dstDoctor" gorm:"foreignKey:DstDoctor_Id;references:Id"`
|
|
RepliedAt *time.Time `json:"repliedAt"`
|
|
}
|