@openmrs/esm-patient-vitals-app 11.3.1-patch.9310 → 11.3.1-patch.9508
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 +16 -19
- package/dist/439.js +1 -0
- package/dist/5415.js +1 -0
- package/dist/5415.js.map +1 -0
- package/dist/5670.js +1 -1
- package/dist/6589.js +1 -0
- package/dist/7545.js +2 -0
- package/dist/7545.js.map +1 -0
- package/dist/8371.js +1 -0
- package/dist/8803.js +1 -0
- package/dist/8803.js.map +1 -0
- package/dist/9228.js +1 -1
- package/dist/9228.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 +130 -89
- package/dist/routes.json +1 -1
- package/package.json +2 -3
- package/src/components/action-menu/vitals-biometrics-action-menu.component.tsx +2 -2
- package/src/index.ts +1 -5
- package/src/routes.json +3 -9
- package/src/vitals-and-biometrics-header/vitals-header.scss +11 -7
- package/src/vitals-biometrics-form/vitals-biometrics-form.test.tsx +18 -37
- package/src/vitals-biometrics-form/vitals-biometrics-form.workspace.tsx +603 -19
- package/translations/cs.json +80 -0
- package/translations/sq.json +80 -0
- package/translations/zh_TW.json +80 -0
- package/dist/3174.js +0 -2
- package/dist/3174.js.map +0 -1
- package/dist/4341.js +0 -1
- package/dist/4341.js.map +0 -1
- package/dist/5652.js +0 -1
- package/dist/5652.js.map +0 -1
- package/dist/7437.js +0 -1
- package/dist/7437.js.map +0 -1
- package/src/vitals-biometrics-form/exported-vitals-biometrics-form.workspace.tsx +0 -640
- /package/dist/{3174.js.LICENSE.txt → 7545.js.LICENSE.txt} +0 -0
|
@@ -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,_={28746:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(2276),t.e(9595),t.e(1343),t.e(8515),t.e(9228)]).then((()=>()=>t(19228)))},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 j(e){var r=P[e];if(void 0!==r)return r.exports;var t=P[e]={id:e,exports:{}};return _[e].call(t.exports,t,t.exports,j),t.exports}j.m=_,j.c=P,j.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return j.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,j.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);j.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,j.d(o,a),o},j.d=(e,r)=>{for(var t in r)j.o(r,t)&&!j.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},j.f={},j.e=e=>Promise.all(Object.keys(j.f).reduce(((r,t)=>(j.f[t](e,r),r)),[])),j.u=e=>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=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@openmrs/esm-patient-vitals-app:",j.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,j.nc&&i.setAttribute("nonce",j.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)}},j.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{j.S={};var e={},r={};j.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];j.o(j.S,t)||(j.S[t]={});var a=j.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","8.0.1-pre.
|
|
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,_={28746:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(2276),t.e(9595),t.e(1343),t.e(8515),t.e(9228)]).then((()=>()=>t(19228)))},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 j(e){var r=P[e];if(void 0!==r)return r.exports;var t=P[e]={id:e,exports:{}};return _[e].call(t.exports,t,t.exports,j),t.exports}j.m=_,j.c=P,j.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return j.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,j.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);j.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,j.d(o,a),o},j.d=(e,r)=>{for(var t in r)j.o(r,t)&&!j.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},j.f={},j.e=e=>Promise.all(Object.keys(j.f).reduce(((r,t)=>(j.f[t](e,r),r)),[])),j.u=e=>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=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@openmrs/esm-patient-vitals-app:",j.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,j.nc&&i.setAttribute("nonce",j.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)}},j.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{j.S={};var e={},r={};j.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];j.o(j.S,t)||(j.S[t]={});var a=j.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","8.0.1-pre.3554",(()=>Promise.all([j.e(7545),j.e(2276),j.e(5670),j.e(5434),j.e(1343),j.e(5182),j.e(8515)]).then((()=>()=>j(55670))))),l("@openmrs/esm-patient-common-lib","11.3.1-patch.9508",(()=>Promise.all([j.e(7545),j.e(2276),j.e(5434),j.e(1343),j.e(5182),j.e(8515),j.e(8803)]).then((()=>()=>j(18803))))),l("dayjs","1.11.13",(()=>j.e(3464).then((()=>()=>j(23464))))),l("react-i18next","16.0.0",(()=>Promise.all([j.e(6336),j.e(1343)]).then((()=>()=>j(16336))))),l("react-router-dom","6.16.0",(()=>Promise.all([j.e(2913),j.e(1343)]).then((()=>()=>j(52913))))),l("react","18.3.1",(()=>j.e(4041).then((()=>()=>j(14041))))),l("rxjs","6.6.7",(()=>j.e(2457).then((()=>()=>j(82457))))),l("swr/_internal","2.2.5",(()=>Promise.all([j.e(2372),j.e(1343)]).then((()=>()=>j(42372))))),l("swr/immutable","2.2.5",(()=>Promise.all([j.e(9876),j.e(5434),j.e(1343)]).then((()=>()=>j(29876))))),l("swr/infinite","2.2.5",(()=>Promise.all([j.e(2470),j.e(5434),j.e(1343)]).then((()=>()=>j(52470)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;j.g.importScripts&&(e=j.g.location+"");var r=j.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(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),j.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&&j.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=j.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,j.S[r],t,!1,o,a)):e(r,j.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={55434:()=>v("default","swr/_internal",!1,[1,2],(()=>j.e(2372).then((()=>()=>j(42372))))),1343:()=>v("default","react",!1,[1,18],(()=>j.e(4041).then((()=>()=>j(14041))))),8877:()=>v("default","react-router-dom",!1,[1,6],(()=>j.e(2913).then((()=>()=>j(52913))))),24818:()=>v("default","rxjs",!1,[1,6],(()=>j.e(2457).then((()=>()=>j(82457))))),46372:()=>v("default","dayjs",!1,[1,1],(()=>j.e(3464).then((()=>()=>j(23464))))),54440:()=>v("default","@openmrs/esm-framework",!1,[1,8],(()=>Promise.all([j.e(7545),j.e(5670),j.e(5434),j.e(5182)]).then((()=>()=>j(55670))))),72339:()=>v("default","react-i18next",!1,[1,16],(()=>j.e(6336).then((()=>()=>j(16336))))),88010:()=>v("default","swr/immutable",!1,[1,2],(()=>Promise.all([j.e(9876),j.e(5434)]).then((()=>()=>j(29876))))),98394:()=>v("default","swr/infinite",!1,[1,2],(()=>Promise.all([j.e(2470),j.e(5434)]).then((()=>()=>j(52470))))),36274:()=>v("default","@openmrs/esm-patient-common-lib",!1,[1,11],(()=>Promise.all([j.e(7545),j.e(5434),j.e(5182),j.e(8803)]).then((()=>()=>j(18803)))))},y={1343:[1343],5182:[8877,24818],5434:[55434],8515:[46372,54440,72339,88010,98394],9228:[36274]},w={},j.f.consumes=(e,r)=>{j.o(y,e)&&y[e].forEach((e=>{if(j.o(g,e))return r.push(g[e]);if(!w[e]){var t=r=>{g[e]=0,j.m[e]=t=>{delete j.c[e],t.exports=r()}};w[e]=!0;var n=r=>{delete g[e],j.m[e]=t=>{throw delete j.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};j.f.j=(r,t)=>{var n=j.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(1343|5182|5434|8515)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=j.p+j.u(r),i=new Error;j.l(a,(t=>{if(j.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)j.o(i,n)&&(j.m[n]=i[n]);l&&l(j)}for(r&&r(t);s<a.length;s++)o=a[s],j.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))})(),j.nc=void 0;var S=j(28746);_openmrs_esm_patient_vitals_app=S})();
|
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"chunks": [
|
|
3
|
+
{
|
|
4
|
+
"rendered": true,
|
|
5
|
+
"initial": false,
|
|
6
|
+
"entry": false,
|
|
7
|
+
"recorded": false,
|
|
8
|
+
"size": 3016,
|
|
9
|
+
"sizes": {
|
|
10
|
+
"javascript": 3016
|
|
11
|
+
},
|
|
12
|
+
"names": [],
|
|
13
|
+
"idHints": [],
|
|
14
|
+
"runtime": [
|
|
15
|
+
"@openmrs/esm-patient-vitals-app",
|
|
16
|
+
"main"
|
|
17
|
+
],
|
|
18
|
+
"files": [
|
|
19
|
+
"439.js"
|
|
20
|
+
],
|
|
21
|
+
"auxiliaryFiles": [],
|
|
22
|
+
"hash": "c9302f3a4dd39987",
|
|
23
|
+
"childrenByOrder": {}
|
|
24
|
+
},
|
|
3
25
|
{
|
|
4
26
|
"rendered": true,
|
|
5
27
|
"initial": false,
|
|
@@ -381,33 +403,6 @@
|
|
|
381
403
|
"hash": "c316741f4746b7b0",
|
|
382
404
|
"childrenByOrder": {}
|
|
383
405
|
},
|
|
384
|
-
{
|
|
385
|
-
"rendered": true,
|
|
386
|
-
"initial": false,
|
|
387
|
-
"entry": false,
|
|
388
|
-
"recorded": false,
|
|
389
|
-
"reason": "split chunk (cache group: defaultVendors)",
|
|
390
|
-
"size": 4337230,
|
|
391
|
-
"sizes": {
|
|
392
|
-
"javascript": 4337230
|
|
393
|
-
},
|
|
394
|
-
"names": [],
|
|
395
|
-
"idHints": [
|
|
396
|
-
"vendors"
|
|
397
|
-
],
|
|
398
|
-
"runtime": [
|
|
399
|
-
"@openmrs/esm-patient-vitals-app",
|
|
400
|
-
"main"
|
|
401
|
-
],
|
|
402
|
-
"files": [
|
|
403
|
-
"3174.js"
|
|
404
|
-
],
|
|
405
|
-
"auxiliaryFiles": [
|
|
406
|
-
"3174.js.map"
|
|
407
|
-
],
|
|
408
|
-
"hash": "0ec15bfefe56b234",
|
|
409
|
-
"childrenByOrder": {}
|
|
410
|
-
},
|
|
411
406
|
{
|
|
412
407
|
"rendered": true,
|
|
413
408
|
"initial": false,
|
|
@@ -566,31 +561,6 @@
|
|
|
566
561
|
"hash": "8fbd2c38ceeaf61b",
|
|
567
562
|
"childrenByOrder": {}
|
|
568
563
|
},
|
|
569
|
-
{
|
|
570
|
-
"rendered": true,
|
|
571
|
-
"initial": false,
|
|
572
|
-
"entry": false,
|
|
573
|
-
"recorded": false,
|
|
574
|
-
"reason": "reused as split chunk (cache group: default)",
|
|
575
|
-
"size": 256360,
|
|
576
|
-
"sizes": {
|
|
577
|
-
"javascript": 256360
|
|
578
|
-
},
|
|
579
|
-
"names": [],
|
|
580
|
-
"idHints": [],
|
|
581
|
-
"runtime": [
|
|
582
|
-
"@openmrs/esm-patient-vitals-app",
|
|
583
|
-
"main"
|
|
584
|
-
],
|
|
585
|
-
"files": [
|
|
586
|
-
"4341.js"
|
|
587
|
-
],
|
|
588
|
-
"auxiliaryFiles": [
|
|
589
|
-
"4341.js.map"
|
|
590
|
-
],
|
|
591
|
-
"hash": "d67d9cd17a62a37b",
|
|
592
|
-
"childrenByOrder": {}
|
|
593
|
-
},
|
|
594
564
|
{
|
|
595
565
|
"rendered": true,
|
|
596
566
|
"initial": false,
|
|
@@ -723,14 +693,13 @@
|
|
|
723
693
|
"childrenByOrder": {}
|
|
724
694
|
},
|
|
725
695
|
{
|
|
726
|
-
"rendered":
|
|
696
|
+
"rendered": true,
|
|
727
697
|
"initial": false,
|
|
728
698
|
"entry": false,
|
|
729
699
|
"recorded": false,
|
|
730
|
-
"
|
|
731
|
-
"size": 42,
|
|
700
|
+
"size": 138585,
|
|
732
701
|
"sizes": {
|
|
733
|
-
"
|
|
702
|
+
"javascript": 138585
|
|
734
703
|
},
|
|
735
704
|
"names": [],
|
|
736
705
|
"idHints": [],
|
|
@@ -738,19 +707,24 @@
|
|
|
738
707
|
"@openmrs/esm-patient-vitals-app",
|
|
739
708
|
"main"
|
|
740
709
|
],
|
|
741
|
-
"files": [
|
|
742
|
-
|
|
743
|
-
|
|
710
|
+
"files": [
|
|
711
|
+
"5415.js"
|
|
712
|
+
],
|
|
713
|
+
"auxiliaryFiles": [
|
|
714
|
+
"5415.js.map"
|
|
715
|
+
],
|
|
716
|
+
"hash": "1ffb0549661647e0",
|
|
744
717
|
"childrenByOrder": {}
|
|
745
718
|
},
|
|
746
719
|
{
|
|
747
|
-
"rendered":
|
|
720
|
+
"rendered": false,
|
|
748
721
|
"initial": false,
|
|
749
722
|
"entry": false,
|
|
750
723
|
"recorded": false,
|
|
751
|
-
"
|
|
724
|
+
"reason": "reused as split chunk (cache group: default)",
|
|
725
|
+
"size": 42,
|
|
752
726
|
"sizes": {
|
|
753
|
-
"
|
|
727
|
+
"consume-shared": 42
|
|
754
728
|
},
|
|
755
729
|
"names": [],
|
|
756
730
|
"idHints": [],
|
|
@@ -758,11 +732,9 @@
|
|
|
758
732
|
"@openmrs/esm-patient-vitals-app",
|
|
759
733
|
"main"
|
|
760
734
|
],
|
|
761
|
-
"files": [
|
|
762
|
-
"5442.js"
|
|
763
|
-
],
|
|
735
|
+
"files": [],
|
|
764
736
|
"auxiliaryFiles": [],
|
|
765
|
-
"hash": "
|
|
737
|
+
"hash": "6072f73ce56d83ac",
|
|
766
738
|
"childrenByOrder": {}
|
|
767
739
|
},
|
|
768
740
|
{
|
|
@@ -770,9 +742,9 @@
|
|
|
770
742
|
"initial": false,
|
|
771
743
|
"entry": false,
|
|
772
744
|
"recorded": false,
|
|
773
|
-
"size":
|
|
745
|
+
"size": 3016,
|
|
774
746
|
"sizes": {
|
|
775
|
-
"javascript":
|
|
747
|
+
"javascript": 3016
|
|
776
748
|
},
|
|
777
749
|
"names": [],
|
|
778
750
|
"idHints": [],
|
|
@@ -781,12 +753,10 @@
|
|
|
781
753
|
"main"
|
|
782
754
|
],
|
|
783
755
|
"files": [
|
|
784
|
-
"
|
|
785
|
-
],
|
|
786
|
-
"auxiliaryFiles": [
|
|
787
|
-
"5652.js.map"
|
|
756
|
+
"5442.js"
|
|
788
757
|
],
|
|
789
|
-
"
|
|
758
|
+
"auxiliaryFiles": [],
|
|
759
|
+
"hash": "8ac956a6e335e676",
|
|
790
760
|
"childrenByOrder": {}
|
|
791
761
|
},
|
|
792
762
|
{
|
|
@@ -835,7 +805,7 @@
|
|
|
835
805
|
"auxiliaryFiles": [
|
|
836
806
|
"5670.js.map"
|
|
837
807
|
],
|
|
838
|
-
"hash": "
|
|
808
|
+
"hash": "db7b303ebf4336e1",
|
|
839
809
|
"childrenByOrder": {}
|
|
840
810
|
},
|
|
841
811
|
{
|
|
@@ -884,7 +854,7 @@
|
|
|
884
854
|
"auxiliaryFiles": [
|
|
885
855
|
"openmrs-esm-patient-vitals-app.js.map"
|
|
886
856
|
],
|
|
887
|
-
"hash": "
|
|
857
|
+
"hash": "1ab12cf890e3a6b9",
|
|
888
858
|
"childrenByOrder": {}
|
|
889
859
|
},
|
|
890
860
|
{
|
|
@@ -936,6 +906,28 @@
|
|
|
936
906
|
"hash": "433c8dfcd12fe186",
|
|
937
907
|
"childrenByOrder": {}
|
|
938
908
|
},
|
|
909
|
+
{
|
|
910
|
+
"rendered": true,
|
|
911
|
+
"initial": false,
|
|
912
|
+
"entry": false,
|
|
913
|
+
"recorded": false,
|
|
914
|
+
"size": 3016,
|
|
915
|
+
"sizes": {
|
|
916
|
+
"javascript": 3016
|
|
917
|
+
},
|
|
918
|
+
"names": [],
|
|
919
|
+
"idHints": [],
|
|
920
|
+
"runtime": [
|
|
921
|
+
"@openmrs/esm-patient-vitals-app",
|
|
922
|
+
"main"
|
|
923
|
+
],
|
|
924
|
+
"files": [
|
|
925
|
+
"6589.js"
|
|
926
|
+
],
|
|
927
|
+
"auxiliaryFiles": [],
|
|
928
|
+
"hash": "bdc0db6b25293fc2",
|
|
929
|
+
"childrenByOrder": {}
|
|
930
|
+
},
|
|
939
931
|
{
|
|
940
932
|
"rendered": true,
|
|
941
933
|
"initial": false,
|
|
@@ -1075,24 +1067,26 @@
|
|
|
1075
1067
|
"initial": false,
|
|
1076
1068
|
"entry": false,
|
|
1077
1069
|
"recorded": false,
|
|
1078
|
-
"reason": "
|
|
1079
|
-
"size":
|
|
1070
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
1071
|
+
"size": 4345725,
|
|
1080
1072
|
"sizes": {
|
|
1081
|
-
"javascript":
|
|
1073
|
+
"javascript": 4345725
|
|
1082
1074
|
},
|
|
1083
1075
|
"names": [],
|
|
1084
|
-
"idHints": [
|
|
1076
|
+
"idHints": [
|
|
1077
|
+
"vendors"
|
|
1078
|
+
],
|
|
1085
1079
|
"runtime": [
|
|
1086
1080
|
"@openmrs/esm-patient-vitals-app",
|
|
1087
1081
|
"main"
|
|
1088
1082
|
],
|
|
1089
1083
|
"files": [
|
|
1090
|
-
"
|
|
1084
|
+
"7545.js"
|
|
1091
1085
|
],
|
|
1092
1086
|
"auxiliaryFiles": [
|
|
1093
|
-
"
|
|
1087
|
+
"7545.js.map"
|
|
1094
1088
|
],
|
|
1095
|
-
"hash": "
|
|
1089
|
+
"hash": "41822070fbf60c44",
|
|
1096
1090
|
"childrenByOrder": {}
|
|
1097
1091
|
},
|
|
1098
1092
|
{
|
|
@@ -1161,6 +1155,28 @@
|
|
|
1161
1155
|
"hash": "0bc0842d6e8e84ef",
|
|
1162
1156
|
"childrenByOrder": {}
|
|
1163
1157
|
},
|
|
1158
|
+
{
|
|
1159
|
+
"rendered": true,
|
|
1160
|
+
"initial": false,
|
|
1161
|
+
"entry": false,
|
|
1162
|
+
"recorded": false,
|
|
1163
|
+
"size": 3016,
|
|
1164
|
+
"sizes": {
|
|
1165
|
+
"javascript": 3016
|
|
1166
|
+
},
|
|
1167
|
+
"names": [],
|
|
1168
|
+
"idHints": [],
|
|
1169
|
+
"runtime": [
|
|
1170
|
+
"@openmrs/esm-patient-vitals-app",
|
|
1171
|
+
"main"
|
|
1172
|
+
],
|
|
1173
|
+
"files": [
|
|
1174
|
+
"8371.js"
|
|
1175
|
+
],
|
|
1176
|
+
"auxiliaryFiles": [],
|
|
1177
|
+
"hash": "c110cdba7b53ccdb",
|
|
1178
|
+
"childrenByOrder": {}
|
|
1179
|
+
},
|
|
1164
1180
|
{
|
|
1165
1181
|
"rendered": false,
|
|
1166
1182
|
"initial": false,
|
|
@@ -1179,7 +1195,7 @@
|
|
|
1179
1195
|
],
|
|
1180
1196
|
"files": [],
|
|
1181
1197
|
"auxiliaryFiles": [],
|
|
1182
|
-
"hash": "
|
|
1198
|
+
"hash": "31f6d8a23e5852cc",
|
|
1183
1199
|
"childrenByOrder": {}
|
|
1184
1200
|
},
|
|
1185
1201
|
{
|
|
@@ -1209,10 +1225,10 @@
|
|
|
1209
1225
|
"initial": true,
|
|
1210
1226
|
"entry": true,
|
|
1211
1227
|
"recorded": false,
|
|
1212
|
-
"size":
|
|
1228
|
+
"size": 4061821,
|
|
1213
1229
|
"sizes": {
|
|
1214
1230
|
"consume-shared": 294,
|
|
1215
|
-
"javascript":
|
|
1231
|
+
"javascript": 4038305,
|
|
1216
1232
|
"share-init": 420,
|
|
1217
1233
|
"runtime": 22802
|
|
1218
1234
|
},
|
|
@@ -1229,7 +1245,32 @@
|
|
|
1229
1245
|
"auxiliaryFiles": [
|
|
1230
1246
|
"main.js.map"
|
|
1231
1247
|
],
|
|
1232
|
-
"hash": "
|
|
1248
|
+
"hash": "03383f4d2bea0ff6",
|
|
1249
|
+
"childrenByOrder": {}
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
"rendered": true,
|
|
1253
|
+
"initial": false,
|
|
1254
|
+
"entry": false,
|
|
1255
|
+
"recorded": false,
|
|
1256
|
+
"reason": "reused as split chunk (cache group: default)",
|
|
1257
|
+
"size": 251776,
|
|
1258
|
+
"sizes": {
|
|
1259
|
+
"javascript": 251776
|
|
1260
|
+
},
|
|
1261
|
+
"names": [],
|
|
1262
|
+
"idHints": [],
|
|
1263
|
+
"runtime": [
|
|
1264
|
+
"@openmrs/esm-patient-vitals-app",
|
|
1265
|
+
"main"
|
|
1266
|
+
],
|
|
1267
|
+
"files": [
|
|
1268
|
+
"8803.js"
|
|
1269
|
+
],
|
|
1270
|
+
"auxiliaryFiles": [
|
|
1271
|
+
"8803.js.map"
|
|
1272
|
+
],
|
|
1273
|
+
"hash": "66368814e0b4d3f0",
|
|
1233
1274
|
"childrenByOrder": {}
|
|
1234
1275
|
},
|
|
1235
1276
|
{
|
|
@@ -1283,9 +1324,9 @@
|
|
|
1283
1324
|
"initial": false,
|
|
1284
1325
|
"entry": false,
|
|
1285
1326
|
"recorded": false,
|
|
1286
|
-
"size":
|
|
1327
|
+
"size": 423715,
|
|
1287
1328
|
"sizes": {
|
|
1288
|
-
"javascript":
|
|
1329
|
+
"javascript": 423673,
|
|
1289
1330
|
"consume-shared": 42
|
|
1290
1331
|
},
|
|
1291
1332
|
"names": [],
|
|
@@ -1299,7 +1340,7 @@
|
|
|
1299
1340
|
"auxiliaryFiles": [
|
|
1300
1341
|
"9228.js.map"
|
|
1301
1342
|
],
|
|
1302
|
-
"hash": "
|
|
1343
|
+
"hash": "ad0ee3f69717e8ee",
|
|
1303
1344
|
"childrenByOrder": {}
|
|
1304
1345
|
},
|
|
1305
1346
|
{
|
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":[],"
|
|
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":"11.3.1-patch.9508"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-patient-vitals-app",
|
|
3
|
-
"version": "11.3.1-patch.
|
|
3
|
+
"version": "11.3.1-patch.9508",
|
|
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,7 @@
|
|
|
53
53
|
"swr": "2.x"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@openmrs/esm-patient-common-lib": "11.3.1-patch.
|
|
57
|
-
"webpack": "^5.99.9"
|
|
56
|
+
"@openmrs/esm-patient-common-lib": "11.3.1-patch.9508"
|
|
58
57
|
},
|
|
59
58
|
"stableVersion": "11.3.0"
|
|
60
59
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { Layer, OverflowMenu, OverflowMenuItem } from '@carbon/react';
|
|
4
|
-
import {
|
|
4
|
+
import { launchWorkspace, showModal, useLayoutType } from '@openmrs/esm-framework';
|
|
5
5
|
import { patientVitalsBiometricsFormWorkspace } from '../../constants';
|
|
6
6
|
import styles from './vitals-biometrics-action-menu.scss';
|
|
7
7
|
|
|
@@ -16,7 +16,7 @@ export const VitalsAndBiometricsActionMenu = ({ encounterUuid, patient }: Vitals
|
|
|
16
16
|
const isTablet = useLayoutType() === 'tablet';
|
|
17
17
|
|
|
18
18
|
const handleLaunchVitalsAndBiometricsForm = useCallback(() => {
|
|
19
|
-
|
|
19
|
+
launchWorkspace(patientVitalsBiometricsFormWorkspace, {
|
|
20
20
|
workspaceTitle: t('editVitalsAndBiometrics', 'Edit Vitals and Biometrics'),
|
|
21
21
|
editEncounterUuid: encounterUuid,
|
|
22
22
|
formContext: 'editing',
|
package/src/index.ts
CHANGED
|
@@ -59,16 +59,12 @@ export const vitalsAndBiometricsDashboardLink =
|
|
|
59
59
|
|
|
60
60
|
export const weightTile = getAsyncLifecycle(() => import('./components/weight-tile/weight-tile.component'), options);
|
|
61
61
|
|
|
62
|
+
// t('recordVitalsAndBiometrics', 'Record Vitals and Biometrics')
|
|
62
63
|
export const vitalsBiometricsFormWorkspace = getAsyncLifecycle(
|
|
63
64
|
() => import('./vitals-biometrics-form/vitals-biometrics-form.workspace'),
|
|
64
65
|
options,
|
|
65
66
|
);
|
|
66
67
|
|
|
67
|
-
export const exportedVitalsBiometricsFormWorkspace = getAsyncLifecycle(
|
|
68
|
-
() => import('./vitals-biometrics-form/exported-vitals-biometrics-form.workspace'),
|
|
69
|
-
options,
|
|
70
|
-
);
|
|
71
|
-
|
|
72
68
|
export const vitalsAndBiometricsDeleteConfirmationModal = getAsyncLifecycle(
|
|
73
69
|
() => import('./components/delete-vitals-biometrics-modal/delete-vitals-biometrics.modal'),
|
|
74
70
|
options,
|
package/src/routes.json
CHANGED
|
@@ -67,17 +67,11 @@
|
|
|
67
67
|
}
|
|
68
68
|
],
|
|
69
69
|
"pages": [],
|
|
70
|
-
"
|
|
70
|
+
"workspaces": [
|
|
71
71
|
{
|
|
72
72
|
"name": "patient-vitals-biometrics-form-workspace",
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
}
|
|
76
|
-
],
|
|
77
|
-
"workspaceWindows2": [
|
|
78
|
-
{
|
|
79
|
-
"name": "patient-vitals-biometrics-form-workspace",
|
|
80
|
-
"group": "patient-chart"
|
|
73
|
+
"title": "recordVitalsAndBiometrics",
|
|
74
|
+
"component": "vitalsBiometricsFormWorkspace"
|
|
81
75
|
}
|
|
82
76
|
],
|
|
83
77
|
"modals": [
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
@use '@carbon/type';
|
|
4
4
|
@use '@openmrs/esm-styleguide/src/vars' as *;
|
|
5
5
|
|
|
6
|
+
// Designs: https://app.zeplin.io/project/60d59321e8100b0324762e05/screen/648c44d9d4052c613e7f23da
|
|
7
|
+
|
|
6
8
|
.container {
|
|
7
9
|
background-color: $openmrs-background-grey;
|
|
8
10
|
padding: layout.$spacing-03 layout.$spacing-05 layout.$spacing-05;
|
|
@@ -52,21 +54,23 @@
|
|
|
52
54
|
|
|
53
55
|
.rowContainer {
|
|
54
56
|
width: 100%;
|
|
57
|
+
container-type: inline-size;
|
|
58
|
+
container-name: vitals-header-row-container;
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
.row {
|
|
58
|
-
display: flex;
|
|
59
|
-
justify-content: space-between;
|
|
60
62
|
align-items: center;
|
|
61
|
-
|
|
63
|
+
width: 100%;
|
|
64
|
+
// Wide viewport: 8 columns (default)
|
|
65
|
+
display: grid;
|
|
66
|
+
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
67
|
+
column-gap: layout.$spacing-05;
|
|
62
68
|
}
|
|
63
69
|
|
|
64
|
-
:
|
|
65
|
-
|
|
70
|
+
// Narrow viewport: 4 columns (when workspace is opened or container is reduced)
|
|
71
|
+
@container vitals-header-row-container (max-width: 80rem) {
|
|
66
72
|
.row {
|
|
67
|
-
display: grid;
|
|
68
73
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
69
|
-
column-gap: layout.$spacing-11;
|
|
70
74
|
}
|
|
71
75
|
}
|
|
72
76
|
|
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { screen, render } from '@testing-library/react';
|
|
3
3
|
import userEvent from '@testing-library/user-event';
|
|
4
4
|
import { type FetchResponse, showSnackbar, useConfig, getDefaultsFromConfigSchema } from '@openmrs/esm-framework';
|
|
5
|
-
import { type PatientWorkspace2DefinitionProps } from '@openmrs/esm-patient-common-lib';
|
|
6
5
|
import { createOrUpdateVitalsAndBiometrics, useEncounterVitalsAndBiometrics } from '../common';
|
|
7
6
|
import { type ConfigObject, configSchema } from '../config-schema';
|
|
8
7
|
import { mockConceptUnits, mockVitalsConceptMetadata, mockVitalsConfig } from '__mocks__';
|
|
@@ -18,22 +17,16 @@ const weightValue = 62;
|
|
|
18
17
|
const systolicBloodPressureValue = 120;
|
|
19
18
|
const temperatureValue = 37;
|
|
20
19
|
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
workspaceName: '',
|
|
33
|
-
launchChildWorkspace: jest.fn(),
|
|
34
|
-
closeWorkspace: jest.fn(),
|
|
35
|
-
windowName: '',
|
|
36
|
-
isRootWorkspace: false,
|
|
20
|
+
const testProps: VitalsAndBiometricsFormProps = {
|
|
21
|
+
closeWorkspace: () => {},
|
|
22
|
+
closeWorkspaceWithSavedChanges: jest.fn(),
|
|
23
|
+
patientUuid: mockPatient.id,
|
|
24
|
+
patient: mockPatient,
|
|
25
|
+
promptBeforeClosing: () => {},
|
|
26
|
+
formContext: 'creating' as 'creating' | 'editing',
|
|
27
|
+
setTitle: jest.fn(),
|
|
28
|
+
visitContext: null,
|
|
29
|
+
mutateVisitContext: jest.fn(),
|
|
37
30
|
};
|
|
38
31
|
|
|
39
32
|
const mockShowSnackbar = jest.mocked(showSnackbar);
|
|
@@ -154,10 +147,10 @@ function setupMockUseEncounterVitalsAndBiometrics() {
|
|
|
154
147
|
|
|
155
148
|
describe('VitalsBiometricsForm', () => {
|
|
156
149
|
it('renders the vitals and biometrics form', async () => {
|
|
157
|
-
|
|
150
|
+
render(<VitalsAndBiometricsForm {...testProps} />);
|
|
158
151
|
|
|
159
|
-
expect(screen.getByText(/
|
|
160
|
-
expect(screen.getByText(/
|
|
152
|
+
expect(screen.getByText(/vitals/i)).toBeInTheDocument();
|
|
153
|
+
expect(screen.getByText(/biometrics/i)).toBeInTheDocument();
|
|
161
154
|
expect(screen.getByText(/blood pressure/i)).toBeInTheDocument();
|
|
162
155
|
expect(screen.getByRole('spinbutton', { name: /systolic/i })).toBeInTheDocument();
|
|
163
156
|
expect(screen.getByRole('spinbutton', { name: /diastolic/i })).toBeInTheDocument();
|
|
@@ -187,7 +180,7 @@ describe('VitalsBiometricsForm', () => {
|
|
|
187
180
|
it("computes a patient's BMI from the given height and weight values", async () => {
|
|
188
181
|
const user = userEvent.setup();
|
|
189
182
|
|
|
190
|
-
|
|
183
|
+
render(<VitalsAndBiometricsForm {...testProps} />);
|
|
191
184
|
|
|
192
185
|
const heightInput = screen.getByRole('spinbutton', { name: /height/i });
|
|
193
186
|
const weightInput = screen.getByRole('spinbutton', { name: /weight/i });
|
|
@@ -212,7 +205,7 @@ describe('VitalsBiometricsForm', () => {
|
|
|
212
205
|
response as ReturnType<typeof createOrUpdateVitalsAndBiometrics>,
|
|
213
206
|
);
|
|
214
207
|
|
|
215
|
-
|
|
208
|
+
render(<VitalsAndBiometricsForm {...testProps} />);
|
|
216
209
|
|
|
217
210
|
const heightInput = screen.getByRole('spinbutton', { name: /height/i });
|
|
218
211
|
const weightInput = screen.getByRole('spinbutton', { name: /weight/i });
|
|
@@ -281,7 +274,7 @@ describe('VitalsBiometricsForm', () => {
|
|
|
281
274
|
|
|
282
275
|
it('correctly initializes the form with existing vitals and biometrics data while in edit mode', async () => {
|
|
283
276
|
setupMockUseEncounterVitalsAndBiometrics();
|
|
284
|
-
|
|
277
|
+
render(<VitalsAndBiometricsForm {...testProps} formContext="editing" editEncounterUuid="encounter-uuid" />);
|
|
285
278
|
|
|
286
279
|
expect(screen.getByRole('spinbutton', { name: /height/i })).toHaveValue(170);
|
|
287
280
|
expect(screen.getByRole('spinbutton', { name: /weight/i })).toHaveValue(65);
|
|
@@ -308,7 +301,7 @@ describe('VitalsBiometricsForm', () => {
|
|
|
308
301
|
response as ReturnType<typeof createOrUpdateVitalsAndBiometrics>,
|
|
309
302
|
);
|
|
310
303
|
|
|
311
|
-
|
|
304
|
+
render(<VitalsAndBiometricsForm {...testProps} formContext="editing" editEncounterUuid="encounter-uuid" />);
|
|
312
305
|
|
|
313
306
|
const weightInput = screen.getByRole('spinbutton', { name: /weight/i });
|
|
314
307
|
const systolicInput = screen.getByRole('spinbutton', { name: /systolic/i });
|
|
@@ -377,7 +370,7 @@ describe('VitalsBiometricsForm', () => {
|
|
|
377
370
|
|
|
378
371
|
mockCreateOrUpdateVitalsAndBiometrics.mockRejectedValueOnce(error);
|
|
379
372
|
|
|
380
|
-
|
|
373
|
+
render(<VitalsAndBiometricsForm {...testProps} />);
|
|
381
374
|
|
|
382
375
|
const heightInput = screen.getByRole('spinbutton', { name: /height/i });
|
|
383
376
|
const weightInput = screen.getByRole('spinbutton', { name: /weight/i });
|
|
@@ -410,15 +403,3 @@ describe('VitalsBiometricsForm', () => {
|
|
|
410
403
|
});
|
|
411
404
|
});
|
|
412
405
|
});
|
|
413
|
-
|
|
414
|
-
function renderVitalsAndBiometricsForm(formContext?: 'creating' | 'editing', editEncounterUuid?: string) {
|
|
415
|
-
const props: PatientWorkspace2DefinitionProps<VitalsAndBiometricsFormProps, {}> = {
|
|
416
|
-
...defaultProps,
|
|
417
|
-
workspaceProps: {
|
|
418
|
-
...defaultProps.workspaceProps,
|
|
419
|
-
formContext: formContext ?? defaultProps.workspaceProps.formContext,
|
|
420
|
-
editEncounterUuid: editEncounterUuid ?? defaultProps.workspaceProps.editEncounterUuid,
|
|
421
|
-
},
|
|
422
|
-
};
|
|
423
|
-
return render(<VitalsAndBiometricsForm {...props} />);
|
|
424
|
-
}
|