Retrieves a scalar value from a MUMPS global node.
jsm.get(global, subscripts, callback);
Arguments
global
The MUMPS global name from which to retrieve data.
subscripts
An ECMAScript array indicating the subscript level from which to retrieve data from global
.
callback
The callback to be called when the data is retrieved. Per Node.js conventions, this callback function takes two arguments, err and data.
Example
This example retrieves the '0'-node of the VistA NEW PERSON file.
const jsmumps = require('jsmumps');
const jsm = new jsmumps.JSMumps();
jsm.get('VA', [200, 0], (err, data) => {
if(!err) {
console.log("0-node is", data.data);
}
});