Skip to main content

HS.FHIRServer.Config.RestHandler

class HS.FHIRServer.Config.RestHandler extends HSMOD.REST.Base

Dispatch class for all UI REST requests

Method Inventory

Parameters

parameter HandleCorsRequest = 1;
Inherited description: This parameter influences the CORS support. The default is an empty string meaning 'not specified'. If set to true (1) then CORS processing is ON. If set to false (0) then CORS processing is OFF. If left unset "" then the decision to process CORS is delegated to the setting on the URL map route.
parameter UseSession = 0;
Inherited description: Enable CSP Sessions for REST

Methods

classmethod EmitErrorResult(pStatus As %Status)
Constructs a JSON object and prints it using the error status in pStatus
classmethod EmitResult(pPayload As %DynamicAbstractObject = "")
Prints pPayload if it is not empty, else sets the response status to be 'No Content'
classmethod SerializeEndpoint(url As %String, pendingEndpoints As %DynamicArray = "") as %DynamicObject
classmethod ValidateExistingEndpoint(endpoint As %DynamicObject) as %Boolean
classmethod ValidateNewEndpoint(endpoint As %DynamicObject) as %Boolean

Inherited Members

Inherited Methods

Subclasses

FeedbackOpens in a new tab