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
public class Tag extends BaseElement implements IElement, IBaseCoding
A single tagNote on equality- When computing hashCode or equals values for this class, only the
schemeand- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_LABELstatic StringATTR_SCHEMEstatic StringATTR_TERMstatic StringHL7_ORG_FHIR_TAGConvenience constant containing the "http://hl7.org/fhir/tag" scheme valuestatic StringHL7_ORG_PROFILE_TAGConvenience constant containing the "http://hl7.org/fhir/tag/profile" scheme valuestatic StringHL7_ORG_SECURITY_TAGConvenience constant containing the "http://hl7.org/fhir/tag/security" scheme value
-
Constructor Summary
Constructors Constructor 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 removedTag(String theScheme, String theTerm)Tag(String theScheme, String theTerm, String theLabel)Tag(URI theScheme, URI theTerm, String theLabel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetCode()StringgetDisplay()StringgetLabel()StringgetScheme()StringgetSystem()StringgetTerm()inthashCode()booleanisEmpty()Returnstrueif either scheme or term is populated.IBaseCodingsetCode(String theTerm)IBaseCodingsetDisplay(String theLabel)TagsetLabel(String theLabel)Sets the label and returns a reference to this tagTagsetScheme(String theScheme)Sets the scheme and returns a reference to this tagIBaseCodingsetSystem(String theScheme)TagsetTerm(String theTerm)Sets the term and returns a reference to this tagStringtoString()-
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 Detail
-
ATTR_LABEL
public static final String ATTR_LABEL
- See Also:
- Constant Field Values
-
ATTR_SCHEME
public static final String ATTR_SCHEME
- See Also:
- Constant Field Values
-
ATTR_TERM
public static final String ATTR_TERM
- See Also:
- Constant Field Values
-
HL7_ORG_FHIR_TAG
public static final String HL7_ORG_FHIR_TAG
Convenience constant containing the "http://hl7.org/fhir/tag" scheme value- See Also:
- Constant Field Values
-
HL7_ORG_PROFILE_TAG
public static final String HL7_ORG_PROFILE_TAG
Convenience constant containing the "http://hl7.org/fhir/tag/profile" scheme value- See Also:
- Constant Field Values
-
HL7_ORG_SECURITY_TAG
public static final String HL7_ORG_SECURITY_TAG
Convenience constant containing the "http://hl7.org/fhir/tag/security" scheme value- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Tag
public Tag()
-
Tag
@Deprecated public 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
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Returnstrueif either scheme or term is populated.
-
setScheme
public Tag setScheme(String theScheme)
Sets the scheme and returns a reference to this tag
-
getCode
public String getCode()
- Specified by:
getCodein interfaceIBaseCoding
-
getDisplay
public String getDisplay()
- Specified by:
getDisplayin interfaceIBaseCoding
-
getSystem
public String getSystem()
- Specified by:
getSystemin interfaceIBaseCoding
-
setCode
public IBaseCoding setCode(String theTerm)
- Specified by:
setCodein interfaceIBaseCoding
-
setDisplay
public IBaseCoding setDisplay(String theLabel)
- Specified by:
setDisplayin interfaceIBaseCoding
-
setSystem
public IBaseCoding setSystem(String theScheme)
- Specified by:
setSystemin interfaceIBaseCoding
-
-