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.
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.