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
-
Field Summary
Fields inherited from class org.ehrbase.rest.ehrscape.controller.BaseController
API_ECIS_CONTEXT_PATH_WITH_VERSION, COMPOSITION, EHR, TEMPLATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<EhrResponseData>createEhr(String subjectId, String subjectNamespace, String committerId, String committerName, String contentType) org.springframework.http.ResponseEntity<EhrResponseData>org.springframework.http.ResponseEntity<EhrResponseData>org.springframework.http.ResponseEntity<EhrResponseData>updateStatus(UUID ehrId, String ehrStatus, String contentType) Methods inherited from class org.ehrbase.rest.ehrscape.controller.BaseController
add2MetaMap, createLocationUri, getContextPath
-
Constructor Details
-
EhrController
-
-
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)
-