Class AdminEhrController

java.lang.Object
org.ehrbase.rest.BaseController
org.ehrbase.rest.admin.AdminEhrController

@ConditionalOnMissingBean(name="primaryadminehrcontroller") @ConditionalOnProperty(prefix="admin-api", name="active") @RestController @RequestMapping(path="${admin-api.context-path:/rest/admin}/ehr", produces={"application/json","application/xml"}) public class AdminEhrController extends BaseController
Admin API controller for EHR related endpoints. Provides methods to update and delete EHRs physically in the DB.
  • Constructor Details

    • AdminEhrController

      @Autowired public AdminEhrController(EhrService ehrService)
  • Method Details

    • updateEhr

      @PutMapping(path="/{ehr_id}", consumes={"application/json","application/xml"}) public org.springframework.http.ResponseEntity<org.ehrbase.openehr.sdk.response.dto.admin.AdminUpdateResponseData> updateEhr(@RequestHeader(value="Accept",required=false) String accept, @PathVariable("ehr_id") String ehrId)
    • deleteEhr

      @DeleteMapping(path="/{ehr_id}") public org.springframework.http.ResponseEntity<org.ehrbase.openehr.sdk.response.dto.admin.AdminDeleteResponseData> deleteEhr(@PathVariable("ehr_id") String ehrId)