HS.FHIRServer.Storage.BuiltIn.Common
class HS.FHIRServer.Storage.BuiltIn.Common
Common methods for all FHIR operation implementations under HS.FHIRServer.Storage.BuiltInMethod Inventory
Methods
classmethod GetParameterCount(pInputParams As %DynamicObject, pParamName As %String) as %Integer
@API
Return the number of instances of the specified parameter in the input parameters object.
@Argument pInputParams %DynamicObject of the input parameters and values, organized by parameter name.
@Argument pParamName Parameter name.
Return the number of instances of the specified parameter in the input parameters object.
@Argument pInputParams %DynamicObject of the input parameters and values, organized by parameter name.
@Argument pParamName Parameter name.
classmethod GetParameterValue(pInputParams As %DynamicObject, pParamName As %String, pPosition As %Integer = 1, ByRef pModifier As %String) as %DynamicObject
@API
Return the parameter value at the specified position from the input parameters object.
@Argument pInputParams %DynamicObject of the input parameters and values, organized by parameter name.
@Argument pParamName Parameter name.
@Argument pPosition 1-based (not 0-based) position of parameter instance for the specified name.
@Output pModifier Parameter modifier.
Return the parameter value at the specified position from the input parameters object.
@Argument pInputParams %DynamicObject of the input parameters and values, organized by parameter name.
@Argument pParamName Parameter name.
@Argument pPosition 1-based (not 0-based) position of parameter instance for the specified name.
@Output pModifier Parameter modifier.
classmethod ValidateRequestInput(pService As HS.FHIRServer.API.Service, pRequest As HS.FHIRServer.API.Data.Request, pOperationDefinition As %DynamicObject, Output pInputParamsByName As %DynamicObject)
This method validates FHIR operation request input per the metadata in
pOperationDefinition. A %DynamicObject of the input parameter values
is returned upon success. This method Throws upon validation error.
@Argument pService Instance of FHIRServer Service class.
@Argument pRequest Current FHIR request object.
@Argument pOperationDefiniton %DynamicObject of OperationDefinition metadata that defines the request input. @Output pInputParamsByName %DynamicObject of the operation request input parameter values, organized by parameter name. Example:
@Argument pService Instance of FHIRServer Service class.
@Argument pRequest Current FHIR request object.
@Argument pOperationDefiniton %DynamicObject of OperationDefinition metadata that defines the request input. @Output pInputParamsByName %DynamicObject of the operation request input parameter values, organized by parameter name. Example:
{
"patient":{
"value":"123",
"type":"id"
},
"name":{
"value":"$current-problems",
"type":"code"
}
}