Package com.ibm.fhir.model.resource
Class SubstanceSpecification
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.resource.Resource
-
- com.ibm.fhir.model.resource.DomainResource
-
- com.ibm.fhir.model.resource.SubstanceSpecification
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class SubstanceSpecification extends DomainResourceThe detailed description of a substance, typically at a level beyond what is used for prescribing.Maturity level: FMM0 (Trial Use)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubstanceSpecification.Builderstatic classSubstanceSpecification.CodeCodes associated with the substance.static classSubstanceSpecification.MoietyMoiety, for structural modifications.static classSubstanceSpecification.NameNames applicable to this substance.static classSubstanceSpecification.PropertyGeneral specifications for this substance, including how it is related to other substances.static classSubstanceSpecification.RelationshipA link between this substance and another, with details of the relationship.static classSubstanceSpecification.StructureStructural information.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
-
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 SubstanceSpecification.Builderbuilder()booleanequals(java.lang.Object obj)java.util.List<SubstanceSpecification.Code>getCode()Codes associated with the substance.StringgetComment()Textual comment about this record of a substance.StringgetDescription()Textual description of the substance.CodeableConceptgetDomain()If the substance applies to only human or veterinary use.IdentifiergetIdentifier()Identifier by which this substance is known.java.util.List<SubstanceSpecification.Moiety>getMoiety()Moiety, for structural modifications.java.util.List<SubstanceSpecification.Structure.Isotope.MolecularWeight>getMolecularWeight()The molecular weight or weight range (for proteins, polymers or nucleic acids).java.util.List<SubstanceSpecification.Name>getName()Names applicable to this substance.ReferencegetNucleicAcid()Data items specific to nucleic acids.ReferencegetPolymer()Data items specific to polymers.java.util.List<SubstanceSpecification.Property>getProperty()General specifications for this substance, including how it is related to other substances.ReferencegetProtein()Data items specific to proteins.ReferencegetReferenceInformation()General information detailing this substance.java.util.List<SubstanceSpecification.Relationship>getRelationship()A link between this substance and another, with details of the relationship.java.util.List<Reference>getSource()Supporting literature.ReferencegetSourceMaterial()Material or taxonomic/anatomical source for the substance.CodeableConceptgetStatus()Status of substance within the catalogue e.g.SubstanceSpecification.StructuregetStructure()Structural information.CodeableConceptgetType()High level categorization, e.g.booleanhasChildren()inthashCode()SubstanceSpecification.BuildertoBuilder()Create a new Builder from the contents of this Resource-
Methods inherited from class com.ibm.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class com.ibm.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getIdentifier
public Identifier getIdentifier()
Identifier by which this substance is known.- Returns:
- An immutable object of type
Identifierthat may be null.
-
getType
public CodeableConcept getType()
High level categorization, e.g. polymer or nucleic acid.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getStatus
public CodeableConcept getStatus()
Status of substance within the catalogue e.g. approved.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getDomain
public CodeableConcept getDomain()
If the substance applies to only human or veterinary use.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getDescription
public String getDescription()
Textual description of the substance.- Returns:
- An immutable object of type
Stringthat may be null.
-
getSource
public java.util.List<Reference> getSource()
Supporting literature.- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat may be empty.
-
getComment
public String getComment()
Textual comment about this record of a substance.- Returns:
- An immutable object of type
Stringthat may be null.
-
getMoiety
public java.util.List<SubstanceSpecification.Moiety> getMoiety()
Moiety, for structural modifications.- Returns:
- An unmodifiable list containing immutable objects of type
SubstanceSpecification.Moietythat may be empty.
-
getProperty
public java.util.List<SubstanceSpecification.Property> getProperty()
General specifications for this substance, including how it is related to other substances.- Returns:
- An unmodifiable list containing immutable objects of type
SubstanceSpecification.Propertythat may be empty.
-
getReferenceInformation
public Reference getReferenceInformation()
General information detailing this substance.- Returns:
- An immutable object of type
Referencethat may be null.
-
getStructure
public SubstanceSpecification.Structure getStructure()
Structural information.- Returns:
- An immutable object of type
SubstanceSpecification.Structurethat may be null.
-
getCode
public java.util.List<SubstanceSpecification.Code> getCode()
Codes associated with the substance.- Returns:
- An unmodifiable list containing immutable objects of type
SubstanceSpecification.Codethat may be empty.
-
getName
public java.util.List<SubstanceSpecification.Name> getName()
Names applicable to this substance.- Returns:
- An unmodifiable list containing immutable objects of type
SubstanceSpecification.Namethat may be empty.
-
getMolecularWeight
public java.util.List<SubstanceSpecification.Structure.Isotope.MolecularWeight> getMolecularWeight()
The molecular weight or weight range (for proteins, polymers or nucleic acids).- Returns:
- An unmodifiable list containing immutable objects of type
MolecularWeightthat may be empty.
-
getRelationship
public java.util.List<SubstanceSpecification.Relationship> getRelationship()
A link between this substance and another, with details of the relationship.- Returns:
- An unmodifiable list containing immutable objects of type
SubstanceSpecification.Relationshipthat may be empty.
-
getNucleicAcid
public Reference getNucleicAcid()
Data items specific to nucleic acids.- Returns:
- An immutable object of type
Referencethat may be null.
-
getPolymer
public Reference getPolymer()
Data items specific to polymers.- Returns:
- An immutable object of type
Referencethat may be null.
-
getProtein
public Reference getProtein()
Data items specific to proteins.- Returns:
- An immutable object of type
Referencethat may be null.
-
getSourceMaterial
public Reference getSourceMaterial()
Material or taxonomic/anatomical source for the substance.- Returns:
- An immutable object of type
Referencethat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classDomainResource
-
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 SubstanceSpecification.Builder toBuilder()
Description copied from class:ResourceCreate a new Builder from the contents of this Resource- Specified by:
toBuilderin classDomainResource
-
builder
public static SubstanceSpecification.Builder builder()
-
-