HS.BulkFHIR.Installer
class HS.BulkFHIR.Installer extends HS.BulkFHIR.Util.Security
Method Inventory
- AddSQLProceduresToRole()
- CSPAppExists()
- CleanupOutstandingEndpoints()
- Configure()
- ConfigureConfigElseSaveInactive()
- Export()
- GetBaseCapabilityStatement()
- GetResourceServerMetadata()
- SaveConfigWithoutConfigure()
- SetHttpTimeoutDefault()
- ValidateConfigure()
Methods
classmethod AddSQLProceduresToRole(pNamespace As %String, pRole As %String, pSQLProceduresList As %List)
classmethod CSPAppExists(pCSPApp, ByRef pAppObj, ByRef pSC) as %Boolean
classmethod CleanupOutstandingEndpoints()
Called by ExpireTask which runs hourly to cleanup any endpoints from
^HS.BFC.AppsToDelete(type,endpoint)=queued time by checking to see if the endpoint is stil in use
classmethod Configure(pBFCconfig As HS.BulkFHIR.API.Data.Config, pPermitNonResponsiveTargetFHIRServer As %Boolean = 0, Output pCallbackStatus As %Status)
@API
Configures/re-configures a Bulk FHIR Coordinator
in the current namespace
@Input pBFCconfig configuration object containing the settings, adapters, and adapter configurations needed to set up a Bulk FHIR Coordinator. May either be an instance of Data.Config, or a %DynamicObject
@Input pPermitInactiveTargetFHIRServer ... supports upgrade cases where the target FHIR server may not be active
@Output pCallbackStatus %Status from the endpoint lifecycle callback. $$$OK on success, when no callback is registered, or when no event was fired. An error status here is informational — the endpoint was configured successfully regardless.
Fires ACTIONCREATED on HS.BulkFHIR.API.Data.EndpointEvent when no configuration existed for the endpoint URL, or ACTIONUPDATED when one did (active or inactive), with the configuration before and after the save as its PreviousEndpointData and EndpointData.
@Input pBFCconfig configuration object containing the settings, adapters, and adapter configurations needed to set up a Bulk FHIR Coordinator. May either be an instance of Data.Config, or a %DynamicObject
@Input pPermitInactiveTargetFHIRServer ... supports upgrade cases where the target FHIR server may not be active
@Output pCallbackStatus %Status from the endpoint lifecycle callback. $$$OK on success, when no callback is registered, or when no event was fired. An error status here is informational — the endpoint was configured successfully regardless.
Fires ACTIONCREATED on HS.BulkFHIR.API.Data.EndpointEvent when no configuration existed for the endpoint URL, or ACTIONUPDATED when one did (active or inactive), with the configuration before and after the save as its PreviousEndpointData and EndpointData.
classmethod ConfigureConfigElseSaveInactive(pBFCConfig As %DynamicObject, Output pSavedAsInactive As %Boolean, Output pCallbackStatus As %Status) as %Status
Given @Input pBFCConfig
if the input config is NOT inactive (i.e. active), this method will first attempt to save & fully implement the config, with permissive flags (otherwise mostly also validating the config)
if this attempt fails, then will fall back to save without implementing, which will result in the config being marked as inactive & the @Output pSavedAsInactive being set to true
if the input config IS inactive, this method will just save the config without implementation
Returns @Output status whether the save was successful, and param Output pSavedAsInactive whether the save was inactive
@Output pCallbackStatus %Status from the endpoint lifecycle callback fired by the Configure() or SaveConfigWithoutConfigure() call that performed the save; when a failed Configure() falls back to the inactive save, this is the fallback's status. $$$OK on success, when no callback is registered, or when the save failed. An error status here is informational — the configuration was saved successfully regardless.
Fires whatever the Configure() or SaveConfigWithoutConfigure() it delegates to fires.
@Output pCallbackStatus %Status from the endpoint lifecycle callback fired by the Configure() or SaveConfigWithoutConfigure() call that performed the save; when a failed Configure() falls back to the inactive save, this is the fallback's status. $$$OK on success, when no callback is registered, or when the save failed. An error status here is informational — the configuration was saved successfully regardless.
Fires whatever the Configure() or SaveConfigWithoutConfigure() it delegates to fires.
classmethod Export(pBFCurl As %String) as HS.BulkFHIR.API.Data.Config
@API
Returns the configuration definition currently in use for the BFC
classmethod GetBaseCapabilityStatement(pBFCConfig As HS.BulkFHIR.API.Data.Config) as %DynamicObject
classmethod GetResourceServerMetadata(pURL As %String, Output pMetadata As %DynamicObject, pSSLConfiguration As %String = "") as %String
classmethod SaveConfigWithoutConfigure(pBFCConfig As %DynamicObject, Output pCallbackStatus As %Status) as %Status
to save a configuration w/o implementing it, thereby also marking it as "inactive"
Will disable the config from being able to export
@Input pBFCConfig The configuration document to store; it is marked inactive before being saved.
@Output pCallbackStatus %Status from the endpoint lifecycle callback. $$$OK on success, when no callback is registered, or when the save failed and no event was fired. An error status here is informational — the configuration was saved successfully regardless.
Fires ACTIONCREATED on HS.BulkFHIR.API.Data.EndpointEvent when no configuration existed for the endpoint URL, or ACTIONUPDATED when one did (active or inactive), with the configuration before and after the save as its PreviousEndpointData and EndpointData.
@Input pBFCConfig The configuration document to store; it is marked inactive before being saved.
@Output pCallbackStatus %Status from the endpoint lifecycle callback. $$$OK on success, when no callback is registered, or when the save failed and no event was fired. An error status here is informational — the configuration was saved successfully regardless.
Fires ACTIONCREATED on HS.BulkFHIR.API.Data.EndpointEvent when no configuration existed for the endpoint URL, or ACTIONUPDATED when one did (active or inactive), with the configuration before and after the save as its PreviousEndpointData and EndpointData.
Set the local namespace default for %Net.HttpRequest Timeout.
Must explicitly state to override existing value if any.
classmethod ValidateConfigure(config As %RegisteredObject, requiredClassname As %String)
Logic shared across all Configure methods to validate the config object and ensure
the configuration changes should be allowed to take place.