Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
03/03/08 22:40:57 (10 months ago)
Author:
bwolfe
Message:

Updated the basicmodule to the 1.2.0 api jars

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs-modules/basicmodule/web/src/org/openmrs/module/basicmodule/web/controller/BasicModuleFormController.java

    r3525 r3531  
    1414package org.openmrs.module.basicmodule.web.controller; 
    1515 
     16import java.util.Collection; 
    1617import java.util.HashMap; 
    17 import java.util.List; 
    1818import java.util.Map; 
    1919 
     
    7575     */ 
    7676    @Override 
    77         protected List<Patient> formBackingObject(HttpServletRequest request) throws Exception {  
     77        protected Collection<Patient> formBackingObject(HttpServletRequest request) throws Exception {  
    7878         
    7979        // get all patients that have an identifier "1234" 
    8080        // see http://resources.openmrs.org/doc/index.html?org/openmrs/api/PatientService.html for 
    8181        // a list of all PatientService methods 
    82         List<Patient> patients = Context.getPatientService().findPatients("1234", false); 
     82        Collection<Patient> patients = Context.getPatientService().findPatients("1234", false); 
    8383         
    8484        // this object will be made available to the jsp page under the variable name