Package ch.ahdis.matchbox.providers
Class BundleResourceProvider
java.lang.Object
ch.ahdis.matchbox.providers.AbstractMatchboxResourceProvider
ch.ahdis.matchbox.providers.BundleResourceProvider
- All Implemented Interfaces:
ca.uhn.fhir.rest.server.IResourceProvider
-
Field Summary
Fields inherited from class ch.ahdis.matchbox.providers.AbstractMatchboxResourceProvider
fhirVersion, r4bClass, r4Class, r5Class -
Constructor Summary
ConstructorsConstructorDescriptionBundleResourceProvider(MatchboxFhirVersion fhirVersion, ca.uhn.fhir.jpa.dao.data.MbInstalledStructureDefinitionRepository installedStructureDefinitionRepository, ca.uhn.fhir.context.FhirVersionEnum serverFhirVersion) -
Method Summary
Modifier and TypeMethodDescriptionvoidgetProfiles(jakarta.servlet.http.HttpServletRequest theServletRequest, jakarta.servlet.http.HttpServletResponse theServletResponse) An operation that takes a Bundle resource (of type document), and returns a list of potential StructureDefinition profiles for it.org.hl7.fhir.instance.model.api.IBaseResourceA debug operation to list all the StructureDefinitions for document Bundles that are identifiable from their Composition (in particular the type and category codes).Methods inherited from class ch.ahdis.matchbox.providers.AbstractMatchboxResourceProvider
getResourceType
-
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).
-