Skip to main content

HS.FHIRServer.Util.ChangeIdFunction

class HS.FHIRServer.Util.ChangeIdFunction

This is a tool to change the database strategy for assigning Ids. The original FHIR implementation used the default (increment) but with multiple jobs adding data simultaneously the better strategy is "sequence"

Method Inventory

Methods

classmethod UpdateService(serviceId As %Integer, newFunction As %String = "sequence")
Update the IdFunction storage setting in all tables for a single FHIR Service.
serviceId: The Id of the service to update
idFunction: The function to set for each table (default = "sequence")
classmethod UpdateServices(idFunction As %String = "sequence", serviceIdList As %String = "")
Update the IdFunction storage setting in all tables in one or more FHIR Service.
idFunction: The function to set for each table (default = "sequence")
serviceIdList: a comma separated string containing the service Id's to update. (default is to update all services in the namespace)
classmethod UpdateTableClass(className As %String, newFunction As %String = "sequence")
Update the IdFunction storage setting in a single %Persistent class
classname: The class to update
idFunction: The function to set for each table (default = "sequence")
The specified class's storage definition will be updated and the class re-compiled
FeedbackOpens in a new tab