Documentation
¶
Index ¶
- type RxNormRepository
- func (r *RxNormRepository) GetAllRelatedInfo(rxcui string) (map[string]interface{}, error)
- func (r *RxNormRepository) GetApproximateTerms(term string) (map[string]interface{}, error)
- func (r *RxNormRepository) GetDisplayNames() ([]byte, int, error)
- func (r *RxNormRepository) SaveRxNormDisplayTerms(terms []string) error
- func (r *RxNormRepository) Suggest(prefix string) ([]redisearch.Suggestion, error)
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)
Click to show internal directories.
Click to hide internal directories.