Documentation ¶
Index ¶
- Constants
- type RecommendationService
- func (rs *RecommendationService) GetRecommendationByName(indicatorName, patientName string, indicators []float64) (bool, error)
- func (rs *RecommendationService) PatientBloodPressureInNorm(patientName string, indicators []float64) (bool, error)
- func (rs *RecommendationService) PatientHeartRateInNorm(patientName string, indicators []float64) (bool, error)
- func (rs *RecommendationService) PatientWeightInNorm(patientName string, indicator float64) (bool, error)
Constants ¶
View Source
const ( HeartBeatNormDifference = 10.0 BloodPressureNormDifference = 15.0 WeightNormDifference = 20.0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecommendationService ¶
type RecommendationService struct {
// contains filtered or unexported fields
}
func NewRecommendationService ¶
func NewRecommendationService(db *gorm.DB) *RecommendationService
func (*RecommendationService) GetRecommendationByName ¶
func (rs *RecommendationService) GetRecommendationByName(indicatorName, patientName string, indicators []float64) (bool, error)
func (*RecommendationService) PatientBloodPressureInNorm ¶
func (rs *RecommendationService) PatientBloodPressureInNorm(patientName string, indicators []float64) (bool, error)
func (*RecommendationService) PatientHeartRateInNorm ¶
func (rs *RecommendationService) PatientHeartRateInNorm(patientName string, indicators []float64) (bool, error)
func (*RecommendationService) PatientWeightInNorm ¶
func (rs *RecommendationService) PatientWeightInNorm(patientName string, indicator float64) (bool, error)
Click to show internal directories.
Click to hide internal directories.