Class AdminEhrController


  • @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 Detail

      • AdminEhrController

        @Autowired
        public AdminEhrController​(EhrService ehrService)
    • Method Detail

      • updateEhr

        @PutMapping(path="/{ehr_id}",
                    consumes={"application/json","application/xml"})
        public org.springframework.http.ResponseEntity<org.ehrbase.response.openehr.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.response.openehr.admin.AdminDeleteResponseData> deleteEhr​(@PathVariable("ehr_id")
                                                                                                                             String ehrId)