public class MigrationController extends Object implements org.springframework.web.servlet.mvc.Controller
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
MigrationController() |
Modifier and Type | Method and Description |
---|---|
org.springframework.web.servlet.ModelAndView |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
int |
importRegimens(String csv)
Takes CSV like: patientId,drugName,formulationName,startDate,autoExpireDate,discontinuedDate,
discontinuedReason,doseStrength,doseUnit,dosesPerDay,daysPerWeek,prn
|
static Date |
parseDate(String s) |
org.springframework.web.servlet.ModelAndView |
runHl7(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
uploadLocations(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
uploadMigrationFile(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
TODO: DOCUMENT THIS
|
org.springframework.web.servlet.ModelAndView |
uploadRegimens(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
uploadUsers(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
public org.springframework.web.servlet.ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
handleRequest
in interface org.springframework.web.servlet.mvc.Controller
javax.servlet.ServletException
IOException
public org.springframework.web.servlet.ModelAndView uploadUsers(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException, ParserConfigurationException, ParseException
javax.servlet.ServletException
IOException
ParserConfigurationException
ParseException
public org.springframework.web.servlet.ModelAndView uploadLocations(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException, ParserConfigurationException
javax.servlet.ServletException
IOException
ParserConfigurationException
public org.springframework.web.servlet.ModelAndView runHl7(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
public org.springframework.web.servlet.ModelAndView uploadRegimens(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException, ParseException
javax.servlet.ServletException
IOException
ParseException
public org.springframework.web.servlet.ModelAndView uploadMigrationFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException, ParseException
javax.servlet.ServletException
IOException
ParseException
public int importRegimens(String csv) throws IOException, ParseException
IOException
ParseException
public static Date parseDate(String s) throws ParseException
ParseException
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.