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, TEMPLATE -
Constructor Summary
ConstructorsConstructorDescriptionCompositionController(org.ehrbase.api.service.CompositionService compositionService, org.ehrbase.api.service.SystemService systemService) -
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) Deprecated, for removal: This API element is subject to removal in a future version.org.springframework.http.ResponseEntity<ActionRestResponseData> Deprecated, for removal: This API element is subject to removal in a future version.org.springframework.http.ResponseEntity<CompositionResponseData> getComposition(String compositionUid, org.ehrbase.openehr.sdk.response.dto.ehrscape.CompositionFormat format) Deprecated, for removal: This API element is subject to removal in a future version.org.springframework.http.ResponseEntity<ActionRestResponseData> update(String compositionUid, org.ehrbase.openehr.sdk.response.dto.ehrscape.CompositionFormat format, String templateId, String content) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.ehrbase.rest.ehrscape.controller.BaseController
createLocationUri, deprecationHeaders, getContextPath
-
Constructor Details
-
CompositionController
public CompositionController(org.ehrbase.api.service.CompositionService compositionService, org.ehrbase.api.service.SystemService systemService)
-
-
Method Details
-
createComposition
@PostMapping @Deprecated(since="2.0.0", forRemoval=true) 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) Deprecated, for removal: This API element is subject to removal in a future version. -
getComposition
@GetMapping(path="/{uid}") @Deprecated(since="2.0.0", forRemoval=true) 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) Deprecated, for removal: This API element is subject to removal in a future version. -
update
@PutMapping(path="/{uid}") @Deprecated(since="2.0.0", forRemoval=true) 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) Deprecated, for removal: This API element is subject to removal in a future version. -
delete
@DeleteMapping(path="/{uid}") @Deprecated(since="2.0.0", forRemoval=true) public org.springframework.http.ResponseEntity<ActionRestResponseData> delete(@PathVariable("uid") String compositionUid) Deprecated, for removal: This API element is subject to removal in a future version.
-