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;