Documentation ¶
Index ¶
- Constants
- Variables
- type BloodPressure
- type HeartRate
- type Height
- type IndicatorInteraction
- func (i *IndicatorInteraction) GetDynamicIndicators(indicatorName string) ([]float64, error)
- func (i *IndicatorInteraction) GetStaticIndicators(indicatorName string) (float64, error)
- func (i *IndicatorInteraction) SendDynamicIndicators(indicatorName string, indicatorValues []float64)
- func (i *IndicatorInteraction) SetStaticIndicators(indicatorName string, value float64)
- type MedicalWorker
- type Patient
- type Weight
Constants ¶
View Source
const ( // static indicators HeightIndicator = "height" WeightIndicator = "weight" // dynamic indicators HeartRateIndicator = "heart_rate" BloodPressureIndicator = "blood_pressure" )
Variables ¶
View Source
var ( ErrGetStaticIndicators = errors.New("failed to get static indicators") ErrGetDynamicIndicators = errors.New("failed to get dynamic indicators") )
Functions ¶
This section is empty.
Types ¶
type BloodPressure ¶
type IndicatorInteraction ¶
type IndicatorInteraction struct { gorm.Model Height Height `gorm:"foreignKey:InteractionID"` Weight Weight `gorm:"foreignKey:InteractionID"` HeartRates []HeartRate `gorm:"foreignKey:InteractionID"` BloodPressures []BloodPressure `gorm:"foreignKey:InteractionID"` PatientID uint }
func (*IndicatorInteraction) GetDynamicIndicators ¶
func (i *IndicatorInteraction) GetDynamicIndicators(indicatorName string) ([]float64, error)
func (*IndicatorInteraction) GetStaticIndicators ¶
func (i *IndicatorInteraction) GetStaticIndicators(indicatorName string) (float64, error)
func (*IndicatorInteraction) SendDynamicIndicators ¶
func (i *IndicatorInteraction) SendDynamicIndicators(indicatorName string, indicatorValues []float64)
func (*IndicatorInteraction) SetStaticIndicators ¶
func (i *IndicatorInteraction) SetStaticIndicators(indicatorName string, value float64)
type MedicalWorker ¶
type MedicalWorker struct { gorm.Model Username string `gorm:"unique;not null"` Password string `gorm:"not null"` Patients []Patient }
func (*MedicalWorker) SetPassword ¶
func (u *MedicalWorker) SetPassword(password string) error
Click to show internal directories.
Click to hide internal directories.