/*
fEMR - fast Electronic Medical Records
Copyright (C) 2014 Team fEMR
fEMR 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.
fEMR 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 fEMR. If not, see <http://www.gnu.org/licenses/>. If
you have any questions, contact <info@teamfemr.org>.
*/
package femr.data.models.mysql;
import femr.data.models.core.IVital;
import javax.persistence.*;
@Entity
@Table(name = "vitals")
public class Vital implements IVital {
@Id
@Column(name = "id", unique = true, nullable = false)
private int id;
@Column(name = "name", unique = true, nullable = false)
private String name;
@Column(name = "data_type", nullable = true)
private String data_type;
@Column(name = "unit_of_measurement", nullable = true)
private String unitOfMeasurement;
@Column(name = "isDeleted", nullable = false)
private Boolean deleted;
@Override
public void setId(int id) {
this.id = id;
}
@Override
public int getId() {
return id;
}
@Override
public String getName() {
return name;
}
@Override
public void setName(String name) {
this.name = name;
}
@Override
public String getData_type() {
return data_type;
}
@Override
public void setData_type(String data_type) {
this.data_type = data_type;
}
@Override
public String getUnitOfMeasurement() {
return unitOfMeasurement;
}
@Override
public void setUnitOfMeasurement(String unitOfMeasurement) {
this.unitOfMeasurement = unitOfMeasurement;
}
@Override
public Boolean getDeleted() {
return deleted;
}
@Override
public void setDeleted(Boolean deleted) {
this.deleted = deleted;
}
}