You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.
Some might be for error logging, but many seem crufty...
Searching466filesfor"console.log"/Users/doug/Desktop/JNC8/README.md:
45-InordertoensurethatourD3visualizationswerecompatible,weusedabuildofD3calledR2D3.ThedownsideofR2D3isthatithasmorelimitedfeaturesthanD3.Wealsoweren't able to use powerful D3 libraries like C3. So it takes a bit longer to do visualizations in IE8 than it would in other browsers.
4647: -IE8doesn't include console.log or .indexOf, and requires some special configuration of AngularJS to ensure compatibility.
4849/Users/doug/Desktop/JNC8/route-handler.js:
40// send res.redirect to '/new with information'41if(req.query.uid){42: console.log(req.query.uid);43res.redirect('/app/#/returning?uid='+req.query.uid);44}else{45: console.log("Serving a vanilla GET to '/'")46res.redirect('/app');47}..4950app.get('/db/returning',function(req,res){51: console.log('get db/returning');52varquery=db.makeUserQuery(req.query.uid);53: console.log('db returning query',query);54db.queryHelper(query,function(err,rows){55if(err){..63//The SQL database stores any information that must be persisted but cannot be written back to the EMR64app.get('/db/encounters',function(req,res){65: console.log('get db/encounters');66varptId=req.query.ptId;67varorgIdString;..107// standalone users and moxe users at the end of a patient encounter 108app.post('/db/encounters',function(req,res){109: console.log('post db/encounters');110111//convert each target into a string that can be inserted into the database ...129//emailHashString is the same as emailHash, but not stringified130varemailHashString=encrypt.makeEmailHash(ptId);131: console.log('typeof emailHashString',typeofemailHashString);132}else{133varemailHashString=undefined;
...
139}140141: console.log('emailHash after encrypt',emailHash);142: console.log('ptId',ptId);143: console.log('orgId',orgId);144varquery='INSERT INTO dbo.encounters (ptId, orgId, emails, emailHash, encounterDate, curBP, curTargetBP, curMeds, age, race, hasCKD, hasDiabetes) VALUES ('+ptId+','+orgId+','+emails+','+emailHash+','+encounterDate+','+curBP+','+curTargetBP+','+curMeds+','+age+','+race+','+hasCKD+','+hasDiabetes+')';145146: console.log('query',query);147148//get user email in format that can be used in smtp request made...151// var returnLink = "http://jnc8app.azurewebsites.net?uid=" + emailHashString;152varreturnLink="http://localhost:8000?uid="+emailHashString;153: console.log('emailHash',emailHash)154db.queryHelper(query,function(err,data){155if(err){156: console.log(err);157res.send(err);158}else{/Users/doug/Desktop/JNC8/server.js:
10app.listen(port);1112: console.log('Server now listening on port '+port);13/Users/doug/Desktop/JNC8/app/bower_components/aight/examples/d3.html:
167varbg=d3.select("#bg-color")168.style("background-color","red");169: console.log("red?",bg.style("background-color"));170171bg=d3.select("#bg-position")172.style("background-position","bottom right");173: console.log("bottom right?",bg.style("background-position"));174175bg=d3.select("#bg-image")176.style("background-position","bottom left")177.style("background-image","url(http://www.imagemagick.org/Usage/formats/a.png)");178: console.log("bottom left?",bg.style("background-position"));179: console.log("a.png?",bg.style("background-image"));180181})();/Users/doug/Desktop/JNC8/app/bower_components/angular/angular.js:
4271* @param{object}documentjQuerywrappeddocument.4272* @param{function()}XHRXMLHttpRequestconstructor.4273: * @param{object}$logconsole.logoranobjectwiththesameinterface.4274* @param{object}$sniffer$snifferservice4275*/
....5407*functionlinkingFn(scope,elm,attrs,ctrl){5408*// get the attribute value5409: *console.log(attrs.ngModel);5410*5411*// change the attribute
....5414*// observe changes to interpolated attribute5415*attrs.$observe('ngModel',function(value){5416: *console.log('ngModel has changed value to '+value);5417*});5418*}
....9761functionconsoleLog(type){9762varconsole=$window.console||{},9763: logFn=console[type]||console.log||noop,9764hasApply=false;97659766// Note: reading logFn.apply throws an error in IE11 in IE8 document mode.9767: // The reason behind this is that console.log has type "object" in IE8...9768try{9769hasApply=!!logFn.apply;
....97819782// we are IE which either doesn't have window.console => this is noop and we do nothing,9783: // or we are IE where console.log doesn't have apply so we log at least first 2 args9784returnfunction(arg1,arg2){9785logFn(arg1,arg2==null ? '' : arg2);
....21446if(window.angular.bootstrap){21447//AngularJS is already loaded, so we can return here...21448: console.log('WARNING: Tried to load angular more than once.');21449return;21450}/Users/doug/Desktop/JNC8/app/bower_components/angular/angular.min.js:
207c[u],w(e,d)==h){k=q(e,d);break}}elsed[m]=c[h],n&&(d[n]=h),k=q(e,d);1<x[0].length&&x[0][1].id!==h&&(x[0][1].selected=!1)}g.$setViewValue(k)})});g.$render=h;e.$watch(h)}if(l[1]){varp=l[0];l=l[1];varr=h.multiple,t=h.ngOptions,u=!1,w,v=y(U.createElement("option")),C=y(U.createElement("optgroup")),A=v.clone();h=0;for(varx=f.children(),D=x.length;h<D;h++)if(""===x[h].value){w=u=x.eq(h);break}p.init(l,u,A);r&&(l.$isEmpty=function(a){return!a||0===a.length});t?n(e,f,l):r?m(e,f,l):k(e,f,l,p)}}}}],hd=["$interpolate",208function(a){varc={addOption:C,removeOption:C};return{restrict:"E",priority:100,compile:function(d,e){if(E(e.value)){varg=a(d.text(),!0);g||e.$set("value",d.text())}returnfunction(a,d,e){vark=d.parent(),m=k.data("$selectController")||k.parent().data("$selectController");m&&m.databound?d.prop("selected",!1):m=c;g?a.$watch(g,function(a,c){e.$set("value",a);a!==c&&m.removeOption(c);m.addOption(a)}):m.addOption(e.value);d.on("$destroy",function(){m.removeOption(e.value)})}}}}],gd=aa({restrict:"E",209: terminal:!0});O.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):((Ga=O.jQuery)?(y=Ga,D(Ga.fn,{scope:Ja.scope,isolateScope:Ja.isolateScope,controller:Ja.controller,injector:Ja.injector,inheritedData:Ja.inheritedData}),Ab("remove",!0,!0,!1),Ab("empty",!1,!1,!1),Ab("html",!1,!1,!0)):y=N,Ea.element=y,Zc(Ea),y(U).ready(function(){Wc(U,$b)}))})(window,document);!angular.$$csp()&&angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}.ng-animate-block-transitions{transition:0s all!important;-webkit-transition:0s all!important;}</style>');210//# sourceMappingURL=angular.min.js.map211/Users/doug/Desktop/JNC8/app/bower_components/jquery/jquery-migrate.js:
1819// Show a message on the console so devs know we're active20: if(!jQuery.migrateMute&&window.console&&console.log){21: console.log("JQMIGRATE: Logging is active");22}23/Users/doug/Desktop/JNC8/app/bower_components/jquery/jquery-migrate.min.js:
1/*! jQuery Migrate v1.1.1 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */2: jQuery.migrateMute===void0&&(jQuery.migrateMute=!0),function(e,t,n){functionr(n){o[n]||(o[n]=!0,e.migrateWarnings.push(n),t.console&&console.warn&&!e.migrateMute&&(console.warn("JQMIGRATE: "+n),e.migrateTrace&&console.trace&&console.trace()))}functiona(t,a,o,i){if(Object.defineProperty)try{returnObject.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){returnr(i),o},set:function(e){r(i),o=e}}),n}catch(s){}e._definePropertyBroken=!0,t[a]=o}varo={};e.migrateWarnings=[],!e.migrateMute&&t.console&&console.log&&console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){o={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");vari=e("<input/>",{size:1}).attr("size")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){returnnull},c=e.attrHooks.value&&e.attrHooks.value.set||function(){returnn},l=/^(?:input|button)$/i,d=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,"attrFn",i||{},"jQuery.attrFn is deprecated"),e.attr=function(t,a,o,u){varc=a.toLowerCase(),g=t&&t.nodeType;returnu&&(4>s.length&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!d.test(g)&&(i?aini:e.isFunction(e.fn[a])))?e(t)[a](o):("type"===a&&o!==n&&l.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[c]&&p.test(c)&&(e.attrHooks[c]={get:function(t,r){vara,o=e.prop(t,r);returno===!0||"boolean"!=typeofo&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){vara;returnn===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,aint&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(c)&&r("jQuery.fn.attr('"+c+"') may use property instead of attribute")),s.call(e,t,a,o))},e.attrHooks.value={get:function(e,t){varn=(e.nodeName||"").toLowerCase();return"button"===n?u.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value') no longer gets properties"),tine?e.value:null)},set:function(e,t){vara=(e.nodeName||"").toLowerCase();return"button"===a?c.apply(this,arguments):("input"!==a&&"option"!==a&&r("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t,n)}};varg,h,v=e.fn.init,m=e.parseJSON,y=/^(?:[^<]*(<[\w\W]+>)[^>]*|#([\w\-]*))$/;e.fn.init=function(t,n,a){varo;returnt&&"string"==typeoft&&!e.isPlainObject(n)&&(o=y.exec(t))&&o[1]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(e.trim(t),n,!0),n,a):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){returne||null===e?m.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();vart=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.browser||(g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,"browser",e.browser,"jQuery.browser is deprecated"),e.sub=function(){functiont(e,n){returnnewt.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){returna&&ainstanceofe&&!(ainstanceoft)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;varn=t(document);returnr("jQuery.sub() is deprecated"),t},e.ajaxSetup({converters:{"text json":e.parseJSON}});varb=e.fn.data;e.fn.data=function(t){vara,o,i=this[0];return!i||"events"!==t||1!==arguments.length||(a=e.data(i,t),o=e._data(i,t),a!==n&&a!==o||o===n)?b.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),o)};varj=/\/(java|ecma)script/i,w=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){returnr("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),w.apply(this,arguments)},e.clean||(e.clean=function(t,a,o,i){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,r("jQuery.clean() is deprecated");vars,u,c,l,d=[];if(e.merge(d,e.buildFragment(t,a).childNodes),o)for(c=function(e){return!e.type||j.test(e.type)?i?i.push(e.parentNode?e.parentNode.removeChild(e):e):o.appendChild(e):n},s=0;null!=(u=d[s]);s++)e.nodeName(u,"script")&&c(u)||(o.appendChild(u),u.getElementsByTagName!==n&&(l=e.grep(e.merge([],u.getElementsByTagName("script")),c),d.splice.apply(d,[s+1,0].concat(l)),s+=l.length));returnd});varQ=e.event.add,x=e.event.remove,k=e.event.trigger,N=e.fn.toggle,C=e.fn.live,S=e.fn.die,T="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",M=RegExp("\\b(?:"+T+")\\b"),H=/(?:^|\s)hover(\.\S+|)\b/,A=function(t){return"string"!=typeoft||e.event.special.hover?t:(H.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(H,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&a(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,t,n,a,o){e!==document&&M.test(t)&&r("AJAX events should be attached to document: "+t),Q.call(this,e,A(t||""),n,a,o)},e.event.remove=function(e,t,n,r,a){x.call(this,e,A(t)||"",n,r,a)},e.fn.error=function(){vare=Array.prototype.slice.call(arguments,0);returnr("jQuery.fn.error() is deprecated"),e.splice(0,0,"error"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))returnN.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");vara=arguments,o=t.guid||e.guid++,i=0,s=function(n){varr=(e._data(this,"lastToggle"+t.guid)||0)%i;returne._data(this,"lastToggle"+t.guid,r+1),n.preventDefault(),a[r].apply(this,arguments)||!1};for(s.guid=o;a.length>i;)a[i++].guid=o;returnthis.click(s)},e.fn.live=function(t,n,a){returnr("jQuery.fn.live() is deprecated"),C?C.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){returnr("jQuery.fn.die() is deprecated"),S?S.apply(this,arguments):(e(this.context).off(t,this.selector||"**",n),this)},e.event.trigger=function(e,t,n,a){returnn||M.test(e)||r("Global events are undocumented and deprecated"),k.call(this,e,t,n||document,a)},e.each(T.split("|"),function(t,n){e.event.special[n]={setup:function(){vart=this;returnt!==document&&(e.event.add(document,n+"."+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){returnthis!==document&&e.event.remove(document,n+"."+e._data(this,n)),!1}}})}(jQuery,window);3//@ sourceMappingURL=dist/jquery-migrate.min.map/Users/doug/Desktop/JNC8/app/bower_components/jquery/build/release-notes.js:
38if(!cur||cur!==cat){39if(cur){40: console.log("</ul>");41}42cur=cat;43: console.log("<h3>"+cat.charAt(0).toUpperCase()+cat.slice(1)+"</h3>");44: console.log("<ul>");45}4647: console.log(48" <li><a href=\"http://bugs.jquery.com/ticket/"+match[1]+"\">#"+49match[1]+": "+match[2]+"</a></li>"..52}53if(cur){54: console.log("</ul>");55}56/Users/doug/Desktop/JNC8/app/bower_components/jquery/build/release.js:
101pkg=JSON.parse(fs.readFileSync("package.json"));102103: console.log("Current version is "+pkg.version+"; generating release "+releaseVersion);104version=pkg.version.match(rsemver);105oldver=(+version[1])*10000+(+version[2]*100)+(+version[3])...141die(error+stderr);142}143: console.log(stdout);144next();145},false);
...
229230functionupdatePackageVersion(ver){231: console.log("Updating package.json version to "+ver);232pkg.version=ver;233if(!debug){
...
238functionmakeArchive(cdn,files,fn){239if(isBeta){240: console.log("Skipping archive creation for "+cdn+"; "+releaseVersion+" is beta");241process.nextTick(fn);242return;243}244245: console.log("Creating production archive for "+cdn);246247vararchive=archiver("zip"),
...
273274functioncopy(oldFile,newFile,skip){275: console.log("Copying "+oldFile+" to "+newFile);276if(!skip){277fs.writeFileSync(newFile,fs.readFileSync(oldFile,"utf8"));
...
285functionexec(cmd,args,fn,skip){286if(skip){287: console.log("# "+cmd+" "+args.join(" "));288fn("","","");289}else{290: console.log(cmd+" "+args.join(" "));291child.execFile(cmd,args,{env: process.env},292function(err,stdout,stderr){
...
307functiondieIfReal(msg){308if(debug){309: console.log("DIE: "+msg);310}else{311die(msg);/Users/doug/Desktop/JNC8/app/bower_components/jquery/test/networkerror.html:
22 url: '/',23 error: function(){24: console.log("abort",arguments);25}26}).abort();..28 url: '/',29 error: function(){30: console.log("complete",arguments);31}32});/Users/doug/Desktop/JNC8/app/bower_components/jquery/test/unit/ajax.js:
1352success=true;1353}catch(e){1354: console.log(e);1355}1356ok(success,"context with circular reference did not generate an exception");/Users/doug/Desktop/JNC8/app/js/app.js:
1314.config(['$routeProvider',function($routeProvider){15: console.log('config called');1617$routeProvider.when('/moxe',{..20setUpApp: function(startup){21// setUpApp isn't passed into the controller because the pt factory is updated with side effects22: console.log("setUpApp");23returnstartup.initializeMoxe();24}..33// setUpApp variable isn't passed into the dataEntry controller because the pt model properties are34// defined by side effects of startup.initializeReturning35: console.log("Set up app for returning user.");36returnstartup.initializeReturning();37}/Users/doug/Desktop/JNC8/app/js/controllers.js:
106}107db.addEncounter(pt.ids,encounter,function(data){108: console.log(data);109});110$scope.saveToDBCalled=true;/Users/doug/Desktop/JNC8/app/js/directives.js:
90scope.goodRxErr=true;91}92: console.log("Error status: "+scope.err);93});94}..110//todo - refactor renderGraph so that pt arrays (bps, targetBPs, encounterDates) are used for graph data instead of 'data'111vardata=graphHelpers.parseBPData(pt);112: console.log('data',data)113114varmargins=[30,30,30,40];
...
117vartimeScale=graphHelpers.getTimeScale(data[0].encounterDate,data[data.length-1].encounterDate);118119: console.log('timeScale',timeScale);120121varx=d3.time.scale()...250if(!pt.targetBPs){251algorithm.methods.runAlgorithm(pt);252: console.log(pt);253}254$timeout(function(){255: console.log('running the timeout');256scope.$watch('targetSys',function(newVal,oldVal){257: // console.log('targetSys changed.');258renderGraph(scope);259graphHelpers.removeFirstGraphChild();/Users/doug/Desktop/JNC8/app/js/services.js:
13ptIdentifier.orgId=$rootScope.orgId;1415: console.log('initializeMoxe called');16varsid=$location.$$search.sid;17return$http({..28ptData.substrate =response[0];29ptData.db=response[1];30: console.log('substrate',ptData.substrate);31: console.log('db',ptData.db);32});33});..41ptIdentifier.ptId=null;4243: console.log('initializeReturning called');4445varresult=$q["all"]([db.getUserByHash(uid)]);..47returnresult.then(function(response){48$rootScope.showSplash=false;49: console.log(response);50ptData.db=response[0];51: console.log('db',ptData.db);52});53};..96varaddEncounter=function(ptIdentifier,encounter,callback){9798: console.log('addEncounter called');99: console.log('ptEncounter',encounter);100: console.log('ptIdentifier',ptIdentifier);101return$http({102url: '/db/encounters',
...
113})114.error(function(data,status,headers,config){115: console.log('error data',data);116});117};
...
134135vargetPatientData=function(patientId,callback){136: console.log('into getPatientData');137138varresult=$q["all"]({
...
156157vargetSubstrateData=function(type,patientId,justCurrentMeds){158: console.log('getting '+type+' data');159160//medications and problems endpoints have slightly different request format...405406for(vari=0;i<props.length;i++){407: console.log('check',props[i],props[i]===undefined);408if(props[i]===undefined){409returnfalse;
...
436//get data from moxe user 437if(startup.ptData.substrate){438: console.log('substrate data');439varsubstrateData=startup.ptData.substrate;440varproblems=substrateHelpers.getProblems(substrateData.problems);
...
464//get data from current user of standalone app, or moxe user 465if(startup.ptData.db&&startup.ptData.db.length){466: console.log('Theoretical dbData: ',startup.ptData.db);467vardbData=startup.ptData.db;468...498}else{499//app does not allow user to enter encounter date500: console.log('first time user');501pt.encounterDates=[newDate()];502pt.curDate=pt.encounterDates[pt.encounterDates.length-1];
...
567568vargetTimeScale=function(dateOne,dateTwo){569: console.log('dateOne',dateOne);570: console.log('dateTwo',dateTwo)571if(dateOneinstanceofDate&&dateTwoinstanceofDate){572vardayLengthMs=86400000;/Users/doug/Desktop/JNC8/app/lib/algorithm_jnc8.js:
5455 runAlgorithm: function(pt){56: console.log('pt',pt);57varalgoResults={};58pt.curTargetBP=algorithm.methods.generateTarget(pt);..62algoResults.recs=algorithm.methods.generateRecs(pt);6364: console.log('algoResults',algoResults);65returnalgoResults;66},..76// set curTargetBP by age and diabetes/CKD logic77if(!pt.hasDiabetes&&!pt.hasCKD&&pt.age>=60){78: console.log('curTargetBP for people >60 with no diabetes or CKD');79return{80systolic: 150,..82};83}else{84: console.log('other curTargetBP');85return{86systolic: 140,..100101 pt.curTargetBP=pt.curTargetBP;102: console.log('curTarget',pt.curTargetBP);103104varfilterDrugs=function(curMeds){
...
110111vardrugsatMax=function(curMeds){112: console.log('curMeds');113return_.every(curMeds,function(med){114returnmed.atMax;
...
185for(vari=0;i<curMeds.length;i++){186if(curMeds[i].className==='ACEI'||curMeds[i].className==='ARB'){187: console.log('acei false');188possibleNextMeds.ACEI=false;189possibleNextMeds.ARB=false;190}191if(curMeds[i].className==='CCB'){192: console.log('ccb false');193possibleNextMeds.CCB=false;194}195if(curMeds[i].className==='Thiazide'){196: console.log('thiazide false');197possibleNextMeds.Thiazide=false;198}199}200: console.log('possible',possibleNextMeds)201202for(varmedinpossibleNextMeds){/Users/doug/Desktop/JNC8/bower_components/aight/examples/d3.html:
167varbg=d3.select("#bg-color")168.style("background-color","red");169: console.log("red?",bg.style("background-color"));170171bg=d3.select("#bg-position")172.style("background-position","bottom right");173: console.log("bottom right?",bg.style("background-position"));174175bg=d3.select("#bg-image")176.style("background-position","bottom left")177.style("background-image","url(http://www.imagemagick.org/Usage/formats/a.png)");178: console.log("bottom left?",bg.style("background-position"));179: console.log("a.png?",bg.style("background-image"));180181})();/Users/doug/Desktop/JNC8/bower_components/angular/angular.js:
4268* @param{object}documentjQuerywrappeddocument.4269* @param{function()}XHRXMLHttpRequestconstructor.4270: * @param{object}$logconsole.logoranobjectwiththesameinterface.4271* @param{object}$sniffer$snifferservice4272*/
....5404*functionlinkingFn(scope,elm,attrs,ctrl){5405*// get the attribute value5406: *console.log(attrs.ngModel);5407*5408*// change the attribute
....5411*// observe changes to interpolated attribute5412*attrs.$observe('ngModel',function(value){5413: *console.log('ngModel has changed value to '+value);5414*});5415*}
....9840functionconsoleLog(type){9841varconsole=$window.console||{},9842: logFn=console[type]||console.log||noop,9843hasApply=false;98449845// Note: reading logFn.apply throws an error in IE11 in IE8 document mode.9846: // The reason behind this is that console.log has type "object" in IE8...9847try{9848hasApply=!!logFn.apply;
....98609861// we are IE which either doesn't have window.console => this is noop and we do nothing,9862: // or we are IE where console.log doesn't have apply so we log at least first 2 args9863returnfunction(arg1,arg2){9864logFn(arg1,arg2==null ? '' : arg2);
....21548if(window.angular.bootstrap){21549//AngularJS is already loaded, so we can return here...21550: console.log('WARNING: Tried to load angular more than once.');21551return;21552}/Users/doug/Desktop/JNC8/bower_components/angular/angular.min.js:
209c[v],w(e,d)==h){k=q(e,d);break}}elsed[m]=c[h],n&&(d[n]=h),k=q(e,d);1<x[0].length&&x[0][1].id!==h&&(x[0][1].selected=!1)}g.$setViewValue(k)})});g.$render=k;e.$watch(k)}if(m[1]){varp=m[0];m=m[1];varr=k.multiple,u=k.ngOptions,D=!1,x,t=y(U.createElement("option")),C=y(U.createElement("optgroup")),w=t.clone();k=0;for(varv=f.children(),E=v.length;k<E;k++)if(""===v[k].value){x=D=v.eq(k);break}p.init(m,D,w);r&&(m.$isEmpty=function(a){return!a||0===a.length});u?n(e,f,m):r?l(e,f,m):h(e,f,m,p)}}}}],hd=["$interpolate",210function(a){varc={addOption:w,removeOption:w};return{restrict:"E",priority:100,compile:function(d,e){if(F(e.value)){varg=a(d.text(),!0);g||e.$set("value",d.text())}returnfunction(a,d,e){varh=d.parent(),l=h.data("$selectController")||h.parent().data("$selectController");l&&l.databound?d.prop("selected",!1):l=c;g?a.$watch(g,function(a,c){e.$set("value",a);a!==c&&l.removeOption(c);l.addOption(a)}):l.addOption(e.value);d.on("$destroy",function(){l.removeOption(e.value)})}}}}],gd=aa({restrict:"E",211: terminal:!0});O.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):((Fa=O.jQuery)?(y=Fa,E(Fa.fn,{scope:Ia.scope,isolateScope:Ia.isolateScope,controller:Ia.controller,injector:Ia.injector,inheritedData:Ia.inheritedData}),Db("remove",!0,!0,!1),Db("empty",!1,!1,!1),Db("html",!1,!1,!0)):y=M,Qa.element=y,Zc(Qa),y(U).ready(function(){Wc(U,cc)}))})(window,document);!angular.$$csp()&&angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}.ng-animate-block-transitions{transition:0s all!important;-webkit-transition:0s all!important;}</style>');212//# sourceMappingURL=angular.min.js.map213/Users/doug/Desktop/JNC8/server/controllers/db-helpers.js:
42varrequest=newRequest(query,function(err,rowCount,rows){43if(err){44: console.log('Request error: '+err);45callback(err);46}else{47: console.log('Successful request. Returning '+rowCount+' rows...');48: console.log(rows);49rows=parseData(rows);50callback(err,rows);..54connection.execSql(request);55}else{56: console.log(err);57}58});/Users/doug/Desktop/JNC8/server/routes/route-handler.js:
3031app.get('/db/returning',function(req,res){32: console.log('get db/returning');33varquery=dbHelp.makeUserQuery(req.query.uid);34: console.log('db returning query',query);35dbHelp.queryHelper(query,function(err,rows){36if(err){..78// standalone users and moxe users at the end of a patient encounter 79app.post('/db/encounters',function(req,res){80: console.log('post db/encounters');81// there must be a better way to do this... pulling data from the req object and normalizing it82varstringifyParams=function(params){..99//emailHashString is the same as emailHash, but not stringified100varemailHashString=encrypt.makeEmailHash(ptId);101: console.log('typeof emailHashString',typeofemailHashString);102}else{103varemailHashString=undefined;
...
109}110111: console.log('emailHash after encrypt',emailHash);112: console.log('ptId',ptId);113: console.log('orgId',orgId);114varquery='INSERT INTO dbo.encounters (ptId, orgId, emails, emailHash, encounterDate, curBP, curTargetBP, curMeds, age, race, hasCKD, hasDiabetes) VALUES ('+ptId+','+orgId+','+emails+','+emailHash+','+encounterDate+','+curBP+','+curTargetBP+','+curMeds+','+age+','+race+','+hasCKD+','+hasDiabetes+')';115116: console.log('query',query);117118varmessageRecipient=req.body.encounter.emails[0];119: console.log('Sending an email to '+messageRecipient);120email.sendNewUserMail(messageRecipient,emailHashString);121...123dbHelp.queryHelper(query,function(err,data){124if(err){125: console.log(err);126res.send("There was an error:"+err);127}else{/Users/doug/Desktop/JNC8/server/util/email.js:
13});1415: console.log('SMTP Configured');1617// Message object..24};2526: console.log('Sending Mail');27transport.sendMail(message,function(error){28if(error){29: console.log('Error occured');30: console.log(error.message);31return;32}33: console.log('Message sent successfully!');3435// if you don't want to use this transport object anymore, uncomment following line/Users/doug/Desktop/JNC8/server/util/encrypt.js:
2526exports.signUrl=function(queryString,secret){27: console.log(route);28varhmac=crypto.createHmac('sha256',api.goodRx.secret);29hmac.update(queryString);..38hash.update(salt);39varsafeHash=makeUrlSafe(hash.digest('base64'));40: console.log(safeHash);41returnsafeHash;42};/Users/doug/Desktop/JNC8/server/util/saml.js:
11exports.getClaimsDetails=function(err,profile){12if(err){13: console.log('SAML parse error in getClaimsDetails: ',err);14}else{15varclaimsDetails={}/Users/doug/Desktop/JNC8/test/unit/algorithm_jnc8_spec.js:
259260varalgoGeneratedRecs=algorithm.methods.generateRecs(pt);261: console.log(algoGeneratedRecs);262263expect(algoGeneratedRecs.recMsg).toEqual(algorithm.opts.recMessages.allFollowUpVisits+" "+algorithm.opts.recMessages.referralVisit);/Users/doug/Desktop/JNC8/utility/email.js:
28smtpTransport.sendMail(emailOptions,function(error,response){29if(error){30: console.log(error);31}else{32: console.log('Message sent: '+response.message);33}34smtpTransport.close();/Users/doug/Desktop/JNC8/utility/encrypt.js:
2526exports.signUrl=function(queryString,secret){27: console.log(route);28varhmac=crypto.createHmac('sha256',api.goodRx.secret);29hmac.update(queryString);..38hash.update(salt);39varsafeHash=makeUrlSafe(hash.digest('base64'));40: console.log(safeHash);41returnsafeHash;42};/Users/doug/Desktop/JNC8/utility/saml.js:
11exports.getClaimsDetails=function(err,profile){12if(err){13: console.log('SAML parse error in getClaimsDetails: ',err);14}else{15varclaimsDetails={}126matchesacross29files
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Some might be for error logging, but many seem crufty...
The text was updated successfully, but these errors were encountered: