Package org.hl7.fhir

Class SpecimenCollection

  • All Implemented Interfaces:
    org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

    public class SpecimenCollection
    extends BackboneElement
    implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
    A sample to be used for analysis.

    Java class for Specimen.Collection complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="Specimen.Collection">
       <complexContent>
         <extension base="{http://hl7.org/fhir}BackboneElement">
           <sequence>
             <element name="collector" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
             <element name="comment" type="{http://hl7.org/fhir}string" minOccurs="0"/>
             <choice minOccurs="0">
               <element name="collectedDateTime" type="{http://hl7.org/fhir}dateTime"/>
               <element name="collectedPeriod" type="{http://hl7.org/fhir}Period"/>
             </choice>
             <element name="quantity" type="{http://hl7.org/fhir}SimpleQuantity" minOccurs="0"/>
             <element name="method" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
             <element name="bodySite" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • SpecimenCollection

        public SpecimenCollection()
    • Method Detail

      • getCollector

        public Reference getCollector()
        Gets the value of the collector property.
        Returns:
        possible object is Reference
      • setCollector

        public void setCollector​(Reference value)
        Sets the value of the collector property.
        Parameters:
        value - allowed object is Reference
      • getComment

        public String getComment()
        Gets the value of the comment property.
        Returns:
        possible object is String
      • setComment

        public void setComment​(String value)
        Sets the value of the comment property.
        Parameters:
        value - allowed object is String
      • getCollectedDateTime

        public DateTime getCollectedDateTime()
        Gets the value of the collectedDateTime property.
        Returns:
        possible object is DateTime
      • setCollectedDateTime

        public void setCollectedDateTime​(DateTime value)
        Sets the value of the collectedDateTime property.
        Parameters:
        value - allowed object is DateTime
      • getCollectedPeriod

        public Period getCollectedPeriod()
        Gets the value of the collectedPeriod property.
        Returns:
        possible object is Period
      • setCollectedPeriod

        public void setCollectedPeriod​(Period value)
        Sets the value of the collectedPeriod property.
        Parameters:
        value - allowed object is Period
      • setQuantity

        public void setQuantity​(SimpleQuantity value)
        Sets the value of the quantity property.
        Parameters:
        value - allowed object is SimpleQuantity
      • setMethod

        public void setMethod​(CodeableConcept value)
        Sets the value of the method property.
        Parameters:
        value - allowed object is CodeableConcept
      • setBodySite

        public void setBodySite​(CodeableConcept value)
        Sets the value of the bodySite property.
        Parameters:
        value - allowed object is CodeableConcept
      • equals

        public boolean equals​(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                              org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                              java.lang.Object object,
                              org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
        Specified by:
        equals in interface org.jvnet.jaxb2_commons.lang.Equals2
        Overrides:
        equals in class BackboneElement
      • equals

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

        public int hashCode​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
        Specified by:
        hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
        Overrides:
        hashCode in class BackboneElement
      • append

        public java.lang.StringBuilder append​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                              java.lang.StringBuilder buffer,
                                              org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        append in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        append in class BackboneElement
      • appendFields

        public java.lang.StringBuilder appendFields​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                                    java.lang.StringBuilder buffer,
                                                    org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        appendFields in class BackboneElement