HS.FHIRServer.Util.ReferenceVisitor
class HS.FHIRServer.Util.ReferenceVisitor extends %Library.RegisteredObject
Method Inventory
Methods
classmethod AddBackReference(ByRef context, toId As %String, fromId As %String, fromIsShared As %Boolean)
classmethod AddReferenceObj(obj As %DynamicObject, ByRef context)
Returns a %List of all resources referenced by the specified resource Id as determined by
the processing of "VisitAll"
classmethod VisitAll(pRsrcObj As %DynamicObject, ByRef context)
@API
VisitAll traverses all properties of type Reference within an individual specified FHIR resource. The resource input is not intended to be a Bundle of resources.
This method builds a set of all reference values in the resource. Optionally, the caller may specify a method to be called when each reference is visited, allowing the caller to perform custom processing on that reference.
This method does not report or error upon resource validation issues. The caller of this API is expected to do its own validation before or after it calls VisitAll(). Because of that, this API ignores malformed FHIR.
@Argument pRsrcObj %DynamicObject representation of an individual FHIR resource.
@Argument context Input context array:
context("schema"): Schema object for the input object.
context("callbackInstance"): [optional] Instance object implementing the callbackMethod (used when callbackMethod is a Method).
context("callbackClass"): [optional] Classname (used when callbackMethod is a ClassMethod).
context("callbackMethod"): Method name to call with each reference (must be accompanied with either "callbackClass" or "callbackInstance").
context("_va"): Internal Bookkeeping for the VisitAll method.
All other keys are available to the caller (and callback) to maintain. Required context
callback signature is:
callback(context, pRefObj as %DynamicObject, pRefValue as %String, context)
VisitAll traverses all properties of type Reference within an individual specified FHIR resource. The resource input is not intended to be a Bundle of resources.
This method builds a set of all reference values in the resource. Optionally, the caller may specify a method to be called when each reference is visited, allowing the caller to perform custom processing on that reference.
This method does not report or error upon resource validation issues. The caller of this API is expected to do its own validation before or after it calls VisitAll(). Because of that, this API ignores malformed FHIR.
@Argument pRsrcObj %DynamicObject representation of an individual FHIR resource.
@Argument context Input context array:
callback(context, pRefObj as %DynamicObject, pRefValue as %String, context)
classmethod adjustCrossReference(schema As HS.FHIRServer.Schema, ByRef visitContext)
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()