Package org.ehrbase.rest.openehr
Class OpenehrEhrStatusController
java.lang.Object
org.ehrbase.rest.BaseController
org.ehrbase.rest.openehr.OpenehrEhrStatusController
- All Implemented Interfaces:
EhrStatusApiSpecification
@ConditionalOnMissingBean(name="primaryopenehrehrstatuscontroller")
@RestController
@RequestMapping(path="${openehr-api.context-path:/rest/openehr}/v1/ehr/{ehr_id}/ehr_status")
public class OpenehrEhrStatusController
extends BaseController
implements EhrStatusApiSpecification
Controller for /ehr/{ehrId}/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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<EhrStatusDto> getEhrStatusByVersionId(UUID ehrId, String versionUid) org.springframework.http.ResponseEntity<EhrStatusDto> getEhrStatusVersionByTime(UUID ehrId, String versionAtTime) org.springframework.http.ResponseEntity<EhrStatusDto> updateEhrStatus(UUID ehrId, String versionUid, String prefer, EhrStatusDto ehrStatusDto) Methods inherited from class org.ehrbase.rest.BaseController
createLocationUri, decodeVersionAtTime, extractCompositionRepresentation, extractVersionedObjectUidFromVersionUid, extractVersionFromVersionUid, getCompositionVersionedObjectUidString, getContextPath, getContributionVersionedObjectUidString, getEhrUuid, parseUUID, resolveContentType, resolveContentType
-
Constructor Details
-
OpenehrEhrStatusController
-
-
Method Details
-
getEhrStatusVersionByTime
@GetMapping(produces={"application/json","application/xml"}) public org.springframework.http.ResponseEntity<EhrStatusDto> getEhrStatusVersionByTime(@PathVariable(name="ehr_id") UUID ehrId, @RequestParam(name="version_at_time",required=false) String versionAtTime) - Specified by:
getEhrStatusVersionByTimein interfaceEhrStatusApiSpecification
-
getEhrStatusByVersionId
@GetMapping(path="/{version_uid}", produces={"application/json","application/xml"}) public org.springframework.http.ResponseEntity<EhrStatusDto> getEhrStatusByVersionId(@PathVariable(name="ehr_id") UUID ehrId, @PathVariable(name="version_uid") String versionUid) - Specified by:
getEhrStatusByVersionIdin interfaceEhrStatusApiSpecification
-
updateEhrStatus
@PutMapping(consumes={"application/json","application/xml"}, produces={"application/json","application/xml"}) public org.springframework.http.ResponseEntity<EhrStatusDto> updateEhrStatus(@PathVariable("ehr_id") UUID ehrId, @RequestHeader(name="If-Match") String versionUid, @RequestHeader(name="Prefer",required=false) String prefer, @RequestBody EhrStatusDto ehrStatusDto) - Specified by:
updateEhrStatusin interfaceEhrStatusApiSpecification
-