///*******************************************************************************
// * This file is part of GECAMed.
// * 
// * GECAMed is free software: you can redistribute it and/or modify
// * it under the terms of the GNU Lesser General Public License (L-GPL) as published by
// * the Free Software Foundation, either version 3 of the License, or
// * (at your option) any later version.
// * 
// * GECAMed is distributed in the hope that it will be useful,
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// * GNU Lesser General Public License for more details.
// * 
// * You should have received a copy of the GNU Lesser General Public License (L-GPL)
// * along with GECAMed.  If not, see <http://www.gnu.org/licenses/>.
// * 
// * GECAMed is Copyrighted by the Centre de Recherche Public Henri Tudor (http://www.tudor.lu)
// * (c) CRP Henri Tudor, Luxembourg, 2008
// *******************************************************************************/
//package lu.tudor.santec.gecamed.patient.ejb.entity.beans;
//
//import java.io.Serializable;
//import java.util.Date;
//
//import javax.persistence.Column;
//import javax.persistence.Entity;
//import javax.persistence.JoinColumn;
//import javax.persistence.ManyToOne;
//import javax.persistence.NamedQuery;
//import javax.persistence.Table;
//
//import lu.tudor.santec.gecamed.core.ejb.entity.beans.GECAMedEntityBean;
//
//
//
//@javax.persistence.NamedQueries 
//({
//@NamedQuery(name = Consultation.GET_CONSULTATIONS,query = "SELECT OBJECT(o) FROM Consultation o WHERE o.incidentId IN " +
//		"( SELECT i.id FROM Incident i WHERE i.patientId = :patientID )")
//})
//
///**
// * Entity Bean that maps the <b>patient.consultations</b> table
// * which the patients consultations
// *
// *
// * @version
// * <br>$Log: Consultation.java,v $
// * <br>Revision 1.6  2012-01-24 10:22:14  ferring
// * <br>Consultation class removed
// * <br>
// * <br>Revision 1.5.2.1  2012-01-20 09:13:53  ferring
// * <br>BRANCHED VERSION
// * <br>
// * <br>Revision 1.5  2010-09-09 15:57:39  troth
// * <br>1. Now all S.O.A.P entries can be deleted
// * <br>2. Now measurements can be deleted
// * <br>3. Bug fix that create a empty entry form type prescription when saving the consultation
// * <br>
// * <br>Revision 1.4  2008-09-25 09:43:06  heinemann
// * <br>fixed copyrights
// * <br>
// * <br>Revision 1.3  2008-01-15 15:11:43  hermen
// * <br>updated Javadoc and refactured code
//// * <br>
//// *
// */
//@Deprecated
//@Entity
//@Table(name = "consultations", schema = "patient")
//public class Consultation extends GECAMedEntityBean implements Serializable {
//
//	// Fields    
//
//	/**
//	 * 
//	 */
//	private static final long serialVersionUID = 1L;
//	
//	public static final String GET_CONSULTATIONS = "getConsultations";
//	
//	private Date consultationDate;
//	private Integer createdBy;
//	private Date created;
//	private Date modified;
//	private Integer modifiedBy;
//	private String ananmesis;
//	private String anamnesisCodes;
//	private String finding;
//	private String diagnosis;
//	private String diagnosisCode;
//	private String treatment;
//	
//	private Integer incidentId;
//	
//	private Incident incident;
//	
////	private Set<Incident> incidentses = new HashSet<Incident>(0);
//
//	// Constructors
//
//	/** default constructor */
//	public Consultation() {
//	}
//
//	// Property accessors
//
//	@Column(name = "consultation_date", unique = false, nullable = false, insertable = true, updatable = true, length = 8)
//	public Date getConsultationDate() {
//		return this.consultationDate;
//	}
//
//	public void setConsultationDate(Date consultationDate) {
//		this.consultationDate = consultationDate;
//	}
//
//	@Column(name = "created_by", unique = false, nullable = false, insertable = true, updatable = true)
//	public Integer getCreatedBy() {
//		return this.createdBy;
//	}
//
//	public void setCreatedBy(Integer createdBy) {
//		this.createdBy = createdBy;
//	}
//
//	@Column(name = "created", unique = false, nullable = false, insertable = true, updatable = true, length = 8)
//	public Date getCreated() {
//		return this.created;
//	}
//
//	public void setCreated(Date created) {
//		this.created = created;
//	}
//
//	@Column(name = "modified", unique = false, nullable = true, insertable = true, updatable = true, length = 8)
//	public Date getModified() {
//		return this.modified;
//	}
//
//	public void setModified(Date modified) {
//		this.modified = modified;
//	}
//
//	@Column(name = "modified_by", unique = false, nullable = true, insertable = true, updatable = true)
//	public Integer getModifiedBy() {
//		return this.modifiedBy;
//	}
//
//	public void setModifiedBy(Integer modifiedBy) {
//		this.modifiedBy = modifiedBy;
//	}
//
//	@Column(name = "ananmesis", unique = false, nullable = true, insertable = true, updatable = true)
//	public String getAnanmesis() {
//		return this.ananmesis;
//	}
//
//	public void setAnanmesis(String ananmesis) {
//		this.ananmesis = ananmesis;
//	}
//
//	@Column(name = "anamnesis_codes", unique = false, nullable = true, insertable = true, updatable = true, length = 250)
//	public String getAnamnesisCodes() {
//		return this.anamnesisCodes;
//	}
//
//	public void setAnamnesisCodes(String anamnesisCodes) {
//		this.anamnesisCodes = anamnesisCodes;
//	}
//
//
//
//	@Column(name = "finding", unique = false, nullable = true, insertable = true, updatable = true)
//	public String getFinding() {
//		return this.finding;
//	}
//
//	public void setFinding(String finding) {
//		this.finding = finding;
//	}
//
//	@Column(name = "diagnosis", unique = false, nullable = true, insertable = true, updatable = true)
//	public String getDiagnosis() {
//		return this.diagnosis;
//	}
//
//	public void setDiagnosis(String diagnosis) {
//		this.diagnosis = diagnosis;
//	}
//
//	@Column(name = "diagnosis_code", unique = false, nullable = true, insertable = true, updatable = true, length = 250)
//	public String getDiagnosisCode() {
//		return this.diagnosisCode;
//	}
//
//	public void setDiagnosisCode(String diagnosisCode) {
//		this.diagnosisCode = diagnosisCode;
//	}
//
//	@Column(name = "traitement", unique = false, nullable = true, insertable = true, updatable = true)
//	public String getTreatment() {
//		return this.treatment;
//	}
//
//	public void setTreatment(String traitement) {
//		this.treatment = traitement;
//	}
//
//	
//	/* ------------------------------------------------------ */
//	/* ------------------------------------------------------ */
//	/**
//	 * @return the incident
//	 */
//	@Column(name="incident_id", insertable=false, updatable=false)
//	public Integer getIncidentId() {
//		return incidentId;
//	}
//
//	/**
//	 * @param incidentId the incident to set
//	 */
//	public void setIncidentId(Integer incidentId) {
//		this.incidentId = incidentId;
//	}
//	
//	/* ------------------------------------------------------ */
//	/* ------------------------------------------------------ */
//	
//	@ManyToOne
//	@JoinColumn(name="incident_id")
//	public Incident getIncident() {
//		/* ====================================================== */
//		return this.incident;
//		/* ====================================================== */
//	}
//	
//	public void setIncident(Incident incident) {
//		/* ====================================================== */
//		this.incident = incident;
//		/* ====================================================== */
//	}
//	
//
//}
