chemo plan finish
This commit is contained in:
No files matched your search
@@ -32,17 +32,17 @@ type FilterDto struct {
|
||||
}
|
||||
|
||||
type ReadDetailDto struct {
|
||||
Id uint16 `json:"id"`
|
||||
Id uint `json:"id"`
|
||||
Includes string `json:"includes"`
|
||||
}
|
||||
|
||||
type UpdateDto struct {
|
||||
Id uint16 `json:"id"`
|
||||
Id uint `json:"id"`
|
||||
CreateDto
|
||||
}
|
||||
|
||||
type DeleteDto struct {
|
||||
Id uint16 `json:"id"`
|
||||
Id uint `json:"id"`
|
||||
}
|
||||
|
||||
type MetaDto struct {
|
||||
@@ -71,7 +71,7 @@ func (d ChemoPlan) ToResponse() ResponseDto {
|
||||
PlanDate: d.PlanDate,
|
||||
RealizationDate: d.RealizationDate,
|
||||
Notes: d.Notes,
|
||||
Status: d.Status,
|
||||
Status: *d.Status,
|
||||
}
|
||||
resp.Main = d.Main
|
||||
return resp
|
||||
|
||||
@@ -10,12 +10,12 @@ import (
|
||||
|
||||
type ChemoPlan struct {
|
||||
ecore.Main
|
||||
Parent_Id *uint `json:"parent_id"` // chemo.Id
|
||||
Protocol_Id *uint `json:"protocol_id"`
|
||||
SeriesNumber *uint16 `json:"seriesNumber"` // series ke -
|
||||
CycleNumber *uint `json:"cycleNumber"` // cycle ke -
|
||||
PlanDate *time.Time `json:"planDate"`
|
||||
RealizationDate *time.Time `json:"realizationDate"`
|
||||
Notes *string `json:"notes"`
|
||||
Status ere.StatusProtocolChemo `json:"status"`
|
||||
Parent_Id *uint `json:"parent_id"` // chemo.Id
|
||||
Protocol_Id *uint `json:"protocol_id"`
|
||||
SeriesNumber *uint16 `json:"seriesNumber"` // series ke -
|
||||
CycleNumber *uint `json:"cycleNumber"` // cycle ke -
|
||||
PlanDate *time.Time `json:"planDate"`
|
||||
RealizationDate *time.Time `json:"realizationDate"`
|
||||
Notes *string `json:"notes"`
|
||||
Status *ere.StatusProtocolChemo `json:"status"`
|
||||
}
|
||||
@@ -12,21 +12,25 @@ import (
|
||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||
|
||||
ec "simrs-vx/internal/domain/main-entities/chemo"
|
||||
ep "simrs-vx/internal/domain/main-entities/chemo-plan"
|
||||
)
|
||||
|
||||
type CreateDto struct {
|
||||
Encounter_Id *uint `json:"encounter_id" validate:"required"`
|
||||
Chemo_Id *uint `json:"chemo_id" validate:"required"`
|
||||
Patient_Weight *float32 `json:"patient_weight"`
|
||||
Patient_Height *float32 `json:"patient_height"`
|
||||
Diagnoses *string `json:"diagnoses" validate:"required"`
|
||||
Interval *uint `json:"interval" validate:"required"`
|
||||
Cycle *uint `json:"cycle" validate:"required"`
|
||||
Series *uint16 `json:"series" validate:"required"`
|
||||
StartDate *time.Time `json:"startDate"`
|
||||
EndDate *time.Time `json:"endDate"`
|
||||
Status_Code erc.DataVerifiedCode `json:"-"`
|
||||
Patient_Id *uint `json:"patient_id"`
|
||||
Encounter_Id *uint `json:"encounter_id" validate:"required"`
|
||||
Chemo_Id *uint `json:"chemo_id" validate:"required"`
|
||||
Patient_Weight *float32 `json:"patient_weight"`
|
||||
Patient_Height *float32 `json:"patient_height"`
|
||||
Diagnoses *string `json:"diagnoses" validate:"required"`
|
||||
Interval *uint `json:"interval" validate:"required"`
|
||||
Cycle *uint `json:"cycle" validate:"required"`
|
||||
Series *uint16 `json:"series" validate:"required"`
|
||||
StartDate *time.Time `json:"startDate"`
|
||||
EndDate *time.Time `json:"endDate"`
|
||||
Patient_Id *uint `json:"patient_id"`
|
||||
ChemoPlans *[]ep.CreateDto `json:"chemoPlans" validate:"required"`
|
||||
|
||||
Id *uint `json:"-"`
|
||||
Status_Code erc.DataVerifiedCode `json:"-"`
|
||||
}
|
||||
|
||||
type ReadListDto struct {
|
||||
@@ -36,7 +40,8 @@ type ReadListDto struct {
|
||||
}
|
||||
|
||||
type FilterDto struct {
|
||||
Chemo_Id *uint `json:"chemo-id"`
|
||||
Chemo_Id *uint `json:"chemo-id"`
|
||||
Patient_Id *uint `json:"patient-id"`
|
||||
}
|
||||
|
||||
type ReadDetailDto struct {
|
||||
|
||||
@@ -130,9 +130,9 @@ const (
|
||||
ETCEncounter EntityTypeCode = "encounter"
|
||||
ETCMCU EntityTypeCode = "mcu"
|
||||
|
||||
SPCComplete StatusProtocolChemo = "complete"
|
||||
SPCPlanned StatusProtocolChemo = "planned"
|
||||
SPCSchedule StatusProtocolChemo = "schedule"
|
||||
SPCComplete StatusProtocolChemo = "complete" // Terealisasi
|
||||
SPCPlanned StatusProtocolChemo = "planned" // Terencana
|
||||
SPCSchedule StatusProtocolChemo = "schedule" // Terjadwal
|
||||
)
|
||||
|
||||
func (ec EncounterClassCode) Code() string {
|
||||
|
||||
Reference in New Issue
Block a user