Package org.openmrs

Examples of org.openmrs.LocationAttribute


    boolean identifierInUse = true;
    String identifier = "";
    Iterator<LocationAttribute> iter = location.getAttributes().iterator();
    String prefix = "NEW";
    while (iter.hasNext()) {
      LocationAttribute la = iter.next();
      if (la.getAttributeType().getName().equals("identifierPrefix")) {
        prefix = la.getValue().toString();
      }
    }
    while (identifierInUse) {
      //TODO: set this identifier prefix based on location
      identifier = prefix + (int) (Math.random() * 100000);
 
View Full Code Here

TOP

Related Classes of org.openmrs.LocationAttribute

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.