Package org.hl7.fhir

Class Sequence

All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

public class Sequence extends DomainResource 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 either a @value, an @id, or extensions

Java class for Sequence complex type.

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

 <complexType name="Sequence">
   <complexContent>
     <extension base="{http://hl7.org/fhir}DomainResource">
       <sequence>
         <element name="type" type="{http://hl7.org/fhir}sequenceType"/>
         <element name="patient" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
         <element name="specimen" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
         <element name="device" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
         <element name="quantity" type="{http://hl7.org/fhir}Quantity" minOccurs="0"/>
         <element name="species" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
         <element name="referenceSeq" type="{http://hl7.org/fhir}Sequence.ReferenceSeq" maxOccurs="unbounded" minOccurs="0"/>
         <element name="variation" type="{http://hl7.org/fhir}Sequence.Variation" minOccurs="0"/>
         <element name="quality" type="{http://hl7.org/fhir}Sequence.Quality" maxOccurs="unbounded" minOccurs="0"/>
         <element name="allelicState" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
         <element name="allelicFrequency" type="{http://hl7.org/fhir}decimal" minOccurs="0"/>
         <element name="copyNumberEvent" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
         <element name="readCoverage" type="{http://hl7.org/fhir}integer" minOccurs="0"/>
         <element name="repository" type="{http://hl7.org/fhir}Sequence.Repository" maxOccurs="unbounded" minOccurs="0"/>
         <element name="pointer" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
         <element name="observedSeq" type="{http://hl7.org/fhir}string" minOccurs="0"/>
         <element name="observation" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
         <element name="structureVariation" type="{http://hl7.org/fhir}Sequence.StructureVariation" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Sequence

      public Sequence()
  • Method Details

    • getType

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

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

      public Reference getPatient()
      Gets the value of the patient property.
      Returns:
      possible object is Reference
    • setPatient

      public void setPatient(Reference value)
      Sets the value of the patient property.
      Parameters:
      value - allowed object is Reference
    • getSpecimen

      public Reference getSpecimen()
      Gets the value of the specimen property.
      Returns:
      possible object is Reference
    • setSpecimen

      public void setSpecimen(Reference value)
      Sets the value of the specimen property.
      Parameters:
      value - allowed object is Reference
    • getDevice

      public Reference getDevice()
      Gets the value of the device property.
      Returns:
      possible object is Reference
    • setDevice

      public void setDevice(Reference value)
      Sets the value of the device property.
      Parameters:
      value - allowed object is Reference
    • getQuantity

      public Quantity getQuantity()
      Gets the value of the quantity property.
      Returns:
      possible object is Quantity
    • setQuantity

      public void setQuantity(Quantity value)
      Sets the value of the quantity property.
      Parameters:
      value - allowed object is Quantity
    • getSpecies

      public CodeableConcept getSpecies()
      Gets the value of the species property.
      Returns:
      possible object is CodeableConcept
    • setSpecies

      public void setSpecies(CodeableConcept value)
      Sets the value of the species property.
      Parameters:
      value - allowed object is CodeableConcept
    • getReferenceSeq

      public List<SequenceReferenceSeq> getReferenceSeq()
      Gets the value of the referenceSeq property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the referenceSeq property.

      For example, to add a new item, do as follows:

          getReferenceSeq().add(newItem);
       

      Objects of the following type(s) are allowed in the list SequenceReferenceSeq

    • getVariation

      public SequenceVariation getVariation()
      Gets the value of the variation property.
      Returns:
      possible object is SequenceVariation
    • setVariation

      public void setVariation(SequenceVariation value)
      Sets the value of the variation property.
      Parameters:
      value - allowed object is SequenceVariation
    • getQuality

      public List<SequenceQuality> getQuality()
      Gets the value of the quality property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the quality property.

      For example, to add a new item, do as follows:

          getQuality().add(newItem);
       

      Objects of the following type(s) are allowed in the list SequenceQuality

    • getAllelicState

      public CodeableConcept getAllelicState()
      Gets the value of the allelicState property.
      Returns:
      possible object is CodeableConcept
    • setAllelicState

      public void setAllelicState(CodeableConcept value)
      Sets the value of the allelicState property.
      Parameters:
      value - allowed object is CodeableConcept
    • getAllelicFrequency

      public Decimal getAllelicFrequency()
      Gets the value of the allelicFrequency property.
      Returns:
      possible object is Decimal
    • setAllelicFrequency

      public void setAllelicFrequency(Decimal value)
      Sets the value of the allelicFrequency property.
      Parameters:
      value - allowed object is Decimal
    • getCopyNumberEvent

      public CodeableConcept getCopyNumberEvent()
      Gets the value of the copyNumberEvent property.
      Returns:
      possible object is CodeableConcept
    • setCopyNumberEvent

      public void setCopyNumberEvent(CodeableConcept value)
      Sets the value of the copyNumberEvent property.
      Parameters:
      value - allowed object is CodeableConcept
    • getReadCoverage

      public Integer getReadCoverage()
      Gets the value of the readCoverage property.
      Returns:
      possible object is Integer
    • setReadCoverage

      public void setReadCoverage(Integer value)
      Sets the value of the readCoverage property.
      Parameters:
      value - allowed object is Integer
    • getRepository

      public List<SequenceRepository> getRepository()
      Gets the value of the repository property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the repository property.

      For example, to add a new item, do as follows:

          getRepository().add(newItem);
       

      Objects of the following type(s) are allowed in the list SequenceRepository

    • getPointer

      public List<Reference> getPointer()
      Gets the value of the pointer property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the pointer property.

      For example, to add a new item, do as follows:

          getPointer().add(newItem);
       

      Objects of the following type(s) are allowed in the list Reference

    • getObservedSeq

      public String getObservedSeq()
      Gets the value of the observedSeq property.
      Returns:
      possible object is String
    • setObservedSeq

      public void setObservedSeq(String value)
      Sets the value of the observedSeq property.
      Parameters:
      value - allowed object is String
    • getObservation

      public Reference getObservation()
      Gets the value of the observation property.
      Returns:
      possible object is Reference
    • setObservation

      public void setObservation(Reference value)
      Sets the value of the observation property.
      Parameters:
      value - allowed object is Reference
    • getStructureVariation

      public SequenceStructureVariation getStructureVariation()
      Gets the value of the structureVariation property.
      Returns:
      possible object is SequenceStructureVariation
    • setStructureVariation

      public void setStructureVariation(SequenceStructureVariation value)
      Sets the value of the structureVariation property.
      Parameters:
      value - allowed object is SequenceStructureVariation
    • withType

      public Sequence withType(SequenceType value)
    • withPatient

      public Sequence withPatient(Reference value)
    • withSpecimen

      public Sequence withSpecimen(Reference value)
    • withDevice

      public Sequence withDevice(Reference value)
    • withQuantity

      public Sequence withQuantity(Quantity value)
    • withSpecies

      public Sequence withSpecies(CodeableConcept value)
    • withReferenceSeq

      public Sequence withReferenceSeq(SequenceReferenceSeq... values)
    • withReferenceSeq

      public Sequence withReferenceSeq(Collection<SequenceReferenceSeq> values)
    • withVariation

      public Sequence withVariation(SequenceVariation value)
    • withQuality

      public Sequence withQuality(SequenceQuality... values)
    • withQuality

      public Sequence withQuality(Collection<SequenceQuality> values)
    • withAllelicState

      public Sequence withAllelicState(CodeableConcept value)
    • withAllelicFrequency

      public Sequence withAllelicFrequency(Decimal value)
    • withCopyNumberEvent

      public Sequence withCopyNumberEvent(CodeableConcept value)
    • withReadCoverage

      public Sequence withReadCoverage(Integer value)
    • withRepository

      public Sequence withRepository(SequenceRepository... values)
    • withRepository

      public Sequence withRepository(Collection<SequenceRepository> values)
    • withPointer

      public Sequence withPointer(Reference... values)
    • withPointer

      public Sequence withPointer(Collection<Reference> values)
    • withObservedSeq

      public Sequence withObservedSeq(String value)
    • withObservation

      public Sequence withObservation(Reference value)
    • withStructureVariation

      public Sequence withStructureVariation(SequenceStructureVariation value)
    • withText

      public Sequence withText(Narrative value)
      Overrides:
      withText in class DomainResource
    • withContained

      public Sequence withContained(ResourceContainer... values)
      Overrides:
      withContained in class DomainResource
    • withContained

      public Sequence withContained(Collection<ResourceContainer> values)
      Overrides:
      withContained in class DomainResource
    • withExtension

      public Sequence withExtension(Extension... values)
      Overrides:
      withExtension in class DomainResource
    • withExtension

      public Sequence withExtension(Collection<Extension> values)
      Overrides:
      withExtension in class DomainResource
    • withModifierExtension

      public Sequence withModifierExtension(Extension... values)
      Overrides:
      withModifierExtension in class DomainResource
    • withModifierExtension

      public Sequence withModifierExtension(Collection<Extension> values)
      Overrides:
      withModifierExtension in class DomainResource
    • withId

      public Sequence withId(Id value)
      Overrides:
      withId in class DomainResource
    • withMeta

      public Sequence withMeta(Meta value)
      Overrides:
      withMeta in class DomainResource
    • withImplicitRules

      public Sequence withImplicitRules(Uri value)
      Overrides:
      withImplicitRules in class DomainResource
    • withLanguage

      public Sequence withLanguage(Code value)
      Overrides:
      withLanguage in class DomainResource
    • 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 DomainResource
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class DomainResource
    • 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 DomainResource
    • hashCode

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

      public String toString()
      Overrides:
      toString in class DomainResource
    • 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 DomainResource
    • 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 DomainResource