Models

package
v0.0.0-...-5420e35 Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: MIT Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disease

type Disease struct {
	Name    string `json:"name"`
	OMIMID  string
	OrphaID float64
	UMLSID  string
	Score   int      `json:"score"`
	Sources []string `json:"sources"`
}

Disease - Global disease structure

func Merge

func Merge(list1 []*Disease, list2 []*Disease, operator string) []*Disease

Merge - Merge two arrays of Diseases Support "or" and "and" logic operator

type Drug

type Drug struct {
	Name            string `json:"name"`
	CUI             string
	STITCH_ID_SIDER string `json:"id"`
	STITCH_ID_ATC   string
	SideEffects     []*SideEffect `json:"sideEffects"`
}

Drug - Global drug structure

type SideEffect

type SideEffect struct {
	SideEffectName      string `json:"name"`
	Placebo             string `json:"placebo"`
	Frequency           string `json:"freq"`
	FrequencyLowerBound string `json:"freqlower"`
	FrequencyUpperBound string `json:"frequpper"`
	Matched             string `json:"matched"`
}

SideEffect - Side effect of a drug

type Symptom

type Symptom struct {
	Name  string
	HPOID string
}

Symptom - Global symptom structure

Jump to

Keyboard shortcuts

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