//
// 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.22 at 12:17:16 PM MDT 
//


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

import gov.va.med.cds.template.generated.common.PatientLite;

import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.datatype.XMLGregorianCalendar;


/**
 * <p>Java class for SurveyPatient complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="SurveyPatient">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="patient" type="{Common}PatientLite"/>
 *         &lt;element name="icn" type="{SurveysCommon}ICNType"/>
 *         &lt;element name="ssn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="name" type="{SurveysCommon}SurveyPersonName" minOccurs="0"/>
 *         &lt;element name="birthdate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SurveyPatient", propOrder = {
    "patient",
    "vendorMRN",
    "icn",
    "ssn",
    "name",
    "birthdate",
    "id"
})
public class SurveyPatient {

    @XmlElement(required = true)
    protected PatientLite patient;
    protected String vendorMRN;
    @XmlElement(required = true)
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    protected String icn;
    protected String ssn;
    protected SurveyPersonName name;
    @XmlSchemaType(name = "date")
    //protected XMLGregorianCalendar birthdate;
    protected Date birthdate;
    protected Long id;

    /**
     * Gets the value of the patient property.
     * 
     * @return
     *     possible object is
     *     {@link PatientLite }
     *     
     */
    public PatientLite getPatient() {
        return patient;
    }

    /**
     * Sets the value of the patient property.
     * 
     * @param value
     *     allowed object is
     *     {@link PatientLite }
     *     
     */
    public void setPatient(PatientLite value) {
        this.patient = value;
    }
    
    /**
     * Gets the value of the vendorMRN property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getVendorMRN() {
        return vendorMRN;
    }

    /**
     * Sets the value of the vendorMRN property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setVendorMRN(String value) {
        this.vendorMRN = value;
    }

    /**
     * Gets the value of the icn property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getIcn() {
        return icn;
    }

    /**
     * Sets the value of the icn property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setIcn(String value) {
        this.icn = value;
    }

    /**
     * Gets the value of the ssn property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getSsn() {
        return ssn;
    }

    /**
     * Sets the value of the ssn property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setSsn(String value) {
        this.ssn = value;
    }

    /**
     * Gets the value of the name property.
     * 
     * @return
     *     possible object is
     *     {@link SurveyPersonName }
     *     
     */
    public SurveyPersonName getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     * 
     * @param value
     *     allowed object is
     *     {@link SurveyPersonName }
     *     
     */
    public void setName(SurveyPersonName value) {
        this.name = value;
    }

    /**
     * Gets the value of the birthdate property.
     * 
     * @return
     *     possible object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    /*public XMLGregorianCalendar getBirthdate() {
        return birthdate;
    }*/
    public Date getBirthdate() {
        return birthdate;
    }

    /**
     * Sets the value of the birthdate property.
     * 
     * @param value
     *     allowed object is
     *     {@link XMLGregorianCalendar }
     *     
     */
   /* public void setBirthdate(XMLGregorianCalendar value) {
        this.birthdate = value;
    }*/
    public void setBirthdate(Date value) {
        this.birthdate = value;
    }
    
    public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

}
