Package org.hl7.fhir.dstu2.utils
Class ResourceUtilities
- java.lang.Object
-
- org.hl7.fhir.dstu2.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 booleanisAnError(OperationOutcome error)static Metameta(Resource resource)static voidrenderContactPoint(StringBuilder b, ContactPoint cp)static StringrepresentDataElementCollection(IWorkerContext context, Bundle bundle, boolean profileLink, String linkBase)
-
-
-
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)
-
representDataElementCollection
public static String representDataElementCollection(IWorkerContext context, Bundle bundle, boolean profileLink, String linkBase)
-
renderContactPoint
public static void renderContactPoint(StringBuilder b, ContactPoint cp)
-
-