/** * Copyright 2010 Society for Health Information Systems Programmes, India (HISP India) * * This file is part of Hospital-core module. * * Hospital-core module is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * Hospital-core module 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Hospital-core module. If not, see <http://www.gnu.org/licenses/>. * **/ package org.openmrs.module.hospitalcore.model; import java.util.Date; import org.openmrs.Concept; import org.openmrs.Encounter; import org.openmrs.Order; import org.openmrs.Patient; import org.openmrs.User; import org.openmrs.module.hospitalcore.form.RadiologyForm; public class RadiologyTest { private static final long serialVersionUID = 1L; private Integer id; private Patient patient; private Order order; private String status; private Encounter encounter; private Date date; private Concept concept; private User creator; private RadiologyForm form; private String note; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Patient getPatient() { return patient; } public void setPatient(Patient patient) { this.patient = patient; } public Order getOrder() { return order; } public void setOrder(Order order) { this.order = order; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public User getCreator() { return creator; } public void setCreator(User creator) { this.creator = creator; } public Encounter getEncounter() { return encounter; } public void setEncounter(Encounter encounter) { this.encounter = encounter; } public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } public Concept getConcept() { return concept; } public void setConcept(Concept concept) { this.concept = concept; } public RadiologyForm getForm() { return form; } public void setForm(RadiologyForm form) { this.form = form; } public String getNote() { return note; } public void setNote(String note) { this.note = note; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; RadiologyTest other = (RadiologyTest) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; return true; } @Override public String toString() { return "RadiologyInvestigation [id=" + id + "]"; } }