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 | |
org.openmrs.validator |
Modifier and Type | Method and Description |
---|---|
PatientIdentifier |
Patient.getPatientIdentifier()
Convenience method to get the first "preferred" identifier for a patient.
|
PatientIdentifier |
Patient.getPatientIdentifier(Integer identifierTypeId)
Returns the first (preferred) patient identifier matching
identifierTypeId |
PatientIdentifier |
Patient.getPatientIdentifier(PatientIdentifierType pit)
Returns the first (preferred) patient identifier matching a
PatientIdentifierType Otherwise, returns the first non-voided identifier
Otherwise, null |
PatientIdentifier |
Patient.getPatientIdentifier(String identifierTypeName)
Returns the (preferred) patient identifier matching
identifierTypeName Otherwise
returns that last PatientIdenitifer |
Modifier and Type | Method and Description |
---|---|
List<PatientIdentifier> |
Patient.getActiveIdentifiers()
Returns only the non-voided identifiers for this patient.
|
Set<PatientIdentifier> |
Patient.getIdentifiers()
Get all of this patients identifiers -- both voided and non-voided ones.
|
List<PatientIdentifier> |
Patient.getPatientIdentifiers(PatientIdentifierType pit)
Returns only the non-voided identifiers for this patient.
|
Modifier and Type | Method and Description |
---|---|
void |
Patient.addIdentifier(PatientIdentifier patientIdentifier)
Will add this PatientIdentifier if the patient doesn't contain it already
|
int |
PatientIdentifier.DefaultComparator.compare(PatientIdentifier pi1,
PatientIdentifier pi2) |
int |
PatientIdentifier.compareTo(PatientIdentifier other)
Deprecated.
since 1.12. Use DefaultComparator instead.
Note: this comparator imposes orderings that are inconsistent with equals.
|
boolean |
PatientIdentifier.equalsContent(PatientIdentifier otherIdentifier)
Compares this PatientIdentifier object to the given otherIdentifier.
|
void |
Patient.removeIdentifier(PatientIdentifier patientIdentifier)
Convenience method to remove the given identifier from this patient's list of identifiers.
|
Modifier and Type | Method and Description |
---|---|
void |
Patient.addIdentifiers(Collection<PatientIdentifier> patientIdentifiers)
Will only add PatientIdentifiers in this list that this patient does not have already
|
void |
Patient.setIdentifiers(Set<PatientIdentifier> identifiers)
Update all identifiers for patient
|
Modifier and Type | Method and Description |
---|---|
PatientIdentifier |
PatientIdentifierException.getPatientIdentifier() |
PatientIdentifier |
PatientService.getPatientIdentifier(Integer patientIdentifierId)
Returns a patient identifier that matches the given patientIndentifier id
|
PatientIdentifier |
PatientService.getPatientIdentifierByUuid(String uuid)
Get patient identifier by universally unique identifier.
|
PatientIdentifier |
PatientService.savePatientIdentifier(PatientIdentifier patientIdentifier)
Saved the given
patientIndentifier to the database |
PatientIdentifier |
PatientService.voidPatientIdentifier(PatientIdentifier patientIdentifier,
String reason)
Void patient identifier (functionally delete patient identifier from system)
|
Modifier and Type | Method and Description |
---|---|
List<PatientIdentifier> |
PatientService.getPatientIdentifiers(String identifier,
List<PatientIdentifierType> patientIdentifierTypes,
List<Location> locations,
List<Patient> patients,
Boolean isPreferred)
Get all patientIdentifiers that match all of the given criteria Voided identifiers are not
returned
|
List<PatientIdentifier> |
PatientService.getPatientIdentifiersByPatientProgram(PatientProgram patientProgram)
Get all patientIdentifiers that are associated to the patient program
|
Modifier and Type | Method and Description |
---|---|
boolean |
PatientService.isIdentifierInUseByAnotherPatient(PatientIdentifier patientIdentifier)
Checks whether the given patient identifier is already assigned to a patient other than
patientIdentifier.patient
|
void |
PatientService.purgePatientIdentifier(PatientIdentifier patientIdentifier)
Purge PatientIdentifier (cannot be undone)
|
PatientIdentifier |
PatientService.savePatientIdentifier(PatientIdentifier patientIdentifier)
Saved the given
patientIndentifier to the database |
void |
PatientIdentifierException.setPatientIdentifier(PatientIdentifier patientIdentifier) |
PatientIdentifier |
PatientService.voidPatientIdentifier(PatientIdentifier patientIdentifier,
String reason)
Void patient identifier (functionally delete patient identifier from system)
|
Constructor and Description |
---|
BlankIdentifierException(String message,
PatientIdentifier identifier)
This is the preferred constructor.
|
DuplicateIdentifierException(String message,
PatientIdentifier identifier) |
IdentifierNotUniqueException(String message,
PatientIdentifier identifier) |
InvalidCheckDigitException(String message,
PatientIdentifier identifier) |
InvalidIdentifierFormatException(String message,
PatientIdentifier identifier) |
MissingRequiredIdentifierException(String message,
PatientIdentifier identifier) |
PatientIdentifierException(String message,
PatientIdentifier identifier) |
Modifier and Type | Method and Description |
---|---|
PatientIdentifier |
PatientDAO.getPatientIdentifier(Integer patientIdentifierId) |
PatientIdentifier |
PatientDAO.getPatientIdentifierByUuid(String uuid) |
PatientIdentifier |
PatientDAO.savePatientIdentifier(PatientIdentifier patientIdentifier) |
Modifier and Type | Method and Description |
---|---|
List<PatientIdentifier> |
PatientDAO.getPatientIdentifiers(String identifier,
List<PatientIdentifierType> patientIdentifierTypes,
List<Location> locations,
List<Patient> patients,
Boolean isPreferred) |
Modifier and Type | Method and Description |
---|---|
void |
PatientDAO.deletePatientIdentifier(PatientIdentifier patientIdentifier) |
boolean |
PatientDAO.isIdentifierInUseByAnotherPatient(PatientIdentifier patientIdentifier) |
PatientIdentifier |
PatientDAO.savePatientIdentifier(PatientIdentifier patientIdentifier) |
Modifier and Type | Method and Description |
---|---|
PatientIdentifier |
HibernatePatientDAO.getPatientIdentifier(Integer patientIdentifierId) |
PatientIdentifier |
HibernatePatientDAO.getPatientIdentifierByUuid(String uuid) |
PatientIdentifier |
HibernatePatientDAO.savePatientIdentifier(PatientIdentifier patientIdentifier) |
Modifier and Type | Method and Description |
---|---|
List<PatientIdentifier> |
HibernatePatientDAO.getPatientIdentifierByProgram(PatientProgram patientProgram) |
List<PatientIdentifier> |
HibernatePatientDAO.getPatientIdentifiers(String identifier,
List<PatientIdentifierType> patientIdentifierTypes,
List<Location> locations,
List<Patient> patients,
Boolean isPreferred) |
Modifier and Type | Method and Description |
---|---|
void |
HibernatePatientDAO.deletePatientIdentifier(PatientIdentifier patientIdentifier) |
boolean |
HibernatePatientDAO.isIdentifierInUseByAnotherPatient(PatientIdentifier patientIdentifier)
This method uses a SQL query and does not load anything into the hibernate session.
|
PatientIdentifier |
HibernatePatientDAO.savePatientIdentifier(PatientIdentifier patientIdentifier) |
Modifier and Type | Method and Description |
---|---|
PatientIdentifier |
PatientServiceImpl.getPatientIdentifier(Integer patientIdentifierId) |
PatientIdentifier |
PatientServiceImpl.getPatientIdentifierByUuid(String uuid) |
PatientIdentifier |
PatientServiceImpl.savePatientIdentifier(PatientIdentifier patientIdentifier) |
PatientIdentifier |
PatientServiceImpl.voidPatientIdentifier(PatientIdentifier patientIdentifier,
String reason) |
Modifier and Type | Method and Description |
---|---|
List<PatientIdentifier> |
PatientServiceImpl.getPatientIdentifiers(String identifier,
List<PatientIdentifierType> patientIdentifierTypes,
List<Location> locations,
List<Patient> patients,
Boolean isPreferred) |
List<PatientIdentifier> |
PatientServiceImpl.getPatientIdentifiersByPatientProgram(PatientProgram patientProgram) |
Modifier and Type | Method and Description |
---|---|
boolean |
PatientServiceImpl.isIdentifierInUseByAnotherPatient(PatientIdentifier patientIdentifier) |
void |
PatientServiceImpl.purgePatientIdentifier(PatientIdentifier patientIdentifier) |
PatientIdentifier |
PatientServiceImpl.savePatientIdentifier(PatientIdentifier patientIdentifier) |
PatientIdentifier |
PatientServiceImpl.voidPatientIdentifier(PatientIdentifier patientIdentifier,
String reason) |
Modifier and Type | Method and Description |
---|---|
static void |
PatientIdentifierValidator.validateIdentifier(PatientIdentifier pi)
Checks that the given
PatientIdentifier is valid |
Copyright © 2024 OpenMRS Inc.. All rights reserved.