public class Allergy extends ActiveListItem
| Modifier and Type | Field and Description |
|---|---|
static ActiveListType |
ACTIVE_LIST_TYPE |
activeListId, activeListType, comments, concept, endDate, person, startDate, startObs, stopObscreator| Constructor and Description |
|---|
Allergy()
no argument constructor to construct a allergy
|
Allergy(Integer activeListId)
Constructs an allergy with a given id
|
Allergy(Patient person,
Concept concept,
Date startDate,
AllergyType allergyType,
Concept reaction,
AllergySeverity severity)
Convenience constructor to construct an allergy with a given Patient, Concept, start date of the allergy, allergy type and the reaction of the allergy
|
| Modifier and Type | Method and Description |
|---|---|
Concept |
getAllergen()
Get the allergen concept.
|
AllergyType |
getAllergyType() |
Concept |
getReaction() |
AllergySeverity |
getSeverity() |
void |
setAllergen(Concept allergen)
Set the allergen concept.
|
void |
setAllergyType(AllergyType allergyType)
set the allergyType of the Allergy
|
void |
setAllergyType(String type)
set the allergyType of the Allergy.
|
void |
setReaction(Concept reaction)
must be of class=Symptom
|
void |
setSeverity(AllergySeverity severity)
Set the severity of the allergy
|
void |
setSeverity(String severity)
Set the severity of the allergy.
|
getActiveListId, getActiveListType, getComments, getConcept, getEndDate, getId, getPerson, getStartDate, getStartObs, getStopObs, setActiveListId, setActiveListType, setComments, setConcept, setEndDate, setId, setPerson, setStartDate, setStartObs, setStopObsgetChangedBy, getCreator, getDateChanged, getDateCreated, getDateVoided, getVoided, getVoidedBy, getVoidReason, isVoided, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateVoided, setVoided, setVoidedBy, setVoidReasonequals, getUuid, hashCode, setUuid, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetUuid, setUuidpublic static final ActiveListType ACTIVE_LIST_TYPE
public Allergy()
public Allergy(Integer activeListId)
activeListId - the activeListId to set. this parameter is the id of the ActiveListItempublic Allergy(Patient person, Concept concept, Date startDate, AllergyType allergyType, Concept reaction, AllergySeverity severity)
person - the person to set this Allergyconcept - the concept to setstartDate - the startDate to set, when the allergy occuredallergyType - the allergyType to setreaction - the reaction to setseverity - the severity to setpublic AllergyType getAllergyType()
public void setAllergyType(AllergyType allergyType)
allergyType - the allergyType to setpublic void setAllergyType(String type)
AllergyType, according to the given String type.type - the allergyType to setpublic Concept getReaction()
public void setReaction(Concept reaction)
reaction - the reaction to setpublic AllergySeverity getSeverity()
public void setSeverity(AllergySeverity severity)
severity - the severity to setpublic void setSeverity(String severity)
AllergySeverity, according to the given String severity.severity - the severity to setpublic Concept getAllergen()
public void setAllergen(Concept allergen)
allergen - Copyright © 2015 OpenMRS Inc.. All rights reserved.