@openmrs/esm-patient-vitals-app 10.1.1-pre.7689 → 10.2.1-pre.7694
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/dist/5387.js +1 -1
- package/dist/5387.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-patient-vitals-app.js +1 -1
- package/dist/openmrs-esm-patient-vitals-app.js.buildmanifest.json +7 -7
- package/dist/routes.json +1 -1
- package/package.json +3 -3
- package/src/biometrics/biometrics-chart.component.tsx +13 -12
- package/src/vitals/vitals-chart.component.tsx +14 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
var _openmrs_esm_patient_vitals_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,p,f,d,c,h,m,v,g,b,y,w,_={8746:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(5395),t.e(8295),t.e(1343),t.e(8526),t.e(5387)]).then((()=>()=>t(5387)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},P={};function S(e){var r=P[e];if(void 0!==r)return r.exports;var t=P[e]={id:e,loaded:!1,exports:{}};return _[e].call(t.exports,t,t.exports,S),t.loaded=!0,t.exports}S.m=_,S.c=P,S.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return S.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,S.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);S.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var i=2&n&&t;"object"==typeof i&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,S.d(o,a),o},S.d=(e,r)=>{for(var t in r)S.o(r,t)&&!S.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},S.f={},S.e=e=>Promise.all(Object.keys(S.f).reduce(((r,t)=>(S.f[t](e,r),r)),[])),S.u=e=>e+".js",S.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),S.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@openmrs/esm-patient-vitals-app:",S.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var p=s[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==n+o){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,S.nc&&i.setAttribute("nonce",S.nc),i.setAttribute("data-webpack",n+o),i.src=e),t[e]=[r];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},S.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},S.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{S.S={};var e={},r={};S.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];S.o(S.S,t)||(S.S[t]={});var a=S.S[t],i="@openmrs/esm-patient-vitals-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","6.3.1-pre.2965",(()=>Promise.all([S.e(831),S.e(1343)]).then((()=>()=>S(831))))),l("@openmrs/esm-patient-common-lib","10.
|
|
1
|
+
var _openmrs_esm_patient_vitals_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,p,f,d,c,h,m,v,g,b,y,w,_={8746:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(5395),t.e(8295),t.e(1343),t.e(8526),t.e(5387)]).then((()=>()=>t(5387)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},P={};function S(e){var r=P[e];if(void 0!==r)return r.exports;var t=P[e]={id:e,loaded:!1,exports:{}};return _[e].call(t.exports,t,t.exports,S),t.loaded=!0,t.exports}S.m=_,S.c=P,S.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return S.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,S.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);S.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var i=2&n&&t;"object"==typeof i&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,S.d(o,a),o},S.d=(e,r)=>{for(var t in r)S.o(r,t)&&!S.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},S.f={},S.e=e=>Promise.all(Object.keys(S.f).reduce(((r,t)=>(S.f[t](e,r),r)),[])),S.u=e=>e+".js",S.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),S.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@openmrs/esm-patient-vitals-app:",S.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var p=s[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==n+o){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,S.nc&&i.setAttribute("nonce",S.nc),i.setAttribute("data-webpack",n+o),i.src=e),t[e]=[r];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},S.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},S.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{S.S={};var e={},r={};S.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];S.o(S.S,t)||(S.S[t]={});var a=S.S[t],i="@openmrs/esm-patient-vitals-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","6.3.1-pre.2965",(()=>Promise.all([S.e(831),S.e(1343)]).then((()=>()=>S(831))))),l("@openmrs/esm-patient-common-lib","10.2.1-pre.7694",(()=>Promise.all([S.e(5395),S.e(4605),S.e(1343),S.e(5434),S.e(9867),S.e(8526)]).then((()=>()=>S(2248))))),l("dayjs","1.11.11",(()=>S.e(3464).then((()=>()=>S(3464))))),l("react-i18next","11.18.6",(()=>Promise.all([S.e(4641),S.e(1343)]).then((()=>()=>S(4641))))),l("react-router-dom","6.16.0",(()=>Promise.all([S.e(2913),S.e(1343)]).then((()=>()=>S(2913))))),l("react","18.3.1",(()=>S.e(4041).then((()=>()=>S(4041))))),l("swr/_internal","2.2.5",(()=>Promise.all([S.e(2372),S.e(1343)]).then((()=>()=>S(2372))))),l("swr/immutable","2.2.5",(()=>Promise.all([S.e(9876),S.e(1343),S.e(5434)]).then((()=>()=>S(9876))))),l("swr/infinite","2.2.5",(()=>Promise.all([S.e(2470),S.e(1343),S.e(5434)]).then((()=>()=>S(2470)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;S.g.importScripts&&(e=S.g.location+"");var r=S.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),S.p=e})(),o=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},a=(e,r)=>{e=o(e),r=o(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var n=e[t],a=(typeof n)[0];if(t>=r.length)return"u"==a;var i=r[t],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&n!=i)return n<i;t++}},i=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(l=e[o]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var a=[];for(o=1;o<e.length;o++){var l=e[o];a.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?a.pop()+" "+a.pop():i(l))}return s();function s(){return a.pop().replace(/^\((.+)\)$/,"$1")}},l=(e,r)=>{if(0 in e){r=o(r);var t=e[0],n=t<0;n&&(t=-t-1);for(var a=0,i=1,s=!0;;i++,a++){var u,p,f=i<e.length?(typeof e[i])[0]:"";if(a>=r.length||"o"==(p=(typeof(u=r[a]))[0]))return!s||("u"==f?i>t&&!n:""==f!=n);if("u"==p){if(!s||"u"!=f)return!1}else if(s)if(f==p)if(i<=t){if(u!=e[i])return!1}else{if(n?u>e[i]:u<e[i])return!1;u!=e[i]&&(s=!1)}else if("s"!=f&&"n"!=f){if(n||i<=t)return!1;s=!1,i--}else{if(i<=t||p<f!=n)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,i--)}}var d=[],c=d.pop.bind(d);for(a=1;a<e.length;a++){var h=e[a];d.push(1==h?c()|c():2==h?c()&c():h?l(h,r):!c())}return!!c()},s=(e,r)=>e&&S.o(e,r),u=e=>(e.loaded=1,e.get()),p=e=>Object.keys(e).reduce(((r,t)=>(e[t].eager&&(r[t]=e[t]),r)),{}),f=(e,r,t)=>{var n=t?p(e[r]):e[r];return Object.keys(n).reduce(((e,r)=>!e||!n[e].loaded&&a(e,r)?r:e),0)},d=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+i(n)+")",c=e=>{throw new Error(e)},h=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},m=(e,r,t)=>t?t():((e,r)=>c("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),v=(e=>function(r,t,n,o,a){var i=S.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,S.S[r],t,!1,o,a)):e(r,S.S[r],t,n,o,a)})(((e,r,t,n,o,a)=>{if(!s(r,t))return m(e,t,a);var i=f(r,t,n);return l(o,i)||h(d(r,t,i,o)),u(r[t][i])})),g={},b={1343:()=>v("default","react",!1,[1,18],(()=>S.e(4041).then((()=>()=>S(4041))))),5434:()=>v("default","swr/_internal",!1,[1,2],(()=>S.e(2372).then((()=>()=>S(2372))))),8877:()=>v("default","react-router-dom",!1,[1,6],(()=>S.e(2913).then((()=>()=>S(2913))))),2979:()=>v("default","@openmrs/esm-patient-common-lib",!1,[1,10],(()=>Promise.all([S.e(4605),S.e(5434),S.e(9867)]).then((()=>()=>S(2248))))),3150:()=>v("default","react-i18next",!1,[1,11],(()=>S.e(4641).then((()=>()=>S(4641))))),8010:()=>v("default","swr/immutable",!1,[1,2],(()=>Promise.all([S.e(9876),S.e(5434)]).then((()=>()=>S(9876))))),8254:()=>v("default","@openmrs/esm-framework",!1,[1,6],(()=>S.e(831).then((()=>()=>S(831))))),6372:()=>v("default","dayjs",!1,[1,1],(()=>S.e(3464).then((()=>()=>S(3464))))),8394:()=>v("default","swr/infinite",!1,[1,2],(()=>Promise.all([S.e(2470),S.e(5434)]).then((()=>()=>S(2470)))))},y={1343:[1343],5387:[6372,8394],5434:[5434],8526:[2979,3150,8010,8254],9867:[8877]},w={},S.f.consumes=(e,r)=>{S.o(y,e)&&y[e].forEach((e=>{if(S.o(g,e))return r.push(g[e]);if(!w[e]){var t=r=>{g[e]=0,S.m[e]=t=>{delete S.c[e],t.exports=r()}};w[e]=!0;var n=r=>{delete g[e],S.m[e]=t=>{throw delete S.c[e],r}};try{var o=b[e]();o.then?r.push(g[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}}))},(()=>{var e={6167:0};S.f.j=(r,t)=>{var n=S.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(1343|5434|8526)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=S.p+S.u(r),i=new Error;S.l(a,(t=>{if(S.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)S.o(i,n)&&(S.m[n]=i[n]);l&&l(S)}for(r&&r(t);s<a.length;s++)o=a[s],S.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_openmrs_esm_patient_vitals_app=globalThis.webpackChunk_openmrs_esm_patient_vitals_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),S.nc=void 0;var j=S(8746);_openmrs_esm_patient_vitals_app=j})();
|
|
@@ -707,9 +707,9 @@
|
|
|
707
707
|
"initial": false,
|
|
708
708
|
"entry": false,
|
|
709
709
|
"recorded": false,
|
|
710
|
-
"size":
|
|
710
|
+
"size": 420376,
|
|
711
711
|
"sizes": {
|
|
712
|
-
"javascript":
|
|
712
|
+
"javascript": 420292,
|
|
713
713
|
"consume-shared": 84
|
|
714
714
|
},
|
|
715
715
|
"names": [],
|
|
@@ -723,7 +723,7 @@
|
|
|
723
723
|
"auxiliaryFiles": [
|
|
724
724
|
"5387.js.map"
|
|
725
725
|
],
|
|
726
|
-
"hash": "
|
|
726
|
+
"hash": "6872121ce7db308d",
|
|
727
727
|
"childrenByOrder": {}
|
|
728
728
|
},
|
|
729
729
|
{
|
|
@@ -864,7 +864,7 @@
|
|
|
864
864
|
"auxiliaryFiles": [
|
|
865
865
|
"openmrs-esm-patient-vitals-app.js.map"
|
|
866
866
|
],
|
|
867
|
-
"hash": "
|
|
867
|
+
"hash": "b17a9d7b23895cc6",
|
|
868
868
|
"childrenByOrder": {}
|
|
869
869
|
},
|
|
870
870
|
{
|
|
@@ -1139,10 +1139,10 @@
|
|
|
1139
1139
|
"initial": true,
|
|
1140
1140
|
"entry": true,
|
|
1141
1141
|
"recorded": false,
|
|
1142
|
-
"size":
|
|
1142
|
+
"size": 3586130,
|
|
1143
1143
|
"sizes": {
|
|
1144
1144
|
"consume-shared": 294,
|
|
1145
|
-
"javascript":
|
|
1145
|
+
"javascript": 3563273,
|
|
1146
1146
|
"share-init": 378,
|
|
1147
1147
|
"runtime": 22185
|
|
1148
1148
|
},
|
|
@@ -1159,7 +1159,7 @@
|
|
|
1159
1159
|
"auxiliaryFiles": [
|
|
1160
1160
|
"main.js.map"
|
|
1161
1161
|
],
|
|
1162
|
-
"hash": "
|
|
1162
|
+
"hash": "b52d548b17344525",
|
|
1163
1163
|
"childrenByOrder": {}
|
|
1164
1164
|
},
|
|
1165
1165
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.2.0"},"extensions":[{"name":"vitals-overview-widget","component":"vitalsSummary","slot":"patient-chart-summary-dashboard-slot","meta":{"fullWidth":true},"order":1},{"name":"vitals-details-widget","component":"vitalsMain","slot":"patient-chart-vitals-biometrics-dashboard-slot","meta":{"title":"Vitals","view":"vitals","fullWidth":true},"order":1},{"name":"patient-vitals-info","component":"vitalsHeader","slot":"patient-info-slot"},{"name":"biometrics-overview-widget","component":"biometricsOverview","slot":"patient-chart-summary-dashboard-slot","meta":{"fullWidth":true},"order":2},{"name":"biometrics-details-widget","component":"biometricsDetailedSummary","slot":"patient-chart-vitals-biometrics-dashboard-slot","meta":{"view":"biometrics","title":"Biometrics","fullWidth":true}},{"name":"results-summary-dashboard","component":"vitalsAndBiometricsDashboardLink","slot":"patient-chart-dashboard-slot","order":2,"meta":{"slot":"patient-chart-vitals-biometrics-dashboard-slot","path":"Vitals & Biometrics"}},{"name":"weight-tile","component":"weightTile","slot":"visit-form-header-slot","order":2}],"pages":[],"workspaces":[{"name":"patient-vitals-biometrics-form-workspace","title":"recordVitalsAndBiometrics","component":"vitalsBiometricsFormWorkspace"}],"modals":[{"name":"vitals-biometrics-delete-confirmation-modal","component":"vitalsAndBiometricsDeleteConfirmationModal"}],"version":"10.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.2.0"},"extensions":[{"name":"vitals-overview-widget","component":"vitalsSummary","slot":"patient-chart-summary-dashboard-slot","meta":{"fullWidth":true},"order":1},{"name":"vitals-details-widget","component":"vitalsMain","slot":"patient-chart-vitals-biometrics-dashboard-slot","meta":{"title":"Vitals","view":"vitals","fullWidth":true},"order":1},{"name":"patient-vitals-info","component":"vitalsHeader","slot":"patient-info-slot"},{"name":"biometrics-overview-widget","component":"biometricsOverview","slot":"patient-chart-summary-dashboard-slot","meta":{"fullWidth":true},"order":2},{"name":"biometrics-details-widget","component":"biometricsDetailedSummary","slot":"patient-chart-vitals-biometrics-dashboard-slot","meta":{"view":"biometrics","title":"Biometrics","fullWidth":true}},{"name":"results-summary-dashboard","component":"vitalsAndBiometricsDashboardLink","slot":"patient-chart-dashboard-slot","order":2,"meta":{"slot":"patient-chart-vitals-biometrics-dashboard-slot","path":"Vitals & Biometrics"}},{"name":"weight-tile","component":"weightTile","slot":"visit-form-header-slot","order":2}],"pages":[],"workspaces":[{"name":"patient-vitals-biometrics-form-workspace","title":"recordVitalsAndBiometrics","component":"vitalsBiometricsFormWorkspace"}],"modals":[{"name":"vitals-biometrics-delete-confirmation-modal","component":"vitalsAndBiometricsDeleteConfirmationModal"}],"version":"10.2.1-pre.7694"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-patient-vitals-app",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.2.1-pre.7694",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Patient vitals microfrontend for the OpenMRS SPA",
|
|
6
6
|
"browser": "dist/openmrs-esm-patient-vitals-app.js",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"swr": "2.x"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@openmrs/esm-patient-common-lib": "10.
|
|
56
|
+
"@openmrs/esm-patient-common-lib": "10.2.1-pre.7694",
|
|
57
57
|
"webpack": "^5.94.0"
|
|
58
58
|
},
|
|
59
|
-
"stableVersion": "10.
|
|
59
|
+
"stableVersion": "10.2.0"
|
|
60
60
|
}
|
|
@@ -8,6 +8,8 @@ import { type ConfigObject } from '../config-schema';
|
|
|
8
8
|
import { type PatientVitalsAndBiometrics } from '../common';
|
|
9
9
|
import styles from './biometrics-chart.scss';
|
|
10
10
|
|
|
11
|
+
type BiometricType = 'weight' | 'height' | 'bmi';
|
|
12
|
+
|
|
11
13
|
interface BiometricsChartProps {
|
|
12
14
|
conceptUnits: Map<string, string>;
|
|
13
15
|
config: ConfigObject;
|
|
@@ -15,13 +17,11 @@ interface BiometricsChartProps {
|
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
interface BiometricChartData {
|
|
18
|
-
groupName:
|
|
20
|
+
groupName: BiometricType;
|
|
19
21
|
title: string;
|
|
20
22
|
value: number | string;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
|
-
const chartColors = { weight: '#6929c4', height: '#6929c4', bmi: '#6929c4' };
|
|
24
|
-
|
|
25
25
|
const BiometricsChart: React.FC<BiometricsChartProps> = ({ patientBiometrics, conceptUnits, config }) => {
|
|
26
26
|
const { t } = useTranslation();
|
|
27
27
|
const { bmiUnit } = config.biometrics;
|
|
@@ -31,7 +31,7 @@ const BiometricsChart: React.FC<BiometricsChartProps> = ({ patientBiometrics, co
|
|
|
31
31
|
groupName: 'weight',
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
-
const biometrics = [
|
|
34
|
+
const biometrics: { id: BiometricType; title: string; value: BiometricType }[] = [
|
|
35
35
|
{
|
|
36
36
|
id: 'weight',
|
|
37
37
|
title: `${t('weight', 'Weight')} (${conceptUnits.get(config.concepts.weightUuid) ?? ''})`,
|
|
@@ -42,11 +42,7 @@ const BiometricsChart: React.FC<BiometricsChartProps> = ({ patientBiometrics, co
|
|
|
42
42
|
title: `${t('height', 'Height')} (${conceptUnits.get(config.concepts.heightUuid) ?? ''})`,
|
|
43
43
|
value: 'height',
|
|
44
44
|
},
|
|
45
|
-
{
|
|
46
|
-
id: 'bmi',
|
|
47
|
-
title: `${t('bmi', 'BMI')} (${bmiUnit})`,
|
|
48
|
-
value: 'bmi',
|
|
49
|
-
},
|
|
45
|
+
{ id: 'bmi', title: `${t('bmi', 'BMI')} (${bmiUnit})`, value: 'bmi' },
|
|
50
46
|
];
|
|
51
47
|
|
|
52
48
|
const chartData = useMemo(
|
|
@@ -59,7 +55,7 @@ const BiometricsChart: React.FC<BiometricsChartProps> = ({ patientBiometrics, co
|
|
|
59
55
|
(biometrics) =>
|
|
60
56
|
biometrics[selectedBiometrics.value] && {
|
|
61
57
|
group: selectedBiometrics.title,
|
|
62
|
-
key: formatDate(
|
|
58
|
+
key: formatDate(parseDate(biometrics.date), { year: true }),
|
|
63
59
|
value: biometrics[selectedBiometrics.value],
|
|
64
60
|
date: biometrics.date,
|
|
65
61
|
},
|
|
@@ -73,8 +69,8 @@ const BiometricsChart: React.FC<BiometricsChartProps> = ({ patientBiometrics, co
|
|
|
73
69
|
axes: {
|
|
74
70
|
bottom: {
|
|
75
71
|
title: t('date', 'Date'),
|
|
76
|
-
mapsTo: '
|
|
77
|
-
scaleType: ScaleTypes.
|
|
72
|
+
mapsTo: 'date',
|
|
73
|
+
scaleType: ScaleTypes.TIME,
|
|
78
74
|
},
|
|
79
75
|
left: {
|
|
80
76
|
mapsTo: 'value',
|
|
@@ -99,6 +95,11 @@ const BiometricsChart: React.FC<BiometricsChartProps> = ({ patientBiometrics, co
|
|
|
99
95
|
)} -
|
|
100
96
|
<span style="color: #c6c6c6; font-size: 1rem; font-weight:400">${value}</span></div>`,
|
|
101
97
|
},
|
|
98
|
+
zoomBar: {
|
|
99
|
+
top: {
|
|
100
|
+
enabled: true,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
102
103
|
height: '400px',
|
|
103
104
|
};
|
|
104
105
|
}, [selectedBiometrics, t]);
|
|
@@ -14,9 +14,11 @@ interface VitalsChartProps {
|
|
|
14
14
|
patientVitals: Array<PatientVitalsAndBiometrics>;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
type VitalSignKey = 'systolic' | 'spo2' | 'temperature' | 'respiratoryRate' | 'pulse';
|
|
18
|
+
|
|
17
19
|
interface VitalsChartData {
|
|
18
20
|
title: string;
|
|
19
|
-
value:
|
|
21
|
+
value: VitalSignKey;
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
const VitalsChart: React.FC<VitalsChartProps> = ({ patientVitals, conceptUnits, config }) => {
|
|
@@ -27,7 +29,7 @@ const VitalsChart: React.FC<VitalsChartProps> = ({ patientVitals, conceptUnits,
|
|
|
27
29
|
value: 'systolic',
|
|
28
30
|
});
|
|
29
31
|
|
|
30
|
-
const vitalSigns = [
|
|
32
|
+
const vitalSigns: { id: string; title: string; value: VitalSignKey }[] = [
|
|
31
33
|
{
|
|
32
34
|
id: 'bloodPressure',
|
|
33
35
|
title: withUnit(t('bp', 'BP'), conceptUnits.get(config.concepts.systolicBloodPressureUuid) ?? '-'),
|
|
@@ -61,19 +63,17 @@ const VitalsChart: React.FC<VitalsChartProps> = ({ patientVitals, conceptUnits,
|
|
|
61
63
|
.slice(0, 10)
|
|
62
64
|
.sort((vitalA, vitalB) => new Date(vitalA.date).getTime() - new Date(vitalB.date).getTime())
|
|
63
65
|
.map((vitals) => {
|
|
64
|
-
const formattedDate = formatDate(parseDate(vitals.date.toString()), { year: false });
|
|
65
|
-
|
|
66
66
|
if (['systolic', 'diastolic'].includes(selectedVitalsSign.value)) {
|
|
67
67
|
return [
|
|
68
68
|
{
|
|
69
69
|
group: 'Systolic blood pressure',
|
|
70
|
-
key:
|
|
70
|
+
key: formatDate(parseDate(vitals.date), { year: true }),
|
|
71
71
|
value: vitals.systolic,
|
|
72
72
|
date: vitals.date,
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
group: 'Diastolic blood pressure',
|
|
76
|
-
key:
|
|
76
|
+
key: formatDate(parseDate(vitals.date), { year: true }),
|
|
77
77
|
value: vitals.diastolic,
|
|
78
78
|
date: vitals.date,
|
|
79
79
|
},
|
|
@@ -81,7 +81,7 @@ const VitalsChart: React.FC<VitalsChartProps> = ({ patientVitals, conceptUnits,
|
|
|
81
81
|
}
|
|
82
82
|
return {
|
|
83
83
|
group: selectedVitalsSign.value,
|
|
84
|
-
key:
|
|
84
|
+
key: formatDate(parseDate(vitals.date)),
|
|
85
85
|
value: vitals[selectedVitalsSign.value],
|
|
86
86
|
date: vitals.date,
|
|
87
87
|
};
|
|
@@ -93,8 +93,8 @@ const VitalsChart: React.FC<VitalsChartProps> = ({ patientVitals, conceptUnits,
|
|
|
93
93
|
axes: {
|
|
94
94
|
bottom: {
|
|
95
95
|
title: t('date', 'Date'),
|
|
96
|
-
mapsTo: '
|
|
97
|
-
scaleType: ScaleTypes.
|
|
96
|
+
mapsTo: 'date',
|
|
97
|
+
scaleType: ScaleTypes.TIME,
|
|
98
98
|
},
|
|
99
99
|
left: {
|
|
100
100
|
mapsTo: 'value',
|
|
@@ -118,6 +118,11 @@ const VitalsChart: React.FC<VitalsChartProps> = ({ patientVitals, conceptUnits,
|
|
|
118
118
|
).toUpperCase()}
|
|
119
119
|
<span style="color: #c6c6c6; font-size: 1rem; font-weight:600">${key}</span></div>`,
|
|
120
120
|
},
|
|
121
|
+
zoomBar: {
|
|
122
|
+
top: {
|
|
123
|
+
enabled: true,
|
|
124
|
+
},
|
|
125
|
+
},
|
|
121
126
|
height: '400px',
|
|
122
127
|
};
|
|
123
128
|
|