Class OpenehrContributionController
- java.lang.Object
-
- org.ehrbase.rest.openehr.controller.BaseController
-
- org.ehrbase.rest.openehr.controller.OpenehrContributionController
-
@RestController @RequestMapping(path="/rest/openehr/v1/ehr", produces={"application/json","application/xml"}) public class OpenehrContributionController extends BaseController
-
-
Constructor Summary
Constructors Constructor Description OpenehrContributionController(ContributionService contributionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntitycreateContribution(String openehrVersion, String openehrAuditDetails, String contentType, String accept, String prefer, String ehrIdString, String contribution)org.springframework.http.ResponseEntitygetContribution(String openehrVersion, String openehrAuditDetails, String accept, String ehrIdString, String contributionUidString)-
Methods inherited from class org.ehrbase.rest.openehr.controller.BaseController
add2MetaMap, createErrorResponse, encodePath, extractCompositionFormat, extractMediaType, extractVersionedObjectUidFromVersionUid, extractVersionFromVersionUid, getBaseEnvLinkURL, getCompositionVersionedObjectUidString, getContributionVersionedObjectUidString, getEhrUuid, restErrorHandler, restErrorHandler, restErrorHandler, restErrorHandler, restErrorHandler, restErrorHandler, restErrorHandler, restErrorHandler, restErrorHandler, restErrorHandler, restErrorHandler, restErrorHandler, restErrorHandler, restErrorHandler, restErrorHandler, restErrorHandler
-
-
-
-
Constructor Detail
-
OpenehrContributionController
@Autowired public OpenehrContributionController(ContributionService contributionService)
-
-
Method Detail
-
createContribution
@PostMapping(value="/{ehr_id}/contribution", consumes={"application/xml","application/json"}) @ResponseStatus(CREATED) public org.springframework.http.ResponseEntity createContribution(@RequestHeader(value="openEHR-VERSION",required=false) String openehrVersion, @RequestHeader(value="openEHR-AUDIT_DETAILS",required=false) String openehrAuditDetails, @RequestHeader("Content-Type") String contentType, @RequestHeader(value="Accept",required=false) String accept, @RequestHeader(value="PREFER",required=false) String prefer, @PathVariable("ehr_id") String ehrIdString, @RequestBody String contribution)
-
getContribution
@GetMapping("/{ehr_id}/contribution/{contribution_uid}") public org.springframework.http.ResponseEntity getContribution(@RequestHeader(value="openEHR-VERSION",required=false) String openehrVersion, @RequestHeader(value="openEHR-AUDIT_DETAILS",required=false) String openehrAuditDetails, @RequestHeader(value="Accept",required=false) String accept, @PathVariable("ehr_id") String ehrIdString, @PathVariable("contribution_uid") String contributionUidString)
-
-