//
// 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.05.29 at 02:46:14 PM MDT 
//


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

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 Diagnosis complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="Diagnosis">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;all>
 *         &lt;element name="snomedCodes" minOccurs="0">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="snomedCode" type="{Basedatatypes}VACode" maxOccurs="unbounded" minOccurs="0"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *         &lt;element name="icdCodes" minOccurs="0">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="icdCode" type="{Basedatatypes}VACode" maxOccurs="unbounded" minOccurs="0"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *         &lt;element name="inactiveDate" type="{Basedatatypes}PointInTime" minOccurs="0"/>
 *         &lt;element name="inactiveFlag" type="{Basedatatypes}VACode" minOccurs="0"/>
 *       &lt;/all>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Diagnosis", propOrder = {

})
public class Diagnosis {

    protected Diagnosis.SnomedCodes snomedCodes;
    protected Diagnosis.IcdCodes icdCodes;
    protected PointInTime inactiveDate;
    protected VACode inactiveFlag;

    /**
     * Gets the value of the snomedCodes property.
     * 
     * @return
     *     possible object is
     *     {@link Diagnosis.SnomedCodes }
     *     
     */
    public Diagnosis.SnomedCodes getSnomedCodes() {
        return snomedCodes;
    }

    /**
     * Sets the value of the snomedCodes property.
     * 
     * @param value
     *     allowed object is
     *     {@link Diagnosis.SnomedCodes }
     *     
     */
    public void setSnomedCodes(Diagnosis.SnomedCodes value) {
        this.snomedCodes = value;
    }

    /**
     * Gets the value of the icd9Codes property.
     * 
     * @return
     *     possible object is
     *     {@link Diagnosis.IcdCodes }
     *     
     */
    public Diagnosis.IcdCodes getIcdCodes() {
        return icdCodes;
    }

    /**
     * Sets the value of the icd9Codes property.
     * 
     * @param value
     *     allowed object is
     *     {@link Diagnosis.IcdCodes }
     *     
     */
    public void setIcdCodes(Diagnosis.IcdCodes value) {
        this.icdCodes = 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="icd9Code" type="{Basedatatypes}VACode" maxOccurs="unbounded" minOccurs="0"/>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "icdCode"
    })
    public static class IcdCodes {

        protected List<VACode> icdCode;
        @XmlTransient
        protected VACode singleIcdCode;

        /**
         * Gets the value of the icd9Code 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 icdCode property.
         * 
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getIcdCode().add(newItem);
         * </pre>
         * 
         * 
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link VACode }
         * 
         * 
         */
        public List<VACode> getIcdCode() {
            if (icdCode == null) {
                icdCode = new ArrayList<VACode>();
            }
            return this.icdCode;
        }
        public  void setIcdCode(List<VACode> icdCode) {
            
            this.icdCode = icdCode;
        }
        public VACode getSingleIcdCode() {
            return this.singleIcdCode;
        }
        public  void setSingleIcdCode(VACode singleIcdCode) {
        	getIcdCode().add(singleIcdCode);
            this.singleIcdCode = singleIcdCode;
        }

    }


    /**
     * <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="snomedCode" type="{Basedatatypes}VACode" maxOccurs="unbounded" minOccurs="0"/>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "snomedCode"
    })
    public static class SnomedCodes {

        protected List<VACode> snomedCode;
        @XmlTransient
        protected VACode singleSnomedCode;

        /**
         * Gets the value of the snomedCode 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 snomedCode property.
         * 
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getSnomedCode().add(newItem);
         * </pre>
         * 
         * 
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link VACode }
         * 
         * 
         */
        public List<VACode> getSnomedCode() {
            if (snomedCode == null) {
                snomedCode = new ArrayList<VACode>();
            }
            return this.snomedCode;
        }
        public  void setSnomedCode(List<VACode> snomedCode) {
            
            this.snomedCode = snomedCode;
        }
        public VACode getSingleSnomedCode() {
            return this.singleSnomedCode;
        }
        public  void setSingleSnomedCode(VACode singleSnomedCode) {
        	getSnomedCode().add(singleSnomedCode);
            this.singleSnomedCode = singleSnomedCode;
        }

    }

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

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

    /**
     * Gets the value of the inactiveFlag property.
     * 
     * @return
     *     possible object is
     *     {@link VACode }
     *     
     */
    public VACode getInactiveFlag() {
        return inactiveFlag;
    }

    /**
     * Sets the value of the inactiveFlag property.
     * 
     * @param value
     *     allowed object is
     *     {@link VACode }
     *     
     */
    public void setInactiveFlag(VACode value) {
        this.inactiveFlag = value;
    }


}
