Class AbstractResourceServiceJaxrs<R extends org.hl7.fhir.r4.model.Resource,S extends BasicResourceService<R>>

All Implemented Interfaces:
BasicService, BasicResourceService<R>, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
ActivityDefinitionServiceJaxrs, BinaryServiceJaxrs, BundleServiceJaxrs, CodeSystemServiceJaxrs, DocumentReferenceServiceJaxrs, EndpointServiceJaxrs, GroupServiceJaxrs, HealthcareServiceServiceJaxrs, LibraryServiceJaxrs, LocationServiceJaxrs, MeasureReportServiceJaxrs, MeasureServiceJaxrs, NamingSystemServiceJaxrs, OrganizationAffiliationServiceJaxrs, OrganizationServiceJaxrs, PatientServiceJaxrs, PractitionerRoleServiceJaxrs, PractitionerServiceJaxrs, ProvenanceServiceJaxrs, QuestionnaireResponseServiceJaxrs, QuestionnaireServiceJaxrs, ResearchStudyServiceJaxrs, StructureDefinitionServiceJaxrs, SubscriptionServiceJaxrs, TaskServiceJaxrs, ValueSetServiceJaxrs

public abstract class AbstractResourceServiceJaxrs<R extends org.hl7.fhir.r4.model.Resource,S extends BasicResourceService<R>> extends AbstractServiceJaxrs<S> implements BasicResourceService<R>, org.springframework.beans.factory.InitializingBean
  • Field Summary

    Fields inherited from class dev.dsf.fhir.webservice.base.AbstractDelegatingBasicService

    delegate

    Fields inherited from class dev.dsf.fhir.webservice.base.AbstractBasicService

    currentIdentityProvider
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.ws.rs.core.Response
    create(R resource, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers)
    standard and conditional create
    jakarta.ws.rs.core.Response
    delete(jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers)
    conditional delete
    jakarta.ws.rs.core.Response
    delete(String id, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers)
    standard delete
    jakarta.ws.rs.core.Response
    deletePermanently(String deletePath, String id, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers)
     
    jakarta.ws.rs.core.Response
    getValidateExisting(String validatePath, String id, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers)
     
    jakarta.ws.rs.core.Response
    getValidateNew(String validate, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers)
     
    jakarta.ws.rs.core.Response
    history(jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers)
     
    jakarta.ws.rs.core.Response
    history(String id, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers)
     
    jakarta.ws.rs.core.Response
    postValidateExisting(String validatePath, String id, org.hl7.fhir.r4.model.Parameters parameters, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers)
     
    jakarta.ws.rs.core.Response
    postValidateNew(String validate, org.hl7.fhir.r4.model.Parameters parameters, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers)
     
    jakarta.ws.rs.core.Response
    read(String id, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers)
    read by id
    jakarta.ws.rs.core.Response
    search(jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers)
    search by request parameter
    jakarta.ws.rs.core.Response
    update(String id, R resource, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers)
    standard update
    jakarta.ws.rs.core.Response
    update(R resource, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers)
    conditional update
    jakarta.ws.rs.core.Response
    vread(String id, long version, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers)
    read by id and version

    Methods inherited from class dev.dsf.fhir.webservice.jaxrs.AbstractServiceJaxrs

    afterPropertiesSet

    Methods inherited from class dev.dsf.fhir.webservice.base.AbstractDelegatingBasicService

    setCurrentIdentityProvider

    Methods inherited from class dev.dsf.fhir.webservice.base.AbstractBasicService

    getCurrentIdentity

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface dev.dsf.fhir.webservice.base.BasicService

    setCurrentIdentityProvider

    Methods inherited from interface org.springframework.beans.factory.InitializingBean

    afterPropertiesSet
  • Constructor Details

    • AbstractResourceServiceJaxrs

      public AbstractResourceServiceJaxrs(S delegate)
  • Method Details

    • create

      @POST @Consumes({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response create(R resource, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers)
      Description copied from interface: BasicResourceService
      standard and conditional create
      Specified by:
      create in interface BasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
      Parameters:
      resource - not null
      uri - not null
      headers - not null
      Returns:
      Response defined in https://www.hl7.org/fhir/http.html#create
    • read

      @GET @Path("/{id}") @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response read(@PathParam("id") String id, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers)
      Description copied from interface: BasicResourceService
      read by id
      Specified by:
      read in interface BasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
      Parameters:
      id - not null
      uri - not null
      headers - not null
      Returns:
      Response defined in https://www.hl7.org/fhir/http.html#read
    • vread

      @GET @Path("/{id}/_history/{version}") @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response vread(@PathParam("id") String id, @PathParam("version") long version, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers)
      Description copied from interface: BasicResourceService
      read by id and version
      Specified by:
      vread in interface BasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
      Parameters:
      id - not null
      version - >0
      uri - not null
      headers - not null
      Returns:
      Response defined in https://www.hl7.org/fhir/http.html#vread
    • history

      @GET @Path("/_history") @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response history(@Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers)
      Specified by:
      history in interface BasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
    • history

      @GET @Path("/{id}/_history") @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response history(@PathParam("id") String id, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers)
      Specified by:
      history in interface BasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
    • update

      @PUT @Path("/{id}") @Consumes({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response update(@PathParam("id") String id, R resource, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers)
      Description copied from interface: BasicResourceService
      standard update
      Specified by:
      update in interface BasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
      Parameters:
      id - not null
      resource - not null
      uri - not null
      headers - not null
      Returns:
      Response defined in https://www.hl7.org/fhir/http.html#update
    • update

      @PUT @Consumes({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response update(R resource, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers)
      Description copied from interface: BasicResourceService
      conditional update
      Specified by:
      update in interface BasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
      Parameters:
      resource - not null
      uri - not null
      headers - not null
      Returns:
      Response defined in https://www.hl7.org/fhir/http.html#update
    • delete

      @DELETE @Path("/{id}") @Consumes({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response delete(@PathParam("id") String id, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers)
      Description copied from interface: BasicResourceService
      standard delete
      Specified by:
      delete in interface BasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
      Parameters:
      id - not null
      uri - not null
      headers - not null
      Returns:
      Response defined in https://www.hl7.org/fhir/http.html#delete
    • delete

      @DELETE @Consumes({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response delete(@Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers)
      Description copied from interface: BasicResourceService
      conditional delete
      Specified by:
      delete in interface BasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
      Parameters:
      uri - not null
      headers - not null
      Returns:
      Response defined in https://www.hl7.org/fhir/http.html#delete
    • search

      @GET @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response search(@Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers)
      Description copied from interface: BasicResourceService
      search by request parameter
      Specified by:
      search in interface BasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
      Parameters:
      uri - not null
      headers - not null
      Returns:
      Response defined in https://www.hl7.org/fhir/http.html#search
    • postValidateNew

      @POST @Path("/{validate : [$]validate(/)?}") @Consumes({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response postValidateNew(@PathParam("validate") String validate, org.hl7.fhir.r4.model.Parameters parameters, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers)
      Specified by:
      postValidateNew in interface BasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
    • getValidateNew

      @GET @Path("/{validate : [$]validate(/)?}") @Consumes({"application/json+fhir","application/fhir+json","application/json","application/xml+fhir","application/fhir+xml","application/xml"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response getValidateNew(@PathParam("validate") String validate, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers)
      Specified by:
      getValidateNew in interface BasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
    • postValidateExisting

      @POST @Path("/{id}/{validate : [$]validate(/)?}") @Consumes({"application/json+fhir","application/fhir+json","application/json","application/xml+fhir","application/fhir+xml","application/xml"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response postValidateExisting(@PathParam("validate") String validatePath, @PathParam("id") String id, org.hl7.fhir.r4.model.Parameters parameters, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers)
      Specified by:
      postValidateExisting in interface BasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
    • getValidateExisting

      @GET @Path("/{id}/{validate : [$]validate(/)?}") @Consumes({"application/json+fhir","application/fhir+json","application/json","application/xml+fhir","application/fhir+xml","application/xml"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response getValidateExisting(@PathParam("validate") String validatePath, @PathParam("id") String id, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers)
      Specified by:
      getValidateExisting in interface BasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
    • deletePermanently

      @POST @Path("/{id}/{delete : [$]permanent-delete(/)?}") @Consumes({"application/json+fhir","application/fhir+json","application/json","application/xml+fhir","application/fhir+xml","application/xml"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response deletePermanently(@PathParam("delete") String deletePath, @PathParam("id") String id, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers)
      Specified by:
      deletePermanently in interface BasicResourceService<R extends org.hl7.fhir.r4.model.Resource>