Package com.ibm.fhir.model.type
Class Identifier
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.Identifier
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class Identifier extends Element
An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIdentifier.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static Identifier.Builderbuilder()booleanequals(Object obj)ReferencegetAssigner()Organization that issued/manages the identifier.PeriodgetPeriod()Time period during which identifier is/was valid for use.UrigetSystem()Establishes the namespace for the value - that is, a URL that describes a set values that are unique.CodeableConceptgetType()A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.IdentifierUsegetUse()The purpose of this identifier.StringgetValue()The portion of the identifier typically relevant to the user and which is unique within the context of the system.booleanhasChildren()inthashCode()Identifier.BuildertoBuilder()Create a new Builder from the contents of this Element
-
-
-
Method Detail
-
getUse
public IdentifierUse getUse()
The purpose of this identifier.- Returns:
- An immutable object of type
IdentifierUsethat may be null.
-
getType
public CodeableConcept getType()
A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getSystem
public Uri getSystem()
Establishes the namespace for the value - that is, a URL that describes a set values that are unique.- Returns:
- An immutable object of type
Urithat may be null.
-
getValue
public String getValue()
The portion of the identifier typically relevant to the user and which is unique within the context of the system.- Returns:
- An immutable object of type
Stringthat may be null.
-
getPeriod
public Period getPeriod()
Time period during which identifier is/was valid for use.- Returns:
- An immutable object of type
Periodthat may be null.
-
getAssigner
public Reference getAssigner()
Organization that issued/manages the identifier.- Returns:
- An immutable object of type
Referencethat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classElement
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
toBuilder
public Identifier.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element
-
builder
public static Identifier.Builder builder()
-
-