exam

package
v1.15.15 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAlerts

func CheckAlerts(patientContext []model.SessionSymptom) ([]string, error)

func GuessQuestion

func GuessQuestion(mapped []DiseaseCoverage) (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 added in v1.5.7

type DiseaseCoverage struct {
	Disease           string
	Percentage        float64
	PotentialQuestion string
}

func CalculPercentage added in v1.5.7

func CalculPercentage(context []model.SessionSymptom, disease graphql.GetDiseasesGetDiseasesDisease) DiseaseCoverage

func Calculi added in v1.5.7

func Calculi(sessionContext []model.SessionSymptom) ([]DiseaseCoverage, bool)

type ExamResponse

type ExamResponse struct {
	Context  []model.SessionSymptom
	Question string
	Symptoms []string
	Done     bool
	Alert    []string
	Code     int
	Err      error
}

func Exam

func Exam(context []model.SessionSymptom) ExamResponse

Jump to

Keyboard shortcuts

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