Package | Description |
---|---|
org.openmrs |
These classes represent the core domain objects for the OpenMRS project.
|
org.openmrs.api |
The primary OpenMRS API interfaces.
|
org.openmrs.api.db |
OpenMRS database layer interfaces.
|
org.openmrs.api.db.hibernate |
Resources for Hibernate ORM.
|
org.openmrs.api.impl |
Modifier and Type | Method and Description |
---|---|
Allergy |
Allergies.get(int index) |
Allergy |
AllergyReaction.getAllergy() |
Allergy |
Allergies.getAllergy(Integer allergyId)
Gets an allergy with a given id
|
Allergy |
Allergies.remove(int index) |
Allergy |
Allergies.set(int index,
Allergy element) |
Modifier and Type | Method and Description |
---|---|
Set<Allergy> |
Encounter.getAllergies()
Basic property getter for the encounter's non-voided allergies.
|
Set<Allergy> |
Encounter.getAllergies(boolean includeVoided)
Returns all allergies where 'Allergy.encounterId = Encounter.encounterId'.
|
Iterator<Allergy> |
Allergies.iterator() |
ListIterator<Allergy> |
Allergies.listIterator() |
ListIterator<Allergy> |
Allergies.listIterator(int index) |
List<Allergy> |
Allergies.subList(int fromIndex,
int toIndex) |
Modifier and Type | Method and Description |
---|---|
boolean |
Allergies.add(Allergy allergy) |
void |
Allergies.add(int index,
Allergy element) |
void |
Encounter.addAllergy(Allergy allergy)
Add the given allergy to the set of allergies for this encounter.
|
boolean |
Allergies.containsAllergen(Allergy allergy)
Checks if we already have an allergen similar to that in the given allergy
|
boolean |
Allergies.containsAllergen(Allergy allergy,
Collection<? extends Allergy> allergies)
Checks if a given allergy has the same allergen as any in the given allergies
|
void |
Allergy.copy(Allergy allergy)
Copies all property values, apart from the id and uuid,
from the given allergy into this object
|
boolean |
Allergy.hasSameAllergen(Allergy allergy)
Checks if we have the same allergen as that in the given allergy
|
boolean |
Allergy.hasSameValues(Allergy allergy)
Checks if this allergy has the same values as a given one.
|
boolean |
Allergies.remove(Allergy allergy) |
void |
Encounter.removeAllergy(Allergy allergy)
Remove the given allergy from the set of allergies for this encounter.
|
Allergy |
Allergies.set(int index,
Allergy element) |
void |
AllergyReaction.setAllergy(Allergy allergy) |
Modifier and Type | Method and Description |
---|---|
boolean |
Allergies.addAll(Collection<? extends Allergy> c) |
boolean |
Allergies.addAll(int index,
Collection<? extends Allergy> c) |
boolean |
Allergies.containsAllergen(Allergy allergy,
Collection<? extends Allergy> allergies)
Checks if a given allergy has the same allergen as any in the given allergies
|
void |
Encounter.setAllergies(Set<Allergy> allergies)
Basic property setter for allergies
|
Constructor and Description |
---|
AllergyReaction(Allergy allergy,
Concept reaction,
String reactionNonCoded) |
Modifier and Type | Method and Description |
---|---|
Allergy |
PatientService.getAllergy(Integer allergyListId)
Returns the Allergy identified by internal Ingerger Id
|
Allergy |
PatientService.getAllergyByUuid(String uuid)
Returns the Allergy identified by uuid
|
Modifier and Type | Method and Description |
---|---|
void |
PatientService.removeAllergy(Allergy allergy,
String reason)
Resolving the allergy, effectively removes the Allergy from the Patient's Active List by
setting the stop date to now, if null.
|
void |
PatientService.saveAllergy(Allergy allergy)
Creates an AllergyListItem to the Patient's Allergy Active List.
|
void |
PatientService.voidAllergy(Allergy allergy,
String reason)
Used only in cases where the Allergy was entered by error
|
Modifier and Type | Method and Description |
---|---|
Allergy |
PatientDAO.getAllergy(Integer allergyId)
Gets a allergy matching the given allergyId
|
Allergy |
PatientDAO.getAllergyByUuid(String uuid)
Gets a allergy matching the given uuid
|
Allergy |
PatientDAO.saveAllergy(Allergy allergy)
Saves an allergy to the database
|
Modifier and Type | Method and Description |
---|---|
List<Allergy> |
PatientDAO.getAllergies(Patient patient)
Gets a list of allergies that a patient has
|
Modifier and Type | Method and Description |
---|---|
Allergy |
PatientDAO.saveAllergy(Allergy allergy)
Saves an allergy to the database
|
Modifier and Type | Method and Description |
---|---|
Allergy |
HibernatePatientDAO.getAllergy(Integer allergyId) |
Allergy |
HibernatePatientDAO.getAllergyByUuid(String uuid) |
Allergy |
HibernatePatientDAO.saveAllergy(Allergy allergy) |
Modifier and Type | Method and Description |
---|---|
List<Allergy> |
HibernatePatientDAO.getAllergies(Patient patient) |
Modifier and Type | Method and Description |
---|---|
Allergy |
HibernatePatientDAO.saveAllergy(Allergy allergy) |
Modifier and Type | Method and Description |
---|---|
Allergy |
PatientServiceImpl.getAllergy(Integer allergyId) |
Allergy |
PatientServiceImpl.getAllergyByUuid(String uuid) |
Modifier and Type | Method and Description |
---|---|
void |
PatientServiceImpl.removeAllergy(Allergy allergy,
String reason) |
void |
PatientServiceImpl.saveAllergy(Allergy allergy) |
void |
PatientServiceImpl.voidAllergy(Allergy allergy,
String reason) |
Copyright © 2024 OpenMRS Inc.. All rights reserved.