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.comparator | |
org.openmrs.propertyeditor | |
org.openmrs.validator |
Modifier and Type | Method and Description |
---|---|
PatientIdentifierType |
PatientIdentifier.getIdentifierType() |
Modifier and Type | Method and Description |
---|---|
PatientIdentifier |
Patient.getPatientIdentifier(PatientIdentifierType pit)
Returns the first (preferred) patient identifier matching a
PatientIdentifierType Otherwise, returns the first non-voided identifier
Otherwise, null |
List<PatientIdentifier> |
Patient.getPatientIdentifiers(PatientIdentifierType pit)
Returns only the non-voided identifiers for this patient.
|
void |
PatientIdentifier.setIdentifierType(PatientIdentifierType identifierType) |
Constructor and Description |
---|
PatientIdentifier(String identifier,
PatientIdentifierType type,
Location location)
Convenience constructor for creating a basic identifier
|
Modifier and Type | Method and Description |
---|---|
PatientIdentifierType |
PatientService.getPatientIdentifierType(Integer patientIdentifierTypeId)
Get patientIdentifierType by internal identifier
|
PatientIdentifierType |
PatientService.getPatientIdentifierTypeByName(String name)
Get patientIdentifierType by exact name
|
PatientIdentifierType |
PatientService.getPatientIdentifierTypeByUuid(String uuid)
Get patient identifierType by universally unique identifier
|
PatientIdentifierType |
PatientService.retirePatientIdentifierType(PatientIdentifierType patientIdentifierType,
String reason)
Retire a type of patient identifier
|
PatientIdentifierType |
PatientService.savePatientIdentifierType(PatientIdentifierType patientIdentifierType)
Create or update a PatientIdentifierType
|
PatientIdentifierType |
PatientService.unretirePatientIdentifierType(PatientIdentifierType patientIdentifierType)
Unretire a type of patient identifier
|
Modifier and Type | Method and Description |
---|---|
List<PatientIdentifierType> |
PatientService.getAllPatientIdentifierTypes()
Get all patientIdentifier types
Ordered same as
PatientIdentifierTypeDefaultComparator . |
List<PatientIdentifierType> |
PatientService.getAllPatientIdentifierTypes(boolean includeRetired)
Get all patientIdentifier types.
|
List<PatientIdentifierType> |
PatientService.getPatientIdentifierTypes(String name,
String format,
Boolean required,
Boolean hasCheckDigit)
Get all patientIdentifier types that match the given criteria
Ordered same as
PatientIdentifierTypeDefaultComparator . |
Modifier and Type | Method and Description |
---|---|
void |
PatientService.purgePatientIdentifierType(PatientIdentifierType patientIdentifierType)
Purge PatientIdentifierType (cannot be undone)
|
PatientIdentifierType |
PatientService.retirePatientIdentifierType(PatientIdentifierType patientIdentifierType,
String reason)
Retire a type of patient identifier
|
PatientIdentifierType |
PatientService.savePatientIdentifierType(PatientIdentifierType patientIdentifierType)
Create or update a PatientIdentifierType
|
PatientIdentifierType |
PatientService.unretirePatientIdentifierType(PatientIdentifierType patientIdentifierType)
Unretire a type of patient identifier
|
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<Patient> |
PatientService.getPatients(String name,
String identifier,
List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly)
Get patients based on given criteria The identifier is matched with the regex
OpenmrsConstants.PATIENT_IDENTIFIER_REGEX All parameters are optional and
nullable. |
List<Patient> |
PatientService.getPatients(String name,
String identifier,
List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly,
Integer start,
Integer length)
Get a limited size of patients from a given start index based on given criteria The
identifier is matched with the regex
OpenmrsConstants.PATIENT_IDENTIFIER_REGEX
All parameters are optional and nullable. |
Modifier and Type | Method and Description |
---|---|
PatientIdentifierType |
PatientDAO.getPatientIdentifierType(Integer patientIdentifierTypeId) |
PatientIdentifierType |
PatientDAO.getPatientIdentifierTypeByUuid(String uuid) |
PatientIdentifierType |
PatientDAO.savePatientIdentifierType(PatientIdentifierType patientIdentifierType) |
Modifier and Type | Method and Description |
---|---|
List<PatientIdentifierType> |
PatientDAO.getAllPatientIdentifierTypes(boolean includeRetired)
Should not return null when includeRetired is false
Should not return retired when includeRetired is false
Should not return null when includeRetired is true
Should return all when includeRetired is true
|
List<PatientIdentifierType> |
PatientDAO.getPatientIdentifierTypes(String name,
String format,
Boolean required,
Boolean hasCheckDigit) |
Modifier and Type | Method and Description |
---|---|
void |
PatientDAO.deletePatientIdentifierType(PatientIdentifierType patientIdentifierType) |
PatientIdentifierType |
PatientDAO.savePatientIdentifierType(PatientIdentifierType patientIdentifierType) |
Modifier and Type | Method and Description |
---|---|
List<PatientIdentifier> |
PatientDAO.getPatientIdentifiers(String identifier,
List<PatientIdentifierType> patientIdentifierTypes,
List<Location> locations,
List<Patient> patients,
Boolean isPreferred) |
List<Patient> |
PatientDAO.getPatients(String name,
List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly,
Integer start,
Integer length) |
Modifier and Type | Method and Description |
---|---|
PatientIdentifierType |
HibernatePatientDAO.getPatientIdentifierType(Integer patientIdentifierTypeId) |
PatientIdentifierType |
HibernatePatientDAO.getPatientIdentifierTypeByUuid(String uuid) |
PatientIdentifierType |
HibernatePatientDAO.savePatientIdentifierType(PatientIdentifierType patientIdentifierType) |
Modifier and Type | Method and Description |
---|---|
List<PatientIdentifierType> |
HibernatePatientDAO.getAllPatientIdentifierTypes(boolean includeRetired)
Should not return null when includeRetired is false
Should not return retired when includeRetired is false
Should not return null when includeRetired is true
Should return all when includeRetired is true
Should return ordered
|
List<PatientIdentifierType> |
HibernatePatientDAO.getPatientIdentifierTypes(String name,
String format,
Boolean required,
Boolean hasCheckDigit) |
Modifier and Type | Method and Description |
---|---|
void |
HibernatePatientDAO.deletePatientIdentifierType(PatientIdentifierType patientIdentifierType) |
PatientIdentifierType |
HibernatePatientDAO.savePatientIdentifierType(PatientIdentifierType patientIdentifierType) |
Modifier and Type | Method and Description |
---|---|
List<PatientIdentifier> |
HibernatePatientDAO.getPatientIdentifiers(String identifier,
List<PatientIdentifierType> patientIdentifierTypes,
List<Location> locations,
List<Patient> patients,
Boolean isPreferred) |
List<Patient> |
HibernatePatientDAO.getPatients(String query,
List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly,
Integer start,
Integer length) |
QueryResult |
PatientSearchCriteria.prepareCriteria(javax.persistence.criteria.CriteriaBuilder cb,
javax.persistence.criteria.Join<Encounter,Patient> patientJoin,
String name,
String identifier,
List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly,
boolean orderByNames,
boolean searchOnNamesOrIdentifiers)
Deprecated.
Prepare a
QueryResult for searching patients by name and/or identifier. |
Modifier and Type | Method and Description |
---|---|
PatientIdentifierType |
PatientServiceImpl.getPatientIdentifierType(Integer patientIdentifierTypeId) |
PatientIdentifierType |
PatientServiceImpl.getPatientIdentifierTypeByName(String name) |
PatientIdentifierType |
PatientServiceImpl.getPatientIdentifierTypeByUuid(String uuid) |
PatientIdentifierType |
PatientServiceImpl.retirePatientIdentifierType(PatientIdentifierType patientIdentifierType,
String reason) |
PatientIdentifierType |
PatientServiceImpl.savePatientIdentifierType(PatientIdentifierType patientIdentifierType) |
PatientIdentifierType |
PatientServiceImpl.unretirePatientIdentifierType(PatientIdentifierType patientIdentifierType) |
Modifier and Type | Method and Description |
---|---|
List<PatientIdentifierType> |
PatientServiceImpl.getAllPatientIdentifierTypes() |
List<PatientIdentifierType> |
PatientServiceImpl.getAllPatientIdentifierTypes(boolean includeRetired) |
List<PatientIdentifierType> |
PatientServiceImpl.getPatientIdentifierTypes(String name,
String format,
Boolean required,
Boolean hasCheckDigit) |
Modifier and Type | Method and Description |
---|---|
void |
PatientServiceImpl.purgePatientIdentifierType(PatientIdentifierType patientIdentifierType) |
PatientIdentifierType |
PatientServiceImpl.retirePatientIdentifierType(PatientIdentifierType patientIdentifierType,
String reason) |
PatientIdentifierType |
PatientServiceImpl.savePatientIdentifierType(PatientIdentifierType patientIdentifierType) |
PatientIdentifierType |
PatientServiceImpl.unretirePatientIdentifierType(PatientIdentifierType patientIdentifierType) |
Modifier and Type | Method and Description |
---|---|
List<PatientIdentifier> |
PatientServiceImpl.getPatientIdentifiers(String identifier,
List<PatientIdentifierType> patientIdentifierTypes,
List<Location> locations,
List<Patient> patients,
Boolean isPreferred) |
List<Patient> |
PatientServiceImpl.getPatients(String name,
String identifier,
List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly) |
List<Patient> |
PatientServiceImpl.getPatients(String name,
String identifier,
List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly,
Integer start,
Integer length) |
Modifier and Type | Method and Description |
---|---|
int |
PatientIdentifierTypeDefaultComparator.compare(PatientIdentifierType pit1,
PatientIdentifierType pit2)
Orders by retired (true last), required (true first), name and id.
|
Modifier and Type | Method and Description |
---|---|
protected PatientIdentifierType |
PatientIdentifierTypeEditor.getObjectById(Integer id) |
protected PatientIdentifierType |
PatientIdentifierTypeEditor.getObjectByUuid(String uuid) |
Modifier and Type | Method and Description |
---|---|
static void |
PatientIdentifierValidator.validateIdentifier(String identifier,
PatientIdentifierType pit)
Validates that a given identifier string is valid for a given
PatientIdentifierType
Checks for things like blank identifiers, invalid check digits, and invalid format. |
Copyright © 2024 OpenMRS Inc.. All rights reserved.