#unserialize example bundles
bundles <- fhir_unserialize(bundles = medication_bundles)
#crack Patient Resources
pats <- fhir_table_description(resource = "Patient")
df <- fhir_crack(bundles = bundles, design = pats)
#look at automatically generated names
names(df)
#extract all column names beginning with the string "name"
fhir_common_columns(data_frame = df, column_names_prefix = "name")
Run the code above in your browser using DataLab