pat2vec.util.get_method_index_map

Provides a mapping from pat2vec’s get methods to the default Elasticsearch indices they query. This helps users understand the data sources for each feature extraction function.

Functions

get_all_method_indices()

Retrieves a dictionary of all get methods and their default indices.

get_index_for_method(method_name)

Retrieves the default Elasticsearch index for a given get method.

pat2vec.util.get_method_index_map.get_index_for_method(method_name)[source]

Retrieves the default Elasticsearch index for a given get method.

Parameters:

method_name (str) – The name of the get method (e.g., ‘get_current_pat_bloods’).

Return type:

Optional[str]

Returns:

The name of the default index as a string, or None if the method is not found in the map.

pat2vec.util.get_method_index_map.get_all_method_indices()[source]

Retrieves a dictionary of all get methods and their default indices.

Return type:

Dict[str, str]

Returns:

A dictionary mapping method names to their default index names.