feat (generate-file) hopefully resume.html doesnt make any trouble
This commit is contained in:
No files matched your search
@@ -90,6 +90,7 @@ type ValueDto struct {
|
||||
Discharge DischargeCondition `json:"discharge"`
|
||||
National NationalProgram `json:"national"`
|
||||
Management Management `json:"management"`
|
||||
Medication Medication `json:"medication"`
|
||||
}
|
||||
|
||||
type Assessment struct {
|
||||
@@ -170,3 +171,12 @@ type Management struct {
|
||||
ConditionOnDischarge string `json:"conditionOnDischarge"` // e.g. "Stable"
|
||||
DischargeMethod string `json:"dischargeMethod"` // e.g. "Discharged with Doctor's Approval"
|
||||
}
|
||||
|
||||
type MedicationEntry struct {
|
||||
DuringTreatment string `json:"duringTreatment"`
|
||||
AtDischarge string `json:"atDischarge"`
|
||||
}
|
||||
|
||||
type Medication struct {
|
||||
Medications []MedicationEntry `json:"medications"`
|
||||
}
|
||||
@@ -330,6 +330,8 @@ func generateResumeTemplateData(resume er.Resume, event pl.Event, tx *gorm.DB) (
|
||||
templateData.PainScale = rData.Discharge.PainScale
|
||||
templateData.ConditionOnDischarge = rData.Management.ConditionOnDischarge
|
||||
templateData.DischargeMethod = rData.Management.DischargeMethod
|
||||
templateData.Medications = rData.Medication.Medications
|
||||
templateData.Date = pu.GetTimeNow().Format("02-01-2006")
|
||||
|
||||
return &templateData, nil
|
||||
}
|
||||
@@ -65,6 +65,7 @@ type ResumePDF struct {
|
||||
PainScale int
|
||||
ConditionOnDischarge string
|
||||
DischargeMethod string
|
||||
Medications []er.MedicationEntry
|
||||
// fasyankes
|
||||
// date
|
||||
// klinik
|
||||
|
||||
Reference in New Issue
Block a user