public class Allergy extends ActiveListItem
Modifier and Type | Field and Description |
---|---|
static ActiveListType |
ACTIVE_LIST_TYPE |
activeListId, activeListType, comments, concept, endDate, person, startDate, startObs, stopObs
creator
Constructor and Description |
---|
Allergy() |
Allergy(Integer activeListId) |
Allergy(Patient person,
Concept concept,
Date startDate,
AllergyType allergyType,
Concept reaction,
AllergySeverity severity) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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(String type) |
void |
setReaction(Concept reaction)
must be of class=Symptom
|
void |
setSeverity(AllergySeverity severity) |
void |
setSeverity(String severity) |
getActiveListId, getActiveListType, getComments, getConcept, getEndDate, getId, getPerson, getStartDate, getStartObs, getStopObs, setActiveListId, setActiveListType, setComments, setConcept, setEndDate, setId, setPerson, setStartDate, setStartObs, setStopObs
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateVoided, getVoided, getVoidedBy, getVoidReason, isVoided, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateVoided, setVoided, setVoidedBy, setVoidReason
getUuid, setUuid
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getUuid, setUuid
public static final ActiveListType ACTIVE_LIST_TYPE
public Allergy()
public Allergy(Integer activeListId)
public Allergy(Patient person, Concept concept, Date startDate, AllergyType allergyType, Concept reaction, AllergySeverity severity)
public AllergyType getAllergyType()
public void setAllergyType(AllergyType allergyType)
allergyType
- the allergyType to setpublic void setAllergyType(String type)
public 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)
public Concept getAllergen()
public void setAllergen(Concept allergen)
allergen
- public boolean equals(Object obj)
equals
in class ActiveListItem
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.