public class ExtensionHelper extends Object
| Constructor and Description |
|---|
ExtensionHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Extension |
getExtension(BackboneElement element,
String name) |
static Extension |
getExtension(DomainResource resource,
String name) |
static Extension |
getExtension(Element element,
String name) |
static boolean |
hasExtension(BackboneElement element,
String name) |
static boolean |
hasExtension(Element element,
String name) |
static boolean |
hasExtensions(Element element) |
static void |
setExtension(Element element,
boolean modifier,
String uri,
Type value)
set the value of an extension on the element.
|
public ExtensionHelper()
public static boolean hasExtension(Element element, String name)
name - the identity of the extension of interestpublic static boolean hasExtension(BackboneElement element, String name)
name - the identity of the extension of interestpublic static Extension getExtension(Element element, String name)
name - the identity of the extension of interestpublic static Extension getExtension(DomainResource resource, String name)
name - the identity of the extension of interestpublic static Extension getExtension(BackboneElement element, String name)
name - the identity of the extension of interestpublic static void setExtension(Element element, boolean modifier, String uri, Type value) throws org.hl7.fhir.exceptions.FHIRException
element - - the element to act on. Can also be a backbone elementmodifier - - whether this is a modifier. Note that this is a definitional property of the extension; don't alternateuri - - the identifier for the extensionvalue - - the value of the extension. Delete if this is nullException - - if the modifier logic is incorrectorg.hl7.fhir.exceptions.FHIRExceptionpublic static boolean hasExtensions(Element element)
Copyright © 2014–2021 Health Level 7. All rights reserved.