Documentation
¶
Index ¶
- func CallNlp(sentence string, symptoms []string) nlpResponseBody
- func CheckAnteDiseaseInSymptoms(session graphql.GetSessionByIdGetSessionByIdSession) (string, string)
- func CheckTreatments(symptoms []graphql.SessionSymptomInput, medicines []string) []graphql.SessionSymptomInput
- func GetSessionDiseases(sessionContext []model.SessionSymptom) []graphql.SessionDiseasesInput
- func SymptomsToString(symptoms []Symptom) []string
- func WakeNlpUp()
- type ByCoverage
- type ExamResponseBody
- type Symptom
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAnteDiseaseInSymptoms ¶ added in v1.4.6
func CheckAnteDiseaseInSymptoms(session graphql.GetSessionByIdGetSessionByIdSession) (string, string)
func CheckTreatments ¶ added in v1.5.1
func CheckTreatments(symptoms []graphql.SessionSymptomInput, medicines []string) []graphql.SessionSymptomInput
func GetSessionDiseases ¶ added in v1.4.6
func GetSessionDiseases(sessionContext []model.SessionSymptom) []graphql.SessionDiseasesInput
func SymptomsToString ¶
Types ¶
type ByCoverage ¶ added in v1.4.6
type ByCoverage []diseaseCoverage
func (ByCoverage) Len ¶ added in v1.4.6
func (a ByCoverage) Len() int
func (ByCoverage) Less ¶ added in v1.4.6
func (a ByCoverage) Less(i, j int) bool
func (ByCoverage) Swap ¶ added in v1.4.6
func (a ByCoverage) Swap(i, j int)
type ExamResponseBody ¶ added in v1.5.1
type ExamResponseBody struct { Context []model.SessionSymptom `json:"context"` Done bool `json:"done"` Question string `json:"question"` Symptoms []string `json:"symptoms"` Alert []string `json:"alert"` }
func CallExam ¶
func CallExam(context []model.SessionSymptom) ExamResponseBody
Click to show internal directories.
Click to hide internal directories.