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
  • Constructor Details

    • OpenehrEhrStatusController

      public OpenehrEhrStatusController(EhrService ehrService)
  • 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:
      getEhrStatusVersionByTime in interface EhrStatusApiSpecification
    • 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:
      getEhrStatusByVersionId in interface EhrStatusApiSpecification
    • 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:
      updateEhrStatus in interface EhrStatusApiSpecification