//
// 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.07.02 at 12:14:43 PM MDT 
//


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

import gov.va.med.cds.clinicaldata.ClinicalRecordInterface;
import gov.va.med.cds.template.generated.common.ClinicalDataPatient;
import gov.va.med.cds.template.generated.htdatatypes.HTCensusSegments;

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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for Patients complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="Patients">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="segment" type="{HTDataTypes}HTCensusSegments"/>
*          &lt;element name="routingData" type="{Clinicaldata}RoutingDataType" maxOccurs="unbounded"/>         
 *         &lt;element name="patient" type="{Common}ClinicalDataPatient" maxOccurs="unbounded"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlRootElement(name="patients")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Patients", propOrder = {
    "segment",
    "routingData",
    "patient"
})
public class Patients implements ClinicalRecordInterface{

    @XmlElement(required = true)
    protected HTCensusSegments segment;
    @XmlElement(required = true)
    protected List<RoutingDataType> routingData;
    @XmlElement(required = true)
    protected List<ClinicalDataPatient> patient;

    /**
     * Gets the value of the segment property.
     * 
     * @return
     *     possible object is
     *     {@link HTCensusSegments }
     *     
     */
    public HTCensusSegments getSegment() {
        return segment;
    }

    /**
     * Sets the value of the segment property.
     * 
     * @param value
     *     allowed object is
     *     {@link HTCensusSegments }
     *     
     */
    public void setSegment(HTCensusSegments value) {
        this.segment = value;
    }
    
    /**
     * Gets the value of the routingData 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 routingData property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getRoutingData().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link RoutingDataType }
     * 
     * 
     */
    public List<RoutingDataType> getRoutingData() {
        if (routingData == null) {
            routingData = new ArrayList<RoutingDataType>();
        }
        return this.routingData;
    }
    
    public void setRoutingData( List<RoutingDataType> routingData )
    {
        this.routingData = routingData;
    }

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

}
