public class Tag extends BaseElement implements IElement, IBaseCoding
Note on equality- When computing hashCode or equals values for this class, only the
scheme and
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_LABEL |
static String |
ATTR_SCHEME |
static String |
ATTR_TERM |
static String |
HL7_ORG_FHIR_TAG
Convenience constant containing the "http://hl7.org/fhir/tag" scheme value
|
static String |
HL7_ORG_PROFILE_TAG
Convenience constant containing the "http://hl7.org/fhir/tag/profile" scheme value
|
static String |
HL7_ORG_SECURITY_TAG
Convenience constant containing the "http://hl7.org/fhir/tag/security" scheme value
|
| Constructor and Description |
|---|
Tag() |
Tag(String theTerm)
Deprecated.
There is no reason to create a tag with a term and not a scheme, so this constructor will be removed
|
Tag(String theScheme,
String theTerm) |
Tag(String theScheme,
String theTerm,
String theLabel) |
Tag(URI theScheme,
URI theTerm,
String theLabel) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCode() |
String |
getDisplay() |
String |
getLabel() |
String |
getScheme() |
String |
getSystem() |
String |
getTerm() |
int |
hashCode() |
boolean |
isEmpty()
Returns
true if either scheme or term is populated. |
IBaseCoding |
setCode(String theTerm) |
IBaseCoding |
setDisplay(String theLabel) |
Tag |
setLabel(String theLabel)
Sets the label and returns a reference to this tag
|
Tag |
setScheme(String theScheme)
Sets the scheme and returns a reference to this tag
|
IBaseCoding |
setSystem(String theScheme) |
Tag |
setTerm(String theTerm)
Sets the term and returns a reference to this tag
|
String |
toHeaderValue() |
String |
toString() |
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, hasFormatComment, isBaseEmptyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFormatCommentsPost, getFormatCommentsPre, hasFormatCommentpublic static final String ATTR_LABEL
public static final String ATTR_SCHEME
public static final String ATTR_TERM
public static final String HL7_ORG_FHIR_TAG
public static final String HL7_ORG_PROFILE_TAG
public static final String HL7_ORG_SECURITY_TAG
public Tag()
@Deprecated public Tag(String theTerm)
public boolean isEmpty()
true if either scheme or term is populated.public Tag setScheme(String theScheme)
public String toHeaderValue()
public String getCode()
getCode in interface IBaseCodingpublic String getDisplay()
getDisplay in interface IBaseCodingpublic String getSystem()
getSystem in interface IBaseCodingpublic IBaseCoding setCode(String theTerm)
setCode in interface IBaseCodingpublic IBaseCoding setDisplay(String theLabel)
setDisplay in interface IBaseCodingpublic IBaseCoding setSystem(String theScheme)
setSystem in interface IBaseCodingCopyright © 2014–2017 University Health Network. All rights reserved.