DESIGN NOTES
============

IIS Deployment
==============

IIS will barf if the following is not right.

* ASP.NET must be installed
* Requires the URL Rewrite Module 
* Need to permit the URL rewrite module to to modify the path from the local web.config as follows
* %windir%\system32\inetsrv\appcmd.exe unlock config -section:system.webServer/handlers
* The IIS Pool should be hosted with (Network Services) to support SQL connection
* Let the IIS Process (Newtorks Sevices) to access RW the DB

Making a User An Admin EXAMPLE
==============================

-- USE [LATEST_UW]
-- GO

UPDATE [dbo].[Users]
   SET 
      [RoleId] = 504
	  , [OrganizationName] = 'HealthLevel'
	  , [NationalProviderID] = '007'
      ,[UserTypeId] = 1
      ,[AllowDataExport] = 1
      ,[AllowPatientLookup] = 1
      ,[AllowDataFix] = 1
      ,[AllowUserNote] = 1
      ,[AllowActivePanel] = 1
	  ,[AllowHelpRequest] = 1
	  ,[AllowHelpAdmin] = 1
 WHERE EmailAddress = 'manabubeach@gmail.com'
GO

Clearing All Patient Data
=========================
use [LATEST_UW]; /* as an example*/
delete from z_cathpci
delete from z_encounter
delete from z_fact_intracoronary_devices
delete from z_fact_medication
delete from z_fact_segment_numbers
delete from Exam_CQI
delete from z_fact_lesions
delete from z_patient


Generating a Patient
====================

* After you set yourself as an Admin as above... Login
* Top right corner where the user name is showing, click
* Select Admin Tasks
* Select Admin Procedures
* AdminTools_GeneeratePatientRecord [RUN]
* Mark Pacient Ncdr Qualified BE SURE TO Click Value
* Patient ID: Leave Empty ON
* You can RUN a few times to add new various new patients.


Status Updating (Saved etc)
===========================

The following code in App.js: Field(): view causes the status. Modified was a misnormer so it was changed to saved (8/21/16)

 ((vfield.data.savedstatus)
 ? ((vfield.data.savedstatus.statusCode === 200) ? "saved" : trust("&#9888;"))
                                    : ""

Medication Data
===============
7.9500 
11.9505
Transacted as an array of menu selections
