Package org.hl7.fhir

Class Identifier

java.lang.Object
org.hl7.fhir.Element
org.hl7.fhir.Identifier
All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

public class Identifier extends Element implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
If the element is present, it must have a value for at least one of the defined elements, an @id referenced from the Narrative, or extensions

Java class for Identifier complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Identifier">
   <complexContent>
     <extension base="{http://hl7.org/fhir}Element">
       <sequence>
         <element name="use" type="{http://hl7.org/fhir}IdentifierUse" minOccurs="0"/>
         <element name="type" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
         <element name="system" type="{http://hl7.org/fhir}uri" minOccurs="0"/>
         <element name="value" type="{http://hl7.org/fhir}string" minOccurs="0"/>
         <element name="period" type="{http://hl7.org/fhir}Period" minOccurs="0"/>
         <element name="assigner" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Identifier

      public Identifier()
  • Method Details

    • getUse

      public IdentifierUse getUse()
      Gets the value of the use property.
      Returns:
      possible object is IdentifierUse
    • setUse

      public void setUse(IdentifierUse value)
      Sets the value of the use property.
      Parameters:
      value - allowed object is IdentifierUse
    • getType

      public CodeableConcept getType()
      Gets the value of the type property.
      Returns:
      possible object is CodeableConcept
    • setType

      public void setType(CodeableConcept value)
      Sets the value of the type property.
      Parameters:
      value - allowed object is CodeableConcept
    • getSystem

      public Uri getSystem()
      Gets the value of the system property.
      Returns:
      possible object is Uri
    • setSystem

      public void setSystem(Uri value)
      Sets the value of the system property.
      Parameters:
      value - allowed object is Uri
    • getValue

      public String getValue()
      Gets the value of the value property.
      Returns:
      possible object is String
    • setValue

      public void setValue(String value)
      Sets the value of the value property.
      Parameters:
      value - allowed object is String
    • getPeriod

      public Period getPeriod()
      Gets the value of the period property.
      Returns:
      possible object is Period
    • setPeriod

      public void setPeriod(Period value)
      Sets the value of the period property.
      Parameters:
      value - allowed object is Period
    • getAssigner

      public Reference getAssigner()
      Gets the value of the assigner property.
      Returns:
      possible object is Reference
    • setAssigner

      public void setAssigner(Reference value)
      Sets the value of the assigner property.
      Parameters:
      value - allowed object is Reference
    • withUse

      public Identifier withUse(IdentifierUse value)
    • withType

      public Identifier withType(CodeableConcept value)
    • withSystem

      public Identifier withSystem(Uri value)
    • withValue

      public Identifier withValue(String value)
    • withPeriod

      public Identifier withPeriod(Period value)
    • withAssigner

      public Identifier withAssigner(Reference value)
    • withExtension

      public Identifier withExtension(Extension... values)
      Overrides:
      withExtension in class Element
    • withExtension

      public Identifier withExtension(Collection<Extension> values)
      Overrides:
      withExtension in class Element
    • withId

      public Identifier withId(String value)
      Overrides:
      withId in class Element
    • equals

      public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
      Specified by:
      equals in interface org.jvnet.jaxb2_commons.lang.Equals2
      Overrides:
      equals in class Element
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Element
    • hashCode

      public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
      Specified by:
      hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
      Overrides:
      hashCode in class Element
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Element
    • toString

      public String toString()
      Overrides:
      toString in class Element
    • append

      public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      append in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      append in class Element
    • appendFields

      public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      appendFields in class Element