Skip to main content

HS.HC.FHIRSQL.Server.FHIRRepository

class HS.HC.FHIRSQL.Server.FHIRRepository

Method Inventory

Methods

classmethod CleanPackage(pPackageName As %String)
Remove a PackageName in a namespace
classmethod CopyMethod(pMethodName As %String, pClassObject As %Dictionary.ClassDefinition)
Copy method from this class to generated FHIRSQL.* class
classmethod CreateInteractions(pRepoObject As HS.FHIRServer.Repo) as %String
classmethod CreateInteractionsStrategy(pRepoObject) as %String
classmethod CreateRepoManager(pRepoObject) as %String
classmethod CreateRsrc(pRsrcClassDef As %Dictionary.ClassDefinition, pRepoId As %String)
Modifies the Repository's generated Rsrc class with triggers to keep FHIRSQL in sync with FHIR Resource insert/update/delete.
classmethod CreateTriggers(pClassObject As %Dictionary.ClassDefinition)
Adds triggers to FHIR Rsrc class to allow it to call UpdateObjects when modified.
classmethod DELETEprojection(pRepositoryURL As %String, pPackageName As %String, Output pReply As %DynamicObject)
Called from REST handler to delete the projection
abstract method DeleteService(serviceId As %String, ByRef options)
@API Delete the service. This method removes a service. This includes and FHIR data and associated schema classes as well as registration data. A decommissioned service cannot be removed.
classmethod GETfhirrepository(pReply As %DynamicObject)
Get an array of repository url's for this server
abstract method GenResourceTablesCallback(pRsrcDef As %Dictionary.ClassDefinition, pRsrcVerDef As %Dictionary.ClassDefinition)
@API-Overridable Callback method allowing a strategy to modify the generated Resource and Version tables before they are finalized.
classmethod GetRepoInstance(pPath="") as HS.FHIRServer.RepoInstance
classmethod GetRepoObject(pPath="", pRepoInstance As HS.FHIRServer.RepoInstance = "") as HS.FHIRServer.Repo
classmethod GetResourceClass(pPath="")
classmethod GetResourceStorage(pPath)
Return the storage(RsrcD) for a particular path
classmethod GetResourceTable(pPath="")
classmethod PUTprojection(pRequest As %DynamicObject, Output pReply As %DynamicObject)
classmethod SetupInteractions(pPath=..getPath($namespace), pForce As %Boolean = 0)
Create Interactions / InteractionsStrategy classes based on endpoint instance (or FHIRSQL.Interactions / InteractionsStrategy) if no endpoint is specified When replacing the Interactions class restart all servcies
classmethod URLIsUsable(pPath=..getPath($namespace), Output pRepoInstance) as %Integer
For a URL to be useable, the endpoint must exist, and the strategy class must extend HS.FHIRServer.Storage.Json.InteractionStrategy
abstract classmethod UpdateObjects(pResourceType, pID, pAdd=1)
this method will be copied from FHIRRepository to the FHIR Endpoint Interactions class when generating UpdateObjects will iterate through all Registration records (Projections) and call UpdateIndices with the ID pAdd = 1 means we call %SQLBuildPurgeIndices() with the Build flag on, to set the index data. If pAdd = 0 %SQLBuildPurgeIndices() will purge the indices for that row.
classmethod UpdateParameters(pClassObject As %Dictionary.ClassDefinition, pParameters As %List)
classmethod getPath(pNS) as %String
FeedbackOpens in a new tab