Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
08/18/08 12:05:28 (5 months ago)
Author:
machosry
Message:

address hierarchy: done with newPatientForm and patientDashboard yet to fix the drop down in patient.form

Files:

Legend:

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

    r5288 r5302  
    271271                                                } 
    272272                                                 
    273                                                 if (Context.hasPrivilege(OpenmrsConstants.PRIV_VIEW_PROGRAMS) && 
    274                                                         Context.hasPrivilege("View Patient Programs")) { 
     273                                                if (Context.hasPrivilege(OpenmrsConstants.PRIV_VIEW_PROGRAMS)) { 
    275274                                                        model.put("patientPrograms", Context.getProgramWorkflowService().getPatientPrograms(p)); 
    276275                                                        model.put("patientCurrentPrograms", Context.getProgramWorkflowService().getCurrentPrograms(p, null)); 
     
    303302                                        model.put("person", p); 
    304303                                         
    305                                                 if (Context.hasPrivilege("View Relationships")) { 
     304                                                if (true) { 
    306305                                                        List<Relationship> relationships = new ArrayList<Relationship>(); 
    307306                                                        relationships.addAll(Context.getPersonService().getRelationships(p, false)); 
     
    352351                        if (o != null && !"".equals(o) && !model.containsKey("patientIds")) { 
    353352                                if (!model.containsKey("patientSet")) { 
    354                         //              Cohort ps = new Cohort((String) o); 
    355                                 //      model.put("patientSet", ps); 
    356353                                        model.put("patientIds", (String) o); 
    357354                                } 
     
    382379                        log.debug(portletPath + " took " + (System.currentTimeMillis() - timeAtStart) + " ms"); 
    383380                } 
    384  
     381                System.out.println("i am here"); 
    385382                return new ModelAndView(portletPath, "model", model); 
    386383