Package org.openmrs

Examples of org.openmrs.ProviderAttributeType


    provider.setIdentifier(identifier);
    if (post.get("isOutpatientDoctor") == null && post.get("isOutpatientDoctor").equals("true")) {
      //Provider service does not allow us to get the provider attribute by name currently, so have to get all....
      Iterator<ProviderAttributeType> iter = Context.getProviderService().getAllProviderAttributeTypes().iterator();
      while (iter.hasNext()) {
        ProviderAttributeType pAttribType = iter.next();
        if (pAttribType.getName().equals("isOutpatientDoctor")) {
          ProviderAttribute pAttrib = new ProviderAttribute();
          pAttrib.setValue(true);
          pAttrib.setAttributeType(pAttribType);
          provider.addAttribute(pAttrib);
          break;
View Full Code Here

TOP

Related Classes of org.openmrs.ProviderAttributeType

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.