public class PortletController
extends java.lang.Object
implements org.springframework.web.servlet.mvc.Controller
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
PortletController() |
Modifier and Type | Method and Description |
---|---|
org.springframework.web.servlet.ModelAndView |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method produces a model containing the following mappings:
|
protected void |
populateModel(javax.servlet.http.HttpServletRequest request,
java.util.Map<java.lang.String,java.lang.Object> model)
Subclasses should override this to put more data into the model.
|
public org.springframework.web.servlet.ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
(always) (java.util.Date) now (String) size (Locale) locale (String) portletUUID // unique for each instance of any portlet (other parameters) (if there's currently an authenticated user) (User) authenticatedUser (if the request has a patientId attribute) (Integer) patientId (Patient) patient (List) patientObs (List ) patientEncounters (List ) patientVisits (List ) activeVisits (Obs) patientWeight // most recent weight obs (Obs) patientHeight // most recent height obs (Double) patientBmi // BMI derived from most recent weight and most recent height (String) patientBmiAsString // BMI rounded to one decimal place, or "?" if unknown (Integer) personId (if the request has a personId or patientId attribute) (Person) person (List ) personRelationships (Map >) personRelationshipsByType (if the request has an encounterId attribute) (Integer) encounterId (Encounter) encounter (Set ) encounterObs (if the request has a userId attribute) (Integer) userId (User) user (if the request has a patientIds attribute, which should be a (String) comma-separated list of patientIds) (PatientSet) patientSet (String) patientIds (if the request has a conceptIds attribute, which should be a (String) commas-separated list of conceptIds) (Map ) conceptMap (Map ) conceptMapByStringIds
handleRequest
in interface org.springframework.web.servlet.mvc.Controller
javax.servlet.ServletException
java.io.IOException
protected void populateModel(javax.servlet.http.HttpServletRequest request, java.util.Map<java.lang.String,java.lang.Object> model)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.