@Test public void testGetEncounterByUuidFull() throws Exception { String result = controller.getEncounterByUuidFull("6519d653-393b-4118-9c83-a3715b82d4ac", request); SimpleObject encounter = SimpleObject.parseJson(result); System.out.println(result); Assert.assertNotNull(result); Assert.assertEquals("6519d653-393b-4118-9c83-a3715b82d4ac", encounter.get("uuid")); }
@RequestMapping(value = "/{uuid}", method = RequestMethod.GET) @WSDoc("Gets Full representation of Encounter for the uuid path") @ResponseBody() public String getEncounterByUuidFull(@PathVariable("uuid") String uuid, HttpServletRequest request) throws ResponseException { initEncounterController(); Encounter encounter = service.getEncounterByUuid(uuid); SimpleObject obj = getEncounterAsSimpleObject(encounter); return gson.toJson(obj); }
RaxaEncounterController extends BaseRestController { @RequestMapping(value = "/{uuid}", method = RequestMethod.GET) @WSDoc("Gets Full representation of Encounter for the uuid path") @ResponseBody() public String getEncounterByUuidFull(@PathVariable("uuid") String uuid, HttpServletRequest request) throws ResponseException { initEncounterController(); Encounter encounter = service.getEncounterByUuid(uuid); SimpleObject obj = getEncounterAsSimpleObject(encounter); return gson.toJson(obj); } }
RaxaEncounterController extends BaseRestController { @RequestMapping(value = "/{uuid}", method = RequestMethod.GET) @WSDoc("Gets Full representation of Encounter for the uuid path") @ResponseBody() public String getEncounterByUuidFull(@PathVariable("uuid") String uuid, HttpServletRequest request) throws ResponseException { initEncounterController(); Encounter encounter = service.getEncounterByUuid(uuid); SimpleObject obj = getEncounterAsSimpleObject(encounter); return gson.toJson(obj); }  }
RaxaEncounterController extends BaseRestController { @RequestMapping(value = "/{uuid}", method = RequestMethod.GET) @WSDoc("Gets Full representation of Encounter for the uuid path") @ResponseBody() public String getEncounterByUuidFull(@PathVariable("uuid") String uuid, HttpServletRequest request) throws ResponseException { initEncounterController(); Encounter encounter = service.getEncounterByUuid(uuid); SimpleObject obj = getEncounterAsSimpleObject(encounter); return gson.toJson(obj); }  void initEncounterController(); @RequestMapping(method = RequestMethod.POST) @WSDoc("Save New Encounter") @ResponseBody Object createNewEncounter(@RequestBody SimpleObject post, HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = "/{uuid}", method = RequestMethod.GET) @WSDoc("Gets Full representation of Encounter for the uuid path") @ResponseBody() String getEncounterByUuidFull(@PathVariable("uuid") String uuid, HttpServletRequest request); @RequestMapping(method = RequestMethod.GET, params = "provider") @WSDoc("Gets Full representation of Encounter for the uuid path") @ResponseBody() String getEncountersByProvider(@RequestParam Map<String, String> params, HttpServletRequest request); }
RaxaEncounterController extends BaseRestController { @RequestMapping(value = "/{uuid}", method = RequestMethod.GET) @WSDoc("Gets Full representation of Encounter for the uuid path") @ResponseBody() public String getEncounterByUuidFull(@PathVariable("uuid") String uuid, HttpServletRequest request) throws ResponseException { initEncounterController(); Encounter encounter = service.getEncounterByUuid(uuid); SimpleObject obj = getEncounterAsSimpleObject(encounter); return gson.toJson(obj); }  void initEncounterController(); @RequestMapping(method = RequestMethod.POST) @WSDoc("Save New Encounter") @ResponseBody Object createNewEncounter(@RequestBody SimpleObject post, HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = "/{uuid}", method = RequestMethod.GET) @WSDoc("Gets Full representation of Encounter for the uuid path") @ResponseBody() String getEncounterByUuidFull(@PathVariable("uuid") String uuid, HttpServletRequest request); @RequestMapping(method = RequestMethod.GET, params = "provider") @WSDoc("Gets Full representation of Encounter for the uuid path") @ResponseBody() String getEncountersByProvider(@RequestParam Map<String, String> params, HttpServletRequest request);  }