add reasons in plan

This commit is contained in:
vanilia
2025-12-09 12:18:13 +07:00
parent 9ba0d06ce3
commit 3856246488
4 changed files with 8 additions and 3 deletions

No files matched your search

@@ -61,6 +61,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
}