fhir_load_design | R Documentation |
Loads a fhir_design for use with fhir_crack()
from an xml file into R.
fhir_load_design(file)
file |
A string specifying the file from which to read. |
A fhir_design object. See ?fhir_design
.
fhir_design()
, fhir_table_description()
, fhir_save_design()
table_desc1 <- fhir_table_description( resource = 'Patient', cols = c( id = 'id', name = 'name/family', gender = 'gender' ), sep = ':::', brackets = c('[', ']'), rm_empty_cols = FALSE, format = 'compact', keep_attr = FALSE ) table_desc2 <- fhir_table_description( resource = 'Observation', cols = c( 'code/coding/system', 'code/coding/code' ) ) design <- fhir_design( Patients = table_desc1, Observations = table_desc2 ) temp <- tempfile() fhir_save_design(design = design, file = temp) design <- fhir_load_design(file = temp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.