Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ewdgateway2

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ewdgateway2 - npm Package Compare versions

Comparing version 0.53.2 to 0.53.3

33

ewdLite/node_modules/VistADemo.js
var nodeVista = require('nodeVista');
// Re-usable core VistA interface functions
var VistALogin = function(accessCode, verifyCode, ewd) {

@@ -61,2 +63,4 @@ var authP = new ewd.mumps.GlobalNode('%zewdTemp', [process.pid]);

// REST & Web Server authentication function
var authenticate = function(ewd) {

@@ -86,2 +90,4 @@ var statusCode = 401;

// REST & Web Service error response formatter function
var errorResponse = function(error, statusCode, ewd) {

@@ -109,3 +115,7 @@ if (ewd.query['rest_method']) {

if (!ewd.query.verifyCode || ewd.query.verifyCode === '') return errorResponse('You must enter a Verify Code', errorStatusCode, ewd);
// ****************************
var results = VistALogin(ewd.query.accessCode, ewd.query.verifyCode, ewd);
// ****************************
if (results.error) {

@@ -130,3 +140,7 @@ return errorResponse(results.error, errorStatusCode, ewd);

if (!ewd.query.prefix || ewd.query.prefix === '') return errorResponse('You must enter a name prefix', errorStatusCode, ewd);
// ******************************
var results = getPatientsByName(ewd.query.prefix, 1000, ewd)
// ******************************
return results.results;

@@ -144,3 +158,7 @@ }

if (!ewd.query.id || ewd.query.id === '') return errorResponse('You must enter a patient Id', errorStatusCode, ewd);
// **********************************
var results = getPatientSummaryDetails(ewd.query.id, ewd)
// **********************************
return results;

@@ -158,4 +176,9 @@ }

if (params.password === '') return 'You must enter a Verify Code';
// Access Code / Verify Code Example: fakedoc1/1Doc!@#$
// **********************************
var results = VistALogin(params.username, params.password, ewd);
// Example: fakedoc1/1Doc!@#$
// **********************************
if (results.error) {

@@ -188,3 +211,7 @@ return results.error;

if (ewd.session.isAuthenticated) {
// ********************************
var results = getPatientsByName(params.prefix, 40, ewd);
// ********************************
ewd.session.$('names')._delete();

@@ -203,3 +230,7 @@ ewd.session.$('names')._setDocument(results.namesById);

ewd.session.$('patientIdSelected')._value = params.patientId;
// ***********************************
var results = getPatientSummaryDetails(params.patientId, ewd)
// ***********************************
return results;

@@ -206,0 +237,0 @@ }

8

ewdLite/www/ewdLite/EWD.js

@@ -17,4 +17,4 @@ if (typeof CustomEvent === 'undefined') {

version: {
build: 10,
date: '11 February 2014'
build: 11,
date: '13 February 2014'
},

@@ -295,2 +295,6 @@ trace: false,

}
//
if (typeof EWD.application.onReplacedTables === "function") { // invoke onReplaceTables() after tables are built
EWD.application.onReplacedTables();
}
}

@@ -297,0 +301,0 @@ }

{ "name": "ewdgateway2",
"description": "Node.js-based EWD Gateway for MongoDB, Cache, GlobalsDB and GT.M: Includes EWD.js",
"version": "0.53.2",
"version": "0.53.3",
"author": "Rob Tweed <rtweed@mgateway.com>",

@@ -5,0 +5,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc