UNPKG

@birthsenseai/esm-patient-ai-analysis-app

Version:

AI Analysis integration for OpenMRS patient charts - provides clinical summaries, drug interaction analysis, and patient follow-up messages

1 lines 8.51 kB
var _birthsenseai_esm_patient_ai_analysis_app;!function(){"use strict";var e,n,t,r,o,i,u,f,a,c,s,l,p,d,h,v,m,b,g,y,_,w={869:function(e,n,t){var r={"./start":function(){return Promise.all([t.e(83),t.e(173)]).then((function(){return function(){return t(6173)}}))}},o=function(e,n){return t.R=n,n=t.o(r,e)?r[e]():Promise.resolve().then((function(){throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,n},i=function(e,n){if(t.S){var r="default",o=t.S[r];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[r]=e,t.I(r,n)}};t.d(n,{get:function(){return o},init:function(){return i}})}},S={};function j(e){var n=S[e];if(void 0!==n)return n.exports;var t=S[e]={id:e,exports:{}};return w[e].call(t.exports,t,t.exports,j),t.exports}j.m=w,j.c=S,j.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return j.d(n,{a:n}),n},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},j.t=function(t,r){if(1&r&&(t=this(t)),8&r)return t;if("object"==typeof t&&t){if(4&r&&t.__esModule)return t;if(16&r&&"function"==typeof t.then)return t}var o=Object.create(null);j.r(o);var i={};e=e||[null,n({}),n([]),n(n)];for(var u=2&r&&t;"object"==typeof u&&!~e.indexOf(u);u=n(u))Object.getOwnPropertyNames(u).forEach((function(e){i[e]=function(){return t[e]}}));return i.default=function(){return t},j.d(o,i),o},j.d=function(e,n){for(var t in n)j.o(n,t)&&!j.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},j.f={},j.e=function(e){return Promise.all(Object.keys(j.f).reduce((function(n,t){return j.f[t](e,n),n}),[]))},j.u=function(e){return e+".js"},j.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),j.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t={},r="@birthsenseai/esm-patient-ai-analysis-app:",j.l=function(e,n,o,i){if(t[e])t[e].push(n);else{var u,f;if(void 0!==o)for(var a=document.getElementsByTagName("script"),c=0;c<a.length;c++){var s=a[c];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")==r+o){u=s;break}}u||(f=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,j.nc&&u.setAttribute("nonce",j.nc),u.setAttribute("data-webpack",r+o),u.src=e),t[e]=[n];var l=function(n,r){u.onerror=u.onload=null,clearTimeout(p);var o=t[e];if(delete t[e],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((function(e){return e(r)})),n)return n(r)},p=setTimeout(l.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=l.bind(null,u.onerror),u.onload=l.bind(null,u.onload),f&&document.head.appendChild(u)}},j.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){j.S={};var e={},n={};j.I=function(t,r){r||(r=[]);var o=n[t];if(o||(o=n[t]={}),!(r.indexOf(o)>=0)){if(r.push(o),e[t])return e[t];j.o(j.S,t)||(j.S[t]={});var i=j.S[t],u="@birthsenseai/esm-patient-ai-analysis-app",f=function(e,n,t,r){var o=i[e]=i[e]||{},f=o[n];(!f||!f.loaded&&(!r!=!f.eager?r:u>f.from))&&(o[n]={get:t,from:u,eager:!!r})},a=[];return"default"===t&&(f("@openmrs/esm-framework","6.3.1-pre.3149",(function(){return Promise.all([j.e(905),j.e(343),j.e(150),j.e(83)]).then((function(){return function(){return j(4905)}}))})),f("react-i18next","11.18.6",(function(){return Promise.all([j.e(639),j.e(343)]).then((function(){return function(){return j(5639)}}))})),f("react","18.3.1",(function(){return j.e(41).then((function(){return function(){return j(4041)}}))}))),e[t]=a.length?Promise.all(a).then((function(){return e[t]=1})):1}}}(),function(){var e;j.g.importScripts&&(e=j.g.location+"");var n=j.g.document;if(!e&&n&&(n.currentScript&&"SCRIPT"===n.currentScript.tagName.toUpperCase()&&(e=n.currentScript.src),!e)){var t=n.getElementsByTagName("script");if(t.length)for(var r=t.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=t[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),j.p=e}(),o=function(e){var n=function(e){return e.split(".").map((function(e){return+e==e?+e:e}))},t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),r=t[1]?n(t[1]):[];return t[2]&&(r.length++,r.push.apply(r,n(t[2]))),t[3]&&(r.push([]),r.push.apply(r,n(t[3]))),r},i=function(e,n){e=o(e),n=o(n);for(var t=0;;){if(t>=e.length)return t<n.length&&"u"!=(typeof n[t])[0];var r=e[t],i=(typeof r)[0];if(t>=n.length)return"u"==i;var u=n[t],f=(typeof u)[0];if(i!=f)return"o"==i&&"n"==f||"s"==f||"u"==i;if("o"!=i&&"u"!=i&&r!=u)return r<u;t++}},u=function(e){var n=e[0],t="";if(1===e.length)return"*";if(n+.5){t+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":n>0?"=":"!=";for(var r=1,o=1;o<e.length;o++)r--,t+="u"==(typeof(f=e[o]))[0]?"-":(r>0?".":"")+(r=2,f);return t}var i=[];for(o=1;o<e.length;o++){var f=e[o];i.push(0===f?"not("+a()+")":1===f?"("+a()+" || "+a()+")":2===f?i.pop()+" "+i.pop():u(f))}return a();function a(){return i.pop().replace(/^\((.+)\)$/,"$1")}},f=function(e,n){if(0 in e){n=o(n);var t=e[0],r=t<0;r&&(t=-t-1);for(var i=0,u=1,a=!0;;u++,i++){var c,s,l=u<e.length?(typeof e[u])[0]:"";if(i>=n.length||"o"==(s=(typeof(c=n[i]))[0]))return!a||("u"==l?u>t&&!r:""==l!=r);if("u"==s){if(!a||"u"!=l)return!1}else if(a)if(l==s)if(u<=t){if(c!=e[u])return!1}else{if(r?c>e[u]:c<e[u])return!1;c!=e[u]&&(a=!1)}else if("s"!=l&&"n"!=l){if(r||u<=t)return!1;a=!1,u--}else{if(u<=t||s<l!=r)return!1;a=!1}else"s"!=l&&"n"!=l&&(a=!1,u--)}}var p=[],d=p.pop.bind(p);for(i=1;i<e.length;i++){var h=e[i];p.push(1==h?d()|d():2==h?d()&d():h?f(h,n):!d())}return!!d()},a=function(e,n){return e&&j.o(e,n)},c=function(e){return e.loaded=1,e.get()},s=function(e){return Object.keys(e).reduce((function(n,t){return e[t].eager&&(n[t]=e[t]),n}),{})},l=function(e,n,t){var r=t?s(e[n]):e[n];return Object.keys(r).reduce((function(e,n){return!e||!r[e].loaded&&i(e,n)?n:e}),0)},p=function(e,n,t,r){return"Unsatisfied version "+t+" from "+(t&&e[n][t].from)+" of shared singleton module "+n+" (required "+u(r)+")"},d=function(e){throw new Error(e)},h=function(e){"undefined"!=typeof console&&console.warn&&console.warn(e)},v=function(e,n,t){return t?t():function(e,n){return d("Shared module "+n+" doesn't exist in shared scope "+e)}(e,n)},m=function(e){return function(n,t,r,o,i){var u=j.I(n);return u&&u.then&&!r?u.then(e.bind(e,n,j.S[n],t,!1,o,i)):e(n,j.S[n],t,r,o,i)}}((function(e,n,t,r,o,i){if(!a(n,t))return v(e,t,i);var u=l(n,t,r);return f(o,u)||h(p(n,t,u,o)),c(n[t][u])})),b={},g={1343:function(){return m("default","react",!1,[1,18],(function(){return j.e(41).then((function(){return function(){return j(4041)}}))}))},3150:function(){return m("default","react-i18next",!1,[1,11],(function(){return j.e(639).then((function(){return function(){return j(5639)}}))}))},1083:function(){return m("default","@openmrs/esm-framework",!1,[1,5],(function(){return Promise.all([j.e(905),j.e(343),j.e(150)]).then((function(){return function(){return j(4905)}}))}))}},y={83:[1083],150:[3150],343:[1343]},_={},j.f.consumes=function(e,n){j.o(y,e)&&y[e].forEach((function(e){if(j.o(b,e))return n.push(b[e]);if(!_[e]){var t=function(n){b[e]=0,j.m[e]=function(t){delete j.c[e],t.exports=n()}};_[e]=!0;var r=function(n){delete b[e],j.m[e]=function(t){throw delete j.c[e],n}};try{var o=g[e]();o.then?n.push(b[e]=o.then(t).catch(r)):t(o)}catch(e){r(e)}}}))},function(){var e={492:0};j.f.j=function(n,t){var r=j.o(e,n)?e[n]:void 0;if(0!==r)if(r)t.push(r[2]);else if(/^(150|343|83)$/.test(n))e[n]=0;else{var o=new Promise((function(t,o){r=e[n]=[t,o]}));t.push(r[2]=o);var i=j.p+j.u(n),u=new Error;j.l(i,(function(t){if(j.o(e,n)&&(0!==(r=e[n])&&(e[n]=void 0),r)){var o=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;u.message="Loading chunk "+n+" failed.\n("+o+": "+i+")",u.name="ChunkLoadError",u.type=o,u.request=i,r[1](u)}}),"chunk-"+n,n)}};var n=function(n,t){var r,o,i=t[0],u=t[1],f=t[2],a=0;if(i.some((function(n){return 0!==e[n]}))){for(r in u)j.o(u,r)&&(j.m[r]=u[r]);f&&f(j)}for(n&&n(t);a<i.length;a++)o=i[a],j.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_birthsenseai_esm_patient_ai_analysis_app=self.webpackChunk_birthsenseai_esm_patient_ai_analysis_app||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))}(),j.nc=void 0;var O=j(869);_birthsenseai_esm_patient_ai_analysis_app=O}();