new CprsMetaService()
Service for Meta (non-clinical) queries relating to the CPRS domain.
Methods
-
gmvParameter(routine, entArg, gmvPrmArg, instArg, valArg, context, cb)
Sets and retrieves parameter values used by the graphical user interface.
-
Parameters:
Name Type Description routine
String Routine tag line to call
entArg
String The entity value to use
gmvPrmArg
String Parameter string used to call parameter service
instArg
String The instance to use.
valArg
String The value assigned to a parameter, stored in collection 'Parameters' (fm 8989.5)
context
Object Session context information associated with the service call.
cb
function Callback function called on process completion, with standard (err, result) signature.
Returns:
Object containing description of error and key for native equivalent string in model
- Type
- Object
-
isBillingAwarenessEnabled(context, callback)
Billing Awareness RPC. Returns 0 if BA functionality is off or 1 if BA functionality is on.
-
Parameters:
Name Type Description context
Object Session context information associated with the service call.
callback
function Function called on process completion, with standard (err, result) signature.
Returns:
isBaEnabled OR BILLING AWARENESS STATUS value field true or false
- Type
- Boolean
-
lookupPatch(patchName, context, callback)
Determines whether or not a specified patch was installed.
-
NOTE: further optimization might be possible by crafting a Mongo query that reaches directly into version.patchApplicationHistory.patchApplicationHistory
Parameters:
Name Type Description patchName
String The prefix name of the patch to check for.
context
Object Session context information associated with the service call.
callback
function Function called on process completion, with standard (err, result) signature.
Returns:
True or False.
- Type
- Boolean
-
lookupServerVersion(optionName, context, callback)
return server version of option name. This is specifically used by CPRS GUI to determine the current server version of the associated software
-
Parameters:
Name Type Description optionName
String Formal name of an option
context
Object Session context information associated with the service call.
callback
function Function called on process completion, with standard (err, result) signature.
Returns:
version Server version of option name
- Type
- String
-
lookupSurgicalPatch(context, callback)
Check for presence of SR3.0100 (Surgery Electronic Signature) patch, and also for parameter value. If both TRUE, surgery tab will be displayed in CPRS.
-
Parameters:
Name Type Description context
Object Session context information associated with the service call.
callback
function Function called on process completion, with standard (err, result) signature.
Returns:
The value in ORWOR SHOW SURGERY TAB Parameter, or an Object with error property if Patch 100 is not present
- Type
- Object
-
lookupWritingOrdersList(location, context, callback)
Return list of dialogs for writing orders as: IEN; WindowFormId; DisplayGroupId; Type^DisplayText
-
Parameters:
Name Type Description location
String Location URN
context
Object Session context information associated with the service call.
callback
function Function called on process completion, with standard (err, result) signature.
Returns:
Array of objects with id, type, displayGroup, windowFormId, and listboxText or displayText
- Type
- Array
-
orderObject(displayGroupId, context, callback)
Returns COM Objects for order accept
-
Parameters:
Name Type Description displayGroupId
Integer Id of display group
context
Object Session context information associated with the service call.
callback
function Function called on process completion, with standard (err, result) signature.
Returns:
Array containing 0 or mongo query results
- Type
- Array
-
validateESignature(encryptedString, context, callback)
Validates a broker encrypted electronic signature
-
Parameters:
Name Type Description encryptedString
String The encrypted string to decrypt and compare to current user's electronic signature
context
Object Session context information associated with the service call.
callback
function Function called on process completion, with standard (err, result) signature.
Returns:
Return 1 if the encrypted string matches the current user's electronic signature, otherwise 0
- Type
- Number