patients_per_medcode: Produce a dataset of CPRD medcodes with frequencies of...

Description Usage Arguments Details Examples

Description

This function aggregates all distinct patients matching each CPRD medcode in the clinical table

Usage

1
2
patients_per_medcode(db, clinical_table = "Clinical", patid = "patid",
  medcode = "medcode")

Arguments

db

a database connection

clinical_table

name of the clinical table in the database

patid

name of the patid field

medcode

name of the medcode field

Details

Note that this does not translate to Read/OXMIS codes. This function should be fast because all of the heavy lifting happens in SQLite before the data is exported to R

Examples

1
2
3
4
5
## Not run: 
medcode_counts <- patients_per_medcode(db)
head(medcode_counts)

## End(Not run)

rosap/test documentation built on May 27, 2019, 11:30 p.m.