Package org.ehrbase.rest.openehr
Class OpenehrVersionedEhrStatusController
java.lang.Object
org.ehrbase.rest.BaseController
org.ehrbase.rest.openehr.OpenehrVersionedEhrStatusController
- All Implemented Interfaces:
VersionedEhrStatusApiSpecification
@ConditionalOnMissingBean(name="primaryopenehrversionedehrstatuscontroller")
@RestController
@RequestMapping(path="${openehr-api.context-path:/rest/openehr}/v1/ehr/{ehr_id}/versioned_ehr_status",
produces={"application/json","application/xml"})
public class OpenehrVersionedEhrStatusController
extends BaseController
implements VersionedEhrStatusApiSpecification
Controller for /ehr/{ehrId}/versioned_ehr_status resource of openEHR REST API
-
Field Summary
Fields inherited from class org.ehrbase.rest.BaseController
ACCEPT, ADMIN_API_CONTEXT_PATH, API_CONTEXT_PATH, API_CONTEXT_PATH_WITH_VERSION, apiContextPathWithVersion, COMPOSITION, CONTENT_TYPE, CONTRIBUTION, DEFINITION, DIRECTORY, EHR, EHR_STATUS, ETAG, IF_MATCH, LAST_MODIFIED, LOCATION, OPENEHR_AUDIT_DETAILS, OPENEHR_VERSION, PREFER, QUERY, REQ_ACCEPT, REQ_CONTENT_TYPE, RESP_CONTENT_TYPE_DESC, RETURN_MINIMAL, RETURN_REPRESENTATION, TEMPLATE, VERSIONED_COMPOSITION, VERSIONED_EHR_STATUS -
Constructor Summary
ConstructorsConstructorDescriptionOpenehrVersionedEhrStatusController(EhrService ehrService, ContributionService contributionService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<VersionedEhrStatusDto> retrieveVersionedEhrStatusByEhr(String ehrIdString) org.springframework.http.ResponseEntity<org.ehrbase.openehr.sdk.response.dto.RevisionHistoryResponseData> retrieveVersionedEhrStatusRevisionHistoryByEhr(String ehrIdString) org.springframework.http.ResponseEntity<org.ehrbase.openehr.sdk.response.dto.OriginalVersionResponseData<EhrStatusDto>> retrieveVersionOfEhrStatusByTime(String ehrIdString, String versionAtTime) org.springframework.http.ResponseEntity<org.ehrbase.openehr.sdk.response.dto.OriginalVersionResponseData<EhrStatusDto>> retrieveVersionOfEhrStatusByVersionUid(String ehrIdString, String versionUid) Methods inherited from class org.ehrbase.rest.BaseController
createLocationUri, decodeVersionAtTime, extractCompositionRepresentation, extractVersionedObjectUidFromVersionUid, extractVersionFromVersionUid, getCompositionVersionedObjectUidString, getContextPath, getContributionVersionedObjectUidString, getEhrUuid, parseUUID, resolveContentType, resolveContentType
-
Constructor Details
-
OpenehrVersionedEhrStatusController
public OpenehrVersionedEhrStatusController(EhrService ehrService, ContributionService contributionService)
-
-
Method Details
-
retrieveVersionedEhrStatusByEhr
@GetMapping public org.springframework.http.ResponseEntity<VersionedEhrStatusDto> retrieveVersionedEhrStatusByEhr(@PathVariable("ehr_id") String ehrIdString) - Specified by:
retrieveVersionedEhrStatusByEhrin interfaceVersionedEhrStatusApiSpecification
-
retrieveVersionedEhrStatusRevisionHistoryByEhr
@GetMapping(path="/revision_history") public org.springframework.http.ResponseEntity<org.ehrbase.openehr.sdk.response.dto.RevisionHistoryResponseData> retrieveVersionedEhrStatusRevisionHistoryByEhr(@PathVariable("ehr_id") String ehrIdString) - Specified by:
retrieveVersionedEhrStatusRevisionHistoryByEhrin interfaceVersionedEhrStatusApiSpecification
-
retrieveVersionOfEhrStatusByTime
@GetMapping(path="/version") public org.springframework.http.ResponseEntity<org.ehrbase.openehr.sdk.response.dto.OriginalVersionResponseData<EhrStatusDto>> retrieveVersionOfEhrStatusByTime(@PathVariable("ehr_id") String ehrIdString, @RequestParam(value="version_at_time",required=false) String versionAtTime) - Specified by:
retrieveVersionOfEhrStatusByTimein interfaceVersionedEhrStatusApiSpecification
-
retrieveVersionOfEhrStatusByVersionUid
@GetMapping(path="/version/{version_uid}") public org.springframework.http.ResponseEntity<org.ehrbase.openehr.sdk.response.dto.OriginalVersionResponseData<EhrStatusDto>> retrieveVersionOfEhrStatusByVersionUid(@PathVariable("ehr_id") String ehrIdString, @PathVariable("version_uid") String versionUid) - Specified by:
retrieveVersionOfEhrStatusByVersionUidin interfaceVersionedEhrStatusApiSpecification
-