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 classSubstanceNucleicAcid.Subunit.Builderstatic classSubstanceNucleicAcid.Subunit.LinkageThe linkages between sugar residues will also be captured.static classSubstanceNucleicAcid.Subunit.Sugar5.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 voidaccept(java.lang.String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static SubstanceNucleicAcid.Subunit.Builderbuilder()booleanequals(java.lang.Object obj)CodeableConceptgetFivePrime()The nucleotide present at the 5’ terminal shall be specified based on a controlled vocabulary.IntegergetLength()The length of the sequence shall be captured.java.util.List<SubstanceNucleicAcid.Subunit.Linkage>getLinkage()The linkages between sugar residues will also be captured.StringgetSequence()Actual nucleotide sequence notation from 5' to 3' end using standard single letter codes.AttachmentgetSequenceAttachment()(TBC).IntegergetSubunit()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).CodeableConceptgetThreePrime()The nucleotide present at the 3’ terminal shall be specified based on a controlled vocabulary.booleanhasChildren()inthashCode()SubstanceNucleicAcid.Subunit.BuildertoBuilder()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
Integerthat 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
Stringthat may be null.
-
getLength
public Integer getLength()
The length of the sequence shall be captured.- Returns:
- An immutable object of type
Integerthat may be null.
-
getSequenceAttachment
public Attachment getSequenceAttachment()
(TBC).- Returns:
- An immutable object of type
Attachmentthat 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
CodeableConceptthat 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
CodeableConceptthat 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.Linkagethat 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.Sugarthat may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classBackboneElement
-
accept
public void accept(java.lang.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
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toBuilder
public SubstanceNucleicAcid.Subunit.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element- Specified by:
toBuilderin classBackboneElement
-
builder
public static SubstanceNucleicAcid.Subunit.Builder builder()
-
-