Cardea
cardea.data_loader.
EntitySetLoader
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, …)
check_column_existence
Checks if a coulmn exists in the entity set.
check_for_missing_values(entity_set, …)
check_for_missing_values
Checks if there is a missing value in the given column.
create_entity(fhir, identifiers, entity_set)
create_entity
Creates an entity from fhir dataframes and add it to entityset.
create_object(df, file_name)
create_object
Returns fhir representation of pandas dataframe.
create_relationships(relationships, entity_set)
create_relationships
Binds entities in the entityset.
get_dataframes(objects)
get_dataframes
Returns pandas dataframe of fhir objects.
get_object_ids(objects)
get_object_ids
Returns list of fhir object identifiers.
get_relationships(objects, names)
get_relationships
Returns relationships of fhir objects.
load_data_entityset(folder_path)
load_data_entityset
Returns an entityset loaded with .csv files in folder_path.
load_df_entityset(fhir)
load_df_entityset
Returns an entityset loaded with received dataframes in fhir.
read_csv_files(folder_path)
read_csv_files
Returns a dictionary with loaded .csv files in folder_path.