Class Specimen.Collection

  • All Implemented Interfaces:
    Visitable
    Enclosing class:
    Specimen

    public static class Specimen.Collection
    extends BackboneElement
    Details concerning the specimen collection.
    • Method Detail

      • getCollector

        public Reference getCollector()
        Person who collected the specimen.
        Returns:
        An immutable object of type Reference that may be null.
      • getCollected

        public Element getCollected()
        Time when specimen was collected from subject - the physiologically relevant time.
        Returns:
        An immutable object of type DateTime or Period that may be null.
      • getDuration

        public Duration getDuration()
        The span of time over which the collection of a specimen occurred.
        Returns:
        An immutable object of type Duration that may be null.
      • getQuantity

        public SimpleQuantity getQuantity()
        The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample.
        Returns:
        An immutable object of type SimpleQuantity that may be null.
      • getMethod

        public CodeableConcept getMethod()
        A coded value specifying the technique that is used to perform the procedure.
        Returns:
        An immutable object of type CodeableConcept that may be null.
      • getBodySite

        public CodeableConcept getBodySite()
        Anatomical location from which the specimen was collected (if subject is a patient). This is the target site. This element is not used for environmental specimens.
        Returns:
        An immutable object of type CodeableConcept that may be null.
      • getFastingStatus

        public Element getFastingStatus()
        Abstinence or reduction from some or all food, drink, or both, for a period of time prior to sample collection.
        Returns:
        An immutable object of type CodeableConcept or Duration that may be null.
      • accept

        public void accept​(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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object