pat2vec.util.retrieve_data

Functions

retrieve_patient_data(client_idcode, ...)

Retrieves patient data based on data type and storage backend configuration.

pat2vec.util.retrieve_data.retrieve_patient_data(client_idcode, data_type, config_obj)[source]

Retrieves patient data based on data type and storage backend configuration.

Parameters:
  • client_idcode (str) – The unique identifier for the patient.

  • data_type (str) – The type of data to retrieve (e.g., ‘epr_docs’, ‘bloods’, ‘drugs’).

  • config_obj (Any) – The configuration object containing backend settings and paths.

Returns:

A DataFrame containing the requested data, or an empty DataFrame if not found or if data_type is invalid.

Return type:

pd.DataFrame