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);
}
Aggregations