
Check codelists for inactive SNOMED CT codes with usage
Source:R/check-codelists.R
check_codelists.RdFinds old and new SNOMED CT codes with recorded GP usage that are linked to the codes in codelists but not selected, for review.
check_codelists_dir()checks the codelists incodelists.txtin an OpenSAFELY study, using the CSV files fromopensafely codelists update.check_codelists_url()checks codelists from their URLs on OpenCodelists.check_codelists()callscheck_codelists_url()whenurlis set andcheck_codelists_dir()otherwise.
Usage
check_codelists(dir = "codelists", url = NULL, ...)
check_codelists_dir(
dir = "codelists",
start_date = NULL,
end_date = NULL,
data_version = NULL,
history_version = NULL
)
check_codelists_url(
url,
start_date = NULL,
end_date = NULL,
data_version = NULL,
history_version = NULL
)Arguments
- dir
String, path to the codelists directory. Default
"codelists". Ignored whenurlis set.- url
Character vector of codelist URLs on OpenCodelists. Default
NULLusesdir.- ...
Arguments passed to
check_codelists_dir()orcheck_codelists_url().- start_date, end_date
Dates or strings, first and last day of the reporting periods to use. Default
NULLuses all periods.- data_version
String, version of the
get_gp_snomed()data. DefaultNULLuses the latest.- history_version
String, version of the SNOMED CT History Substitution Table. Default
NULLuses the latest.