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 DomainResource
The 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 class
SubstanceDefinition.Builder
static class
SubstanceDefinition.Code
Codes associated with the substance.static class
SubstanceDefinition.Moiety
Moiety, for structural modifications.static class
SubstanceDefinition.MolecularWeight
The molecular weight or weight range (for proteins, polymers or nucleic acids).static class
SubstanceDefinition.Name
Names applicable to this substance.static class
SubstanceDefinition.Property
General specifications for this substance.static class
SubstanceDefinition.Relationship
A link between this substance and another, with details of the relationship.static class
SubstanceDefinition.SourceMaterial
Material or taxonomic/anatomical source for the substance.static class
SubstanceDefinition.Structure
Structural 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 void
accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static SubstanceDefinition.Builder
builder()
boolean
equals(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.Markdown
getDescription()
Textual description of the substance.CodeableConcept
getDomain()
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.SourceMaterial
getSourceMaterial()
Material or taxonomic/anatomical source for the substance.CodeableConcept
getStatus()
Status of substance within the catalogue e.g.SubstanceDefinition.Structure
getStructure()
Structural information.java.util.List<Reference>
getSupplier()
An entity that is the source for the substance.String
getVersion()
A business level version identifier of the substance.boolean
hasChildren()
int
hashCode()
SubstanceDefinition.Builder
toBuilder()
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
Identifier
that may be empty.
-
getVersion
public String getVersion()
A business level version identifier of the substance.- Returns:
- An immutable object of type
String
that may be null.
-
getStatus
public CodeableConcept getStatus()
Status of substance within the catalogue e.g. active, retired.- Returns:
- An immutable object of type
CodeableConcept
that 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
CodeableConcept
that may be empty.
-
getDomain
public CodeableConcept getDomain()
If the substance applies to human or veterinary use.- Returns:
- An immutable object of type
CodeableConcept
that 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
CodeableConcept
that may be empty.
-
getDescription
public Markdown getDescription()
Textual description of the substance.- Returns:
- An immutable object of type
Markdown
that may be null.
-
getInformationSource
public java.util.List<Reference> getInformationSource()
Supporting literature.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that 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
Annotation
that 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
Reference
that 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
Reference
that 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.Moiety
that 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.Property
that 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.MolecularWeight
that may be empty.
-
getStructure
public SubstanceDefinition.Structure getStructure()
Structural information.- Returns:
- An immutable object of type
SubstanceDefinition.Structure
that 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.Code
that 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.Name
that 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.Relationship
that may be empty.
-
getSourceMaterial
public SubstanceDefinition.SourceMaterial getSourceMaterial()
Material or taxonomic/anatomical source for the substance.- Returns:
- An immutable object of type
SubstanceDefinition.SourceMaterial
that may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classDomainResource
-
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 SubstanceDefinition.Builder toBuilder()
Description copied from class:Resource
Create a new Builder from the contents of this Resource- Specified by:
toBuilder
in classDomainResource
-
builder
public static SubstanceDefinition.Builder builder()
-
-