{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/App.vue?5572","webpack:///./src/components/Calculator.vue?06da","webpack:///./src/components/Info.vue?a193","webpack:///src/components/Info.vue","webpack:///./src/components/Info.vue?fe40","webpack:///./src/components/Info.vue","webpack:///src/components/Calculator.vue","webpack:///./src/components/Calculator.vue?a42a","webpack:///./src/components/Calculator.vue","webpack:///src/App.vue","webpack:///./src/App.vue?1160","webpack:///./src/App.vue","webpack:///./src/main.js"],"names":["Vue","config","productionTip","render","h","App","$mount"],"mappings":";QAAA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;QACA,QAAQ,oBAAoB;QAC5B;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA,iBAAiB,4BAA4B;QAC7C;QACA;QACA,kBAAkB,2BAA2B;QAC7C;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;;QAEA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;QAEA;QACA;QACA;QACA;QACA,gBAAgB,uBAAuB;QACvC;;;QAGA;QACA;QACA;QACA;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ACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OANA,MAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,qDAjBA,CAkBA;;AACA,uCAnBA,CAqBA;;AACA,2CAtBA,CAwBA;;AACA,4DAzBA,CA2BA;;AACA,qBA5BA,CA8BA;;AACA,mCA/BA,CAiCA;;AACA;AAEA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAHA,CAGA,IAHA,CAGA,UAHA,GAGA,IAHA;AAIA;AACA,KAlHA;AAmHA,gBAnHA,0BAmHA;AACA;AACA;AACA;AACA;AACA,KAxHA;AAyHA,iBAzHA,2BAyHA;AACA;AACA,KA3HA;AA4HA,iBA5HA,yBA4HA,GA5HA,EA4HA,GA5HA,EA4HA;AAAA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BACA;AACA;AACA,eAHA,MAKA;AACA;AACA;AAEA,aAVA,MAUA;AACA;AACA;AACA,WAdA;AAeA;AACA,OAlBA;AAmBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAJA;AAKA;AACA;AACA;AACA;AACA;AACA;;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA,SAbA;AAcA,OAfA;AAiBA;AACA;;AAEA;AACA;AACA;;AACA;;AAEA;AACA;AACA;AACA,SAFA,MAIA;AACA;AACA;AAEA;;AACA;AACA;AACA;AACA,SAFA,MAIA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA,SAFA,MAGA;AACA;AACA;AACA;;AAIA;AACA,oBAzFA,CA0FA;;AACA;AACA;AAEA;AACA;AACA;AACA;AACA,aAFA,MAEA;AACA;AACA;AACA;AACA,SARA;AAUA;AACA,OAdA;AAgBA;AACA;AAxOA;AAtJA,G;;ACxJoU,CAAgB,oHAAG,EAAC,C;;ACA/P;AAC3B;AACL;;;AAGzD;AAC0F;AAC1F,IAAI,oBAAS,GAAG,8CAAU;AAC1B,EAAE,6CAAM;AACR,EAAE,8CAAM;AACR,EAAE,uDAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,mEAAS,Q;;;;;;;;ACXxB;AAEA;AACA,aADA;AAEA;AACA;AADA;AAFA,G;;ACT8S,CAAgB,+FAAG,EAAC,C;;ACAhP;AAC3B;AACL;;;AAGlD;AACuF;AACvF,IAAI,aAAS,GAAG,8CAAU;AAC1B,EAAE,+BAAM;AACR,EAAE,uCAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,qDAAS,Q;;;;;;AClBxB;CAEA;AACA;AACA;AACA;;AAEAA,kCAAG,CAACC,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;AAEA,IAAIF,kCAAJ,CAAQ;AACNG,QAAM,EAAE,gBAAAC,CAAC;AAAA,WAAIA,CAAC,CAACC,GAAD,CAAL;AAAA;AADH,CAAR,EAEGC,MAFH,CAEU,MAFV,E","file":"js/app.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('Calculator')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container container-fluid qrs-typography\",attrs:{\"id\":\"calc\"},on:{\"click\":function($event){$event.stopPropagation();$event.preventDefault();return _vm.handleClick($event)}}},[_vm._m(0),_vm._m(1),_c('Info'),(_vm.errormessage.length > 0)?_c('div',{staticClass:\"row \"},[_c('div',{staticClass:\"col-xs-12\"},[_c('div',{staticClass:\"alert alert-calc alert-danger txt-danger\",attrs:{\"id\":\"error\"},domProps:{\"innerHTML\":_vm._s(_vm.errormessage)}})])]):_vm._e(),_vm._m(2),_vm._m(3),_vm._l((_vm.questions),function(q){return _c('div',{key:q.id,staticClass:\"question\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xs-12 col-md-6\"},[_c('h3',{staticClass:\"txt--xl mb-1 mb--1\"},[_vm._v(_vm._s(q.title))]),_c('p',{domProps:{\"innerHTML\":_vm._s(q.info)}})]),_c('div',{staticClass:\"col-xs-12 col-md-6\"},[_c('div',{staticClass:\"list-group\"},_vm._l((q.options),function(o){return _c('div',{key:o.id},[_c('button',{class:{'list-group-item list-group-item-action d-flex justify-content-between align-items-center mb-1 active':(o.selected), 'list-group-item list-group-item-action d-flex justify-content-between align-items-center mb-1':(!o.selected)},attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.optionclicked(q.id,o.id)},\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.optionclicked(_vm.event, q.id,o.id)}}},[_vm._v(\" \"+_vm._s(o.text)+\" \"),_c('span',{staticClass:\"badge badge-success\"},[_vm._v(_vm._s(o.value_label))])])])}),0)])]),_c('hr')])}),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xs-12\"},[_c('div',{staticClass:\"calculator__result bg-secondary bg--secondary p--2 p-2 mb--2 mb-2\"},[(_vm.displayresult)?_c('div',{staticClass:\"color--white text-white mb-1 mb--1\",attrs:{\"id\":\"calculator-copy\"}},[(_vm.isvalid)?_c('div',{attrs:{\"id\":\"result-response\"}}):_vm._e(),_c('h3',{staticClass:\"txt--xl\"},[_vm._v(\"Total 4AT Score : \"+_vm._s(_vm.result.score))]),(_vm.result.text.length > 0)?_c('p',[_c('strong',[_vm._v(\"Result:\")]),_vm._v(\" \"+_vm._s(_vm.result.text))]):_vm._e(),(_vm.result.calctext.length > 0)?_c('table',{staticClass:\"table\",domProps:{\"innerHTML\":_vm._s(_vm.result.calctext)}}):_vm._e()]):_vm._e(),_c('div',{staticClass:\"control-holder\"},[(!_vm.displayresult)?_c('button',{staticClass:\"btn btn-primary mr-1 mr--1\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.calculateclicked}},[_vm._v(\"Calculate\")]):_vm._e(),(_vm.displayresult)?_c('button',{staticClass:\"btn btn-primary mr-1 mr--1\",attrs:{\"id\":\"resetButton\",\"type\":\"button\"},on:{\"click\":_vm.reset}},[_vm._v(\"Reset\")]):_vm._e(),(_vm.displayresult)?_c('button',{staticClass:\"btn btn-primary mr-1 mr--1\",attrs:{\"id\":\"copyButton\",\"type\":\"button\"},on:{\"click\":_vm.copyToClipboard}},[_vm._v(\"Copy Result\")]):_vm._e()])])])]),_vm._m(4)],2)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',[_vm._v(\"The \"),_c('strong',[_vm._v(\"4AT\")]),_vm._v(\" is a brief tool for \"),_c('strong',[_vm._v(\"delirium\")]),_vm._v(\" detection designed for use in clinical practice. It is the standard tool for delirium detection in many countries. It is recommended in multiple guidelines and pathways.\")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',[_vm._v(\"It incorporates the Months Backwards test and the Abbreviated Mental Test - 4 (AMT4), which are short tests for cognitive impairment. This provides basic cognitive testing, aimed at detecting moderate-severe cognitive impairment, alongside assessment for delirium. See \"),_c('a',{attrs:{\"href\":\"https://www.the4at.com/guide\",\"target\":\"_blank\"}},[_vm._v(\"https://www.the4at.com/guide\")]),_vm._v(\".\")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"questions__intro-text\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xs-12\"},[_c('p',[_vm._v(\"Please click on the appropriate response to each question, then click on “Calculate”\")])])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"questions\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xs-12 col-md-6\"},[_c('span',[_c('strong',[_vm._v(\"Question\")])])]),_c('div',{staticClass:\"col-xs-12 col-md-6\"},[_c('span',[_c('strong',[_vm._v(\"Please select your answer\")])])])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xs-12\"},[_c('div',{attrs:{\"id\":\"howtointerpret\"}},[_c('h3',[_vm._v(\"How to interpret AMT4\")]),_c('p',[_vm._v(\"AMT4 is not a full cognitive test and decisions should not be made on this basis. A high AMT4 score can indicate general cognitive impairment, but note that a low score does not rule out mild cognitive impairment.\")])]),_c('div',{attrs:{\"id\":\"howtoscore\"}},[_c('h3',[_vm._v(\"How to score acute change or fluctuating course\")]),_c('p',[_vm._v(\"This item requires information from one or more sources – eg a GP letter, personal knowledge of the patient, key informant such as family member, deduction from other information in patient history (for example, if the patient is drowsy and usually functions independently, the clinician may decide that this indicates acute change). If you do not have sufficient information, leave this element blank and click on “Calculate.”\")])]),_c('div',{attrs:{\"id\":\"regulatory\"}},[_c('h3',[_vm._v(\"Regulatory Information\")]),_c('p',[_c('strong',[_vm._v(\"Product Name: \")]),_vm._v(\"Calculator Suite \"),_c('br'),_c('strong',[_vm._v(\"Calculator Name: \")]),_vm._v(\"4AT - 4 A's Assessment test for delirium and cognitive impairment\"),_c('br'),_c('strong',[_vm._v(\"Calculator Version: \")]),_vm._v(\" v2.0.0 \")]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xs-4 col-lg-2\"},[_c('img',{attrs:{\"src\":\"/img/cemark/shii.png\",\"alt\":\"InnoScot Health\"}})]),_c('div',{staticClass:\"col-xs-8 col-lg-10\"},[_c('p',[_vm._v(\" InnoScot Health\"),_c('br'),_vm._v(\" 272 Bath Street\"),_c('br'),_vm._v(\" Glasgow\"),_c('br'),_vm._v(\" Scotland\"),_c('br'),_vm._v(\" G2 4JR \")])])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xs-12\"},[_c('p',[_c('img',{attrs:{\"src\":\"/img/cemark/ukca.png\",\"alt\":\"UK Conformity Assessed\"}})])])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xs-4 col-lg-2\"},[_c('img',{attrs:{\"src\":\"/img/cemark/warning.png\",\"alt\":\"InnoScot Health\"}})]),_c('div',{staticClass:\"col-xs-8 col-lg-10\"},[_c('p',[_c('strong',[_vm._v(\"Calculators are \"),_c('u',[_vm._v(\"not\")]),_vm._v(\" intended to be used by members of the public as a substitute for professional advice.\")])])])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xs-4 col-lg-2\"},[_c('img',{attrs:{\"src\":\"/img/cemark/info.png\",\"alt\":\"More Information on Right Decision\"}})]),_c('div',{staticClass:\"col-xs-8 col-lg-10\"},[_c('p',[_c('a',{attrs:{\"href\":\"https://rightdecision.scot.nhs.uk/quality-assurance-and-regulation/calculator-suite-instructions-for-use.pdf\",\"target\":\"_blank\"}},[_vm._v(\"Instructions for use\")])])])])])])])}]\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"tabs mb--2\",on:{\"click\":function($event){$event.stopPropagation();$event.preventDefault();return _vm.handleClick($event)}}},[_c('nav',{staticClass:\"tabs__nav\"},_vm._l((_vm.tabs),function(tab){return _c('button',{key:tab.title,staticClass:\"tabs__nav-item txt--strong\",class:{'tabs__nav-item--active bg--primary': tab.display},attrs:{\"role\":\"button\"},on:{\"click\":function($event){return _vm.selectTab(tab)}}},[_c('span',{domProps:{\"innerHTML\":_vm._s(tab.title)}},[_vm._v(\"Link\")]),(!tab.display)?_c('i',{staticClass:\"fa fa-chevron-down ml-1 ml--1 show--md\",attrs:{\"aria-hidden\":\"true\"}}):_vm._e(),(tab.display)?_c('i',{staticClass:\"fa fa-chevron-up ml-1 ml--1 show--md\",attrs:{\"aria-hidden\":\"true\"}}):_vm._e()])}),0),_c('div',{staticClass:\"tabs__content\",attrs:{\"id\":\"tabcontent\"}},_vm._l((_vm.tabs),function(tab){return _c('div',{key:tab.content},[(tab.display)?_c('div',{staticClass:\"bdr--light-gray p--1 wysiwyg\",attrs:{\"role\":\"tabpanel\",\"aria-labelledby\":tab.title},domProps:{\"innerHTML\":_vm._s(tab.content)}}):_vm._e()])}),0)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n\t<div class=\"tabs mb--2\" @click.stop.prevent=\"handleClick\">\r\n\t\t<nav class=\"tabs__nav\">\r\n\t\t\t<button role=\"button\" v-for=\"(tab) in tabs\" v-bind:key=\"tab.title\" class=\"tabs__nav-item txt--strong\" v-bind:class=\"{'tabs__nav-item--active bg--primary': tab.display}\" v-on:click=\"selectTab(tab)\">\r\n\t\t\t\t<span v-html=\"tab.title\">Link</span>\t\t\t\t\t\r\n\t\t\t\t<i v-if=\"!tab.display\" aria-hidden=\"true\" class=\"fa fa-chevron-down ml-1 ml--1 show--md\"></i>\r\n\t\t\t\t<i v-if=\"tab.display\" aria-hidden=\"true\" class=\"fa fa-chevron-up ml-1 ml--1 show--md\"></i>\t\r\n\t\t\t</button>\r\n\t\t</nav>\r\n\t\t<div class=\"tabs__content\" id=\"tabcontent\">\r\n\t\t\t<div v-for=\"(tab) in tabs\" v-bind:key=\"tab.content\">\r\n\t\t\t\t<div v-if=\"tab.display\" class=\"bdr--light-gray p--1 wysiwyg\" role=\"tabpanel\" :aria-labelledby=\"tab.title\" v-html=\"tab.content\"></div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n\tname: \"Info\",\r\n\tmethods: {\r\n\t\tselectTab(selectedTab) {\r\n\t\t\tthis.tabs.forEach(tab => {\r\n\t\t\t\tif(tab.display) {\r\n\t\t\t\t\ttab.display = false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttab.display = (tab.title == selectedTab.title);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t},\t\t\r\n\t\t\t\t\r\n\t\thandleClick(e) {\r\n\t\t\tif (e.target.matches(\"a\")) {\r\n\t\t\t\tlet url = e.target.href;\r\n\t\t\t\tlet target = e.target.target == \"_blank\" ? \"_blank\" : \"_self\";\r\n\t\t\t\tlet dataId = e.target.dataset.id == null ? -1 : e.target.dataset.id;\r\n\t\t\t\tvar isnativeapp = document.getElementById(\"isnativeapp\");\r\n\t\t\t\tif (isnativeapp === undefined || isnativeapp === null) \r\n\t\t\t\t{\r\n\t\t\t\t\twindow.open(url,target);  \r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tif(target == \"_blank\") {\r\n\t\t\t\t\t\tlet data = {title:'',nodeid: dataId, href:url, target: target};\r\n\t\t\t\t\t\twindow.Native('dataCallback', data);\r\n\t\t\t\t\t} \r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\ttabs: [\r\n\t\t\t\t{\r\n\t\t\t\t\ttitle: \"When to use\",\r\n\t\t\t\t\tdisplay: false,\r\n\t\t\t\t\tcontent: `\r\n\t\t\t\t\t\t<p>The 4AT is designed to be used by any health professional at first contact with the patient, and at other times when delirium is suspected.</p>\r\n\t\t\t\t\t\t<p>The 4AT is not designed for repeated daily or more monitoring for new onset delirium for periods of more than a small number of days (because of practice effects with the Months Backwards task). It may be useful to repeat the 4AT in active delirium to monitor for recovery.</p>\r\n\t\t\t\t\t\t<p>Altered level of arousal (Item 1), and change or fluctuation (Item 4) can be used for daily or even more frequent monitoring, along with general clinical judgement and/or use of tools specifically designed for ongoing monitoring of delirium. <a href=\"https://www.the4at.com/references\" target=\"_blank\">See references</a></p>\r\n\t\t\t\t\t\t<p>Note that some patients may be too unwell/drowsy/distressed/hyperactive to engage meaningfully with cognitive testing or interview; note that the 4AT items AMT4 and Attention (Months Backwards) should still be scored in this situation, using the ‘untestable’ category.</p>\r\n\t\t\t\t\t`\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\ttitle: \"Evidence\",\r\n\t\t\t\t\tdisplay: false,\r\n\t\t\t\t\tcontent: `\r\n\t\t\t\t\t\t<p>The 4AT is among the best-validated delirium tools in the literature, with multiple  validation studies involving >4000 patients. <a href=\"https://www.the4at.com/references\" target=\"_blank\">See references</a></p>\r\n\t\t\t\t\t\t<p><strong>Key features of the 4AT: </strong></p>\r\n\t\t\t\t\t\t<ul>\r\n\t\t\t\t\t\t\t<li>takes <2 minutes </li>\r\n\t\t\t\t\t\t\t<li>suitable for use in normal clinical practice </li>\r\n\t\t\t\t\t\t\t<li>practical and simple</li>\r\n\t\t\t\t\t\t\t<li>no special training is required</li>\r\n\t\t\t\t\t\t\t<li>all patients can be assessed, including those unable to communicate (eg. patients with severe drowsiness or agitation)</li>\r\n\t\t\t\t\t\t\t<li>includes brief cognitive tests</li>\r\n\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t<p>The 4AT was originally designed in 2011 by Prof Alasdair MacLullich (Edinburgh Delirium Research Group, University of Edinburgh, Scotland), and Dr Tracy Ryan and Dr Helen Cash (NHS Lothian, Scotland). Updates since then have been carried out by and are the responsibility of Alasdair MacLullich.</p>\r\n\t\t\t\t\t`\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\ttitle: \"Calculation<span class='show--md'>  & Interpretation</span>\",\r\n\t\t\t\t\tdisplay: false,\r\n\t\t\t\t\tcontent: `\t\t\t\t\t\t\r\n\t\t\t\t\t\t<p>Scores are assigned to responses to the 4AT criteria as indicated below.</p>\r\n\t\t\t\t\t\t<h4 class=\"txt--xl\">1. Alertness</h4>\r\n\t\t\t\t\t\t<p>This includes patients who may be markedly drowsy (eg. difficult to rouse and/or obviously sleepy during assessment) or agitated/hyperactive. Observe the patient. If asleep, attempt to wake with speech or gentle touch on shoulder. Ask the patient to state their name and address to assist rating.</p>\r\n\t\t\t\t\t\t<table class=\"tbl table\" role=\"presentation\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th>Input value</th>\r\n\t\t\t\t\t\t\t\t<th width=\"150\">Score</th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">Normal (fully alert, but not agitated, throughout assessment)</td>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t\t0\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">Mild sleepiness for <10 seconds after waking, then normal</td>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t\t0\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">Clearly abnormal</td>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t\t+4\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\t\r\n\t\t\t\t\t\t</table>\r\n\t\t\t\t\t\t<h4 class=\"txt--xl\">2. AMT4</h4>\r\n\t\t\t\t\t\t<p>Age, date of birth, place (name of the hospital or building), current year.</p>\r\n\t\t\t\t\t\t<table class=\"tbl table\" role=\"presentation\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th>Input value</th>\r\n\t\t\t\t\t\t\t\t<th width=\"150\">Score</th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">No mistakes</td>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t\t0\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">1 mistake</td>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t\t+1\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">2 or more mistakes/untestable</td>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t\t+2\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\t\r\n\t\t\t\t\t\t</table>\r\n\t\t\t\t\t\t<h4 class=\"txt--xl\">3. Attention</h4>\r\n\t\t\t\t\t\t<p>Ask the patient: “Please tell me the months of the year in backwards order, starting at December.” To assist initial understanding one prompt of “what is the month before December?” is permitted. </p>\r\n\t\t\t\t\t\t<p>Months of the year backwards.</p>\r\n\t\t\t\t\t\t<table class=\"tbl table\" role=\"presentation\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th>Input value</th>\r\n\t\t\t\t\t\t\t\t<th width=\"150\">Score</th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">Achieves 7 months or more correctly</td>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t\t0\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">Starts but scores <7 months / refuses to start</td>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t\t+1\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">Untestable (cannot start because unwell, drowsy, inattentive)</td>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t\t+2\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\t\r\n\t\t\t\t\t\t</table>\r\n\t\t\t\t\t\t<h4 class=\"txt--xl\">4. Acute change or fluctuating course</h4>\r\n\t\t\t\t\t\t<p>Evidence of significant change or fluctuation in: alertness, cognition, other mental function (eg. paranoia, hallucinations) arising over the last 2 weeks and still evident in last 24hrs  </p>\r\n\t\t\t\t\t\t<table class=\"tbl table\" role=\"presentation\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th>Input value</th>\r\n\t\t\t\t\t\t\t\t<th width=\"150\">Score</th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">No</td>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t\t0\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">Yes</td>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t\t+4\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</table>\r\n\t\t\t\t\t\t<p>Scores are added and interpreted as follows: </p>\r\n\t\t\t\t\t\t<table class=\"tbl table\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th valign=\"bottom\" width=\"110\">Total Score</th>\r\n\t\t\t\t\t\t\t\t<th valign=\"bottom\">Result</th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t\t4 or above \r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t\tpossible delirium +/- cognitive impairment \r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t\t1-3\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t\tpossible cognitive impairment \r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t\t0\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t\tdelirium or severe cognitive Impairment unlikely (but delirium still possible if answer to question 4 (Acute change or fluctuating course) incomplete)\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</table>\r\n\t\t\t\t\t`\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\ttitle: \"Practice<span class='show--md'>  considerations</span>\",\r\n\t\t\t\t\tdisplay: false,\r\n\t\t\t\t\tcontent\t: `\r\n\t\t\t\t\t\t<ul>\r\n\t\t\t\t\t\t\t<li>Screens with higher sensitivity in patients without dementia. </li>\r\n\t\t\t\t\t\t\t<li>No consensus exists for the assessment of inattention. </li>\r\n\t\t\t\t\t\t\t<li>Limited external validation in some small populations, including the acute stroke setting. </li>\r\n\t\t\t\t\t\t\t<li>Validated in non-English speaking patients with 91% sensitivity (<a href=\"https://onlinelibrary.wiley.com/doi/abs/10.1002/gps.4615\" target=\"_blank\">De 2016</a>). </li>\r\n\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t`    \r\n\t\t\t\t}\r\n\t\t\t]\r\n\t\t};\r\n\t},\r\n};\r\n</script>\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Info.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Info.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Info.vue?vue&type=template&id=9f1c6826&\"\nimport script from \"./Info.vue?vue&type=script&lang=js&\"\nexport * from \"./Info.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports","<template>\r\n    <div id=\"calc\" class=\"container container-fluid qrs-typography\" @click.stop.prevent=\"handleClick\">\r\n      <p>The <strong>4AT</strong> is a brief tool for <strong>delirium</strong> detection designed for use in clinical practice. It is the standard tool for delirium detection in many countries. It is recommended in multiple guidelines and pathways.</p>\r\n      <p>It incorporates the Months Backwards test and the Abbreviated Mental Test - 4 (AMT4), which are short tests for cognitive impairment. This provides basic cognitive testing, aimed at detecting moderate-severe cognitive impairment, alongside assessment for delirium. See <a href=\"https://www.the4at.com/guide\" target=\"_blank\">https://www.the4at.com/guide</a>.</p>\r\n\t\t\t\r\n      <Info />\r\n\r\n\t\t\t<div class=\"row \" v-if=\"errormessage.length > 0\">\r\n\t\t\t\t<div class=\"col-xs-12\">\r\n\t\t\t\t\t<div id=\"error\" class=\"alert alert-calc alert-danger txt-danger\" v-html=\"errormessage\"></div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n      <div class=\"questions__intro-text\">\r\n        <div class=\"row\">\r\n          <div class=\"col-xs-12\">\r\n            <p>Please click on the appropriate response to each question, then click on “Calculate”</p>\r\n          </div>\r\n        </div>\r\n      </div>\r\n\r\n      <div class=\"questions\">\r\n        <div class=\"row\">\r\n          <div class=\"col-xs-12 col-md-6\">\r\n            <span><strong>Question</strong></span>\r\n          </div>\r\n          <div class=\"col-xs-12 col-md-6\">\r\n            <span><strong>Please select your answer</strong></span>\r\n          </div>\r\n        </div>\r\n      </div>\r\n\r\n      <div class=\"question\" v-for=\"q in questions\" :key=\"q.id\">\r\n        <div class=\"row\">\r\n          <div class=\"col-xs-12 col-md-6\">\r\n            <h3 class=\"txt--xl mb-1 mb--1\">{{q.title}}</h3>\r\n            <p v-html=\"q.info\"></p>\r\n          </div>\r\n\r\n          <div class=\"col-xs-12 col-md-6\">\r\n            <div class=\"list-group\">\r\n              <div\r\n                v-for=\"o in q.options\"\r\n                :key=\"o.id\"\r\n              >\r\n\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t@click=\"optionclicked(q.id,o.id)\"\r\n\t\t\t\t\t\t\t@keydown.enter=\"optionclicked(event, q.id,o.id)\"\r\n\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\tv-bind:class=\"{'list-group-item list-group-item-action d-flex justify-content-between align-items-center mb-1 active':(o.selected), 'list-group-item list-group-item-action d-flex justify-content-between align-items-center mb-1':(!o.selected)}\"\r\n\t\t\t\t\t\t\t>\r\n                {{o.text}}\r\n                <span class=\"badge badge-success\">{{o.value_label}}</span>\r\n                </button>\r\n              </div>\r\n            </div>\r\n          </div>\r\n\r\n        </div>\r\n        <hr />\r\n      </div>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t<div class=\"col-xs-12\">\r\n\t\t\t\t\t\t<div class=\"calculator__result bg-secondary bg--secondary p--2 p-2 mb--2 mb-2\">\t\t\t\t\t\r\n\t\t\t\t\t\t\t<div id=\"calculator-copy\" class=\"color--white text-white mb-1 mb--1\" v-if=\"displayresult\">\r\n                <div id=\"result-response\" v-if=\"isvalid\"></div>\r\n                <h3 class=\"txt--xl\">Total 4AT Score : {{result.score}}</h3>\r\n                <p v-if=\"result.text.length > 0\"><strong>Result:</strong> {{result.text}}</p>\r\n                \r\n                <table class=\"table\" v-if=\"result.calctext.length > 0\" v-html=\"result.calctext\"></table>\r\n              </div>\r\n\t\t\t\t\t\t\t<div class=\"control-holder\">\r\n\t\t\t\t\t\t\t\t<button class=\"btn btn-primary mr-1 mr--1\" @click=\"calculateclicked\" type=\"button\" v-if=\"!displayresult\">Calculate</button>\r\n\t\t\t\t\t\t\t\t<button class=\"btn btn-primary mr-1 mr--1\" id=\"resetButton\" type=\"button\" @click=\"reset\" v-if=\"displayresult\">Reset</button>\r\n                <button class=\"btn btn-primary mr-1 mr--1\" id=\"copyButton\" type=\"button\" @click=\"copyToClipboard\" v-if=\"displayresult\">Copy Result</button>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t<div class=\"row\">\r\n        <div class=\"col-xs-12\">\r\n          <div id=\"howtointerpret\">\r\n            <h3>How to interpret AMT4</h3>\r\n            <p>AMT4 is not a full cognitive test and decisions should not be made on this basis. A high AMT4 score can indicate general cognitive impairment, but note that a low score does not rule out mild cognitive impairment.</p>\r\n          </div>\r\n          <div id=\"howtoscore\">\r\n            <h3>How to score acute change or fluctuating course</h3>\r\n            <p>This item requires information from one or more sources – eg a GP letter, personal knowledge of the patient, key informant such as family member, deduction from other information in patient history (for example, if the patient is drowsy and usually functions independently, the clinician may decide that this indicates acute change). If you do not have sufficient information, leave this element blank and click on “Calculate.”</p>\r\n          </div>\r\n          \r\n          <div id=\"regulatory\">\r\n            <h3>Regulatory Information</h3>\r\n            <p>\r\n              <strong>Product Name: </strong>Calculator Suite <br>\r\n              <strong>Calculator Name: </strong>4AT - 4 A's Assessment test for delirium and cognitive impairment<br>\r\n              <strong>Calculator Version: </strong> v2.0.0\r\n            </p>  \r\n            <div class=\"row\">\r\n              <div class=\"col-xs-4 col-lg-2\">\r\n                <img src=\"/img/cemark/shii.png\" alt=\"InnoScot Health\"/>\r\n              </div>\r\n              <div class=\"col-xs-8 col-lg-10\">\r\n                <p>\r\n                  InnoScot Health<br>\r\n                  272 Bath Street<br>\r\n                  Glasgow<br>\r\n                  Scotland<br>\r\n                  G2 4JR\r\n                </p>\r\n              </div>\r\n            </div>\r\n            <div class=\"row\">\r\n              <div class=\"col-xs-12\">\r\n                <p>\r\n                  <img src=\"/img/cemark/ukca.png\" alt=\"UK Conformity Assessed\"/>\r\n                  <!-- <img src=\"/img/cemark/ce.png\" alt=\"CE marking\"/> -->\r\n                </p>\r\n              </div>\r\n            </div>\r\n            <div class=\"row\">\r\n              <div class=\"col-xs-4 col-lg-2\">\r\n                <img src=\"/img/cemark/warning.png\" alt=\"InnoScot Health\"/>\r\n              </div>\r\n              <div class=\"col-xs-8 col-lg-10\">\r\n                <p>\r\n                  <strong>Calculators are <u>not</u> intended to be used by members of the public as a substitute for professional advice.</strong>\r\n                </p>\r\n              </div>\r\n            </div>\r\n\r\n\t\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t\t<div class=\"col-xs-4 col-lg-2\">\r\n\t\t\t\t\t\t\t\t<img src=\"/img/cemark/info.png\" alt=\"More Information on Right Decision\"/>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class=\"col-xs-8 col-lg-10\">\r\n\t\t\t\t\t\t\t\t<p>\r\n\t\t\t\t\t\t\t\t\t<a href=\"https://rightdecision.scot.nhs.uk/quality-assurance-and-regulation/calculator-suite-instructions-for-use.pdf\" target=\"_blank\">Instructions for use</a>\r\n\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n\t\t\t\r\n\t\t</div>\r\n</template>\r\n\r\n<script>\r\nimport Info from \"@/components/Info.vue\";\r\n\r\nexport default {\r\n  name: \"Calculator\",\r\n  components: {\r\n\t\tInfo\r\n  }, \r\n  mounted() {\r\n    setTimeout(\r\n      function () {\r\n        let bodyhtml = document.querySelector(\"body\").innerHTML;\r\n        if (bodyhtml.includes(\"--INAPP--\")) \r\n        {\r\n          this.isapp = true;\r\n        }\r\n      }.bind(this),\r\n      500\r\n    );\r\n  },\r\n  data() {\r\n    return {\r\n      publicPath: process.env.BASE_URL,\r\n      questions: [\r\n        {\r\n          id: \"q1\",\r\n          title: \"1. Alertness\",\r\n          required: true,\r\n          info:\r\n            \"<p>This includes patients who may be markedly drowsy (eg difficult to rouse and/or obviously sleepy during assessment) or agitated/hyperactive.</p><p><strong>Observe the patient:</strong><br />If asleep, attempt to wake with  speech or gentle touch on shoulder. Ask the patient to state their name and address to assist rating.</p>\",\r\n          options: [\r\n            {\r\n              id: \"o1\",\r\n              text:\r\n                \"Normal (fully alert, but not agitated, throughout assessment)\",\r\n              value_label: \"0\",\r\n              value: 0,\r\n              selected: false\r\n            },\r\n            {\r\n              id: \"o2\",\r\n              text: \"Mild sleepiness for <10 seconds after waking, then normal\",\r\n              value_label: \"0\",\r\n              value: 0,\r\n              selected: false\r\n            },\r\n            {\r\n              id: \"o3\",\r\n              text: \"Clearly abnormal\",\r\n              value_label: \"+4\",\r\n              value: 4,\r\n              selected: false\r\n            }\r\n          ]\r\n        },\r\n        {\r\n          id: \"q2\",\r\n          title: \"2. AMT4\",\r\n          required: true,\r\n          info:\r\n            \"<p><strong>Ask the patient to state:</strong><br />Age, date of birth, place (name of the hospital or building), current year</p><p></p>\",\r\n          options: [\r\n            {\r\n              id: \"o4\",\r\n              text: \"No mistakes\",\r\n              value_label: \"0\",\r\n              value: 0,\r\n              selected: false\r\n            },\r\n            {\r\n              id: \"o5\",\r\n              text: \"1 mistake\",\r\n              value_label: \"+1\",\r\n              value: 1,\r\n              selected: false\r\n            },\r\n            {\r\n              id: \"o6\",\r\n              text: \"≥2 mistakes or untestable \",\r\n              value_label: \"+2\",\r\n              value: 2,\r\n              selected: false\r\n            }\r\n          ]\r\n        },\r\n        {\r\n          id: \"q3\",\r\n          title: \"3. Attention\",\r\n          required: true,\r\n          info:\r\n            \"<p><strong>Ask the patient:</strong><br />&quot;Please tell me the months of the year in backwards order, starting at December.&quot;</p><p>To assist initial understanding one prompt of &quot;what is the month before December?&quot; is permitted.</p>\",\r\n          options: [\r\n            {\r\n              id: \"o7\",\r\n              text: \"Achieves ≥7 months correctly \",\r\n              value_label: \"0\",\r\n              value: 0,\r\n              selected: false\r\n            },\r\n            {\r\n              id: \"o8\",\r\n              text: \"Starts but scores <7 months / refuses to start\",\r\n              value_label: \"+1\",\r\n              value: 1,\r\n              selected: false\r\n            },\r\n            {\r\n              id: \"o9\",\r\n              text:\r\n                \"Untestable (cannot start because unwell, drowsy, inattentive)\",\r\n              value_label: \"+2\",\r\n              value: 2,\r\n              selected: false\r\n            }\r\n          ]\r\n        },\r\n        {\r\n          id: \"q4\",\r\n          title: \"4. Acute change or fluctuating course\",\r\n          required: false,\r\n          info:\r\n            \"<p>Evidence of significant change or fluctuation in: alertness, cognition, other mental function (eg paranoia, hallucinations) arising over the last 2 weeks and still evident in last 24hrs</p><p></p>\",\r\n          options: [\r\n            {\r\n              id: \"o10\",\r\n              text: \"No\",\r\n              value_label: \"0\",\r\n              value: 0,\r\n              selected: false\r\n            },\r\n            {\r\n              id: \"o11\",\r\n              text: \"Yes\",\r\n              value_label: \"+4\",\r\n              value: 4,\r\n              selected: false\r\n            }\r\n          ]\r\n        }\r\n      ],\r\n      result: {\r\n        score: 0,\r\n        calctext: \"\",\r\n        text: \"\",\r\n        subtext: \"\"\r\n      },\r\n      displayresult: false,\r\n      errormessage: \"\",\r\n      isvalid: false,\r\n      answered_count: 0,\r\n      answer_acutechange: false\r\n    };\r\n  },\r\n  methods: {\r\n    \r\n\t\thandleClick(e) {\r\n\t\t\tif (e.target.matches(\"a\")) {\r\n\t\t\t\tlet url = e.target.href;\r\n\t\t\t\tlet target = e.target.target == \"_blank\" ? \"_blank\" : \"_self\";\r\n\t\t\t\tlet dataId = e.target.dataset.id == null ? -1 : e.target.dataset.id;\r\n\t\t\t\tvar isnativeapp = document.getElementById(\"isnativeapp\");\r\n\t\t\t\tif (isnativeapp === undefined || isnativeapp === null) \r\n\t\t\t\t{\r\n\t\t\t\t\twindow.open(url,target);  \r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n          if (url.includes(\"#\")) {\r\n            window.Native('dataCallback', url);\r\n          }\r\n\t\t\t\t\tif(target == \"_blank\") {\r\n\t\t\t\t\t\tlet data = {title:'',nodeid: dataId, href:url, target: target};\r\n\t\t\t\t\t\twindow.Native('dataCallback', data);\r\n\t\t\t\t\t} \r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t},\r\n    reset() {\r\n      this.result.score = 0;\r\n      this.result.calctext = \"\";\r\n      this.result.text = \"\";\r\n      this.displayresult = false;\r\n      this.showCopy = false;\r\n      this.showform = false;\r\n      this.errormessage = \"\";\r\n      this.isvalid = false;\r\n      this.answered_count = 0;\r\n      this.answer_acutechange= false;\r\n      this.questions.forEach(q => {\r\n        q.options.forEach(o => {\r\n            o.selected = false;\r\n          });\r\n      });\r\n    },\r\n    calculateclicked() {\r\n      if (this.isvalid) {\r\n        this.displayresult = true;\r\n        this.showCopy = true;\r\n      }\r\n\r\n      if (!this.isvalid) {\t\t\t\t\r\n        this.displayresult = false;\r\n\t\t\t\tthis.errormessage =  \"<p><strong>One or more mandatory inputs missing.</strong></p>\";\t\t\t\t\r\n\t\t\t\tthis.errormessage += \"<p>Mandatory inputs are: </p>\";\r\n\t\t\t\tthis.errormessage += \"<ul style='margin:0'>\";\r\n\t\t\t\tthis.errormessage += \"<li>Alertness</li>\";\r\n\t\t\t\tthis.errormessage += \"<li>AMT4</li>\";\r\n\t\t\t\tthis.errormessage += \"<li>Attention</li>\";\r\n\t\t\t\tthis.errormessage += \"</ul>\";\r\n        this.errormessage += \"<p>Please note that if the patient is unable to engage in the AMT4 or Attention items these should be scored as ‘untestable’ on the tool, that is, each given a score of 2.</p>\";\r\n\t\t\t\t\tsetTimeout(()=> {\r\n            const id = 'error';\r\n            const yOffset = -100; \r\n            const element = document.getElementById(id);\r\n            const y = element.getBoundingClientRect().top + window.pageYOffset + yOffset;\r\n            window.scrollTo({top: y, behavior: 'smooth'});\r\n          },100);\r\n      } else {\r\n        this.errormessage = \"\";\r\n      }\r\n\t\t},\r\n\t\tcopyToClipboard() {\r\n      var range;\r\n      var finalText = \"\";\r\n      if (document.selection) { // IE\r\n        range = document.body.createTextRange();\r\n        range.moveToElementText(document.getElementById('calculator-copy'));\r\n        range.select();\r\n        finalText = this.getDateToday() + \"\\n\\n4AT assessment\\n\\n\" + range + \"\\nEnter action taken as a result of this alert\\n\";\r\n        document.selection.empty();\r\n      } else if (window.getSelection) {\r\n        range = document.createRange();\r\n        range.selectNode(document.getElementById('calculator-copy'));\r\n        window.getSelection().removeAllRanges();\r\n        window.getSelection().addRange(range);\r\n        finalText = this.getDateToday() + \"\\n\\n4AT assessment\\n\\n\" + window.getSelection().toString() + \"\\nEnter action taken as a result of this alert\";\r\n        window.getSelection().removeAllRanges();\r\n      }\r\n      var dummy = document.createElement(\"textarea\");\r\n      // Add it to the document\r\n      document.body.appendChild(dummy);\r\n\r\n      // Set its ID\r\n      dummy.setAttribute(\"id\", \"dummy_id\");\r\n\r\n      // Output the array into it\r\n      document.getElementById(\"dummy_id\").value = finalText;\r\n\r\n      // Select it\r\n      dummy.select();\r\n\r\n      // Copy its contents\r\n      document.execCommand(\"copy\");\r\n\r\n      // Remove it as its not needed anymore\r\n      document.body.removeChild(dummy);\r\n\r\n      var clicked = false;\r\n      var copyButton = document.getElementById('copyButton');\r\n      if (!clicked) {\r\n            var last = copyButton.innerHTML;\r\n            copyButton.innerHTML = 'Copied!';\r\n            clicked = true;\r\n            setTimeout(function () {\r\n                copyButton.innerHTML = last;\r\n                clicked = false;\r\n            }.bind(copyButton), 5000);\r\n        }\r\n    },\r\n    getDateToday() {\r\n      var date = \"\";\r\n      var today = new Date();\r\n      date = today.getDate() + \"/\" + (today.getMonth() + 1) + \"/\" + today.getFullYear() + \" \" + (today.getHours() < 10 ? \"0\" + today.getHours() : today.getHours()) + \":\" + (today.getMinutes() < 10 ? \"0\" + today.getMinutes() : today.getMinutes());\r\n      return date;\r\n    },\r\n    closedclicked() {\r\n      this.displayresult = false;\r\n    },\r\n    optionclicked(qid, oid) {\r\n      this.displayresult = false;\r\n      this.showCopy = false;\r\n      let _score = 0;\r\n      this.answered_count = 0;\r\n      this.questions.forEach(q => {\r\n        if (q.id === qid) {\r\n          q.options.forEach(o => {\r\n            if (o.id === oid) {\r\n              if(o.selected)\r\n              {\r\n                o.selected = false;\r\n              }\r\n              else\r\n              {\r\n                o.selected = true;\r\n              }\r\n              \r\n            } else {\r\n              o.selected = false;\r\n            }\r\n          });\r\n        }\r\n      });\r\n      let _cnt = 0;\r\n      let _required_cnt = 0;\r\n      let _required_answered_cnt = 0;\r\n      this.answer_acutechange = false;\r\n      this.questions.forEach(q => {\r\n        if (q.required) {\r\n          _required_cnt++;\r\n        }\r\n      });\r\n      this.questions.forEach(q => {\r\n        q.options.forEach(o => {\r\n          if (o.selected) {\r\n            _score += o.value;\r\n            _cnt++;\r\n          }\r\n          if (o.selected && q.required) {\r\n            _required_answered_cnt++;\r\n          }\r\n          if (q.id === \"q4\") {\r\n            if (o.selected) {\r\n              this.answer_acutechange = true;\r\n            }\r\n          }\r\n        });\r\n      });\r\n\r\n      this.answered_count = _cnt;\r\n      this.isvalid = _required_answered_cnt === _required_cnt;\r\n\r\n      if (this.isvalid) {\r\n        this.errormessage = \"\";\r\n      }\r\n      this.result.score = _score;\r\n\r\n      if (_score === 0) {\r\n        if (!this.answer_acutechange) {\r\n          this.result.text = \"Delirium or severe cognitive impairment unlikely. Delirium still possible as \\\"Acute Change or Fluctuating Course\\\" field incomplete.\";\r\n        }\r\n        else\r\n        {\r\n          this.result.text = \"Delirium or severe cognitive impairment unlikely.\";\r\n        }\r\n        \r\n      }\r\n      if (_score > 0 && _score < 4) {\r\n        if (!this.answer_acutechange) {\r\n            this.result.text = \"Possible cognitive impairment. Delirium still possible as \\\"Acute Change or Fluctuating Course\\\" field incomplete.\";\r\n        }\r\n        else\r\n        {\r\n          this.result.text = \"Possible cognitive impairment.\";\r\n        }\r\n      }\r\n      if (_score >= 4) {\r\n          if (!this.answer_acutechange) {\r\n            this.result.text = \"Possible delirium +/- cognitive impairment. Note that \\\"Acute Change or Fluctuating Course\\\" field is incomplete so actual score may be higher.\";\r\n          }\r\n          else{\r\n            this.result.text = \"Possible delirium +/- cognitive impairment.\";\r\n          }\r\n      }\r\n\r\n      \r\n\r\n      let _calctext = \"<tr><td width='80'><strong>Score</strong></td><td><strong>Questions</strong></td></tr>\";\r\n      let _idx2 = 0;\r\n      //let _len = this.questions.length;\r\n      this.questions.forEach(q => {\r\n        //_calctext = _calctext + q.title+\": \";\r\n\r\n        q.options.forEach(o => {\r\n          if (o.selected) {\r\n            if (_idx2 === 0) {\r\n              _calctext = _calctext + \"<tr><td><span class='badge badge-success badge-pill'>\"+ o.value + \"</span></td><td>\" + q.title + \"</td></tr>\";\r\n            } else {\r\n              _calctext = _calctext + \" <tr><td><span class='badge badge-success badge-pill'>\"+ o.value + \"</span></td><td>\" + q.title + \"</td></tr>\";\r\n            }\r\n          }\r\n        });\r\n\r\n        _idx2++;\r\n      });\r\n      \r\n      this.result.calctext = _calctext;\r\n    }\r\n  }\r\n};\r\n</script>\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calculator.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calculator.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Calculator.vue?vue&type=template&id=1e5e9d4d&\"\nimport script from \"./Calculator.vue?vue&type=script&lang=js&\"\nexport * from \"./Calculator.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports","<template>\r\n  <div id=\"app\">\r\n    <Calculator/>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nimport Calculator from './components/Calculator.vue'\r\n\r\nexport default {\r\n  name: 'App',\r\n  components: {\r\n    Calculator\r\n  }\r\n}\r\n</script>\r\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=3091ac46&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports","import Vue from 'vue'\r\nimport App from './App.vue'\r\n// import 'bootstrap'\r\n// import 'bootstrap/dist/css/bootstrap.min.css'\r\n// import './assets/css/base.css'\r\n// import '../../../base-redesign/dist/css/calculator-redesign.css'\r\n\r\nVue.config.productionTip = false\r\n\r\nnew Vue({\r\n  render: h => h(App),\r\n}).$mount('#app')\r\n"],"sourceRoot":""}