Class SubstanceDefinition
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.AbstractVisitable
-
- org.linuxforhealth.fhir.model.resource.Resource
-
- org.linuxforhealth.fhir.model.resource.DomainResource
-
- org.linuxforhealth.fhir.model.resource.SubstanceDefinition
-
- All Implemented Interfaces:
Visitable
@Generated("org.linuxforhealth.fhir.tools.CodeGenerator") public class SubstanceDefinition extends DomainResourceThe detailed description of a substance, typically at a level beyond what is used for prescribing.Maturity level: FMM1 (Trial Use)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubstanceDefinition.Builderstatic classSubstanceDefinition.CodeCodes associated with the substance.static classSubstanceDefinition.MoietyMoiety, for structural modifications.static classSubstanceDefinition.MolecularWeightThe molecular weight or weight range (for proteins, polymers or nucleic acids).static classSubstanceDefinition.NameNames applicable to this substance.static classSubstanceDefinition.PropertyGeneral specifications for this substance.static classSubstanceDefinition.RelationshipA link between this substance and another, with details of the relationship.static classSubstanceDefinition.SourceMaterialMaterial or taxonomic/anatomical source for the substance.static classSubstanceDefinition.StructureStructural information.
-
Field Summary
-
Fields inherited from class org.linuxforhealth.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 SubstanceDefinition.Builderbuilder()booleanequals(java.lang.Object obj)java.util.List<CodeableConcept>getClassification()A high level categorization, e.g.java.util.List<SubstanceDefinition.Code>getCode()Codes associated with the substance.MarkdowngetDescription()Textual description of the substance.CodeableConceptgetDomain()If the substance applies to human or veterinary use.java.util.List<CodeableConcept>getGrade()The quality standard, established benchmark, to which substance complies (e.g.java.util.List<Identifier>getIdentifier()Identifier by which this substance is known.java.util.List<Reference>getInformationSource()Supporting literature.java.util.List<Reference>getManufacturer()The entity that creates, makes, produces or fabricates the substance.java.util.List<SubstanceDefinition.Moiety>getMoiety()Moiety, for structural modifications.java.util.List<SubstanceDefinition.MolecularWeight>getMolecularWeight()The molecular weight or weight range (for proteins, polymers or nucleic acids).java.util.List<SubstanceDefinition.Name>getName()Names applicable to this substance.java.util.List<Annotation>getNote()Textual comment about the substance's catalogue or registry record.java.util.List<SubstanceDefinition.Property>getProperty()General specifications for this substance.java.util.List<SubstanceDefinition.Relationship>getRelationship()A link between this substance and another, with details of the relationship.SubstanceDefinition.SourceMaterialgetSourceMaterial()Material or taxonomic/anatomical source for the substance.CodeableConceptgetStatus()Status of substance within the catalogue e.g.SubstanceDefinition.StructuregetStructure()Structural information.java.util.List<Reference>getSupplier()An entity that is the source for the substance.StringgetVersion()A business level version identifier of the substance.booleanhasChildren()inthashCode()SubstanceDefinition.BuildertoBuilder()Create a new Builder from the contents of this Resource-
Methods inherited from class org.linuxforhealth.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class org.linuxforhealth.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getIdentifier
public java.util.List<Identifier> getIdentifier()
Identifier by which this substance is known.- Returns:
- An unmodifiable list containing immutable objects of type
Identifierthat may be empty.
-
getVersion
public String getVersion()
A business level version identifier of the substance.- Returns:
- An immutable object of type
Stringthat may be null.
-
getStatus
public CodeableConcept getStatus()
Status of substance within the catalogue e.g. active, retired.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getClassification
public java.util.List<CodeableConcept> getClassification()
A high level categorization, e.g. polymer or nucleic acid, or food, chemical, biological, or a lower level such as the general types of polymer (linear or branch chain) or type of impurity (process related or contaminant).- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConceptthat may be empty.
-
getDomain
public CodeableConcept getDomain()
If the substance applies to human or veterinary use.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getGrade
public java.util.List<CodeableConcept> getGrade()
The quality standard, established benchmark, to which substance complies (e.g. USP/NF, Ph. Eur, JP, BP, Company Standard).- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConceptthat may be empty.
-
getDescription
public Markdown getDescription()
Textual description of the substance.- Returns:
- An immutable object of type
Markdownthat may be null.
-
getInformationSource
public java.util.List<Reference> getInformationSource()
Supporting literature.- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat may be empty.
-
getNote
public java.util.List<Annotation> getNote()
Textual comment about the substance's catalogue or registry record.- Returns:
- An unmodifiable list containing immutable objects of type
Annotationthat may be empty.
-
getManufacturer
public java.util.List<Reference> getManufacturer()
The entity that creates, makes, produces or fabricates the substance. This is a set of potential manufacturers but is not necessarily comprehensive.- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat may be empty.
-
getSupplier
public java.util.List<Reference> getSupplier()
An entity that is the source for the substance. It may be different from the manufacturer. Supplier is synonymous to a distributor.- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat may be empty.
-
getMoiety
public java.util.List<SubstanceDefinition.Moiety> getMoiety()
Moiety, for structural modifications.- Returns:
- An unmodifiable list containing immutable objects of type
SubstanceDefinition.Moietythat may be empty.
-
getProperty
public java.util.List<SubstanceDefinition.Property> getProperty()
General specifications for this substance.- Returns:
- An unmodifiable list containing immutable objects of type
SubstanceDefinition.Propertythat may be empty.
-
getMolecularWeight
public java.util.List<SubstanceDefinition.MolecularWeight> getMolecularWeight()
The molecular weight or weight range (for proteins, polymers or nucleic acids).- Returns:
- An unmodifiable list containing immutable objects of type
SubstanceDefinition.MolecularWeightthat may be empty.
-
getStructure
public SubstanceDefinition.Structure getStructure()
Structural information.- Returns:
- An immutable object of type
SubstanceDefinition.Structurethat may be null.
-
getCode
public java.util.List<SubstanceDefinition.Code> getCode()
Codes associated with the substance.- Returns:
- An unmodifiable list containing immutable objects of type
SubstanceDefinition.Codethat may be empty.
-
getName
public java.util.List<SubstanceDefinition.Name> getName()
Names applicable to this substance.- Returns:
- An unmodifiable list containing immutable objects of type
SubstanceDefinition.Namethat may be empty.
-
getRelationship
public java.util.List<SubstanceDefinition.Relationship> getRelationship()
A link between this substance and another, with details of the relationship.- Returns:
- An unmodifiable list containing immutable objects of type
SubstanceDefinition.Relationshipthat may be empty.
-
getSourceMaterial
public SubstanceDefinition.SourceMaterial getSourceMaterial()
Material or taxonomic/anatomical source for the substance.- Returns:
- An immutable object of type
SubstanceDefinition.SourceMaterialthat 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 SubstanceDefinition.Builder toBuilder()
Description copied from class:ResourceCreate a new Builder from the contents of this Resource- Specified by:
toBuilderin classDomainResource
-
builder
public static SubstanceDefinition.Builder builder()
-
-