//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2015.06.03 at 10:55:59 AM MDT 
//


package gov.va.med.cds.template.generated.immunizationskintests;

import gov.va.med.cds.template.generated.basedatatypes.PhysicalQuantity;
import gov.va.med.cds.template.generated.basedatatypes.PointInTime;
import gov.va.med.cds.template.generated.basedatatypes.VACode;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for SkinTestObservation complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="SkinTestObservation">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;all>
 *         &lt;element name="dateRead" type="{Basedatatypes}PointInTime" minOccurs="0"/>
 *         &lt;element name="reading" type="{Basedatatypes}PhysicalQuantity" minOccurs="0"/>
 *         &lt;element name="testResults" minOccurs="0">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="result" type="{Basedatatypes}VACode" maxOccurs="unbounded" minOccurs="0"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/all>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SkinTestObservation", propOrder = {

})
public class SkinTestObservation {

    protected PointInTime dateRead;
    protected PhysicalQuantity reading;
    protected SkinTestObservation.TestResults testResults;

    /**
     * Gets the value of the dateRead property.
     * 
     * @return
     *     possible object is
     *     {@link PointInTime }
     *     
     */
    public PointInTime getDateRead() {
        return dateRead;
    }

    /**
     * Sets the value of the dateRead property.
     * 
     * @param value
     *     allowed object is
     *     {@link PointInTime }
     *     
     */
    public void setDateRead(PointInTime value) {
        this.dateRead = value;
    }

    /**
     * Gets the value of the reading property.
     * 
     * @return
     *     possible object is
     *     {@link PhysicalQuantity }
     *     
     */
    public PhysicalQuantity getReading() {
        return reading;
    }

    /**
     * Sets the value of the reading property.
     * 
     * @param value
     *     allowed object is
     *     {@link PhysicalQuantity }
     *     
     */
    public void setReading(PhysicalQuantity value) {
        this.reading = value;
    }

    /**
     * Gets the value of the testResults property.
     * 
     * @return
     *     possible object is
     *     {@link SkinTestObservation.TestResults }
     *     
     */
    public SkinTestObservation.TestResults getTestResults() {
        return testResults;
    }

    /**
     * Sets the value of the testResults property.
     * 
     * @param value
     *     allowed object is
     *     {@link SkinTestObservation.TestResults }
     *     
     */
    public void setTestResults(SkinTestObservation.TestResults value) {
        this.testResults = value;
    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *         &lt;element name="result" type="{Basedatatypes}VACode" maxOccurs="unbounded" minOccurs="0"/>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "result"
    })
    public static class TestResults {

        protected List<VACode> result;
        @XmlTransient
        protected VACode singleResult;

        /**
         * Gets the value of the result property.
         * 
         * <p>
         * This accessor method returns a reference to the live list,
         * not a snapshot. Therefore any modification you make to the
         * returned list will be present inside the JAXB object.
         * This is why there is not a <CODE>set</CODE> method for the result property.
         * 
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getResult().add(newItem);
         * </pre>
         * 
         * 
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link VACode }
         * 
         * 
         */
        public List<VACode> getResult() {
            if (result == null) {
                result = new ArrayList<VACode>();
            }
            return this.result;
        }
        public  void setResult(List<VACode> result) {
            if (result == null) {
                result = new ArrayList<VACode>();
            }
            this.result = result;
        }
        public VACode getSingleResult() {
            return this.singleResult;
        }
        public  void setSingleResult(VACode singleResult) {
        	this.getResult().add(singleResult);
            this.singleResult = singleResult;
        }

    }

}
