!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.bundle=t():e.bundle=t()}(window,(function(){return(window.webpackJsonpbundle=window.webpackJsonpbundle||[]).push([[200,158],{11:function(e,t){e.exports=vendor_534244d415b9190e039e},1184:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=l(n(1185)),i=l(n(0)),r=l(n(20)),o=l(n(837));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=e.data;i.default.forOwn(t,(function(e,t){(0,r.default)("#"+t).text(e>0?e:"");var n=o.default[t];if(n){var a=n.additionalId;if(a){var i=(0,r.default)("#".concat(a));if(i.length&&(i.html(""),e>0)){var l=n.homeLink,u=e+" "+n.homeLinkText+(e>1?"s":"");i.html(createLinkOrPlainText(l,u,n.isError))}}var s=n.counterId;if(s){var c=(0,r.default)("#".concat(s));s.length&&(c.html(""),e>0&&c.html(e))}}}))}window.updateSystemQueue=function(){window.allowSystemQueue&&a.default.refresh()},(0,r.default)((function(){if(window.allowSystemQueue){a.default.start(),a.default.subscribe(u);var e=a.default.get();e&&u({data:e})}}));var s={refresh:a.default.refresh,subscribe:a.default.subscribe,get:a.default.get};t.default=s},1185:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i=(a=n(1186))&&a.__esModule?a:{default:a};function r(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];b("fetch",{contextPath:APP.contextPath,skipThrottle:e,websocketThrottleMillis:APP.systemQueueWebsocketThrottleMillis})}function b(e,t){return u.publish(Object.assign({type:e},t))}var g={isSupported:function(){return window.navigator.serviceWorker&&window.SharedWorker&&window.localStorage},start:function(){var e=[APP.loggedInUserId,APP.resourceVersionParameters].join("|");if(!u){if(l=new r.JsonStorage(new r.PrefixStorage(localStorage,"systemQueue.")),u=new i.SharedWorkerConsumer("".concat(APP.contextPath,"/static/js/common/systemQueue/worker.js?").concat(APP.resourceVersionParameters)),v()){(function(e){if(e!==l.getItem("qualifier"))return!0;var t=l.getItem("timestamp");if(new Date-t>c)return!0;return!1})(e)&&(l.clear(),m(!0));var t="/ema/web/socket/registry/staff";o.default.connect(t,(function(){o.default.subscribe(t,"/user/system-queue",(function(e){m()}),{messageBehavior:"SINGLE"}),o.default.subscribe(t,"/notification/firm/system-queue",(function(e){m()}),{messageBehavior:"SINGLE"})}))}else{var n=0;if(e===l.getItem("qualifier"))n=(n=l.getItem("timestamp")+s-new Date)<0?0:n;0===n&&l.clear(),setTimeout((function(){b("poll",{rate:s,contextPath:APP.contextPath})}),n)}u.subscribe((function(t){var n=t.data;l.setItem("data",n),l.setItem("qualifier",e),l.setItem("timestamp",+new Date),v()||function(e){if(APP.systemQueueWorkerThrottleEnabled){var t,n=f.length;if(n>1&&n<10){f.push(e);var a=0;f.forEach((function(e){return a+=e})),d=a/(n+1)}else n<10&&f.push(e);d&&(p.forEach((function(n){!t&&e>d+d*n&&(t=s+s*n)})),t?b("refresh",{delay:t,rate:t,contextPath:APP.contextPath}):h>s&&b("refresh",{delay:s,rate:s,contextPath:APP.contextPath}),h=t||s)}}(t.responseTimeMillis)}))}},refresh:function(){v()?m(!0):b("refresh",{rate:s,contextPath:APP.contextPath})},subscribe:function(e){u.subscribe(e)},get:function(){return l.getItem("data")}};t.default=g},1191:function(e,t,n){e.exports=n(11)(858)},1516:function(e,t,n){"use strict";var a,i=(a=n(20))&&a.__esModule?a:{default:a};window.post=function(e,t,n,a,r){if(null==e||""==e||null==a&&"function"==typeof a||null==r&&"function"==typeof r)throw"The post parameters url can not be null and callbackOnSuccess, callBackOnFail have to be functions.";var o=null==t||""==t?"":"?_eventName="+t;i.default.post(e+o,n,(function(e){i.default.unblockUI(),"SUCCESS"==e.status?null!=a&&a(e):(null!=r&&r(e),alert("Please try it again in a minute, if this message is showing again,\nplease contact customer support."))}))},window.postJson=function(e,t,n,a){if(null==e||""==e||null==n&&"function"==typeof n||null==a&&"function"==typeof a)throw"The post parameters url can not be null and callbackOnSuccess, callBackOnFail have to be functions.";i.default.ajax({type:"POST",dataType:"json",contentType:"application/json",url:e,context:document.body,data:t,success:function(e){i.default.unblockUI(),"SUCCESS"==e.status?null!=n&&n(e):null!=a?a(e):alert("Please try it again in a minute, if this message is showing again,\nplease contact customer support.")}})},window.get=function(e,t,n,a,r){if(null==e||""==e||null==t||""==t||null==a&&"function"==typeof a||null==r&&"function"==typeof r)throw"The post parameters url, action can not be null and callbackOnSuccess, callBackOnFail have to be functions.";i.default.get(e+"?_eventName="+t,n,(function(e){"SUCCESS"==e.status?null!=a&&a(e):(null!=r&&r(e),alert("Please try it again in a minute, if this message is showing again,\nplease contact customer support."))}))}},2617:function(e,t,n){"use strict";n(2618),n(539),n(2620),n(2621),n(1191),n(580),n(1516),n(617),n(2622),n(2623),n(2624),n(2625),n(1184),__.templateSettings={evaluate:/\{%([\s\S]+?)%\}/g,interpolate:/\{\{([\s\S]+?)\}\}/g,escape:/\{-([\s\S]+?)-\}/g}},2618:function(e,t,n){(function(t){e.exports=t.__=n(2619)}).call(this,n(815))},2619:function(e,t,n){(function(){var n=this,a=n._,i={},r=Array.prototype,o=Object.prototype,l=Function.prototype,u=r.push,s=r.slice,c=r.concat,d=o.toString,f=o.hasOwnProperty,p=r.forEach,h=r.map,v=r.reduce,m=r.reduceRight,b=r.filter,g=r.every,y=r.some,w=r.indexOf,k=r.lastIndexOf,x=Array.isArray,A=Object.keys,S=l.bind,P=function(e){return e instanceof P?e:this instanceof P?void(this._wrapped=e):new P(e)};e.exports&&(t=e.exports=P),t._=P,P.VERSION="1.5.0";var _=P.each=P.forEach=function(e,t,n){if(null!=e)if(p&&e.forEach===p)e.forEach(t,n);else if(e.length===+e.length){for(var a=0,r=e.length;a2;if(null==e&&(e=[]),v&&e.reduce===v)return a&&(t=P.bind(t,a)),i?e.reduce(t,n):e.reduce(t);if(_(e,(function(e,r,o){i?n=t.call(a,n,e,r,o):(n=e,i=!0)})),!i)throw new TypeError(I);return n},P.reduceRight=P.foldr=function(e,t,n,a){var i=arguments.length>2;if(null==e&&(e=[]),m&&e.reduceRight===m)return a&&(t=P.bind(t,a)),i?e.reduceRight(t,n):e.reduceRight(t);var r=e.length;if(r!==+r){var o=P.keys(e);r=o.length}if(_(e,(function(l,u,s){u=o?o[--r]:--r,i?n=t.call(a,n,e[u],u,s):(n=e[u],i=!0)})),!i)throw new TypeError(I);return n},P.find=P.detect=function(e,t,n){var a;return C(e,(function(e,i,r){if(t.call(n,e,i,r))return a=e,!0})),a},P.filter=P.select=function(e,t,n){var a=[];return null==e?a:b&&e.filter===b?e.filter(t,n):(_(e,(function(e,i,r){t.call(n,e,i,r)&&a.push(e)})),a)},P.reject=function(e,t,n){return P.filter(e,(function(e,a,i){return!t.call(n,e,a,i)}),n)},P.every=P.all=function(e,t,n){t||(t=P.identity);var a=!0;return null==e?a:g&&e.every===g?e.every(t,n):(_(e,(function(e,r,o){if(!(a=a&&t.call(n,e,r,o)))return i})),!!a)};var C=P.some=P.any=function(e,t,n){t||(t=P.identity);var a=!1;return null==e?a:y&&e.some===y?e.some(t,n):(_(e,(function(e,r,o){if(a||(a=t.call(n,e,r,o)))return i})),!!a)};P.contains=P.include=function(e,t){return null!=e&&(w&&e.indexOf===w?-1!=e.indexOf(t):C(e,(function(e){return e===t})))},P.invoke=function(e,t){var n=s.call(arguments,2),a=P.isFunction(t);return P.map(e,(function(e){return(a?t:e[t]).apply(e,n)}))},P.pluck=function(e,t){return P.map(e,(function(e){return e[t]}))},P.where=function(e,t,n){return P.isEmpty(t)?n?void 0:[]:P[n?"find":"filter"](e,(function(e){for(var n in t)if(t[n]!==e[n])return!1;return!0}))},P.findWhere=function(e,t){return P.where(e,t,!0)},P.max=function(e,t,n){if(!t&&P.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.max.apply(Math,e);if(!t&&P.isEmpty(e))return-1/0;var a={computed:-1/0,value:-1/0};return _(e,(function(e,i,r){var o=t?t.call(n,e,i,r):e;o>a.computed&&(a={value:e,computed:o})})),a.value},P.min=function(e,t,n){if(!t&&P.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.min.apply(Math,e);if(!t&&P.isEmpty(e))return 1/0;var a={computed:1/0,value:1/0};return _(e,(function(e,i,r){var o=t?t.call(n,e,i,r):e;oa||void 0===n)return 1;if(n>>1;n.call(a,e[l])=0}))}))},P.difference=function(e){var t=c.apply(r,s.call(arguments,1));return P.filter(e,(function(e){return!P.contains(t,e)}))},P.zip=function(){return P.unzip.apply(P,s.call(arguments))},P.unzip=function(){for(var e=P.max(P.pluck(arguments,"length").concat(0)),t=new Array(e),n=0;n=0;n--)t=[e[n].apply(this,t)];return t[0]}},P.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},P.keys=A||function(e){if(e!==Object(e))throw new TypeError("Invalid object");var t=[];for(var n in e)P.has(e,n)&&t.push(n);return t},P.values=function(e){var t=[];for(var n in e)P.has(e,n)&&t.push(e[n]);return t},P.pairs=function(e){var t=[];for(var n in e)P.has(e,n)&&t.push([n,e[n]]);return t},P.invert=function(e){var t={};for(var n in e)P.has(e,n)&&(t[e[n]]=n);return t},P.functions=P.methods=function(e){var t=[];for(var n in e)P.isFunction(e[n])&&t.push(n);return t.sort()},P.extend=function(e){return _(s.call(arguments,1),(function(t){if(t)for(var n in t)e[n]=t[n]})),e},P.pick=function(e){var t={},n=c.apply(r,s.call(arguments,1));return _(n,(function(n){n in e&&(t[n]=e[n])})),t},P.omit=function(e){var t={},n=c.apply(r,s.call(arguments,1));for(var a in e)P.contains(n,a)||(t[a]=e[a]);return t},P.defaults=function(e){return _(s.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e},P.clone=function(e){return P.isObject(e)?P.isArray(e)?e.slice():P.extend({},e):e},P.tap=function(e,t){return t(e),e};var E=function(e,t,n,a){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;e instanceof P&&(e=e._wrapped),t instanceof P&&(t=t._wrapped);var i=d.call(e);if(i!=d.call(t))return!1;switch(i){case"[object String]":return e==String(t);case"[object Number]":return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object RegExp]":return e.source==t.source&&e.global==t.global&&e.multiline==t.multiline&&e.ignoreCase==t.ignoreCase}if("object"!=typeof e||"object"!=typeof t)return!1;for(var r=n.length;r--;)if(n[r]==e)return a[r]==t;var o=e.constructor,l=t.constructor;if(o!==l&&!(P.isFunction(o)&&o instanceof o&&P.isFunction(l)&&l instanceof l))return!1;n.push(e),a.push(t);var u=0,s=!0;if("[object Array]"==i){if(s=(u=e.length)==t.length)for(;u--&&(s=E(e[u],t[u],n,a)););}else{for(var c in e)if(P.has(e,c)&&(u++,!(s=P.has(t,c)&&E(e[c],t[c],n,a))))break;if(s){for(c in t)if(P.has(t,c)&&!u--)break;s=!u}}return n.pop(),a.pop(),s};P.isEqual=function(e,t){return E(e,t,[],[])},P.isEmpty=function(e){if(null==e)return!0;if(P.isArray(e)||P.isString(e))return 0===e.length;for(var t in e)if(P.has(e,t))return!1;return!0},P.isElement=function(e){return!(!e||1!==e.nodeType)},P.isArray=x||function(e){return"[object Array]"==d.call(e)},P.isObject=function(e){return e===Object(e)},_(["Arguments","Function","String","Number","Date","RegExp"],(function(e){P["is"+e]=function(t){return d.call(t)=="[object "+e+"]"}})),P.isArguments(arguments)||(P.isArguments=function(e){return!(!e||!P.has(e,"callee"))}),P.isFunction=function(e){return"function"==typeof e},P.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},P.isNaN=function(e){return P.isNumber(e)&&e!=+e},P.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"==d.call(e)},P.isNull=function(e){return null===e},P.isUndefined=function(e){return void 0===e},P.has=function(e,t){return f.call(e,t)},P.noConflict=function(){return n._=a,this},P.identity=function(e){return e},P.times=function(e,t,n){for(var a=Array(Math.max(0,e)),i=0;i":">",'"':""","'":"'","/":"/"}};D.unescape=P.invert(D.escape);var R={escape:new RegExp("["+P.keys(D.escape).join("")+"]","g"),unescape:new RegExp("("+P.keys(D.unescape).join("|")+")","g")};P.each(["escape","unescape"],(function(e){P[e]=function(t){return null==t?"":(""+t).replace(R[e],(function(t){return D[e][t]}))}})),P.result=function(e,t){if(null!=e){var n=e[t];return P.isFunction(n)?n.call(e):n}},P.mixin=function(e){_(P.functions(e),(function(t){var n=P[t]=e[t];P.prototype[t]=function(){var e=[this._wrapped];return u.apply(e,arguments),q.call(this,n.apply(P,e))}}))};var M=0;P.uniqueId=function(e){var t=++M+"";return e?e+t:t},P.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var L=/(.)^/,F={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},U=/\\|'|\r|\n|\t|\u2028|\u2029/g;P.template=function(e,t,n){var a;n=P.defaults({},n,P.templateSettings);var i=new RegExp([(n.escape||L).source,(n.interpolate||L).source,(n.evaluate||L).source].join("|")+"|$","g"),r=0,o="__p+='";e.replace(i,(function(t,n,a,i,l){return o+=e.slice(r,l).replace(U,(function(e){return"\\"+F[e]})),n&&(o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'"),a&&(o+="'+\n((__t=("+a+"))==null?'':__t)+\n'"),i&&(o+="';\n"+i+"\n__p+='"),r=l+t.length,t})),o+="';\n",n.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{a=new Function(n.variable||"obj","_",o)}catch(e){throw e.source=o,e}if(t)return a(t,P);var l=function(e){return a.call(this,e,P)};return l.source="function("+(n.variable||"obj")+"){\n"+o+"}",l},P.chain=function(e){return P(e).chain()};var q=function(e){return this._chain?P(e).chain():e};P.mixin(P),_(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=r[e];P.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!=e&&"splice"!=e||0!==n.length||delete n[0],q.call(this,n)}})),_(["concat","join","slice"],(function(e){var t=r[e];P.prototype[e]=function(){return q.call(this,t.apply(this._wrapped,arguments))}})),P.extend(P.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}).call(this)},2620:function(e,t,n){e.exports=n(11)(853)},2621:function(e,t,n){e.exports=n(11)(854)},2622:function(e,t,n){"use strict";var a,i=(a=n(20))&&a.__esModule?a:{default:a};n(1516);var r,o,l=!0;r=i.default.blockUI,i.default.blockUI=function(e){l=!1;var t=function(){return r.bind(i.default)(e)};APP.pleaseWaitConfig.preProcess?!APP.pleaseWaitConfig.pleaseWaitDisable&&APP.pleaseWaitConfig.pleaseWaitDelay>0&&setTimeout((function(){l||t()}),APP.pleaseWaitConfig.pleaseWaitDelay):t()},i.default.blockUI.defaults=r.defaults,o=i.default.unblockUI,i.default.unblockUI=function(){return l=!0,o.bind(i.default)()},window.getWaitConfig=function(){return{message:(0,i.default)("div.pleaseWaitUI"),css:{border:"none",padding:"15px",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px",opacity:.5,color:"#BBB",fontWeight:"bold",fontSize:"18pt"},overlayCSS:{backgroundColor:"#000"}}},window.confirmationAndPost=function(e,t,n,a,r,o,l,u){openPopUp(e,t,n,(function(){i.default.blockUI(getWaitConfig()),post(a,r,o,l,u)}),u)},window.confirmationAndPostJson=function(e,t,n,a,r,o,l){openPopUp(e,t,n,(function(){i.default.blockUI(getWaitConfig()),postJson(a,r,o,l)}),l)},window.getAndShowInPopUp=function(e,t,n,a,r,o,l){i.default.blockUI(getWaitConfig()),(l=null==l?{}:l).title=t,l.autoOpen=!1,l.draggable=!0,l.resizable=null==l.resizable||l.resizable,l.modal=!0,l.stack=!0,l.width=null==l.width?.7*(0,i.default)(window).width():l.width,i.default.get(n+"?_eventName="+a,r,(function(t){var n=(0,i.default)("#"+e);n.remove(),(n=(0,i.default)('
')).appendTo("body"),n.html(t),n.dialog(l).dialog("open"),null!=l.buttons&&l.buttons,(0,i.default)(".ui-resizable-se").css("align","left"),o(),i.default.unblockUI()}))},window.openPopUp=function(e,t,n,a){var r=(0,i.default)(e);0==r.length&&(r=(0,i.default)('

'+n+"

")).appendTo("body"),r.dialog({title:t,autoOpen:!1,draggable:!1,resizable:!1,modal:!0,stack:!0,buttons:{OK:function(){(0,i.default)(this).dialog("close"),null!=a&&a()}}}).dialog("open")},window.openPopUp=function(e,t,n,a,r){var o=(0,i.default)(e);0==o.length&&(o=(0,i.default)('

'+n+"

")).appendTo("body"),o.dialog({title:t,autoOpen:!1,draggable:!1,resizable:!1,modal:!0,stack:!0,buttons:{Yes:function(){(0,i.default)(this).dialog("close"),null!=a&&a()},No:function(){(0,i.default)(this).dialog("close"),null!=r&&r()}}}).dialog("open")},window.openAlert=function(e,t,n){var a=(0,i.default)(e);0==a.length&&(a=(0,i.default)('

'+n+"

")).appendTo("body"),a.dialog({title:t,autoOpen:!1,draggable:!1,resizable:!1,modal:!0,stack:!0,buttons:{Close:function(){(0,i.default)(this).dialog("close")}}}).dialog("open")},window.openAlertButton=function(e,t,n){var a=(0,i.default)(e);0==a.length&&(a=(0,i.default)('

'+n+"

")).appendTo("body"),a.dialog({title:t,autoOpen:!1,draggable:!1,resizable:!1,modal:!0,stack:!0,buttons:{OK:function(){(0,i.default)(this).dialog("close")}}}).dialog("open")},window.questionDialog=function(){var e=Array.prototype.slice.call(arguments),t=e.length>2?e.shift():"",n=e.length>1?e.shift():"Are you sure?",a=e.shift(),r=(0,i.default)("
");return i.default.each(a,(function(e,t){a[e]=function(){var e=i.default.isFunction(t)?t.apply(r,arguments):void 0;!1!==e&&r.dialog("close")}})),r.text(n).dialog({title:t,autoOpen:!1,draggable:!1,resizable:!1,modal:!0,stack:!0,buttons:a}).on("dialogClose",(function(){r.remove()})),r.dialog("open"),r},window.showAjaxErrorDialog=function(e,t){var n=e.responseJSON||{},a=new Date,r=a.toDateString().split(" ").splice(1).join(", ").replace(", "," "),o="

Sorry, an error has occurred...

Error Details

Please provide the following information to Modernizing Medicine as well as any specific steps you took which may have caused this problem.

Build Number: "+(n.buildNumber||"")+"
Revision Number: "+(n.revisionNumber||"")+"
Date: "+r+" "+a.toLocaleTimeString()+"
Status: "+(e.status||"")+"
Cause: "+(n.cause||"")+"
Message: "+(n.message||"")+"
Please report this incident using error ID "+(n.errorLogId||"")+", along with any actions you were performing when the error occurred.


"+(e.statusText||"")+"
";(0,i.default)(o).dialog({title:"Errors Detected",dialogClass:"ema-dialog ema-dialog-error",modal:t})},window.showPdfModal=function(e,t){t+=t+"&inline=true",(0,i.default)("#dialog").dialog({modal:!0,autoOpen:!0,draggable:!0,resizable:!0,title:e,height:.9*(0,i.default)(window).height(),width:.7*(0,i.default)(window).width(),open:function(){var e="
";e+="",e+="If you are unable to view file, you can download from here",e+=" or download Adobe PDF Reader to view the file.",e+="",e+="",e+="
",(0,i.default)("#dialog").html(e)}})}},2623:function(e,t,n){"use strict";String.prototype.startsWith=String.prototype.startsWith||function(e){return 0===this.indexOf(e)},String.prototype.endsWith=String.prototype.endsWith||function(e){var t=this.lastIndexOf(e);return t>=0&&t+e.length===this.length},String.prototype.pad=function(e,t,n){var a=this;if("string"==typeof e&&1===e.length&&t>this.length){var i=new Array(t-this.length+1).join(e);a=n?a+i:i+a}return a},window.dequote=function(e){return null!=e&&"undefined"!=e?e.replace(/'/g,"").replace(/\"/g,""):null}},2624:function(module,exports,__webpack_require__){"use strict";var _jquery=_interopRequireDefault(__webpack_require__(20)),_infoButtonPopover=__webpack_require__(269);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n")},window.validImageExtensionsRegEx=/\.(jpg|jpeg|jp2|gif|png|bmp|tiff|jb2|pdf)$/i,window.isImage=function(e){return validImageExtensionsRegEx.test(e)},window.displayNoApos=function(e){return display(e).replace(/\'/g,"")},window.escapeDoubleQuotes=function(e){return display(e).replace(/\"/g,""")},window.createLinkOrPlainText=function(e,t,n){return e?"'+t+"":t},window.contains=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},window.objFromArray=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return t;return null},window.doSubmitActionConditionalBlocking=function(e,t,n){n?doSubmitAction(e,t):doSubmitActionNonBlocking(e,t)},window.doSubmitActionNonBlocking=function(e,t){genericSubmitAction(e,{_eventName:t})},window.doSubmitAction=function(e,t,n){var a=_jquery.default.extend({},{_eventName:t},n);genericSubmitAction(e,a),setTimeout((function(){window.omitBlockUI||_jquery.default.blockUI(getWaitConfig())}))},window.doSubmitActionAjax=function(e,t,n){genericSubmitActionAjax(e,{_eventName:t},n),setTimeout((function(){window.omitBlockUI||_jquery.default.blockUI(getWaitConfig())}))},window.doSubmitActionAjaxNonBlocking=function(e,t,n){genericSubmitActionAjax(e,{_eventName:t},n,!0)},window.doSubmitAndRelocate=function(e,t){genericSubmitAction(e,{newActionBean:t,_eventName:"saveAndRelocate"}),setTimeout((function(){window.omitBlockUI||_jquery.default.blockUI(getWaitConfig())}))},window.genericSubmitAction=function(e,t){return cloneFormSubject.notify(),genericSubmitActionForm(e,t).submit(),!1},window.genericSubmitActionAjax=function(e,t,n,a){var i=genericSubmitActionForm(e,t),r=i.attr("action"),o=i.serializeArray();return _jquery.default.post(r,o,(function(e){null!==n&&(0,_jquery.default)(n).html(e),_jquery.default.unblockUI(),cloneFormSubject.notify()})),a&&i.remove(),!1},window.genericSubmitActionForm=function(e,t){var n=(0,_jquery.default)("#"+e),a=n.clone(!1).removeAttr("id");for(var i in a.find("script").remove(),a.find("*").removeAttr("id"),t){var r=t[i];a.find("[name='"+i+"']").remove(),(0,_jquery.default)("").attr({type:"hidden",name:i,value:r}).appendTo(a)}for(var o=["select","textarea"],l=function(e,t){var i=o[e];n.find(i).each((function(){var e=(0,_jquery.default)(this),t=e.attr("name");if(t){t=t.replace(/'/g,"\\'");var n=a.find(i+"[name='"+t+"']");if(n){var r=e.val();n.val(r)}}}))},u=0,s=o.length;u").attr({type:"hidden",name:"_eventName",value:t}).appendTo(n),n.submit(),!1},window.doSubmitConfirmAction=function(e,t,n){confirm(n)&&doSubmitAction(e,t)},window.createHiddenField=function(e,t,n){var a=document.getElementById(e),i=document.getElementById(t);if(null==i){var r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("id",t),r.setAttribute("value",n),r.setAttribute("name",t),a.appendChild(r)}else i.setAttribute("value",n)},window.SQLDateToString=function(e){var t="";try{if(null!=e){var n=new Date(e),a=n.getTime()+60*n.getTimezoneOffset()*1e3,i=new Date(a);t=i.getMonth()+1+"/"+i.getDate()+"/"+i.getFullYear()}}catch(e){t="error:"+e}return t},window.toggleVisibility=function(e){var t=document.getElementById(e);"none"==t.style.display?t.style.display="":t.style.display="none"},window.patientInfoTopBar=function(e){var t=document.getElementById("patientInfoExpandBtn"),n=document.getElementById("patientInfoCollapseBtn"),a=document.getElementById("patientInfoDetails");"expand"==e?(t.style.display="none",n.style.display="",a.style.display=""):"collapse"==e&&(t.style.display="",n.style.display="none",a.style.display="none")},window.dump=function(e,t){var n="";t||(t=0);for(var a="",i=0;i \""+o+'"\n'}else n="===>"+e+"<===("+_typeof(e)+")";return n},window.submitonenter=function(e,t,n){(t=t||(window.event?window.event:""))&&(13!=t.keyCode&&13!=t.which||(n.blur(),document.getElementById(e).submit()))},window.refreshonenter=function(e,t){if((e=e||(window.event?window.event:""))&&(13==e.keyCode||13==e.which))return t.blur(),refreshTable()},window.htmlEncode=function(e,t,n){return xmlencode(e)},window.xmlEE=function(e){return xmlencode(e)},window.xmlencode=function(e){return null!=e&&"undefined"!=e?e.replace(/\r\n/gm,"_NEWLINE_RN_").replace(/\n/gm,"_NEWLINE_N_").replace(/\r/gm,"_NEWLINE_R_"):null},window.xmldecode=function(e){return null!=e&&"undefined"!=e?e.replace(/_NEWLINE_RN_/gm,"\r\n").replace(/_NEWLINE_N_/gm,"\n").replace(/_NEWLINE_R_/gm,"\r"):null},window.xmlDD=function(e){return xmldecode(e)},window.focusOnFieldOrFirstError=function(e){var t=(0,_jquery.default)("input.error").add("textarea.error").add("select.error");t.length>0?t.first().focus().select():(0,_jquery.default)(["input","textarea"]).each((function(t,n){(0,_jquery.default)(n+"[name='"+e+"']").focus()}))},window.doViewVisitOverviewAction=function(e){createHiddenField("overviewForm","vid",e),doSubmitAction("overviewForm","viewVisitOverview")},window.doLabOrderOverviewAction=function(e,t,n){doLabOrderOverviewActionByForm(e,t,n,"overviewForm")},window.doLabOrderOverviewActionByForm=function(e,t,n,a){var i=(0,_jquery.default)("#_pid").get(0);null!=i?null!=i.value&&""!=i.value||(i.value=e):null!=e&&createHiddenField(a,"pid",e),null!=t?createHiddenField(a,"oid",t):createHiddenField(a,"rid",n),doSubmitAction(a,"viewLabOrderOverview")},window.doLabRequestOverviewAction=function(e,t,n){doLabRequestOverviewActionByForm(e,t,n,"overviewForm")},window.doLabRequestOverviewActionByForm=function(e,t,n,a){var i=(0,_jquery.default)("#_pid").get(0);null!=i?null!=i.value&&""!=i.value||(i.value=e):null!=e&&createHiddenField(a,"pid",e),null!=t?createHiddenField(a,"lrid",t):createHiddenField(a,"rid",n),doSubmitAction(a,"viewLabOrderOverview")},window.updateStaffSupervisor=function(e){var t=e.options[e.selectedIndex].value;if("null"!=t){var n=APP.contextPath+"/ajax/AjaxUpdateStaffSupervisor.action?supervisor="+t;_jquery.default.post({url:n,timeout:4e3}).done((function(e){})).fail((function(e){}))}},window.updatePatientStatus=function(e,t){var n=e.options[e.selectedIndex].value;if(null!=n&&""!=n&&"null"!=n){var a=APP.contextPath+"/ajax/AjaxUpdatePatientStatus.action?patient="+t+"&statusFirm="+n;_jquery.default.post({url:a,timeout:4e3}).done((function(e){})).fail((function(e){}))}},window.roundNumberToPlace=function(e,t){return Math.round(Math.round(e*Math.pow(10,t+1))/Math.pow(10,1))/Math.pow(10,t)},window.millisecondsToTime=function(e){e=parseInt(e,10);var t=(e=Math.floor(e/1e3))%3600,n=t%60;return{h:Math.floor(e/3600),m:Math.floor(t/60),s:Math.ceil(n)}},window.millisecondsToTimeString=function(e){var t="",n=millisecondsToTime(e);return null!=n.h&&n.h>0&&(t+=n.h+"h "),null!=n.m&&n.m>0&&(t+=n.m+"m "),null!=n.s&&n.s>0&&(t+=n.s+"s "),t},window.disableEnterKey=function(e){return 13!==(window.event?window.event.keyCode:e.which)},window.showLabResultDetails=function(e,t,n,a){var i={};null!=t&&""!=t&&(i.pid=t),null!=n&&""!=n&&(i.lrid=n),null!=a&&""!=a&&(i.oid=a),_jquery.default.blockUI(getWaitConfig()),_jquery.default.get(APP.contextPath+"/app/lab/LabRequestOverview.action?_eventName="+e,i,(function(a){var i=(0,_jquery.default)("#labResultDetailDialog");0==i.length&&(i=(0,_jquery.default)('
')).appendTo("body"),i.html(a),i.dialog({title:"Lab Result Details",autoOpen:!1,draggable:!0,resizable:!0,modal:!0,stack:!0,dialogClass:"labResultDetailDialogContainer",height:.9*(0,_jquery.default)(window).height(),width:.7*(0,_jquery.default)(window).width()}),i.dialog("open"),(0,_jquery.default)("#artifactContainer").css("height",i.height()-20),(0,_jquery.default)("#showAttachmentNotes").unbind("click"),(0,_jquery.default)("#showDetails").unbind("click"),"labOrderResultDetails"==e||"labOrderResultDetailsGrouped"==e?(i.css("overflow","scroll"),(0,_jquery.default)("#showDetails").click((function(e){stopEvent(e),showLabResultDetails("view",t,n)}))):(i.css("overflow","scroll"),(0,_jquery.default)("#showAttachmentNotes").click((function(e){stopEvent(e),showLabResultDetails("labOrderResultDetails",t,n)}))),_jquery.default.unblockUI()}))},window.showFileAttachmentDialog=function(e,t,n,a,i,r,o){var l="
"+(a&&i&&r&&o?"
"+a+" "+i+" "+r+" "+o+"
":"")+"
";return(0,_jquery.default)(l).dialog({title:n,autoOpen:!0,draggable:!0,resizable:!0,modal:!0,width:835,buttons:{OK:function(){return(0,_jquery.default)(this).dialog("close"),!1}}}),!1},window.createProviderAlertEventMapFromPAobject=function(e){var t={};if(void 0!==e.providerAlerts)for(var n=0;n=l.length){if(l.length>0){for(var c=[],d=0;d0&&_jquery.default.ajax({type:"POST",async:!1,url:APP.contextPath+"/ws/providerAlert?patientId="+a+"&visitId="+i,data:JSON.stringify({providerAlerts:c}),success:function(){},failure:function(){},cache:!1,contentType:"application/json",dataType:"text/plain"})}s&&r()}else{var p=l[u],h=!0;if("VE_ROOM_SELECT_PROCEDURE"==t){for(var v,m=n,b=0;b"+p.infoButtonText+"");var i="";if(""!==p.bibliographicCitationLink&&(i='

'+p.bibliographicCitationLabel+"

"),p.isInfoLinkAWebURL){var r=p.infoButtonLinkRedirect,l={minHeight:500,minWidth:675,resizable:!0,modal:!0,buttons:t};_jquery.default.get(r,(function(e){var t=(0,_jquery.default)("#"+p.alertName);t.remove(),(t=(0,_jquery.default)("
")).appendTo("body"),t.html(e),t.dialog(l)}),"html")}else{var c=(0,_jquery.default)("
"+o+" "+p.alertText+a+i+"
");(0,_jquery.default)("body").on("click",(function(e){return(0,_jquery.default)(".info-button").not(e.target.parentElement).popover("hide"),!0})),(0,_infoButtonPopover.setupInfoButtonPopover)(c.find(".info-button"),(function(e){return p.infoButtonLinks}),"click"),c.dialog({minWidth:500,resizable:!1,modal:!0,buttons:t})}}():e(u+1,s)}}(0,!0)},window.doEventProviderAlerts=function(pid,vid,event,eventData,finishedCallback){var paMap={};null!=eventData&&void 0!==eventData&&_jquery.default.ajax({type:"GET",async:!1,url:APP.contextPath+"/ws/providerAlert/prescription?patientId="+pid+"&visitId="+vid+"&event="+event+"&eventData="+eventData,success:function success(data){var paObject=eval(data);paMap=createProviderAlertEventMapFromPAobject(paObject),triggerProviderAlertEvent(paMap,event,eventData,pid,vid,finishedCallback)},error:function(e){}})},window.doEventProviderAlertsByServiceName=function(pid,vid,event,eventData,serviceName,finishedCallback){var paMap={};null!=eventData&&void 0!==eventData&&_jquery.default.ajax({type:"GET",async:!1,url:APP.contextPath+"/ws/providerAlert/"+serviceName+"?patientId="+pid+"&visitId="+vid+"&event="+event+"&eventData="+eventData,success:function success(data){var paObject=eval(data);paMap=createProviderAlertEventMapFromPAobject(paObject),triggerProviderAlertEvent(paMap,event,eventData,pid,vid,finishedCallback)},error:function(e){}})},window.doEventProviderAlertsInTestsAndResults=function(pid,vid,event,eventData,patientFullName,finishedCallback){var paMap={};null!=eventData&&void 0!==eventData&&_jquery.default.ajax({type:"GET",async:!1,url:APP.contextPath+"/ws/providerAlert/labResult?patientId="+pid+"&visitId="+vid+"&event="+event+"&eventData="+eventData,success:function success(data){var paObject=eval(data);paMap=createProviderAlertEventMapFromPAobject(paObject),triggerProviderAlertEvent(paMap,event,eventData,pid,vid,finishedCallback,patientFullName)},error:function(e){}})},window.getEmailStatusTag=function(e,t,n){var a="";return t&&"string"==typeof t&&"low"===t.toLowerCase()||t&&t.value&&"low"===t.value.toLowerCase()?a=e?"":"":t&&"string"==typeof t&&"high"===t.toLowerCase()||t&&t.value&&"high"===t.value.toLowerCase()?a+=e?"":"":a+=e?"":"",a},window.eventPreventDefault=function(e){return function(t){return t.preventDefault(),e(t),!1}},window.numberToLetter=function(e){var t=Math.floor(e/26);0!=e%26?(e-=26*t,t+=1):e-=26*(t-1);for(var n="",a=0;a1?BundleUtil.format.apply(this,arguments):localizedStrings[e]},format:function(e){var t=Array.prototype.slice.call(arguments);return(e=localizedStrings[t.shift()]).replace(/\{(\d+)\}/g,(function(e,n){return t[n]}))}};window.addAppAlert=function(e,t,n,a){if(t&&0!==t.length){var i="";for(var r in t)i+="
  • "+t[r]+"
  • ";var o=(0,_jquery.default)('
    '+(a||"")+'
      '+i+"
    "),l=function(){e.prepend(o)},u=e.find(".app-alert");u.length?(u.remove(),setTimeout(l,100)):l(),e.show().removeClass("hidden")}else e.hide()},window.removeUrlParam=function(e){var t=window.location.href,n=t.slice(t.indexOf("?")+1),a=t.slice(0,t.indexOf("?")+1),i=new URLSearchParams(n);i.has(e)&&(i.delete(e),history.pushState(null,null,a+i.toString()))}},2625:function(e,t,n){"use strict";var a=n(836),i=l(n(20)),r=l(n(0)),o=n(911);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n0)for(var n=0;n"+e[n].title+"
    ");else t=["No links available."];return"
    "+t.join("")+"
    "}(t(e))},container:"body",viewport:"body"})};var a,i=(a=n(20))&&a.__esModule?a:{default:a};n(329)},539:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i=l(n(20)),r=l(n(0)),o=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}window.jQuery=window.$=i.default,i.default.migrateMute=!0,n(540),n(541),n(542),n(543),n(544),n(546),n(547),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),i.default.fn.mouseSelector=function(e){return this.each((function(){(0,i.default)(this).on("mouseover",(function(){(0,i.default)(this).addClass(e.className)})),(0,i.default)(this).on("mouseout",(function(){(0,i.default)(this).removeClass(e.className)}))})),this},i.default.fn.checkOrUncheck=function(){return(0,i.default)(this).is(":checked")?(0,i.default)(this).unselect():(0,i.default)(this).select(),this},i.default.fn.scrollToThisElement=function(e){return r.default.isFunction(this.offset)&&this.offset()&&(null==e?(0,i.default)("html, body").scrollTop(this.offset().top):(0,i.default)("html, body").animate({scrollTop:this.offset().top},e)),this},i.default.isNotNull=function(e){return null!=e&&"null"!==e},i.default.isNull=function(e){return!i.default.isNotNull(e)},i.default.isNotTrue=function(e){return!i.default.isTrue(e)},i.default.isTrue=function(e){return null!=e&&"true"===e},i.default.extend(i.default.expr[":"],{localName:function(e,t,n){var a=n[3];return a&&e&&e.localName.toLowerCase()===a.toLowerCase()}}),i.default.formatDate=function(e){e=i.default.extend({dateFormat:"MMM D, YYYY",timeFormat:"h:mm A",lineBreak:!0,time:!0,timeZone:APP.loggedInUserTimezone},e);var t=(0,o.default)(e.date);e.timeZone&&t.tz(e.timeZone);var n=t.format(e.dateFormat);return e.lineBreak&&(n+="
    "),e.time&&(n+=" "+t.format(e.timeFormat)),n},i.default.each(["hide","show"],(function(e,t){var n;i.default.fn[t]=(n=i.default.fn[t],function(){return(0,i.default)(this).trigger(t+".ema"),n.apply(this,arguments)})})),i.default.fn.reflow=function(){this.length&&(0,i.default)(this).each((function(e,t){var n=(0,i.default)("
    ").css({height:1,width:1,opacity:0,visibility:"hidden"}).appendTo(t);setTimeout((function(){try{t.offsetHeight}finally{n.remove()}}),1)}))},i.default.Deferred=(a=i.default.Deferred,function(){var e=a.apply(this,arguments);return e.promise().finally=function(){return e.always.apply(this,arguments)},e});var u=i.default;t.default=u},540:function(e,t,n){e.exports=n(11)(852)},541:function(e,t,n){e.exports=n(11)(33)},542:function(e,t,n){e.exports=n(11)(855)},543:function(e,t,n){e.exports=n(11)(857)},544:function(e,t,n){var a,i,r;!function(){"use strict";function o(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},n=/MSIE/.test(navigator.userAgent),a=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){l(window,e)},e.unblockUI=function(e){u(window,e)},e.growlUI=function(t,n,a,i){var r=e('
    ');t&&r.append("

    "+t+"

    "),n&&r.append("

    "+n+"

    "),void 0===a&&(a=3e3);var o=function(t){t=t||{},e.blockUI({message:r,fadeIn:void 0!==t.fadeIn?t.fadeIn:700,fadeOut:void 0!==t.fadeOut?t.fadeOut:1e3,timeout:void 0!==t.timeout?t.timeout:a,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};o();r.css("opacity");r.mouseover((function(){o({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)})).mouseout((function(){e(".blockMsg").fadeOut(1e3)}))},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var n=e.extend({},e.blockUI.defaults,t||{});return this.each((function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})})),this.each((function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,l(this,t)}))},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each((function(){u(this,t)}))},e.blockUI.version=2.7,e.blockUI.defaults={message:"

    Please wait...

    ",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var r=null,o=[];function l(l,s){var d,h,v=l==window,m=s&&void 0!==s.message?s.message:void 0;if(!(s=e.extend({},e.blockUI.defaults,s||{})).ignoreIfBlocked||!e(l).data("blockUI.isBlocked")){if(s.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,s.overlayCSS||{}),d=e.extend({},e.blockUI.defaults.css,s.css||{}),s.onOverlayClick&&(s.overlayCSS.cursor="pointer"),h=e.extend({},e.blockUI.defaults.themedCSS,s.themedCSS||{}),m=void 0===m?s.message:m,v&&r&&u(window,{fadeOut:0}),m&&"string"!=typeof m&&(m.parentNode||m.jquery)){var b=m.jquery?m[0]:m,g={};e(l).data("blockUI.history",g),g.el=b,g.parent=b.parentNode,g.display=b.style.display,g.position=b.style.position,g.parent&&g.parent.removeChild(b)}e(l).data("blockUI.onUnblock",s.onUnblock);var y,w,k,x,A=s.baseZ;y=n||s.forceIframe?e(''):e(''),w=s.theme?e(''):e(''),s.theme&&v?(x='"):s.theme?(x='"):x=v?'':'',k=e(x),m&&(s.theme?(k.css(h),k.addClass("ui-widget-content")):k.css(d)),s.theme||w.css(s.overlayCSS),w.css("position",v?"fixed":"absolute"),(n||s.forceIframe)&&y.css("opacity",0);var S=[y,w,k],P=e(v?"body":l);e.each(S,(function(){this.appendTo(P)})),s.theme&&s.draggable&&e.fn.draggable&&k.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var _=i&&(!e.support.boxModel||e("object,embed",v?null:l).length>0);if(a||_){if(v&&s.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(a||!e.support.boxModel)&&!v)var I=p(l,"borderTopWidth"),C=p(l,"borderLeftWidth"),N=I?"(0 - "+I+")":0,j=C?"(0 - "+C+")":0;e.each(S,(function(e,t){var n=t[0].style;if(n.position="absolute",e<2)v?n.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+s.quirksmodeOffsetHack+') + "px"'):n.setExpression("height",'this.parentNode.offsetHeight + "px"'),v?n.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):n.setExpression("width",'this.parentNode.offsetWidth + "px"'),j&&n.setExpression("left",j),N&&n.setExpression("top",N);else if(s.centerY)v&&n.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),n.marginTop=0;else if(!s.centerY&&v){var a="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(s.css&&s.css.top?parseInt(s.css.top,10):0)+') + "px"';n.setExpression("top",a)}}))}if(m&&(s.theme?k.find(".ui-widget-content").append(m):k.append(m),(m.jquery||m.nodeType)&&e(m).show()),(n||s.forceIframe)&&s.showOverlay&&y.show(),s.fadeIn){var T=s.onBlock?s.onBlock:t,O=s.showOverlay&&!m?T:t,E=m?T:t;s.showOverlay&&w._fadeIn(s.fadeIn,O),m&&k._fadeIn(s.fadeIn,E)}else s.showOverlay&&w.show(),m&&k.show(),s.onBlock&&s.onBlock.bind(k)();if(c(1,l,s),v?(r=k[0],o=e(s.focusableElements,r),s.focusInput&&setTimeout(f,20)):function(e,t,n){var a=e.parentNode,i=e.style,r=(a.offsetWidth-e.offsetWidth)/2-p(a,"borderLeftWidth"),o=(a.offsetHeight-e.offsetHeight)/2-p(a,"borderTopWidth");t&&(i.left=r>0?r+"px":"0");n&&(i.top=o>0?o+"px":"0")}(k[0],s.centerX,s.centerY),s.timeout){var D=setTimeout((function(){v?e.unblockUI(s):e(l).unblock(s)}),s.timeout);e(l).data("blockUI.timeout",D)}}}function u(t,n){var a,i,l=t==window,u=e(t),d=u.data("blockUI.history"),f=u.data("blockUI.timeout");f&&(clearTimeout(f),u.removeData("blockUI.timeout")),n=e.extend({},e.blockUI.defaults,n||{}),c(0,t,n),null===n.onUnblock&&(n.onUnblock=u.data("blockUI.onUnblock"),u.removeData("blockUI.onUnblock")),i=l?e("body").children().filter(".blockUI").add("body > .blockUI"):u.find(">.blockUI"),n.cursorReset&&(i.length>1&&(i[1].style.cursor=n.cursorReset),i.length>2&&(i[2].style.cursor=n.cursorReset)),l&&(r=o=null),n.fadeOut?(a=i.length,i.stop().fadeOut(n.fadeOut,(function(){0==--a&&s(i,d,n,t)}))):s(i,d,n,t)}function s(t,n,a,i){var r=e(i);if(!r.data("blockUI.isBlocked")){t.each((function(e,t){this.parentNode&&this.parentNode.removeChild(this)})),n&&n.el&&(n.el.style.display=n.display,n.el.style.position=n.position,n.el.style.cursor="default",n.parent&&n.parent.appendChild(n.el),r.removeData("blockUI.history")),r.data("blockUI.static")&&r.css("position","static"),"function"==typeof a.onUnblock&&a.onUnblock(i,a);var o=e(document.body),l=o.width(),u=o[0].style.width;o.width(l-1).width(l),o[0].style.width=u}}function c(t,n,a){var i=n==window,o=e(n);if((t||(!i||r)&&(i||o.data("blockUI.isBlocked")))&&(o.data("blockUI.isBlocked",t),i&&a.bindEvents&&(!t||a.showOverlay))){var l="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(l,a,d):e(document).unbind(l,d)}}function d(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&r&&t.data.constrainTabKey){var n=o,a=!t.shiftKey&&t.target===n[n.length-1],i=t.shiftKey&&t.target===n[0];if(a||i)return setTimeout((function(){f(i)}),10),!1}var l=t.data,u=e(t.target);return u.hasClass("blockOverlay")&&l.onOverlayClick&&l.onOverlayClick(t),u.parents("div."+l.blockMsgClass).length>0||0===u.parents().children().filter("div.blockUI").length}function f(e){if(o){var t=o[!0===e?o.length-1:0];t&&t.focus()}}function p(t,n){return parseInt(e.css(t,n),10)||0}}n(545).jQuery?(i=[n(20)],void 0===(r="function"==typeof(a=o)?a.apply(t,i):a)||(e.exports=r)):o(jQuery)}()},545:function(e,t){(function(t){e.exports=t}).call(this,{})},546:function(e,t,n){"use strict";var a=r(n(20)),i=r(n(13));function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return"".concat(e.val()," - ").concat(t.val())}a.default.fn.emaPatientAutoComplete=function(e){var t=(e=a.default.extend({select:function(t,n,i){n.preventDefault();var r=i.item.detail;t.val(r.lastName+", "+r.firstName);var o=t.parent().find("#"+e.fieldName),l=e.usePlainId?i.item.value:r.encryptedId;o.length>0?o.val(l):t.parent().append('');a.default.isFunction(e.afterSelect)&&e.afterSelect(t,n,i)},watermark:"Last, First",fieldName:"pid",classes:{}},e)).maxResults?"&maxResults=".concat(e.maxResults):"";return this.each((function(){var n=(0,a.default)(this);n.watermark(e.watermark),n.autocomplete({source:function(e,n){e.term?a.default.ajax({url:APP.contextPath+"/ajax/JSONPatientAutoComplete.action?_eventName=searchPatientAutoComplete"+t,type:"GET",data:{term:e.term},success:function(e){n(e)},error:function(){n([])}}):n([])},select:function(t,a){e.select(n,t,a)},focus:function(e,t){e.preventDefault()},minLength:2,classes:e.classes,autoFocus:e.autoFocus,delay:700}),n.focus((function(){var t=(0,a.default)(this),n=t.parent().find("#"+e.fieldName);this.select(),t.attr("prevValue",o(t,n)),n.attr("prevValue",n.val()),n.val("")})),n.focusout((function(){var t=(0,a.default)(this),n=t.parent().find("#"+e.fieldName);o(t,n)==t.attr("prevValue")&&n.val(n.attr("prevValue")),n.trigger("input")})),(0,a.default)(".ui-autocomplete").css("text-align","left")})),this},a.default.fn.emaAutoComplete=function(e){return e=a.default.extend({select:function(t,n,i){var r=a.default.parseJSON(i.item.detail);t.val(r.lastName+", "+r.firstName);var o=t.parent().find('input[name="'+e.fieldName+'"]'),l=null==e.idNameField?r.encryptedId:r[e.idNameField];o.length>0?(o.val(l),o.prop("selected",!0)):t.parent().append('');t.trigger("input")},watermark:"Last, First",fieldName:"providerId",selectUserId:!1},e),this.each((function(){var t=(0,a.default)(this);t.watermark(e.watermark),t.autocomplete({source:e.source||APP.contextPath+e.url,select:function(n,i){1==e.selectUserId?function(t,n,i){var r=a.default.parseJSON(i.item.detail);t.val(r.lastName+", "+r.firstName);var o=t.parent().find('input[name="'+e.fieldName+'"]');o.length>0?(o.val(r.id),o.prop("selected",!0)):t.parent().append('')}(t,0,i):e.select(t,n,i)},appendTo:e.appendTo}),t.focus((function(){this.select();var t=(0,a.default)(this).parent().find('input[name="'+e.fieldName+'"]');(0,a.default)(this).attr("prevValue",(0,a.default)(this).val()),t.attr("prevValue",t.val()),t.val("")})),t.focusout((function(){var t=(0,a.default)(this).parent().find('input[name="'+e.fieldName+'"]');(0,a.default)(this).val()==(0,a.default)(this).attr("prevValue")&&t.val(t.attr("prevValue")),t.trigger("input")})),(0,a.default)(".ui-autocomplete").css("text-align","left")})),this},a.default.fn.emaCommonStaffAutoComplete=function(e){return e=a.default.extend({select:function(t,n,a){var i=a.item;t.val(i.lastName+", "+i.firstName);var r=t.parent().find('input[name="'+e.fieldName+'"]'),o=null==e.idNameField?i.id:i[e.idNameField];r.length>0?(r.val(o),r.prop("selected",!0)):t.parent().append('');t.trigger("input")},watermark:"Last, First",fieldName:"providerId",selectUserId:!1},e),this.each((function(){var t=(0,a.default)(this);t.watermark(e.watermark),t.autocomplete({source:e.source||function(t,n){var r=t.term,o=(0,i.default)().cb(),l=o.p("expired").equals("false").and(o.p("visible").equals("true")).and(o.p("firstName").equals(r+"%").or(o.p("lastName").equals(r+"%")).or(o.p("username").equals(r+"%")));e.spec&&(l=l.and(e.spec(o))),a.default.ajax({url:APP.contextPath+"/ws/v3/staff",data:{where:l.toQuery(),"paging.pageNumber":1,"paging.pageSize":10,"sorting.sortBy":"lastName","sorting.sortOrder":"asc"},dataType:"json",success:function(e){n(e.map((function(e){return e.label=e.fullName,e})))},error:function(){return n([])}})},select:function(n,a){1==e.selectUserId?function(t,n,a){var i=a.item;t.val(i.lastName+", "+i.firstName);var r=t.parent().find('input[name="'+e.fieldName+'"]');r.length>0?(r.val(i.id),r.prop("selected",!0)):t.parent().append('')}(t,0,a):e.select(t,n,a)},appendTo:e.appendTo}),t.focus((function(){this.select();var t=(0,a.default)(this).parent().find('input[name="'+e.fieldName+'"]');(0,a.default)(this).attr("prevValue",(0,a.default)(this).val()),t.attr("prevValue",t.val()),t.val("")})),t.focusout((function(){var t=(0,a.default)(this).parent().find('input[name="'+e.fieldName+'"]');(0,a.default)(this).val()==(0,a.default)(this).attr("prevValue")&&t.val(t.attr("prevValue")),t.trigger("input")})),(0,a.default)(".ui-autocomplete").css("text-align","left")})),this},a.default.fn.emaStaffNoPmsSpecialistAutoComplete=function(e){return e=a.default.extend({spec:function(e){return e.p("role").none(["ADMINISTRATOR","ASSISTANT_ADMINISTRATOR","PMS_SPECIALIST"])}},e),this.emaCommonStaffAutoComplete(e),this},a.default.fn.emaProviderAutoComplete=function(e){return e=a.default.extend({spec:function(e){return e.p("role").isNull(!1).and(e.p("role").none(["MEDICAL_STUDENT","RECEPTIONIST","PMS_SPECIALIST","BILLER","ASSISTANT_ADMINISTRATOR"]))}},e),this.emaCommonStaffAutoComplete(e),this},a.default.fn.emaStaffAutoComplete=function(e){return e=a.default.extend({spec:function(e){return e.p("role").none(["ADMINISTRATOR","ASSISTANT_ADMINISTRATOR","RCM"])}},e),this.emaCommonStaffAutoComplete(e),this},a.default.fn.emaReferralAutoComplete=function(e){var t=e.rsql||function(e){var t='"'+e.term+'%"';return"personFirstName=="+t+" or personLastName=="+t+" or institutionName==%"+t},n=e.placeholder||"Last, First / Institution";return e=a.default.extend({watermark:n,source:function(n,i){a.default.ajax({url:APP.contextPath+"/ws/v3/referral/contact",data:{where:t(n),selector:"referenceId,suffix,name"},success:function(t){i(a.default.map(t,(function(t){return{id:a.default.isFunction(e.mapId)?e.mapId(t):t.id,value:a.default.isFunction(e.mapValue)?e.mapValue(t):t.name}})))},error:i})},select:function(t,n,a){t.parent().find('input[name="'+e.fieldName+'"]').val(a.item.id).prop("selected",!0)}},e),this.emaAutoComplete(e),this},a.default.fn.emaReferralAutoCompleteExtended=function(e){var t=e.rsql||function(e){var t='"'+e.term+'%"';return"personFirstName=="+t+" or personLastName=="+t+" or institutionName==%"+t},n=e.placeholder||"Last, First / Institution";return e=a.default.extend({watermark:n,source:function(n,i){a.default.ajax({url:APP.contextPath+"/ws/v3/referral/contact",data:{where:t(n),selector:"id,firstName,lastName,institutionName,type,npi,address,specialties,phoneNumbers(phoneNumberId),referenceId","paging.pageSize":25},success:function(t){i(a.default.map(t,(function(t){return{id:a.default.isFunction(e.mapId)?e.mapId(t):t.id,value:a.default.isFunction(e.mapValue)?e.mapValue(t):t.name}})))},error:i})},select:function(t,n,a){t.parent().find('input[name="'+e.fieldName+'"]').val(a.item.id).prop("selected",!0)}},e),this.emaAutoComplete(e),this},a.default.fn.emaProviderAutoCompleteAllProviders=function(e){return e=a.default.extend({select:function(t,n,a){var i=a.item;t.val(i.lastName+", "+i.firstName);var r=t.parent().find('input[name="'+e.fieldName+'"]'),o=null==e.idNameField?i.encryptedId:i[e.idNameField];r.length>0?(r.val(o),r.prop("selected",!0)):t.parent().append('')},watermark:"Last, First",fieldName:"providerId",selectUserId:!1},e),this.each((function(){var t=(0,a.default)(this);t.watermark(e.watermark),t.autocomplete({source:function(e,t){var n=e.term,r=(0,i.default)().cb(),o=r.p("firstName").equals(n+"%").or(r.p("lastName").equals(n+"%")).or(r.p("username").equals(n+"%"));a.default.ajax({url:APP.contextPath+"/ws/v3/staff",data:{tier:"TIER_3",where:o.toQuery(),"paging.pageNumber":1,"paging.pageSize":10,"sorting.sortBy":"lastName","sorting.sortOrder":"asc"},dataType:"json",success:function(e){t(e.map((function(e){return e.label=e.fullName,e})))},error:function(){return t([])}})},select:function(n,a){1==e.selectUserId?function(t,n,a){var i=a.item;t.val(i.lastName+", "+i.firstName);var r=t.parent().find('input[name="'+e.fieldName+'"]');r.length>0?(r.val(i.id),r.prop("selected",!0)):t.parent().append('')}(t,0,a):e.select(t,n,a)}}),t.focus((function(){this.select();var t=(0,a.default)(this).parent().find('input[name="'+e.fieldName+'"]');(0,a.default)(this).attr("prevValue",(0,a.default)(this).val()),t.attr("prevValue",t.val()),t.val("")})),t.focusout((function(){var t=(0,a.default)(this).parent().find('input[name="'+e.fieldName+'"]');(0,a.default)(this).val()==(0,a.default)(this).attr("prevValue")&&t.val(t.attr("prevValue"))})),(0,a.default)(".ui-autocomplete").css("text-align","left")})),this},a.default.fn.emaFacilityAutoComplete=function(e){return e=a.default.extend({url:"/ws/v2/facility/autocomplete",watermark:"Facility Name"},e),this.emaAutoComplete(e),this},a.default.fn.emaFirmFaxAutoComplete=function(e){return e=a.default.extend({url:"/ws/v2/faxing/firmfax/autocomplete",watermark:"Receive Line"},e),this.emaAutoComplete(e),this},a.default.fn.emaLabAutoComplete=function(e){return e=a.default.extend({select:function(e,t,n){var i=a.default.parseJSON(n.item.detail);e.val(i.lastName+", "+i.firstName);var r=e.parent().find("#labId");r.length>0?r.val(i.encryptedId):e.parent().append('')},watermark:"Laboratory Name"},e),this.each((function(){var t=(0,a.default)(this);t.watermark(e.watermark),t.autocomplete({source:APP.contextPath+"/ajax/JSONLabs.action?_eventName=searchLabAutoComplete",select:function(n,a){e.select(t,n,a)}}),t.focus((function(){var e=(0,a.default)(this).parent().find("#labId");this.select(),(0,a.default)(this).attr("prevValue",(0,a.default)(this).val()),e.attr("prevValue",e.val()),e.val("")})),t.focusout((function(){var e=(0,a.default)(this).parent().find("#pid");(0,a.default)(this).val()==(0,a.default)(this).attr("prevValue")&&e.val(e.attr("prevValue"))})),(0,a.default)(".ui-autocomplete").css("text-align","left")})),this},a.default.fn.autoCompleteField=function(e){if(void 0===(e=a.default.extend({watermark:"Define the watermark",preventDefault:!1,onClickSearch:" "},e)).select||null==e.source)throw'M2 autoComplete jquery function error\nPlease set the "select" function and the "source" parameters';return this.each((function(){var t=(0,a.default)(this);t.watermark(e.watermark),t.autocomplete({source:e.source,autoFocus:e.autoFocus,response:function(t,n){null!=e.response&&e.response(t,n)},select:function(n,a){e.select(t,n,a)}}),t.click((function(){null!=e.exclude&&(0,a.default)(this).autocomplete({source:e.source+e.exclude()}),(0,a.default)(this).autocomplete("search",e.onClickSearch)})),(0,a.default)(".ui-autocomplete").css("text-align","left")})),this}},547:function(e,t,n){"use strict";var a,i=(a=n(20))&&a.__esModule?a:{default:a};i.default.fn.emaPreserveUniqueChosenSelection=function(e,t){if(t instanceof Array){var n=e.currentTarget,a=n.id;(0,i.default)(n).find("option").each((function(e){if(this.selected){var t=this.value;(0,i.default)(".chzn-select").each((function(e){var n=this;this.id!=a&&(0,i.default)(this).find("option").each((function(e){this.selected&&this.value==t&&((0,i.default)(n).find(this).remove(),(0,i.default)(".chzn-select").each((function(e){(0,i.default)("#"+this.id).trigger("chosen:updated")})))}))}))}}))}},i.default.fn.emaAjaxChosen=function(e){var t=(0,i.default)(this).attr("id"),n="",a=!1,r=null;function o(t,n){var a=n;if(null!=e.items){var r=i.default.grep(e.items,(function(e,n){return e.label=(0,i.default)("
    "+e.label+"
    ").text(),-1!==e.label.toLowerCase().indexOf(t.toLowerCase())&&(e.label=e.label.replace(t,""+t+""),!0)}));a+='',i.default.each(r,(function(e,t){-1===n.indexOf('value="'+t.value+'"')&&(a+='")})),a+=""}return a}function l(){var e="";return(0,i.default)("#"+t+" option:selected").each((function(){(0,i.default)(this).attr("selected","true"),e+=(0,i.default)(this).clone().wrap("
    ").parent().html()})),e}function u(e){(0,i.default)("#"+t).html(e).trigger("chosen:updated")}(0,i.default)("#"+t+"_chosen").click((function(e){(0,i.default)(e.target).hasClass("group-option")||u(o((0,i.default)(this).val(),l()))})),(0,i.default)("#"+t+"_chosen .search-field input").keyup((function(s){var c=(0,i.default)(this),d=c.val();if(d.length!=n.length&&!s.ctrlKey&&!s.metaKey){var f=(0,i.default)("#intramailPatientCheckbox").is(":checked"),p=(0,i.default)("#"+t+" option:selected.isAjaxData").length,h=l(),v=o(d,h);f?(d.length1&&0===p&&!(d.length>n.length&&a)&&0==e.disableSearch?(a=!0,i.default.ajax({url:e.url+"&term="+d,dataType:"json",async:!0,success:function(e){v+='',i.default.each(e,(function(e,t){v+='",a=!1})),v+="",r=setTimeout((function(){u(v),c.val(d).removeAttr("style")}),300)}})):(u(v),c.val(d).removeAttr("style")),n=d):n=d}}))}},548:function(e,t,n){"use strict";var a,i=(a=n(20))&&a.__esModule?a:{default:a};var r=!1;i.default.fn.hideDynamicSlider=function(){return(0,i.default)(this).hide(),(0,i.default)(this).parent().find(".slider_labels").remove(),this},i.default.fn.disabled=function(e){var t=(0,i.default)(this).parent().find(".slider_labels");(0,i.default)(this).css("pointer-events",e?"none":"all"),e?t.addClass("disabled-link"):t.removeClass("disabled-link")},i.default.fn.shouldAvoidDsChange=function(e){r=e},i.default.fn.dynamicSlider=function(e){var t,n,a,o=1,l=1;if(null==e||null==e.dsGroupName?(a=(0,i.default)(this).attr("dsGroupName"),(e=new Object).dsGroupName=a):a=e.dsGroupName,null!=a&&""!=a){n=e.dsGroupName,t=new Object;var u=a+"-init-ui",s=a+"-value-ui",c=a+"-last-ui",d=new Array,f=e.dsFieldSetups;null!=f&&0!=f.length||(f=(0,i.default)("."+a)),(0,i.default)(this).parent().find(".slider_labels").remove(),(0,i.default)(this).css("margin-left","20px");var p='
    ';(0,i.default)(this).before(p);var h='
    ';(0,i.default)(this).after(h),f.each((function(){var a=(0,i.default)(this),r=function(e){var t=jQScape(e),n=(0,i.default)("#"+t);0===n.length&&(n=(0,i.default)("[name="+t+"]"));return n}(a.attr("dsFieldId")),u=parseInt(null==a.attr("dsValuePad")?0:a.attr("dsValuePad")),s=parseInt(null==a.attr("dsValueDecimals")?0:a.attr("dsValueDecimals")),c=null!=a.attr("dsShowSign")&&"true"==a.attr("dsShowSign"),f=parseFloat(null==a.attr("dsMin")?0:a.attr("dsMin")),p=null==a.attr("dsAvoidNextValue")?null:a.attr("dsAvoidNextValue"),h=parseFloat(null==a.attr("dsFactor")?1:a.attr("dsFactor")),v=parseInt(a.attr("dsIndex")),g={field:r,min:f,max:parseFloat(null==a.attr("dsMax")?100:a.attr("dsMax")),start:parseFloat(null==a.attr("dsStart")?f:a.attr("dsStart")),step:parseFloat(null==a.attr("dsStep")?1:a.attr("dsStep")),factor:h,index:v,pad:u,decimals:s,showSign:c,avoidNextValue:p,slide:function(t,n){b(n.value),e.change&&e.change()},stop:function(e,a){!function(e,a){var i=t[n],r=i[o].field,u=t[n][o],s=i.length-1;u.factor&&1!==u.factor?r.val(parseFloat(a.value*u.factor)):r.val(formatString(a.value,u.pad,u.decimals,u.showSign));b(a.value);var c=!0;t[n][o].value;isNaN(t[n][o].avoidNextValue)||t[n][o].avoidNextValue!=a.value||(i[++o].field[0].setAttribute("disabled","disabled"),c=!1);os)&&(o=l),l=o,r.parent().addClass("dynamic-slider-focus"),m(!0)}else o=l;t.dsSlider.change()}(0,a),r.parent().removeClass("dynamic-slider-focus")}};d[v]=g,r.attr("dsIndex",v),r.focus((function(e){t[n][o].field.parent().removeClass("dynamic-slider-focus"),(0,i.default)(this).parent().addClass("dynamic-slider-focus"),o=parseInt((0,i.default)(this).attr("dsIndex")),l=o,m(!0)})),r.change((function(e){!function(e){var a=t.dsSlider,i=t[n][o],r=""!=e.val()?e.val():formatString(i.start,i.pad,i.decimals,i.showSign);i.factor&&1!==i.factor&&(r/=i.factor);a.slider({value:r}),b(parseFloat(r))}((0,i.default)(this))}))})),t[e.dsGroupName]=d,t.dsSlider=(0,i.default)(this),t.dsMinLabel="#"+u,t.dsValueLabel="#"+s,t.dsMaxLabel="#"+c,m(!1);var v=(0,i.default)(".sliderFocusField");return v.length>0&&v.focus(),this}function m(e){if(null!=t&&null!=n&&""!=n&&null!=o&&!r){var a=t[n][o],l=t.dsSlider,u=t[n][o].field;for(var s in e&&t.dsSlider.slider("destroy"),t[n])t[n][s].field.parent().removeClass("dynamic-slider-focus");(0,i.default)(t.dsMinLabel).text(formatString(a.min,a.pad,a.decimals,a.showSign)),(0,i.default)(t.dsMaxLabel).text(formatString(a.max,a.pad,a.decimals,a.showSign)),u.parent().addClass("dynamic-slider-focus"),a.value=""!=u.val()&&null!=u.val()&&null!=u.val()?u.val():formatString(a.start,a.pad,a.decimals,a.showSign),a.factor&&1!==a.factor&&(a.value/=a.factor),l.slider(a).show(),b(parseFloat(a.value))}}function b(e){var a=t[n][o],r=formatString(e,a.pad,a.decimals,a.showSign),l=(0,i.default)(t.dsValueLabel),u=t.dsSlider.find(".ui-slider-handle");l.text(r),l.css({left:parseFloat(u.css("left"))-35,top:parseFloat(u.css("top"))-13,"padding-top":"16px","text-align":"center"})}}},549:function(e,t,n){"use strict";var a,i=(a=n(20))&&a.__esModule?a:{default:a};function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;tNo records found.'),n.hide()):n.show()},altRows:!0,altclass:"altRow",height:"auto",pager:"#jqGridPaging"+e}}(n),e);!function(e,t){if(APP.paginationFlags.jqTablesDisableCounts&&!e.enableCountsOverride){var n=e.loadComplete.bind((0,i.default)("#".concat(t))[0]);e.loadComplete=function(a,r){var o=a.paging;if(o&&e.jsonDataRoot&&a[e.jsonDataRoot]){var l,u=a[e.jsonDataRoot],s=u.length,c=o.pageSize,d=o.pageNumber,f=(d-1)*c+s,p=d*c,h="".concat(d,"");s>c?(u.pop(),l="View ".concat(p-(c-1)," - ").concat(p," of Many"),h="".concat(d,"...")):l=s>0?"View ".concat(p-(c-1)," - ").concat(f):"";var v=e.pager.replaceAll("#",""),m=(0,i.default)("#gbox_".concat(t));m.find(".ui-paging-info").html(l),m.find("#last_pagerDiv").hide(),m.find("#last_".concat(v)).hide(),m.find("#input_pagerDiv").html(h),m.find("#input_".concat(v)).html(h)}n&&n(a,r)}}}(a,n),0===t.closest(".ui-jqgrid-view").find("#jqGridPaging"+n).length&&t.after('
    '),i.default.extend(jQuery.jgrid.defaults,{prmNames:{page:"paging.pageNumber",rows:"paging.pageSize",sort:"sorting.sortBy",order:"sorting.sortOrder"}});var r={init:function(){t.jqGrid(a)},refresh:function(){var n,r;a.url=e.urlGet,t.jqGrid("setGridParam",{postData:""}),t.jqGrid("setGridParam",{url:e.urlGet,datatype:"json",postData:o(o({},u(e)),(n=e.filter,r={},(0,i.default)(n+" :input").each((function(){(0,i.default)(this).hasClass("bkfButton")||""==(0,i.default)(this).val()||(r["filter."+(0,i.default)(this).attr("name")]=(0,i.default)(this).val())})),r)),jsonReader:{root:e.jsonDataRoot}}).trigger("reloadGrid"),(0,i.default)(".ui-paging-info").hide()}};return r.init(),r}},550:function(e,t,n){"use strict";var a,i=(a=n(20))&&a.__esModule?a:{default:a};i.default.fn.fieldsToJSON=function(){var e,t;return this.length>1?(e=Array(),t=!0):(e=Object(),t=!1),this.each((function(){var n=(0,i.default)(this),a=Object();n.find("input,select").each((function(){var e=(0,i.default)(this),t=e.val();""!=t&&(a[e.attr("name")]=t)})),t?e.push(a):e=a})),e},i.default.fn.toJSON=function(){var e=this,t={},n={},a={validate:/^[a-zA-Z][a-zA-Z0-9_]*(?:\[(?:\d*|[a-zA-Z0-9_]+)\])*$/,key:/[a-zA-Z0-9_]+|(?=\[\])/g,push:/^$/,fixed:/^\d+$/,named:/^[a-zA-Z0-9_]+$/};return this.build=function(e,t,n){return e[t]=n,e},this.push_counter=function(e){return void 0===n[e]&&(n[e]=0),n[e]++},i.default.each((0,i.default)(this).serializeArray(),(function(){if(a.validate.test(this.name)&&""!=this.value){for(var n,r=this.name.match(a.key),o=this.value,l=this.name;void 0!==(n=r.pop());)l=l.replace(new RegExp("\\["+n+"\\]$"),""),n.match(a.push)?o=e.build([],e.push_counter(l),o):n.match(a.fixed)?o=e.build([],n,o):n.match(a.named)&&(o=e.build({},n,o));t=i.default.extend(!0,t,o)}})),t}},551:function(e,t,n){"use strict";var a,i=(a=n(20))&&a.__esModule?a:{default:a};function r(e,t){for(var n=0;n
    ');var r=a.find("#ribbon-tab-header-strip");a.find(".ribbon-tab").each((function(e,t){var a=(0,i.default)(t),o=a.attr("id");o||(a.attr("id","tab-"+e),o="tab-"+e),n.tabNames[e]=o;var l=a.find(".ribbon-title"),u=a.hasClass("file");r.append('
    ');var s=r.find("#ribbon-tab-header-"+e);s.append(l),u?(s.addClass("file"),s.click((function(){that.switchToTabByIndex(e),that.goToBackstage()}))):(-1===n.selectedTabIndex&&(n.selectedTabIndex=e,s.addClass("sel")),s.click((function(){n.returnFromBackstage(),n.switchToTabByIndex(e)}))),a.removeClass("ribbon-tab-visible").addClass("hidden")})),a.find(".ribbon-button").each((function(e,t){var n=(0,i.default)(t),a=n.find(".button-title");a.detach(),n.append(a);var r=n;t.enable=function(){r.removeClass("disabled")},t.disable=function(){r.addClass("disabled")},t.isEnabled=function(){return!r.hasClass("disabled")},0===n.find(".ribbon-hot").length&&n.find(".ribbon-normal").addClass("ribbon-hot"),0===n.find(".ribbon-disabled").length&&(n.find(".ribbon-normal").addClass("ribbon-disabled"),n.find(".ribbon-normal").addClass("ribbon-implicit-disabled")),n.tooltip({items:".ribbon-button",content:function(){if(!(0,i.default)(this).isEnabled()&&!r.hasClass("show-tooltip"))return"";var e=(0,i.default)(this).children(".button-help");return e.length>0?e.html():""}})})),a.find(".ribbon-section").each((function(e,t){(0,i.default)(t).after('
    ')})),a.find("div").attr("unselectable","on"),a.find("span").attr("unselectable","on"),a.attr("unselectable","on"),this.switchToTabByIndex(this.selectedTabIndex)}var t,n,a;return t=e,(n=[{key:"goToBackstage",value:function(){this.$element.addClass("backstage")}},{key:"returnFromBackstage",value:function(){this.$element.removeClass("backstage")}},{key:"switchToTabByIndex",value:function(e){var t=this.$element.find("#ribbon-tab-header-strip");t.find(".ribbon-tab-header").removeClass("sel"),t.find("#ribbon-tab-header-"+e).addClass("sel"),this.$element.find(".ribbon-tab").removeClass("ribbon-tab-visible").addClass("hidden"),this.$element.find("#"+this.tabNames[e]).addClass("ribbon-tab-visible").removeClass("hidden")}}])&&r(t.prototype,n),a&&r(t,a),e}();i.default.fn.ribbon=function(){if(!(this.length>1)){var e=this.data("ribbon");return e||(e=new o(this.selector),this.data("ribbon",e)),e}this.each((function(e,t){return(0,i.default)(t).ribbon()}))},i.default.fn.enable=function(){this.hasClass("ribbon-button")?this[0]&&this[0].enable&&this[0].enable():this.find(".ribbon-button").each((function(){(0,i.default)(this).enable()}))},i.default.fn.disable=function(){this.hasClass("ribbon-button")?this[0]&&this[0].disable&&this[0].disable():this.find(".ribbon-button").each((function(){(0,i.default)(this).disable()}))},i.default.fn.isEnabled=function(){return!this[0]||!this[0].isEnabled||this[0].isEnabled()}},552:function(e,t,n){"use strict";var a,i=(a=n(20))&&a.__esModule?a:{default:a};var r="richDateInitialized";i.default.fn.richDate=function(e){return e=i.default.extend({watermark:"mm/dd/yyyy",mask:"99/99/9999",minDate:"01/01/1900",changeYear:!0,changeMonth:!0,yearRange:"-100:+10"},e),this.each((function(t,n){var a=(0,i.default)(n);a.data(r)||(a.data(r,!0),a.watermark(e.watermark),a.mask(e.mask),a.datepicker({minDate:e.minDate,maxDate:e.maxDate,inline:!0,changeYear:e.changeYear,changeMonth:e.changeMonth,yearRange:e.yearRange}))})),this},i.default.fn.richField=function(){return this.each((function(e,t){var n=(0,i.default)(t),a=n.attr("watermark"),r=n.attr("mask");null!=a&&n.watermark(a),null!=r&&n.mask(r)})),this},i.default.initializeRichDates=function(){(0,i.default)(".richDate").richDate(),(0,i.default)(".richDateMaxDateToday").richDate({maxDate:new Date})}},553:function(e,t,n){"use strict";var a,i=(a=n(20))&&a.__esModule?a:{default:a};var r=[],o="";i.default.fn.stickyData=function(e,t,n){var a=(n=n||{}).excludeValues||[],l=n.callback&&"function"==typeof n.callback?n.callback:null,u=!(null!=n.isNewForm&&!n.isNewForm),s=!(void 0===n.multiselect||!n.multiselect),c=APP.contextPath+"/ajax/StickyData.action",d="|";return r={group:this},u&&i.default.get(c,{_eventName:"getStickyData",groupName:t},(function(e){p(e,(function(){o=JSON.stringify(f()),null!=l&&l(r[t])}))})),this.bind(e,(function(){var e=JSON.stringify(f());if(e===o)return this;if(!u)return this;if(o=e,null!=n.formName&&""!=n.formName){var a=(0,i.default)("#"+n.formName),s=a.find('input[name="stickyDataList"]');0==s.length?(s=(0,i.default)("").attr("name","stickyDataList").attr("type","hidden").val(e),a.append(s)):s.val(e)}else i.default.post(c,{_eventName:"saveStickyData",stickyDataList:e},(function(e){p(e,(function(){null!=l&&l(r[t])}))}))})),this;function f(){var e={};(0,i.default)(".stickyData").each((function(){var n,r,o=(0,i.default)(this),l=null;if(null!=o.attr("stickyName")?l="name|"+o.attr("stickyName"):null!=o.attr("name")?l="name|"+o.attr("name"):null!=o.attr("id")&&(l="name|"+o.attr("id")),null==l)return e;if(1!=o.filter(":text, :hidden, textarea").length||s||this.multiple){var u;if(r="multiChoiceField",n=o.filter(":radio, :checkbox"),u="checked",0==n.length&&(n=o.find("option:selected"),u="value"),0==n.length)return e;var c="";n.each((function(){var n=(0,i.default)(this);if(o.hasClass("stickyDataFromText")){if(null==n.text()||-1!=i.default.inArray(n.text(),a))return e;null!=e[l]&&null!=e[l].value?e[l]={id:o.attr("stickyId"),groupName:t,name:l+d+r,value:e[l].value+=c+n.text()}:e[l]={id:o.attr("stickyId"),groupName:t,name:l+d+r,value:n.text()}}else{if(null==n.val()||-1!=i.default.inArray(n.val(),a))return e;null!=e[l]&&null!=e[l].value?e[l]={id:o.attr("stickyId"),groupName:t,name:l+d+r,value:e[l].value+=c+n.prop(u)}:e[l]={id:o.attr("stickyId"),groupName:t,name:l+d+r,value:n.prop(u)}}c=d}))}else r="singleField",-1==i.default.inArray(o.val(),a)&&null!=o.val()&&(e[l]={id:o.attr("stickyId"),groupName:t,name:l+d+r,value:o.val()});null!=l&&null==e[l]&&o.removeAttr("stickyId")}));var n=[];for(var r in e)n.push(e[r]);return 0==n.length&&n.push({groupName:t}),n}function p(e,t){var n=0;function a(){n<=0&&t()}if("SUCCESS"==e.status)for(var r in e.data){var o=e.data[r].name.split(d),l=o[1].replace(".","\\."),u='.stickyData[id="'+l+'"], .stickyData[name="'+l+'"], .stickyData[stickyName="'+l+'"]',s=(0,i.default)(u),c=e.data[r].value;if(null!=c){var f={};if("multiChoiceField"==o[2]){var p=c.split(d),h=void 0;if(s.hasClass("stickyDataFromText"))for(var v in p)0==(h=s.filter(':radio[text="'+p[v]+'"], :checkbox[text="'+p[v]+'"]')).length&&(h=s.find('option:contains("'+p[v]+'")')),h.select();else for(var m in p)0==(h=s.filter(":checkbox, :radio")).length?(h=s.find('option[value="'+p[m]+'"]')).select():"true"==p[m]?h.select():h.unselect();f.value=p,s.trigger("stickyLoaded",[f])}else s.hasClass("stickyDataFromText")?s.text(c):s.val(c),f.value=c,s.trigger("stickyLoaded",[f]);f.deferred&&"pending"===f.deferred.state()&&(n++,f.deferred.finally((function(){n--,a()})))}}a()}}},554:function(e,t,n){"use strict";var a,i,r=(a=n(20))&&a.__esModule?a:{default:a},o=n(617);(i=r.default).fn.customElement=function(e,t,n){return this.map((function(){return(0,o.wrapInner)(this,e,(0,o.elementConfigurer)(t,n))}))},i.fn.configureElement=function(e,t){var n=(0,o.elementConfigurer)(e,t);return this.map((function(){return n(this)}))}},555:function(e,t,n){"use strict";var a=r(n(20)),i=r(n(6));function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(null!=e&&null!=e[0])return"INPUT"===e[0].tagName?e.prop("checked",t):e.prop("selected",t)}(0,a.default)(document).ready((function(e){e(".ema-tooltip").tooltip(),e(".rcboxHideContents").each((function(){e(this).parent().parent().find(".rcbox-contents").hide()})),e(".ema-collapse").on("click",(function(){var t=e(this).parent().parent().find(".rcbox-contents").first();e(this).hasClass("rcboxHideContents")?(t.slideDown(),e(this).removeClass("rcboxHideContents")):(t.slideUp(),e(this).addClass("rcboxHideContents"))})),e(".patientNameAutoComplete").emaPatientAutoComplete(),e(".providerNameAutoComplete").emaProviderAutoComplete(),e(".staffNameAutoComplete").emaStaffAutoComplete(),e(".providerNameAutoCompleteAllProviders").emaProviderAutoCompleteAllProviders(),e(".labNameAutoComplete").emaLabAutoComplete(),e(".facilityAutoComplete").emaFacilityAutoComplete(),e(".firmFaxAutoComplete").emaFirmFaxAutoComplete(),e.initializeRichDates()})),window.isJSonSuccessMessage=function(e){return e.hasOwnProperty("status")&&"SUCCESS"===e.status.toUpperCase()},window.jQScape=function(e){return e.replace(/([ #;&,.+*~\':"!^$[\]()=>|\/])/g,"\\$1")},window.isValidDate=function(e,t){var n=!0;try{a.default.datepicker.parseDate(t,e,null)}catch(e){n=!1}return n},window.gridCellWrap=function(e,t,n,a,i){return'style="white-space: normal;'},a.default.fn.populateFields=function(e){var t=(0,a.default)(this);for(var n in e){var i=t.find("input#"+n+',input[name="'+n+'"]');if(i.length>0)if("checkbox"===i.prop("type"))i.prop("checked",e[n]);else if("radio"===i.prop("type"))for(var r=0;r0)if("select-multiple"===i.prop("type"))for(var o=0;o0&&i.text(e[n])}return this},a.default.fn.onChangeSetToSave=function(){this.each((function(){(0,a.default)(this).on("change",(function(){(0,a.default)(this).parent().addClass("toSave")}))}))},a.default.fn.clearInputValue=function(e){return e=a.default.extend({preventDefault:!1},e),this.each((function(){null!=e.preventDefaultEvent&&e.preventDefaultEvent.preventDefault(),(0,a.default)(this).find('input[type="text"],input[type="hidden"]').val(""),(0,a.default)(this).find("select").each((function(){var e=(0,a.default)(this).find("option");e.prop("selected",!1),(0,a.default)(this).find("option[selected]").removeAttr("selected");var t=(0,a.default)(this).find('option[value=""]');t.length>0?1===t.length?(t.prop("selected","selected"),t.attr("selected",!0)):(t.first().prop("selected","selected"),t.first().attr("selected",!0)):(e.first().prop("selected","selected"),e.first().attr("selected",!0))})),(0,a.default)(this).find("input:checked").unselect(),null!=e.execute&&e.execute()})),this},a.default.fn.extend({select:function(){return o(this,!0)},unselect:function(){return o(this,!1)}}),a.default.fn.containerFields=function(){var e=[];return(0,a.default)(this).find('input[type="text"], input[type="textarea"], input[type="hidden"]').each((function(){var t=null!=(0,a.default)(this).attr("id")?(0,a.default)(this).attr("id"):(0,a.default)(this).attr("name"),n=(0,a.default)(this).val();null!=n&&""!=n&&(e[t]=n)})),(0,a.default)(this).find("select").each((function(){var t=null!=(0,a.default)(this).attr("id")?(0,a.default)(this).attr("id"):(0,a.default)(this).attr("name"),n=(0,a.default)(this).find(":checked").val();null!=n&&""!=n&&(e[t]=n)})),(0,a.default)(this).find("input:checked").each((function(){var t=null!=(0,a.default)(this).attr("id")?(0,a.default)(this).attr("id"):(0,a.default)(this).attr("name"),n=(0,a.default)(this).val();null!=n&&""!=n&&(e[t]="on"==n?"true":"false")})),e},a.default.fn.arrayOfValues=function(e){var t=[];return this.each((function(){t.push((0,a.default)(this).attr(e))})),t},a.default.fn.bkgcolor=function(e){return function t(n){return"transparent"===n.css("background-color")?n.is("body")?e||transparent:t(n.parent()):n.css("background-color")}((0,a.default)(this))},window.formatString=function(e,t,n,a){var i=e.toFixed(n);return(i=(i=a&&e>0?"+"+i:i).pad("0",t))+""},window.validateRequiredFields=function(e){var t={success:!0,errorList:[]};return(0,a.default)(".errorBox").addClass("hidden"),(0,a.default)(e).find(".required").each((function(){if((0,a.default)(this).removeClass("jqerror"),isEmpty((0,a.default)(this).val())){var e={};e.name=(0,a.default)(this).attr("name"),e.id=(0,a.default)(this).attr("id"),e.properName=(0,a.default)(this).attr("properName"),t.errorList.push(e),t.success=!1}})),t},window.processValidationErrors=function(e,t){var n=(0,a.default)(".errorBox"),i=n.find("ul")[0];for(var r in i.innerHTML="",t.length>0&&(n.removeClass("hidden"),n.show(),window.scrollTo(0,0)),t)(0,a.default)("div[class="+e+"]").find('input[name="'+t[r].name+'"]').addClass("jqerror"),i.innerHTML+="
  • "+(null!=t[r].properName?t[r].properName:t[r].id)+" "+(t[r].errorMessage?t[r].errorMessage:"is required.")+"
  • "},window.stopEvent=function(e){e.preventDefault(),e.stopPropagation()},window.getContainerContent=function(e,t,n,i){a.default.blockUI(getWaitConfig()),a.default.get(e+"?"+t+"Content",i,(function(r){(0,a.default)(n).html(r),history.pushState(null,null,e+"?"+t+"&"+a.default.param(i)),a.default.unblockUI()}))},window.wrapFormatter=function(e,t,n){return null!=e?'
    '+e+"
    ":""},window.formatUtcDate=function(e){var t=i.default.utc(e);return a.default.formatDate({date:t,lineBreak:!1})}},580:function(e,t,n){e.exports=n(11)(417)},581:function(e,t,n){"use strict";function a(e,t){for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:{};if(l(),this.connectionAllowed(e)){t&&n?(i[e]||(i[e]={}),i[e][t]=n):n&&(r[e]=n);var o=this.getWorker();o.port.postMessage({connection:e,channel:t,action:"subscribe",origin:window.origin,messageBehavior:a.messageBehavior})}}},{key:"unsubscribe",value:function(e,t){l(),this.getWorker().port.postMessage({connection:e,channel:t,action:"unsubscribe"})}},{key:"unsubscribeAll",value:function(){l(),this.getWorker().port.postMessage({action:"unsubscribe-all"})}},{key:"sendMessage",value:function(e,t,n){l(),this.getWorker().port.postMessage({connection:e,channel:t,action:"send",value:JSON.stringify(n)})}},{key:"getWorker",value:function(){if(l(),!this.worker){var e=new SharedWorker("".concat(APP.contextPath,"/static/js/common/websocket/websocket-worker_12-11-23.js"));e.port.addEventListener("message",(function(t){var n=JSON.parse(t.data),a=n.eventType,l=n.connection;switch(a){case"channelMessage":var u=n.message,s=i[l][n.channel];s&&s(u,e.port);break;case"connectionEstablished":var c=r[l];c&&!o&&(o=!0,c("Connection to ".concat(l," established"),e.port))}})),e.port.start(),window.addEventListener("beforeunload",(function(){e.port.postMessage({action:"unload"}),e.port.close()})),this.worker=e}return this.worker}},{key:"connectionAllowed",value:function(e){return l(),!!([1,2,3].includes(APP.loggedInUserTier)&&e.includes("socket/registry/staff")||-1===APP.loggedInUserTier&&e.includes("/socket/registry/admin")||APP.currentUserPatient&&e.includes("/socket/registry/patient")||"HELPDESK"===APP.loggedInUserTypeName&&e.includes("/socket/registry/sysadmin"))}}])&&a(t.prototype,n),u&&a(t,u),e}());t.default=u},836:function(e,t,n){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function r(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return o(this,n)}}function o(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n