org.openmrs.activelist
Class Allergy
java.lang.Object
org.openmrs.BaseOpenmrsObject
org.openmrs.BaseOpenmrsData
org.openmrs.activelist.ActiveListItem
org.openmrs.activelist.Allergy
- All Implemented Interfaces:
- Auditable, OpenmrsData, OpenmrsObject, Voidable
public class Allergy
- extends ActiveListItem
TODO
Methods inherited from class org.openmrs.activelist.ActiveListItem |
getActiveListId, getActiveListType, getComments, getConcept, getEndDate, getId, getPerson, getStartDate, getStartObs, getStopObs, setActiveListId, setActiveListType, setComments, setConcept, setEndDate, setId, setPerson, setStartDate, setStartObs, setStopObs |
Methods inherited from class org.openmrs.BaseOpenmrsData |
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateVoided, getVoided, getVoidedBy, getVoidReason, isVoided, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateVoided, setVoided, setVoidedBy, setVoidReason |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ACTIVE_LIST_TYPE
public static final ActiveListType ACTIVE_LIST_TYPE
Allergy
public Allergy()
Allergy
public Allergy(java.lang.Integer activeListId)
Allergy
public Allergy(Patient person,
Concept concept,
java.util.Date startDate,
AllergyType allergyType,
Concept reaction,
AllergySeverity severity)
getAllergyType
public AllergyType getAllergyType()
- Returns:
- the allergyType
setAllergyType
public void setAllergyType(AllergyType allergyType)
- Parameters:
allergyType
- the allergyType to set
setAllergyType
public void setAllergyType(java.lang.String type)
getReaction
public Concept getReaction()
- Returns:
- the reaction
setReaction
public void setReaction(Concept reaction)
- must be of class=Symptom
- Parameters:
reaction
- the reaction to set
getSeverity
public AllergySeverity getSeverity()
- Returns:
- the severity
setSeverity
public void setSeverity(AllergySeverity severity)
- Parameters:
severity
- the severity to set
setSeverity
public void setSeverity(java.lang.String severity)
getAllergen
public Concept getAllergen()
- Returns:
- the allergen
setAllergen
public void setAllergen(Concept allergen)
- Set the allergen concept
- Parameters:
allergen
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class ActiveListItem
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change