repository

package
v0.0.0-...-5c38267 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RxNormRepository

type RxNormRepository struct {
	HttpClient    http.Client
	Autocompleter *redisearch.Autocompleter
	RxNormURL     string
}

func NewRxNormRepository

func NewRxNormRepository(client http.Client, autoCompleter *redisearch.Autocompleter, rxNormURL string) RxNormRepository

func (*RxNormRepository) GetAllRelatedInfo

func (r *RxNormRepository) GetAllRelatedInfo(rxcui string) (map[string]interface{}, error)

func (*RxNormRepository) GetApproximateTerms

func (r *RxNormRepository) GetApproximateTerms(term string) (map[string]interface{}, error)

func (*RxNormRepository) GetDisplayNames

func (r *RxNormRepository) GetDisplayNames() ([]byte, int, error)

func (*RxNormRepository) SaveRxNormDisplayTerms

func (r *RxNormRepository) SaveRxNormDisplayTerms(terms []string) error

func (*RxNormRepository) Suggest

func (r *RxNormRepository) Suggest(prefix string) ([]redisearch.Suggestion, error)

Jump to

Keyboard shortcuts

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