@@ -0,0 +1,2407 @@
+/**%0A * The contents of this file are subject to the OpenMRS Public License%0A * Version 1.0 (the %22License%22); you may not use this file except in%0A * compliance with the License. You may obtain a copy of the License at%0A * http://license.openmrs.org%0A *%0A * Software distributed under the License is distributed on an %22AS IS%22%0A * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the%0A * License for the specific language governing rights and limitations%0A * under the License.%0A *%0A * Copyright (C) OpenMRS, LLC.  All Rights Reserved.%0A */%0Apackage org.openmrs.module.allergyapi;%0A%0Aimport org.openmrs.BaseOpenmrsObject;%0Aimport org.openmrs.Concept;%0A%0A/**%0A * Represent allergy reactions%0A */%0Apublic class AllergyReaction extends BaseOpenmrsObject implements java.io.Serializable%7B%0A%09%0A%09public static final long serialVersionUID = 1;%0A%09%0A%09private Integer allergyReactionId;%0A%09%0A%09private Allergy allergy;%0A%09%0A%09private Concept reaction;%0A%09%0A%09private String reactionNonCoded;%0A%09%0A%09/**%0A%09 * Default constructor%0A%09 */%0A%09public AllergyReaction()%7B%0A%09%7D%0A%09%0A%09/**%0A%09 * @param allergy the allergy to set%0A%09 * @param reaction the reaction to set%0A%09 * @param reactionNonCoded the reactionNonCoded to set%0A%09 */%0A%09public AllergyReaction(Allergy allergy, Concept reaction, String reactionNonCoded) %7B%0A%09%09this.allergy = allergy;%0A%09%09this.reaction = reaction;%0A%09%09this.reactionNonCoded = reactionNonCoded;%0A%09%7D%0A%09%0A%09/**%0A%09 * @see org.openmrs.OpenmrsObject#getId()%0A%09 */%0A%09@Override%0A%09public Integer getId() %7B%0A%09%09return allergyReactionId;%0A%09%7D%0A%09%0A%09/**%0A%09 * @see org.openmrs.OpenmrsObject#setId(java.lang.Integer)%0A%09 */%0A%09@Override%0A%09public void setId(Integer allergyReactionId) %7B%0A%09%09this.allergyReactionId = allergyReactionId;%0A%09%7D%0A%09%0A%09/**%0A%09 * @return Returns the allergy%0A%09 */%0A%09public Allergy getAllergy() %7B%0A%09%09return allergy;%0A%09%7D%0A%09%0A%09/**%0A%09 * @param allergy the allergy to set%0A%09 */%0A%09public void setAllergy(Allergy allergy) %7B%0A%09%09this.allergy = allergy;%0A%09%7D%0A%09%0A%09/**%0A%09 * @return Returns the reaction%0A%09 */%0A%09public Concept getReaction() %7B%0A%09%09return reaction;%0A%09%7D%0A%09%0A%09/**%0A%09 * @param reaction the reaction to set%0A%09 */%0A%09public void setReaction(Concept reaction) %7B%0A%09%09this.reaction = reaction;%0A%09%7D%0A%09%0A%09/**%0A%09 * @return Returns the reactionNonCoded%0A%09 */%0A%09public String getReactionNonCoded() %7B%0A%09%09return reactionNonCoded;%0A%09%7D%0A%09%0A%09/**%0A%09 * @param reactionNonCoded the reactionNonCoded to set%0A%09 */%0A%09public void setReactionNonCoded(String reactionNonCoded) %7B%0A%09%09this.reactionNonCoded = reactionNonCoded;%0A%09%7D%0A%7D%0A

Create AllergyReaction object