Reads in a define xml and creates a code_list table. The code_list table is a nested tibble where each row is a code list or permitted value list. The code column contains a vector of a tibble depending on if it is a permitted values or code list

xml_to_codelist(doc)

Arguments

doc

xml document

Value

a tibble containing the code list and permitted value information