Search in sources :

Example 1 with IdentifierPool

use of org.openmrs.module.idgen.IdentifierPool in project openmrs-module-pihcore by PIH.

the class ConfigureHaitiIdGenerators method createPatientIdGenerator.

// TODO refactor all this to make more sense
public static void createPatientIdGenerator(ConfigureHaitiIdGenerators configureHaitiIdGenerators) {
    PatientIdentifierType zlIdentifierType = getZlIdentifierType();
    RemoteIdentifierSource remoteZlIdentifierSource = configureHaitiIdGenerators.remoteZlIdentifierSource(zlIdentifierType);
    IdentifierPool localZlIdentifierPool = configureHaitiIdGenerators.localZlIdentifierSource(remoteZlIdentifierSource);
    configureHaitiIdGenerators.setAutoGenerationOptionsForZlIdentifier(localZlIdentifierPool);
}
Also used : IdentifierPool(org.openmrs.module.idgen.IdentifierPool) PatientIdentifierType(org.openmrs.PatientIdentifierType) RemoteIdentifierSource(org.openmrs.module.idgen.RemoteIdentifierSource)

Aggregations

PatientIdentifierType (org.openmrs.PatientIdentifierType)1 IdentifierPool (org.openmrs.module.idgen.IdentifierPool)1 RemoteIdentifierSource (org.openmrs.module.idgen.RemoteIdentifierSource)1