Class SubstanceDefinition.Name

    • Method Detail

      • getName

        public String getName()
        The actual name.
        Returns:
        An immutable object of type String that is non-null.
      • getType

        public CodeableConcept getType()
        Name type, for example 'systematic', 'scientific, 'brand'.
        Returns:
        An immutable object of type CodeableConcept that may be null.
      • getStatus

        public CodeableConcept getStatus()
        The status of the name, for example 'current', 'proposed'.
        Returns:
        An immutable object of type CodeableConcept that may be null.
      • getPreferred

        public Boolean getPreferred()
        If this is the preferred name for this substance.
        Returns:
        An immutable object of type Boolean that may be null.
      • getLanguage

        public java.util.List<CodeableConcept> getLanguage()
        Human language that the name is written in.
        Returns:
        An unmodifiable list containing immutable objects of type CodeableConcept that may be empty.
      • getDomain

        public java.util.List<CodeableConcept> getDomain()
        The use context of this name for example if there is a different name a drug active ingredient as opposed to a food colour additive.
        Returns:
        An unmodifiable list containing immutable objects of type CodeableConcept that may be empty.
      • getJurisdiction

        public java.util.List<CodeableConcept> getJurisdiction()
        The jurisdiction where this name applies.
        Returns:
        An unmodifiable list containing immutable objects of type CodeableConcept that may be empty.
      • getSynonym

        public java.util.List<SubstanceDefinition.Name> getSynonym()
        A synonym of this particular name, by which the substance is also known.
        Returns:
        An unmodifiable list containing immutable objects of type SubstanceDefinition.Name that may be empty.
      • getTranslation

        public java.util.List<SubstanceDefinition.Name> getTranslation()
        A translation for this name into another human language.
        Returns:
        An unmodifiable list containing immutable objects of type SubstanceDefinition.Name that may be empty.
      • getSource

        public java.util.List<Reference> getSource()
        Supporting literature.
        Returns:
        An unmodifiable list containing immutable objects of type Reference that may be empty.
      • 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 interface Visitable
        Specified by:
        accept in class AbstractVisitable
        Parameters:
        elementName - the name of the element in the context of this visit
        elementIndex - the index of the element in a list or -1 if it is not contained within a List
        visitor - the visitor to use
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object