Package org.openmrs.api

Examples of org.openmrs.api.IdentifierNotUniqueException


        // because it (as of 1.8) also tests to make sure that an identifier has a location associated with it; when validating an
        // individual identifier widget, there will be no location because the location is collected in another widget
        PatientIdentifierValidator.validateIdentifier(pi.getIdentifier(), pi.getIdentifierType());
       
        if (Context.getPatientService().isIdentifierInUseByAnotherPatient(pi)) {
          throw new IdentifierNotUniqueException(Context.getMessageSourceService().getMessage(
              "PatientIdentifier.error.notUniqueWithParameter", new Object[] { pi.getIdentifier() },
              Context.getLocale()));
        }
      }
      catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.openmrs.api.IdentifierNotUniqueException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.