Documentation ¶
Index ¶
- func CheckAnteDiseaseInSymptoms(session model.Session) (string, string, error)
- func CheckSymptomDuration(symptoms []*model.SessionSymptomInput, lastQuestion string) ([]*model.SessionSymptomInput, string, string)
- func GetSessionDiseases(sessionContext []model.SessionSymptom, imc float64, hereditaryDisease []string) ([]*model.SessionDiseasesInput, error)
- func SymptomsToString(symptoms []Symptom) []string
- func WakeNlpUp()
- type ByCoverage
- type ExamResponseBody
- type NlpResponseBody
- type Symptom
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSymptomDuration ¶
func CheckSymptomDuration(symptoms []*model.SessionSymptomInput, lastQuestion string) ([]*model.SessionSymptomInput, string, string)
func GetSessionDiseases ¶
func GetSessionDiseases(sessionContext []model.SessionSymptom, imc float64, hereditaryDisease []string) ([]*model.SessionDiseasesInput, error)
func SymptomsToString ¶
Types ¶
type ByCoverage ¶
type ByCoverage []exam.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 ExamResponseBody ¶
type ExamResponseBody struct { Context []model.SessionSymptom `json:"context"` Done bool `json:"done"` Question string `json:"question"` Symptoms []string `json:"symptoms"` AutoAnswer *string `json:"auto_answer"` Alert []string `json:"alert"` Err error `json:"err"` }
func CallExam ¶
func CallExam(context []model.SessionSymptom, imc float64, hereditaryDisease []string) ExamResponseBody
type NlpResponseBody ¶
type NlpResponseBody struct {
Context []Symptom `json:"context"`
}
Click to show internal directories.
Click to hide internal directories.