Class BundleResourceProvider

java.lang.Object
ch.ahdis.matchbox.providers.AbstractMatchboxResourceProvider
ch.ahdis.matchbox.providers.BundleResourceProvider
All Implemented Interfaces:
ca.uhn.fhir.rest.server.IResourceProvider

public class BundleResourceProvider extends AbstractMatchboxResourceProvider
  • Constructor Details

    • BundleResourceProvider

      public BundleResourceProvider(MatchboxFhirVersion fhirVersion, ca.uhn.fhir.jpa.dao.data.MbInstalledStructureDefinitionRepository installedStructureDefinitionRepository, @Value("${hapi.fhir.fhir_version}") ca.uhn.fhir.context.FhirVersionEnum serverFhirVersion)
  • Method Details

    • getProfiles

      public void getProfiles(jakarta.servlet.http.HttpServletRequest theServletRequest, jakarta.servlet.http.HttpServletResponse theServletResponse) throws IOException
      An operation that takes a Bundle resource (of type document), and returns a list of potential StructureDefinition profiles for it. It does so by matching the Composition type and category codes to the installed StructureDefinitions, running a simple comparison of fixed patterns in the Composition definition.
      Throws:
      IOException
    • listRecognizableDocuments

      public org.hl7.fhir.instance.model.api.IBaseResource listRecognizableDocuments()
      A debug operation to list all the StructureDefinitions for document Bundles that are identifiable from their Composition (in particular the type and category codes).