org.openmrs.activelist
Class Allergy

java.lang.Object
  extended by org.openmrs.BaseOpenmrsObject
      extended by org.openmrs.BaseOpenmrsData
          extended by org.openmrs.activelist.ActiveListItem
              extended by org.openmrs.activelist.Allergy
All Implemented Interfaces:
Auditable, OpenmrsData, OpenmrsObject, Voidable

public class Allergy
extends ActiveListItem

TODO


Field Summary
static ActiveListType ACTIVE_LIST_TYPE
           
 
Fields inherited from class org.openmrs.activelist.ActiveListItem
activeListId, activeListType, comments, concept, endDate, person, startDate, startObs, stopObs
 
Fields inherited from class org.openmrs.BaseOpenmrsData
creator
 
Constructor Summary
Allergy()
           
Allergy(java.lang.Integer activeListId)
           
Allergy(Patient person, Concept concept, java.util.Date startDate, AllergyType allergyType, Concept reaction, AllergySeverity severity)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Concept getAllergen()
           
 AllergyType getAllergyType()
           
 Concept getReaction()
           
 AllergySeverity getSeverity()
           
 int hashCode()
           
 void setAllergen(Concept allergen)
          Set the allergen concept
 void setAllergyType(AllergyType allergyType)
           
 void setAllergyType(java.lang.String type)
           
 void setReaction(Concept reaction)
          must be of class=Symptom
 void setSeverity(AllergySeverity severity)
           
 void setSeverity(java.lang.String severity)
           
 
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 org.openmrs.BaseOpenmrsObject
getUuid, setUuid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openmrs.OpenmrsObject
getUuid, setUuid
 

Field Detail

ACTIVE_LIST_TYPE

public static final ActiveListType ACTIVE_LIST_TYPE
Constructor Detail

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)
Method Detail

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

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change