cardea.data_loader.EntitySetLoader

class cardea.data_loader.EntitySetLoader[source]

A class that loads fhir class objects to featuretools entityset.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__()

Initialize self.

check_column_existence(entity_set, …)

Checks if a coulmn exists in the entity set.

check_for_missing_values(entity_set, …)

Checks if there is a missing value in the given column.

create_entity(fhir, identifiers, entity_set)

Creates an entity from fhir dataframes and add it to entityset.

create_object(df, file_name)

Returns fhir representation of pandas dataframe.

create_relationships(relationships, entity_set)

Binds entities in the entityset.

get_dataframes(objects)

Returns pandas dataframe of fhir objects.

get_object_ids(objects)

Returns list of fhir object identifiers.

get_relationships(objects, names)

Returns relationships of fhir objects.

load_data_entityset(folder_path)

Returns an entityset loaded with .csv files in folder_path.

load_df_entityset(fhir)

Returns an entityset loaded with received dataframes in fhir.

read_csv_files(folder_path)

Returns a dictionary with loaded .csv files in folder_path.