pat2vec.patvec_get_batch_methods.main_get_pat_batch_obs
Functions
|
Retrieves a batch of specific observations for a patient. |
- pat2vec.patvec_get_batch_methods.main_get_pat_batch_obs.get_pat_batch_obs(current_pat_client_id_code, search_term, config_obj, cohort_searcher_with_terms_and_search)[source]
Retrieves a batch of specific observations for a patient.
This function fetches observation data for a single patient, filtering by a specific search_term (e.g., ‘CORE_SmokingStatus’) within the globally defined time window. It includes logic to read from a cached file if it exists or query the data source otherwise.
- Parameters:
current_pat_client_id_code (
str) – The patient’s unique identifier.search_term (
str) – The specific observation term to search for.config_obj (
Any) – The main configuration object.cohort_searcher_with_terms_and_search (
Any) – The search function to use.
- Return type:
DataFrame- Returns:
A DataFrame containing the batch of specified observations.