Package org.openmrs

Examples of org.openmrs.Patient.addName()


        name.setUuid(UUID.randomUUID().toString());
      }
     
     
      name.setPreferred(true);
      patient.addName(name);
    }

    if (genderWidget != null) {
      String value = (String) genderWidget.getValue(context, request);
      patient.setGender(value);
View Full Code Here


   *
   * @return the "fake" person
   */
  public static Patient getFakePerson() {
    Patient demo = new Patient(12345);
    demo.addName(new PersonName("Demo", "The", "Person"));
    Location l = Context.getLocationService().getAllLocations().iterator().next();
    for (PatientIdentifierType pit : Context.getPatientService().getAllPatientIdentifierTypes()) {
      if (StringUtils.isEmpty(pit.getValidator())) {
        demo.addIdentifier(new PatientIdentifier("Testing" + pit.getName() + "123", pit, l));
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.