HS.HC.FHIRSQL.REST.Common
abstract class HS.HC.FHIRSQL.REST.Common
Method Inventory
Methods
classmethod PackageReply(reply As %DynamicAbstractObject)
classmethod ReportError(pException, pCode=500, pReply As %DynamicObject = "")
classmethod Respond(status As %Integer, body As %String) as %DynamicAbstractObject
classmethod ValidateArray(pObject As %DynamicAbstractObject, template As %DynamicAbstractObject) as %String
classmethod ValidateObject(aet As %DynamicAbstractObject, template As %DynamicAbstractObject, allowExtraKeys As %Boolean = 0) as %String
Confirm that a parsed JSON payload has resulted in an abstract
entity tree that conforms to defined type expectations. In
keeping with JSON practices, the order of the keys within an
object does not matter. Additional keys are ignored, and
missing keys are only an issue if they have been tagged as
required. If the sample data passes muster an empty string is
returned, otherwise a string reflecting the nature of the error
is rendered.
classmethod ValidateTemplate(aet As %DynamicAbstractObject, template As %DynamicAbstractObject, allowExtraKeys As %Boolean = 1) as %String