HS.FHIR.vCommon.Repository.BundleProcessor
deprecated abstract class HS.FHIR.vCommon.Repository.BundleProcessor
THIS CLASS IS DEPRECATED Use HS.FHIRServer.* instead.Method Inventory
- ConvertReferences()
- GenerateResourceIdForTrans()
- GetBundleInfoJSON()
- GetBundleInfoXML()
- GetReferenceToUpdate()
- PrepareBundleJSON()
- PrepareBundleXML()
- ProcessBatchBundle()
- ProcessBundle()
- ProcessTransBundleCommon()
- ProcessTransactionBundle()
- UpdateReferences()
- UpdateRefsAndIdInPayload()
Parameters
parameter BundleValidatorClass;
Class that provides the FHIR Bundle resource validation logic for this Bundle processing
class. The class is intended to handle Bundle-specific validation, i.e., the rules
applying to transaction, batch, document, and message Bundles.
parameter StorageClass;
The class to use for handling direct interaction with the desired data and storage model.
Methods
deprecated classmethod ConvertReferences(pRequest As HS.Message.FHIR.Request, ByRef pResponse As HS.Message.FHIR.Response, ByRef pErrors As HS.Types.FHIR.Errors, pGlobalName As %String = "") as %Status
THIS CLASS IS DEPRECATED Use HS.FHIRServer.* instead.
ConvertReferences is meant to be called only for transaction Bundles (not for batch Bundles). The default implementation of this method finds fullUrls or resource ids that are UUIDs and for each of those generates a server-assigned resource id and updates the Bundle entry metadata.
ConvertReferences is meant to be called only for transaction Bundles (not for batch Bundles). The default implementation of this method finds fullUrls or resource ids that are UUIDs and for each of those generates a server-assigned resource id and updates the Bundle entry metadata.
deprecated classmethod GenerateResourceIdForTrans(pResourceType As %String, pResourceStreamId As %String, pSession As %String = "") as %String
THIS CLASS IS DEPRECATED Use HS.FHIRServer.* instead.
GenerateResourceIdForTrans returns a resource id, or a comma-delimited list of resource ids, by first checking for existing resources that match the current one, and if none, then generating a new resource id.
GenerateResourceIdForTrans returns a resource id, or a comma-delimited list of resource ids, by first checking for existing resources that match the current one, and if none, then generating a new resource id.
deprecated classmethod GetBundleInfoJSON(pBundleStream As %Stream.Object, pGlobalName As %String)
THIS CLASS IS DEPRECATED Use HS.FHIRServer.* instead.
GetBundleInfoJSON parses the specified FHIR Bundle stream and stores information about it in a global, whose name is indicated by the pGlobalName input variable.
GetBundleInfoJSON parses the specified FHIR Bundle stream and stores information about it in a global, whose name is indicated by the pGlobalName input variable.
deprecated classmethod GetBundleInfoXML(pBundleStream As %Stream.Object, pGlobalName As %String)
THIS CLASS IS DEPRECATED Use HS.FHIRServer.* instead.
GetBundleInfoXML parses the specified FHIR Bundle stream and stores information about it in a global, whose name is indicated by the pGlobalName input variable.
GetBundleInfoXML parses the specified FHIR Bundle stream and stores information about it in a global, whose name is indicated by the pGlobalName input variable.
deprecated classmethod GetReferenceToUpdate(pResourceType As %String, pResourceId As %String, pFullUrl As %String, pEntryMethod As %String, pEntryUrl As %String) as %String
THIS CLASS IS DEPRECATED Use HS.FHIRServer.* instead.
GetReferenceToUpdate checks the Bundle entry fullUrl, resource id, and entry request url to see if any indicate a UUID, which implies that the url or id is a placeholder, and needs to be updated to a resource id managed by this repository server. The default logic is to use the first found of: 1. fullUrl that is a UUID with the "urn:uuid:" prefix (e.g., "urn:uuid:e12edae2-8892-11e8-bce1-7831c1b7edac"). 2. fullUrl that is the resource type plus a UUID without the prefix (e.g., "Encounter/e12edae2-8892-11e8-bce1-7831c1b7edac"). 3. resource id that is a UUID without the prefix (e.g., "e12edae2-8892-11e8-bce1-7831c1b7edac"). 4. entry request url that is a UUID with the prefix (e.g., "urn:uuid:e12edae2-8892-11e8-bce1-7831c1b7edac"). 5. entry request url that is the resource type plus a UUID without the prefix (e.g., "Encounter/e12edae2-8892-11e8-bce1-7831c1b7edac").
GetReferenceToUpdate checks the Bundle entry fullUrl, resource id, and entry request url to see if any indicate a UUID, which implies that the url or id is a placeholder, and needs to be updated to a resource id managed by this repository server. The default logic is to use the first found of: 1. fullUrl that is a UUID with the "urn:uuid:" prefix (e.g., "urn:uuid:e12edae2-8892-11e8-bce1-7831c1b7edac"). 2. fullUrl that is the resource type plus a UUID without the prefix (e.g., "Encounter/e12edae2-8892-11e8-bce1-7831c1b7edac"). 3. resource id that is a UUID without the prefix (e.g., "e12edae2-8892-11e8-bce1-7831c1b7edac"). 4. entry request url that is a UUID with the prefix (e.g., "urn:uuid:e12edae2-8892-11e8-bce1-7831c1b7edac"). 5. entry request url that is the resource type plus a UUID without the prefix (e.g., "Encounter/e12edae2-8892-11e8-bce1-7831c1b7edac").
deprecated classmethod PrepareBundleJSON(pRequest As HS.Message.FHIR.Request, ByRef pResponse As HS.Message.FHIR.Response, ByRef pErrors As HS.Types.FHIR.Errors, pGlobalName As %String = "") as %Status
THIS CLASS IS DEPRECATED Use HS.FHIRServer.* instead.
PrepareBundleJSON extracts information about the Bundle and its entries from the JSON Bundle stream, validates Bundle-specific requirements, and for transaction Bundles updates resource references and resource ids as needed.
PrepareBundleJSON extracts information about the Bundle and its entries from the JSON Bundle stream, validates Bundle-specific requirements, and for transaction Bundles updates resource references and resource ids as needed.
deprecated classmethod PrepareBundleXML(pRequest As HS.Message.FHIR.Request, ByRef pResponse As HS.Message.FHIR.Response, ByRef pErrors As HS.Types.FHIR.Errors, pGlobalName As %String = "") as %Status
THIS CLASS IS DEPRECATED Use HS.FHIRServer.* instead.
PrepareBundleJSON extracts information about the Bundle and its entries from the XML Bundle stream, validates Bundle-specific requirements, and for transaction Bundles updates resource references and resource ids as needed.
PrepareBundleJSON extracts information about the Bundle and its entries from the XML Bundle stream, validates Bundle-specific requirements, and for transaction Bundles updates resource references and resource ids as needed.
deprecated classmethod ProcessBatchBundle(pRequest As HS.Message.FHIR.Request, ByRef pResponse As HS.Message.FHIR.Response, pRepositoryOperations, pGlobalName As %String) as %Status
THIS CLASS IS DEPRECATED Use HS.FHIRServer.* instead.
ProcessBatchBundle processes a batch Bundle according to the FHIR specification at:
http://hl7.org/fhir/DSTU2/http.html#transaction
http://hl7.org/fhir/STU3/http.html#transaction
Inputs:
pRequest : FHIR request message.
pRepositoryOperations : This method calls back to the resource repository business
operation that called this method. pRepositoryOperations is
the ORef to the business operation.
pGlobalName : If the calling method has stored Bundle metadata in a global
(the default implementation of this class), then this is the
name of that global.
Output:
pResponse : FHIR response message.
ProcessBatchBundle processes a batch Bundle according to the FHIR specification at:
http://hl7.org/fhir/DSTU2/http.html#transaction
http://hl7.org/fhir/STU3/http.html#transaction
Inputs:
Output:
deprecated classmethod ProcessBundle(pRequest As HS.Message.FHIR.Request, ByRef pResponse As HS.Message.FHIR.Response, pRepositoryOperations) as %Status
THIS CLASS IS DEPRECATED Use HS.FHIRServer.* instead.
deprecated classmethod ProcessTransBundleCommon(pRequest As HS.Message.FHIR.Request, ByRef pResponse As HS.Message.FHIR.Response, pBundleType As %String, pRepositoryOperations, pGlobalName As %String) as %Status
THIS CLASS IS DEPRECATED Use HS.FHIRServer.* instead.
deprecated classmethod ProcessTransactionBundle(pRequest As HS.Message.FHIR.Request, ByRef pResponse As HS.Message.FHIR.Response, pRepositoryOperations, pGlobalName As %String) as %Status
THIS CLASS IS DEPRECATED Use HS.FHIRServer.* instead.
ProcessTransactionBundle processes a transaction Bundle according to the FHIR specification at:
http://hl7.org/fhir/DSTU2/http.html#transaction
http://hl7.org/fhir/STU3/http.html#transaction
Inputs:
pRequest : FHIR request message.
pRepositoryOperations : This method calls back to the resource repository business
operation that called this method. pRepositoryOperations is
the ORef to the business operation.
pGlobalName : If the calling method has stored Bundle metadata in a global
(the default implementation of this class), then this is the
name of that global.
Output:
pResponse : FHIR response message.
ProcessTransactionBundle processes a transaction Bundle according to the FHIR specification at:
http://hl7.org/fhir/DSTU2/http.html#transaction
http://hl7.org/fhir/STU3/http.html#transaction
Inputs:
Output:
deprecated classmethod UpdateReferences(pRequest As HS.Message.FHIR.Request, ByRef pResponse As HS.Message.FHIR.Response, ByRef pErrors As HS.Types.FHIR.Errors, pGlobalName As %String = "") as %Status
THIS CLASS IS DEPRECATED Use HS.FHIRServer.* instead.
deprecated classmethod UpdateRefsAndIdInPayload(pContentType As %String, pResourceType As %String, pStreamIn As %Stream.Object, pOldResourceId As %String, pNewResourceId As %String, pStreamOut As %Stream.Object, pGlobalName As %String) as %Status
THIS CLASS IS DEPRECATED Use HS.FHIRServer.* instead.
UpdateRefsAndIdInPayload parses a FHIR resource stream, producing a new resource stream with resource reference values and the resource id updated as indicated by the pOldResourceId and pNewResourceId, and the information stored in the "ReferencesByReference" sub-node of the global structure specified by pGlobalName.
UpdateRefsAndIdInPayload parses a FHIR resource stream, producing a new resource stream with resource reference values and the resource id updated as indicated by the pOldResourceId and pNewResourceId, and the information stored in the "ReferencesByReference" sub-node of the global structure specified by pGlobalName.