Class CompositionController
java.lang.Object
org.ehrbase.rest.ehrscape.controller.BaseController
org.ehrbase.rest.ehrscape.controller.CompositionController
@ConditionalOnMissingBean(name="primarycompositioncontroller")
@RestController
@RequestMapping(path="/rest/ecis/v1/composition",
produces={"application/json","application/xml"})
public class CompositionController
extends BaseController
-
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<CompositionWriteRestResponseData>createComposition(org.ehrbase.openehr.sdk.response.dto.ehrscape.CompositionFormat format, String templateId, UUID ehrId, String content) org.springframework.http.ResponseEntity<ActionRestResponseData>org.springframework.http.ResponseEntity<CompositionResponseData>getComposition(String compositionUid, org.ehrbase.openehr.sdk.response.dto.ehrscape.CompositionFormat format) org.springframework.http.ResponseEntity<ActionRestResponseData>update(String compositionUid, org.ehrbase.openehr.sdk.response.dto.ehrscape.CompositionFormat format, String templateId, String content) Methods inherited from class org.ehrbase.rest.ehrscape.controller.BaseController
add2MetaMap, createLocationUri, getContextPath
-
Constructor Details
-
CompositionController
-
-
Method Details
-
createComposition
@PostMapping public org.springframework.http.ResponseEntity<CompositionWriteRestResponseData> createComposition(@RequestParam(value="format",defaultValue="XML") org.ehrbase.openehr.sdk.response.dto.ehrscape.CompositionFormat format, @RequestParam(value="templateId",required=false) String templateId, @RequestParam("ehrId") UUID ehrId, @RequestBody String content) -
getComposition
@GetMapping(path="/{uid}") public org.springframework.http.ResponseEntity<CompositionResponseData> getComposition(@PathVariable("uid") String compositionUid, @RequestParam(value="format",defaultValue="XML") org.ehrbase.openehr.sdk.response.dto.ehrscape.CompositionFormat format) -
update
@PutMapping(path="/{uid}") public org.springframework.http.ResponseEntity<ActionRestResponseData> update(@PathVariable("uid") String compositionUid, @RequestParam(value="format",defaultValue="XML") org.ehrbase.openehr.sdk.response.dto.ehrscape.CompositionFormat format, @RequestParam(value="templateId",required=false) String templateId, @RequestBody String content) -
delete
@DeleteMapping(path="/{uid}") public org.springframework.http.ResponseEntity<ActionRestResponseData> delete(@PathVariable("uid") String compositionUid)
-