Class Annotation

  • All Implemented Interfaces:
    ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseDatatype, org.hl7.fhir.instance.model.api.IBaseElement, org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.ICompositeType

    public class Annotation
    extends Type
    implements org.hl7.fhir.instance.model.api.ICompositeType
    A text note which also contains information about who made the statement and when.
    See Also:
    Serialized Form
    • Field Detail

      • author

        protected Type author
        The individual responsible for making the annotation.
      • time

        protected DateTimeType time
        Indicates when this particular annotation was made.
    • Method Detail

      • getAuthor

        public Type getAuthor()
        Returns:
        author (The individual responsible for making the annotation.)
      • getAuthorReference

        public Reference getAuthorReference()
                                     throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        author (The individual responsible for making the annotation.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAuthorStringType

        public StringType getAuthorStringType()
                                       throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        author (The individual responsible for making the annotation.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getTimeElement

        public DateTimeType getTimeElement()
        Returns:
        time (Indicates when this particular annotation was made.). This is the underlying object with id, value and extensions. The accessor "getTime" gives direct access to the value
      • hasTime

        public boolean hasTime()
      • setTimeElement

        public Annotation setTimeElement​(DateTimeType value)
        Parameters:
        value - time (Indicates when this particular annotation was made.). This is the underlying object with id, value and extensions. The accessor "getTime" gives direct access to the value
      • getTime

        public Date getTime()
        Returns:
        Indicates when this particular annotation was made.
      • setTime

        public Annotation setTime​(Date value)
        Parameters:
        value - Indicates when this particular annotation was made.
      • getTextElement

        public StringType getTextElement()
        Returns:
        text (The text of the annotation.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
      • hasText

        public boolean hasText()
      • setTextElement

        public Annotation setTextElement​(StringType value)
        Parameters:
        value - text (The text of the annotation.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
      • getText

        public String getText()
        Returns:
        The text of the annotation.
      • getProperty

        public Base[] getProperty​(int hash,
                                  String name,
                                  boolean checkValid)
                           throws org.hl7.fhir.exceptions.FHIRException
        Overrides:
        getProperty in class Element
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • setProperty

        public void setProperty​(int hash,
                                String name,
                                Base value)
                         throws org.hl7.fhir.exceptions.FHIRException
        Overrides:
        setProperty in class Element
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • setProperty

        public void setProperty​(String name,
                                Base value)
                         throws org.hl7.fhir.exceptions.FHIRException
        Overrides:
        setProperty in class Element
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • makeProperty

        public Base makeProperty​(int hash,
                                 String name)
                          throws org.hl7.fhir.exceptions.FHIRException
        Description copied from class: Base
        make an instance of a property. If the property is a repeating property, make a new instance. if the property is not repeating, return the property
        Overrides:
        makeProperty in class Element
        Returns:
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • addChild

        public Base addChild​(String name)
                      throws org.hl7.fhir.exceptions.FHIRException
        Overrides:
        addChild in class Element
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • fhirType

        public String fhirType()
        Specified by:
        fhirType in interface org.hl7.fhir.instance.model.api.IBase
        Overrides:
        fhirType in class Element
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.hl7.fhir.instance.model.api.IBase
        Overrides:
        isEmpty in class Element