Class EhrController

java.lang.Object
org.ehrbase.rest.ehrscape.controller.BaseController
org.ehrbase.rest.ehrscape.controller.EhrController

@ConditionalOnMissingBean(name="primaryehrcontroller") @RestController @RequestMapping(path="/rest/ecis/v1/ehr") public class EhrController extends BaseController
Controller for /ehr resource of EhrScape REST API
Author:
Stefan Spiska, Jake Smolka
  • Constructor Details

    • EhrController

      public EhrController(EhrService ehrService)
  • Method Details

    • createEhr

      @PostMapping @ResponseStatus(CREATED) public org.springframework.http.ResponseEntity<EhrResponseData> createEhr(@RequestParam(value="subjectId",required=false) String subjectId, @RequestParam(value="subjectNamespace",required=false) String subjectNamespace, @RequestParam(value="committerId",required=false) String committerId, @RequestParam(value="committerName",required=false) String committerName, @RequestHeader(value="Content-Type",required=false) String contentType)
    • getEhr

      @GetMapping public org.springframework.http.ResponseEntity<EhrResponseData> getEhr(@RequestParam("subjectId") String subjectId, @RequestParam("subjectNamespace") String subjectNamespace, @RequestHeader(value="Content-Type",required=false) String contentType)
    • getEhr

      @GetMapping(path="/{uuid}") public org.springframework.http.ResponseEntity<EhrResponseData> getEhr(@PathVariable("uuid") UUID ehrId, @RequestHeader(value="Content-Type",required=false) String contentType)
    • updateStatus

      @PutMapping(path="/{uuid}/status") public org.springframework.http.ResponseEntity<EhrResponseData> updateStatus(@PathVariable("uuid") UUID ehrId, @RequestBody String ehrStatus, @RequestHeader(value="Content-Type",required=false) String contentType)