fhir_resource_type: Create fhir_resource_type object

Description Usage Arguments Value Examples

View source: R/fhir_resource_type.R

Description

This function creates an object of class fhir_resource_type. It checks the resource type against the list of resource types provided at https://hl7.org/FHIR/resourcelist.html, corrects wrong cases (which can be disabled with fix_capitalization = FALSE) and throws a warning if the resource cannot be found at hl7.org.

Usage

1
fhir_resource_type(string, fix_capitalization = TRUE)

Arguments

string

A length one character vector containing the resource type. Will usually be one of the official FHIR resource types listed at https://hl7.org/FHIR/resourcelist.html

fix_capitalization

Correct wrong capitalization for known resource types? E.g. patients -> Patients or medicationstatement -> MedicationStatement. Defaults to TRUE.

Value

An fhir_resource_type object

Examples

1
2
fhir_resource_type(string = "Patient")
fhir_resource_type(string = "medicationadministration")

fhircrackr documentation built on June 17, 2021, 5:12 p.m.