The ADT Filer EWD.js adaptor is distributed in two parts,
a VistA KID file and a tar archive.

0. This application requires EWD.js and an EWD.js supported database.
   http://ec2.mgateway.com/ewd/ws/index.html

   The application provides a user interface for the ADT Filer,
   which is a proprietary interface application.



1. Load and Install the KID to a selected ADT Filer environment.
   The build consists of 11 routines and no other components.

2. Extract files from the TAR archive and place them in the
   appropriate destination folder, as indicated below.
 
   The file named adt_filer.js should be restored to the
   ~ewdjs/node_modules folder and all other files should be
   placed in a new folder named ~ewdjs/www/ewd/adt_filer
   (the standard structure for an EWD.js application).

   The simplest way to restore to the correct destination
   folder is to cd to the ~ewdjs folder then 

	tar -xvf <filename> --skip 3

   from that folder.

   --skip 3 causes the extractor to bypass the first 3
   directories, i.e. /home/[user]/ewdjs

   Otherwise tar -xvf will restore a long path with undesired
   folders home/[user]/ewdjs on the left and it will be necessary
   to move the extracted files afterward.

3. For convenience of testing, as distributed the application
   does _not_ require https: for VistA login.

   However, If using this application in a production environment
   it is recommended to use https:  VistA login is required for
   WRITE access and for the VistA Patient Summary option.
 
   If the target ADT Filer environment accepts both http:
   and https: connections, the application may be made to
   require https: by uncommenting a test in function

           sendBtbVistALogin()

   a little past line# 1000 in app.js (see below).
 
   var sendBtnVistaLogin = function() {
     // Uncomment next to require https:
/*
     if ( !isHTTPS() ) {
       document.getElementById('messageInput').value = 'VistA login requires https: protocol.';
       return;
     }
*/
     // Login credentials (AV) is value of id="pwdInput"
     EWD.sockets.sendMessage({
       type: "vistaLogin",
       params: {
         AV: document.getElementById('pwdInput').value
         }
     });
     return;
};


------------------------------------------------------------------------------
KID contents:

ROUTINE:                                       ACTION:
   SISIEWD                                        SEND TO SITE
   SISIEWD0                                       SEND TO SITE
   SISIEWD1                                       SEND TO SITE
   SISIEWD2                                       SEND TO SITE
   SISIEWD3                                       SEND TO SITE
   SISIEWD4                                       SEND TO SITE
   SISIEWD5                                       SEND TO SITE
   SISIEWD6                                       SEND TO SITE
   SISIEWD7                                       SEND TO SITE
   SISIEWD8                                       SEND TO SITE
   SISIEWD9                                       SEND TO SITE


TAR file contents:

~ewdjs/node_modules/adt_filer.js
~ewdjs/www/ewd/adt_filer/about.html
~ewdjs/www/ewd/adt_filer/acct.html
~ewdjs/www/ewd/adt_filer/ap.html
~ewdjs/www/ewd/adt_filer/api.html
~ewdjs/www/ewd/adt_filer/auxm.html
~ewdjs/www/ewd/adt_filer/cons.html
~ewdjs/www/ewd/adt_filer/index.html
~ewdjs/www/ewd/adt_filer/kp.html
~ewdjs/www/ewd/adt_filer/stat.html
~ewdjs/www/ewd/adt_filer/sum.html
~ewdjs/www/ewd/adt_filer/vsum.html
~ewdjs/www/ewd/adt_filer/app.js


