Crate drug_extraction_cli

Source

Structs§

ColumnInfo
DataSet
Struct to hold information about the dataset
SearchOutput
Struct to hold search output
SearchTerm
Struct to hold search term and metadata

Functions§

clean_text
Function to remove non-alphanumeric characters from a string keeps hyphens due to their usage in abbreviations/medical terms. Also uppercase for standardization. Example:
collect_column_info
Function to collect column info for each column to search Typically ran using the header from the csv reader and is called inside the initialize_dataset function to do this for each target column. Example:
get_column_info
Function to get the column index for a given column name Returns an error if the column name is not found Typically ran using the header from the csv reader and is called inside the collect_column_info function to do this for each target column. Example:
initialize_dataset
Function to initialize the dataset
read_terms_from_file
Function to read in search terms from a csv file Performs cleaning of terms, ignoring metadata column
run_searcher
search
Primary search function