Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/chemo-plan

This commit is contained in:
vanilia
2025-12-09 12:28:21 +07:00
4 changed files with 8 additions and 3 deletions
@@ -71,6 +71,7 @@ type ResponseDto struct {
RealizationDate *time.Time `json:"realizationDate"`
Notes *string `json:"notes"`
Status ere.StatusProtocolChemo `json:"status"`
Reasons *string `json:"reasons"`
}
func (d ChemoPlan) ToResponse() ResponseDto {
@@ -21,4 +21,5 @@ type ChemoPlan struct {
Status ere.StatusProtocolChemo `json:"status"`
Encounter_Id *uint `json:"encounter_id"`
Encounter *ee.Encounter `json:"encounter,omitempty" gorm:"foreignKey:Encounter_Id;references:Id"`
Reasons *string `json:"reasons"` // json
}