Class ServerCapabilityStatementProvider

java.lang.Object
ca.uhn.fhir.rest.server.provider.ServerCapabilityStatementProvider
All Implemented Interfaces:
IServerConformanceProvider<org.hl7.fhir.instance.model.api.IBaseConformance>

public class ServerCapabilityStatementProvider extends Object implements IServerConformanceProvider<org.hl7.fhir.instance.model.api.IBaseConformance>
Server FHIR Provider which serves the conformance statement for a RESTful server implementation

This class is version independent, but will only work on servers supporting FHIR R4+ (as this was the first FHIR release where CapabilityStatement was a normative resource)

  • Field Details

  • Constructor Details

  • Method Details

    • getPublisher

      public String getPublisher()
      Gets the value of the "publisher" that will be placed in the generated conformance statement. As this is a mandatory element, the value should not be null (although this is not enforced). The value defaults to "Not provided" but may be set to null, which will cause this element to be omitted.
    • setPublisher

      public void setPublisher(String thePublisher)
      Sets the value of the "publisher" that will be placed in the generated conformance statement. As this is a mandatory element, the value should not be null (although this is not enforced). The value defaults to "Not provided" but may be set to null, which will cause this element to be omitted.
    • getServerConformance

      public org.hl7.fhir.instance.model.api.IBaseConformance getServerConformance(jakarta.servlet.http.HttpServletRequest theRequest, RequestDetails theRequestDetails)
      Description copied from interface: IServerConformanceProvider
      Actually create and return the conformance statement See the class documentation for an important note if you are extending this class
      Specified by:
      getServerConformance in interface IServerConformanceProvider<org.hl7.fhir.instance.model.api.IBaseConformance>
    • searchParamEnabled

      protected boolean searchParamEnabled(String theSearchParam)
      Parameters:
      theSearchParam -
      Returns:
      true if theSearchParam is enabled on this server
    • postProcess

      protected void postProcess(ca.uhn.fhir.util.FhirTerser theTerser, org.hl7.fhir.instance.model.api.IBaseConformance theCapabilityStatement)
      Subclasses may override
    • postProcessRest

      protected void postProcessRest(ca.uhn.fhir.util.FhirTerser theTerser, org.hl7.fhir.instance.model.api.IBase theRest)
      Subclasses may override
    • postProcessRestResource

      protected void postProcessRestResource(ca.uhn.fhir.util.FhirTerser theTerser, org.hl7.fhir.instance.model.api.IBase theResource, String theResourceName)
      Subclasses may override
    • getOperationDefinitionPrefix

      protected String getOperationDefinitionPrefix(RequestDetails theRequestDetails)
    • readOperationDefinition

      public org.hl7.fhir.instance.model.api.IBaseResource readOperationDefinition(org.hl7.fhir.instance.model.api.IIdType theId, RequestDetails theRequestDetails)
      Specified by:
      readOperationDefinition in interface IServerConformanceProvider<org.hl7.fhir.instance.model.api.IBaseConformance>
    • setRestfulServer

      public void setRestfulServer(RestfulServer theRestfulServer)
      Description copied from interface: IServerConformanceProvider
      This setter is needed in implementation classes (along with a no-arg constructor) to avoid reference cycles in the Spring wiring of a RestfulServer instance.
      Specified by:
      setRestfulServer in interface IServerConformanceProvider<org.hl7.fhir.instance.model.api.IBaseConformance>
      Parameters:
      theRestfulServer -
    • setRestResourceRevIncludesEnabled

      public void setRestResourceRevIncludesEnabled(boolean theRestResourceRevIncludesEnabled)