exam

package
v2.4.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDiscursiveConnector

func AddDiscursiveConnector(question string) string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL