Package org.hl7.fhir.r5.utils
Class ResourceUtilities
- java.lang.Object
-
- org.hl7.fhir.r5.utils.ResourceUtilities
-
public class ResourceUtilities extends Object
Decoration utilities for various resource types- Author:
- Grahame
-
-
Field Summary
Fields Modifier and Type Field Description static StringFHIR_LANGUAGE
-
Constructor Summary
Constructors Constructor Description ResourceUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResourcegetById(Bundle feed, ResourceType type, String reference)static Bundle.BundleEntryComponentgetEntryById(Bundle feed, ResourceType type, String reference)static StringgetErrorDescription(OperationOutcome error)static StringgetLink(Bundle feed, String rel)static LocalegetLocale(String lang, List<CodeableConcept> jurisdictions)static LocalegetLocale(CanonicalResource cr)static booleanisAnError(OperationOutcome error)static Metameta(Resource resource)
-
-
-
Field Detail
-
FHIR_LANGUAGE
public static final String FHIR_LANGUAGE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ResourceUtilities
public ResourceUtilities()
-
-
Method Detail
-
isAnError
public static boolean isAnError(OperationOutcome error)
-
getErrorDescription
public static String getErrorDescription(OperationOutcome error)
-
getById
public static Resource getById(Bundle feed, ResourceType type, String reference)
-
getEntryById
public static Bundle.BundleEntryComponent getEntryById(Bundle feed, ResourceType type, String reference)
-
getLocale
public static Locale getLocale(CanonicalResource cr)
-
getLocale
public static Locale getLocale(String lang, List<CodeableConcept> jurisdictions)
-
-