Package ca.uhn.fhir.model.api
Class Tag
java.lang.Object
ca.uhn.fhir.model.api.BaseElement
ca.uhn.fhir.model.api.Tag
- All Implemented Interfaces:
IElement
,ISupportsUndeclaredExtensions
,Serializable
,IBase
,IBaseCoding
A single tag
Note on equality- When computing hashCode or equals values for this class, only the
scheme
and
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Convenience constant containing the "http://hl7.org/fhir/tag" scheme valuestatic final String
Convenience constant containing the "http://hl7.org/fhir/tag/profile" scheme valuestatic final String
Convenience constant containing the "http://hl7.org/fhir/tag/security" scheme value -
Constructor Summary
ConstructorDescriptionTag()
Deprecated.There is no reason to create a tag with a term and not a scheme, so this constructor will be removed -
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
getLabel()
getTerm()
boolean
int
hashCode()
boolean
isEmpty()
Returnstrue
if either scheme or term is populated.setDisplay
(String theLabel) Sets the label and returns a reference to this tagSets the scheme and returns a reference to this tagSets the term and returns a reference to this tagsetUserSelected
(boolean theUserSelected) void
setUserSelectedBoolean
(Boolean theUserSelected) setVersion
(String theVersion) toString()
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserData
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
Field Details
-
ATTR_LABEL
- See Also:
-
ATTR_SCHEME
- See Also:
-
ATTR_TERM
- See Also:
-
HL7_ORG_FHIR_TAG
Convenience constant containing the "http://hl7.org/fhir/tag" scheme value- See Also:
-
HL7_ORG_PROFILE_TAG
Convenience constant containing the "http://hl7.org/fhir/tag/profile" scheme value- See Also:
-
HL7_ORG_SECURITY_TAG
Convenience constant containing the "http://hl7.org/fhir/tag/security" scheme value- See Also:
-
-
Constructor Details
-
Tag
public Tag() -
Tag
Deprecated.There is no reason to create a tag with a term and not a scheme, so this constructor will be removed -
Tag
-
Tag
-
Tag
-
-
Method Details
-
getLabel
-
getScheme
-
getTerm
-
equals
-
hashCode
-
isEmpty
Returnstrue
if either scheme or term is populated. -
setLabel
Sets the label and returns a reference to this tag -
setScheme
Sets the scheme and returns a reference to this tag -
setTerm
Sets the term and returns a reference to this tag -
toString
-
getCode
- Specified by:
getCode
in interfaceIBaseCoding
-
getDisplay
- Specified by:
getDisplay
in interfaceIBaseCoding
-
getSystem
- Specified by:
getSystem
in interfaceIBaseCoding
-
setCode
- Specified by:
setCode
in interfaceIBaseCoding
-
setDisplay
- Specified by:
setDisplay
in interfaceIBaseCoding
-
setSystem
- Specified by:
setSystem
in interfaceIBaseCoding
-
getVersion
- Specified by:
getVersion
in interfaceIBaseCoding
-
setVersion
- Specified by:
setVersion
in interfaceIBaseCoding
-
getUserSelected
- Specified by:
getUserSelected
in interfaceIBaseCoding
-
getUserSelectedBoolean
-
setUserSelected
- Specified by:
setUserSelected
in interfaceIBaseCoding
-
setUserSelectedBoolean
-