Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDiscursiveConnector ¶
func CheckAlerts ¶
func CheckAlerts(patientContext []model.SessionSymptom) ([]string, error)
func GuessQuestion ¶
func GuessQuestion(mapped []DiseaseCoverage) (string, *string, []string, error)
Types ¶
type ByCoverage ¶
type ByCoverage []DiseaseCoverage
func (ByCoverage) Len ¶
func (a ByCoverage) Len() int
func (ByCoverage) Less ¶
func (a ByCoverage) Less(i, j int) bool
func (ByCoverage) Swap ¶
func (a ByCoverage) Swap(i, j int)
type DiseaseCoverage ¶
type DiseaseCoverage struct { Disease string Percentage float64 Unknown float64 PotentialQuestion string }
func CalculPercentage ¶
func CalculPercentage(context_ []model.SessionSymptom, disease model.Disease, imc float64, hereditaryDisease []string) DiseaseCoverage
func Calculi ¶
func Calculi(sessionContext []model.SessionSymptom, imc float64, hereditaryDisease []string) ([]DiseaseCoverage, bool)
type ExamResponse ¶
type ExamResponse struct { Context []model.SessionSymptom Question string Symptoms []string AutoAnswer *string Done bool Alert []string Code int Err error }
func Exam ¶
func Exam(context []model.SessionSymptom, imc float64, hereditaryDisease []string) ExamResponse
Click to show internal directories.
Click to hide internal directories.