
org.bahmni.module.referencedata.contract.ConceptDetails Maven / Gradle / Ivy
package org.bahmni.module.referencedata.contract;
import java.util.HashMap;
import java.util.Map;
public class ConceptDetails {
private String name;
private String fullName;
private String units;
private Double hiNormal;
private Double lowNormal;
private Map attributes = new HashMap<>();
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getUnits() {
return units;
}
public void setUnits(String units) {
this.units = units;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ConceptDetails that = (ConceptDetails) o;
return fullName != null ? fullName.equals(that.fullName) : that.fullName == null;
}
@Override
public int hashCode() {
return name != null ? name.hashCode() : 0;
}
public Double getHiNormal() {
return hiNormal;
}
public void setHiNormal(Double hiNormal) {
this.hiNormal = hiNormal;
}
public Double getLowNormal() {
return lowNormal;
}
public void setLowNormal(Double lowNormal) {
this.lowNormal = lowNormal;
}
public String getFullName() {
return fullName;
}
public void setFullName(String fullName) {
this.fullName = fullName;
}
public Map getAttributes() {
return attributes;
}
public Object getAttribute(String key) {
return attributes.get(key);
}
public void setAttributes(Map attributes) {
this.attributes = attributes;
}
public void addAttribute(String key, Object value) {
this.attributes.put(key, value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy