nhs_data_elements {NHSDataDictionaRy} | R Documentation |
NHS data elements method
Description
Searches all the data elements in the data element index of the NHS data dictionary and returns the links.
Usage
nhs_data_elements()
Details
This function has no input parameters and returns the
Value
A tibble (class data frame) with the results of scraping the NHS Data Dictionary website for the data elements look ups, if no return this will produce an appropriate informational message.
link_name - the name of the scraped link. This relates to the actual name of the data element from the NHS Data Dictionary.
url - the url passed to the parameter
full_url - the full url of where the data element is on the NHS Data Dictionary website
xpath_nat_code - utilises the element in the website and appends the link_short - to pull back only national codes from the dictionary site. NOTE: not all of the returns will have national code tables.
xpath_default_codes - pulls back the data dictionary default codes - these can be then used with the national codes
xpath_also_known - pulls back the data dictionary elements alias table - this will be available for all data elements
Examples
nhs_data_lookup <- nhs_data_elements()
head(nhs_data_lookup, 10)