@Embeddable public class Allergen extends Object
Constructor and Description |
---|
Allergen()
Default constructor
|
Allergen(AllergenType allergenType,
Concept codedAllergen,
String nonCodedAllergen) |
Modifier and Type | Method and Description |
---|---|
AllergenType |
getAllergenType() |
Concept |
getCodedAllergen() |
String |
getNonCodedAllergen() |
static String |
getOtherNonCodedConceptUuid()
Returns other non coded concept uuid constant.
|
boolean |
isCoded() |
boolean |
isSameAllergen(Allergen allergen)
Checks if this allergen is the same as the given one
|
void |
setAllergenType(AllergenType allergenType) |
void |
setCodedAllergen(Concept codedAllergen) |
void |
setNonCodedAllergen(String nonCodedAllergen) |
static void |
setOtherNonCodedConceptUuid(String otherNonCodedConceptUuid)
Sets other non coded concept uuid constant.
|
String |
toString() |
public Allergen()
public Allergen(AllergenType allergenType, Concept codedAllergen, String nonCodedAllergen)
allergenType
- the allergenType to setcodedAllergen
- the codedAllergen to setnonCodedAllergen
- the nonCodedAllergen to setpublic AllergenType getAllergenType()
public void setAllergenType(AllergenType allergenType)
allergenType
- the allergenType to setpublic Concept getCodedAllergen()
public static void setOtherNonCodedConceptUuid(String otherNonCodedConceptUuid)
otherNonCodedConceptUuid
- public static String getOtherNonCodedConceptUuid()
public void setCodedAllergen(Concept codedAllergen)
codedAllergen
- the codedAllergen to setpublic String getNonCodedAllergen()
public void setNonCodedAllergen(String nonCodedAllergen)
nonCodedAllergen
- the nonCodedAllergen to setpublic boolean isCoded()
public boolean isSameAllergen(Allergen allergen)
allergen
- the given allergen to test with
Should return true for same coded allergen
Should return false for different coded allergen
Should return true for same non coded allergen
Should return false for different non coded allergenCopyright © 2024 OpenMRS Inc.. All rights reserved.