Package com.ibm.fhir.model.resource
Class SubstanceNucleicAcid.Subunit
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.BackboneElement
-
- com.ibm.fhir.model.resource.SubstanceNucleicAcid.Subunit
-
- All Implemented Interfaces:
Visitable
- Enclosing class:
- SubstanceNucleicAcid
public static class SubstanceNucleicAcid.Subunit extends BackboneElement
Subunits are listed in order of decreasing length; sequences of the same length will be ordered by molecular weight; subunits that have identical sequences will be repeated multiple times.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubstanceNucleicAcid.Subunit.Builder
static class
SubstanceNucleicAcid.Subunit.Linkage
The linkages between sugar residues will also be captured.static class
SubstanceNucleicAcid.Subunit.Sugar
5.3.6.8.1 Sugar ID (Mandatory).
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.BackboneElement
modifierExtension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static SubstanceNucleicAcid.Subunit.Builder
builder()
boolean
equals(java.lang.Object obj)
CodeableConcept
getFivePrime()
The nucleotide present at the 5’ terminal shall be specified based on a controlled vocabulary.Integer
getLength()
The length of the sequence shall be captured.java.util.List<SubstanceNucleicAcid.Subunit.Linkage>
getLinkage()
The linkages between sugar residues will also be captured.String
getSequence()
Actual nucleotide sequence notation from 5' to 3' end using standard single letter codes.Attachment
getSequenceAttachment()
(TBC).Integer
getSubunit()
Index of linear sequences of nucleic acids in order of decreasing length.java.util.List<SubstanceNucleicAcid.Subunit.Sugar>
getSugar()
5.3.6.8.1 Sugar ID (Mandatory).CodeableConcept
getThreePrime()
The nucleotide present at the 3’ terminal shall be specified based on a controlled vocabulary.boolean
hasChildren()
int
hashCode()
SubstanceNucleicAcid.Subunit.Builder
toBuilder()
Create a new Builder from the contents of this Element-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement
getModifierExtension
-
-
-
-
Method Detail
-
getSubunit
public Integer getSubunit()
Index of linear sequences of nucleic acids in order of decreasing length. Sequences of the same length will be ordered by molecular weight. Subunits that have identical sequences will be repeated and have sequential subscripts.- Returns:
- An immutable object of type
Integer
that may be null.
-
getSequence
public String getSequence()
Actual nucleotide sequence notation from 5' to 3' end using standard single letter codes. In addition to the base sequence, sugar and type of phosphate or non-phosphate linkage should also be captured.- Returns:
- An immutable object of type
String
that may be null.
-
getLength
public Integer getLength()
The length of the sequence shall be captured.- Returns:
- An immutable object of type
Integer
that may be null.
-
getSequenceAttachment
public Attachment getSequenceAttachment()
(TBC).- Returns:
- An immutable object of type
Attachment
that may be null.
-
getFivePrime
public CodeableConcept getFivePrime()
The nucleotide present at the 5’ terminal shall be specified based on a controlled vocabulary. Since the sequence is represented from the 5' to the 3' end, the 5’ prime nucleotide is the letter at the first position in the sequence. A separate representation would be redundant.- Returns:
- An immutable object of type
CodeableConcept
that may be null.
-
getThreePrime
public CodeableConcept getThreePrime()
The nucleotide present at the 3’ terminal shall be specified based on a controlled vocabulary. Since the sequence is represented from the 5' to the 3' end, the 5’ prime nucleotide is the letter at the last position in the sequence. A separate representation would be redundant.- Returns:
- An immutable object of type
CodeableConcept
that may be null.
-
getLinkage
public java.util.List<SubstanceNucleicAcid.Subunit.Linkage> getLinkage()
The linkages between sugar residues will also be captured.- Returns:
- An unmodifiable list containing immutable objects of type
SubstanceNucleicAcid.Subunit.Linkage
that may be empty.
-
getSugar
public java.util.List<SubstanceNucleicAcid.Subunit.Sugar> getSugar()
5.3.6.8.1 Sugar ID (Mandatory).- Returns:
- An unmodifiable list containing immutable objects of type
SubstanceNucleicAcid.Subunit.Sugar
that may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classBackboneElement
-
accept
public void accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Description copied from interface:Visitable
Accept 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:
accept
in interfaceVisitable
- Specified by:
accept
in 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
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toBuilder
public SubstanceNucleicAcid.Subunit.Builder toBuilder()
Description copied from class:Element
Create a new Builder from the contents of this Element- Specified by:
toBuilder
in classBackboneElement
-
builder
public static SubstanceNucleicAcid.Subunit.Builder builder()
-
-