Skip to main content

HS.FHIRServer.ServiceUpgrade

abstract class HS.FHIRServer.ServiceUpgrade

Method Inventory

Parameters

parameter CVGLOBAL = ^HS.FHIRServer("admin", "ConfigVersion");
parameter ConfigVersion = 7;
parameter INSTGLOBAL = ^HS.FHIRServer("admin", "instance");

Methods

classmethod AddRolesToCSPApp(ByRef pLogFile As %File, pCSPApp As %String, pRolesToAdd As %List, pMatchRole As %String = "")
classmethod AddRolesToCSPAppsV4(ByRef pLogFile As %File)
Add %HS_ImpersonateUser to all FHIR endpoint CSP apps in Foundation namespaces, to allow for changing FHIR request Username and Roles based on access token contents. ODS does not need to be able to change these items, due to how ODS processes FHIR requests with access tokens.
classmethod CSPAppExists(pCSPApp, ByRef pAppObj, ByRef pSC) as %Boolean
classmethod CompleteV3Upgrade(ByRef pLogFile As %File, repoMgr As HS.FHIRServer.API.RepoManager, instance As HS.FHIRServer.ServiceInstance, mdsKey As %String)
classmethod FindPropDef(classDef As %Dictionary.ClassDefinition, fieldName As %String)
classmethod FlagBySearchColumnQuery(ByRef pLogFile As %File, pCondition As %String) as %List
Upgrade helper method which identifies search columns that meet a specified criteria and calls the API which flags them to be reindexed. Will search across all active repositories unless otherwise specified. @Arguments pLogFile (optional) Installer log file to write to pCondition Valid SQL expression to restrict a search on HS_FHIRServer_Storage_Json.SearchColumn Eg. "Datatype = 'HumanName' or DataType = 'Address"
classmethod InitializeNamespaceConfig()
classmethod MDSKeyToPackageList(ByRef pLogFile As %File, mdsKey As %String) as %List
classmethod RebuildCapabilityStatements()
Rebuild the CapabilityStatement for all non-Decomissioned endpoints. A fail of any rebuild should not fail all of UpgradeNamespace().
classmethod RecompileRsrcV4(ByRef pLogFile As %File)
classmethod ReindexPeriodV6(ByRef pLogFile As %File)
Many index values for Period properties were improperly derived by simply adding a trailing "Z" on partial values that had been filled out to a timestamp, rather than applying ConvertToUTC() on the filled out value. The relevant logic in IndexPeriod() is now corrected. Period properties therefore need to be re-indexed.
classmethod ReindexRsrcBySuper(ByRef pLogFile As %File, pRsrcSuperClass As %String = "", pIndicesList As %List)
[Re]build specified indices in FHIRServer resource table classes that extend the specified resource table super class.
classmethod ReindexRsrcV4(ByRef pLogFile As %File)
classmethod ReindexSingletonIdentifiersV6(ByRef pLogFile As %File)
Singleton identifiers were improperly projected as a string (rather than "list of string"), even though we need to store multiple values in each entry. Updating the existing search table property will cause compatibility problems on search/update for any pre-existing data (IRIS will expect it as a list, but it was stored as a string). Instead, create a new property where these singleton identifiers can be expressed as lists. The columns will be marked as needing re-indexing, and that's when the values will be populated.
classmethod ReindexV4(ByRef pLogFile As %File)
classmethod ReindexV5(ByRef pLogFile As %File)
classmethod UpgradeNamespace(ByRef pLogFile As %File) as %Status
FeedbackOpens in a new tab