public class AllergyReaction extends BaseOpenmrsObject implements Serializable
| Modifier and Type | Field and Description | 
|---|---|
| static long | serialVersionUID | 
| Constructor and Description | 
|---|
| AllergyReaction()Default constructor | 
| AllergyReaction(Allergy allergy,
               Concept reaction,
               String reactionNonCoded) | 
| Modifier and Type | Method and Description | 
|---|---|
| Allergy | getAllergy() | 
| Integer | getAllergyReactionId() | 
| Integer | getId() | 
| Concept | getReaction() | 
| String | getReactionNonCoded() | 
| boolean | hasSameValues(AllergyReaction reaction)Checks if this reaction has the same values as the given one | 
| void | setAllergy(Allergy allergy) | 
| void | setAllergyReactionId(Integer allergyReactionId) | 
| void | setId(Integer allergyReactionId) | 
| void | setReaction(Concept reaction) | 
| void | setReactionNonCoded(String reactionNonCoded) | 
| String | toString()Returns a string equal to the value of: ClassName{hashCode=...,
 uuid=...} | 
equals, getUuid, hashCode, setUuidpublic static final long serialVersionUID
public Integer getAllergyReactionId()
public void setAllergyReactionId(Integer allergyReactionId)
public Integer getId()
getId in interface OpenmrsObjectOpenmrsObject.getId()public void setId(Integer allergyReactionId)
setId in interface OpenmrsObjectallergyReactionId - - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)public Allergy getAllergy()
public void setAllergy(Allergy allergy)
allergy - the allergy to setpublic Concept getReaction()
public void setReaction(Concept reaction)
reaction - the reaction to setpublic String getReactionNonCoded()
public void setReactionNonCoded(String reactionNonCoded)
reactionNonCoded - the reactionNonCoded to setpublic String toString()
BaseOpenmrsObjectClassName{hashCode=..., uuid=...}
 If the uuid field is null, it returns: 
ClassName{hashCode=...}Should include hashCode if uuid is null Should include uuid if not null
toString in class BaseOpenmrsObjectpublic boolean hasSameValues(AllergyReaction reaction)
reaction - the reaction whose values to compare withCopyright © 2024 OpenMRS Inc.. All rights reserved.