Package org.openmrs

Examples of org.openmrs.PersonAttributeType


  private Person addAttributes(Person p, SimpleObject post) throws ResponseException {
    List<LinkedHashMap> attributeObjects = (List<LinkedHashMap>) post.get("attributes");
    for (int i = 0; i < attributeObjects.size(); i++) {
      if (attributeObjects.get(i).get("attributeType") != null && attributeObjects.get(i).get("value") != null) {
        PersonAttribute pa = new PersonAttribute();
        PersonAttributeType paType = Context.getPersonService().getPersonAttributeTypeByUuid(
            attributeObjects.get(i).get("attributeType").toString());
        if (paType == null) {
          throw new ResponseException(
                                      "Person Attribute Type not found") {};
        }
View Full Code Here

TOP

Related Classes of org.openmrs.PersonAttributeType

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.