Model

Model(model, class, jsonDict = list())

Arguments

model

The resource model to build

class

The class of the resource model

jsonDict

The json list to build the data model object. If NULL, then it returns the class.

Value

A Resource object

Examples

getModelClass('patient')
#> $Patient #> <class 'fhirclient.models.patient.Patient'> #> #> $PatientCommunication #> <class 'fhirclient.models.patient.PatientCommunication'> #> #> $PatientContact #> <class 'fhirclient.models.patient.PatientContact'> #> #> $PatientLink #> <class 'fhirclient.models.patient.PatientLink'> #>
Model("patient", "Patient", list(id = "test"))
#> <class 'fhirclient.models.patient.Patient'> #> length: 46 #> names: active address as_json ...