Learn R Programming

rEHR (version 1.0)

MedicalDefinition: Constructor function for MedicalDefinition class

Description

Constructor function for MedicalDefinition class

Usage

MedicalDefinition(terms = NULL, codes = NULL, tests = NULL, drugs = NULL, drugcodes = NULL)

Arguments

terms
list of character vectors or NULL
codes
list of character vectors or NULL
tests
list of character vectors or NULL
drugs
list of character vectors or NULL
drugcodes
list of character vectors or NULL

Details

Elements marked with a "-" are excluded. Elements marked with a "r

Examples

Run this code
def <- MedicalDefinition(terms = list(c("angina", "unstable"), c("angina", "Crescendo "),
                                      c("angina", "Refractory")),
                         codes = list("G33..00", "G330.00", "%r212H", "-G617"))
class(def)

Run the code above in your browser using DataLab