Package au.csiro.pathling.fhir
Class FhirUtils
- java.lang.Object
-
- au.csiro.pathling.fhir.FhirUtils
-
public class FhirUtils extends Object
A utility class for working with FHIR resources.- Author:
- John Grimes
-
-
Constructor Summary
Constructors Constructor Description FhirUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Enumerations.ResourceTypegetResourceType(String resourceCode)A method for getting a FHIR resource type from a string.
-
-
-
Method Detail
-
getResourceType
public static Enumerations.ResourceType getResourceType(@Nullable String resourceCode)
A method for getting a FHIR resource type from a string. This method will always throw an error if the string does not match a known resource type.- Parameters:
resourceCode- the string to convert to a resource type- Returns:
- the resource type
-
-