Please note that the master repository contains a version that has been retrieved from backup and is not currently tested - it has been assigned an incremental version number with development suffix to reflect this v1.0.10.9000. We are aware that the repository has not been available for some time and are re-sharing it now to make it accessible but we do not currently have resource to fully re-test the code functionality
This is an R package to facilitate the extraction of NHS organisation data from the NHS Digital ODS API into the R environment.
Any feedback would be appreciated and can be provided using the Issues section of the GitHub repository, or by emailing [email protected]. Please note that whilst we are happy to share this package we have limited capacity to invest time in its further development.
You can install the latest version of odsR from GitHub with:
if (!require(devtools)) install.packages("devtools")
devtools::install_github("PublicHealthEngland/odsR",
build_vignettes = TRUE,
dependencies = "suggests")
Download this repository from Git and either build from source or do the following:
if (!require(devtools)) install.packages("devtools")
source <- devtools:::source_pkg("C:/path/to/odsR-master.zip")
devtools::install(source)
To install the package without the use of devtools, download the .tar.gz file and then run the following Where path_to_file would represent the full path and file name:
install.packages(path_to_file, repos = NULL, type=“source”)
Following installation of this package, type ‘packageVersion(“odsR”)’ in the R console to show the package version. If it is suffixed with a 9000 number then you are using an unapproved development version.
Released versions of this package will have version numbers consisting of three parts: major.minor.patch. In-development versions of this package will have a fourth component, the development version number, which will increment from 9000.
See http://r-pkgs.had.co.nz/description.html#version for further information on package versioning
The package contents are described below - see individual item documentation for full details
Functions:
RELEASED:
- getODS (get summary organisation data for all organisations that meet the specified filter criteria)
- getODSfull (get full organisation data for a single organisation)
- addorgname (add an Organisation Name column to a data frame that contains Organisation Codes)
- OrgRelLkp (create lookup tables from one organisation type to another based on relationship information held within the ODS API - QAd for creation of GP Practice to CCG lookups but otherwise experimental)
Datasets:
- none
Vignettes:
- none