@openmrs/esm-appointments-app 10.0.3-pre.8571 → 10.0.3-pre.8577
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/4307.js +1 -1
- package/dist/4307.js.map +1 -1
- package/dist/5117.js +1 -1
- package/dist/5117.js.map +1 -1
- package/dist/7138.js +1 -1
- package/dist/7138.js.map +1 -1
- package/dist/7654.js +1 -1
- package/dist/7654.js.map +1 -1
- package/dist/9399.js +1 -1
- package/dist/9399.js.map +1 -1
- package/dist/main.js +2 -2
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-appointments-app.js.buildmanifest.json +18 -18
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/config-schema.ts +7 -6
- package/src/constants.ts +31 -8
- package/src/form/appointments-form.workspace.tsx +17 -23
- package/src/helpers/functions.ts +1 -0
- package/src/types/index.ts +3 -3
- package/translations/en.json +3 -0
package/.turbo/turbo-build.log
CHANGED
package/dist/4307.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([["4307"],{4961(t,e,n){"use strict";n.d(e,{A:()=>s});var a=n(1452),r=n.n(a),o=n(4567),i=n.n(o)()(r());i.push([t.id,".-esm-appointments__batch-change-appointment-statuses__modalBody___0u1PN{overflow:visible}.-esm-appointments__batch-change-appointment-statuses__modalBody___0u1PN .-esm-appointments__batch-change-appointment-statuses__appointmentsList___QothZ{list-style-type:disc;margin-inline-start:1rem}.-esm-appointments__batch-change-appointment-statuses__modalBody___0u1PN .-esm-appointments__batch-change-appointment-statuses__statusDropdown___iwaUP button{background-color:#fff}","",{version:3,sources:["webpack://./src/appointments/common-components/batch-change-appointment-statuses.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAEA,yEACE,gBAAA,CAEA,yJACE,oBAAA,CACA,wBCwBS,CDpBT,8JACE,qBAAA",sourcesContent:["@use '@carbon/layout';\n\n.modalBody {\n overflow: visible; // make the dropdown pop-up not clip\n\n .appointmentsList {\n list-style-type: disc;\n margin-inline-start: layout.$spacing-05;\n }\n\n .statusDropdown {\n button {\n background-color: #fff;\n }\n }\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),i.locals={modalBody:"-esm-appointments__batch-change-appointment-statuses__modalBody___0u1PN",appointmentsList:"-esm-appointments__batch-change-appointment-statuses__appointmentsList___QothZ",statusDropdown:"-esm-appointments__batch-change-appointment-statuses__statusDropdown___iwaUP"};let s=i},4567(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n}).join("")},e.i=function(t,n,a){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(a)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(r[i]=!0)}for(var s=0;s<t.length;s++){var u=[].concat(t[s]);a&&r[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},1452(t){"use strict";function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=Array(e);n<e;n++)a[n]=t[n];return a}t.exports=function(t){var n=function(t){if(Array.isArray(t))return t}(t)||function(t){var e,n,a=t&&("u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=a){var r=[],o=!0,i=!1;try{for(a=a.call(t);!(o=(e=a.next()).done)&&(r.push(e.value),4!==r.length);o=!0);}catch(t){i=!0,n=t}finally{try{o||null==a.return||a.return()}finally{if(i)throw n}}return r}}(t)||function(t){if(t){if("string"==typeof t)return e(t,4);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,4)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=n[1],r=n[3];if(!r)return a;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(r))));return[a].concat(r.sources.map(function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")})).concat(["/*# ".concat("sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o)," */")]).join("\n")}return[a].join("\n")}},5602(t){t.exports=function(t,e,n){e.prototype.isToday=function(){var t="YYYY-MM-DD",e=n();return this.format(t)===e.format(t)}}},2591(t){"use strict";var e=[];function n(t){for(var n=-1,a=0;a<e.length;a++)if(e[a].identifier===t){n=a;break}return n}function a(t,a){for(var r={},o=[],i=0;i<t.length;i++){var s=t[i],u=a.base?s[0]+a.base:s[0],c=r[u]||0,l="".concat(u," ").concat(c);r[u]=c+1;var p=n(l),d={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==p)e[p].references++,e[p].updater(d);else{var m=function(t,e){var n=e.domAPI(e);return n.update(t),function(e){e?(e.css!==t.css||e.media!==t.media||e.sourceMap!==t.sourceMap||e.supports!==t.supports||e.layer!==t.layer)&&n.update(t=e):n.remove()}}(d,a);a.byIndex=i,e.splice(i,0,{identifier:l,updater:m,references:1})}o.push(l)}return o}t.exports=function(t,r){var o=a(t=t||[],r=r||{});return function(t){t=t||[];for(var i=0;i<o.length;i++){var s=n(o[i]);e[s].references--}for(var u=a(t,r),c=0;c<o.length;c++){var l=n(o[c]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}o=u}}},8128(t){"use strict";var e={};t.exports=function(t,n){var a=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!a)throw Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},3051(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},855(t,e,n){"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},1740(t){"use strict";t.exports=function(t){if("u"<typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){var a,r,o;a="",n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {")),(r=void 0!==n.layer)&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,r&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}"),(o=n.sourceMap)&&"u">typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(a,e,t.options)},remove:function(){var t;null===(t=e).parentNode||t.parentNode.removeChild(t)}}}},3656(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},4350(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>N});var a=n(7125),r=n.n(a),o=n(5921),i=n(8951),s=n(2735),u=n(8423),c=n(2845),l=n(5084),p=n(5370),d=n(2591),m=n.n(d),f=n(1740),y=n.n(f),h=n(8128),b=n.n(h),g=n(855),v=n.n(g),w=n(3051),C=n.n(w),S=n(3656),E=n.n(S),A=n(4961),_={};_.styleTagTransform=E(),_.setAttributes=v(),_.insert=b().bind(null,"head"),_.domAPI=y(),_.insertStyleElement=C(),m()(A.A,_);let D=A.A&&A.A.locals?A.A.locals:void 0;function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=Array(e);n<e;n++)a[n]=t[n];return a}function k(t,e,n,a,r,o,i){try{var s=t[o](i),u=s.value}catch(t){n(t);return}s.done?e(u):Promise.resolve(u).then(a,r)}function M(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n,a,r=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var o=[],i=!0,s=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);i=!0);}catch(t){s=!0,a=t}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(t,e)||I(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(t,e){if(t){if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(t,e)}}let N=function(t){var e,n=t.appointments,d=t.closeModal,m=(0,o.useTranslation)().t,f=(0,p.q)().mutateAppointments,y=!(0,s.isDesktop)((0,s.useLayoutType)()),h=M((0,a.useState)(),2),b=h[0],g=h[1],v=(0,s.useConfig)().checkOutButton,w=M((0,a.useState)(!1),2),C=w[0],S=w[1],E=null!=b?n.find(function(t){return t.status!==b&&!(0,u.w)(t.status,b)}):void 0,A=(0,a.useCallback)(function(){S(!0),Promise.allSettled(n.map(function(t){return b===t.status?Promise.resolve():(0,c.y)(b,t.uuid).then(function(e){var n;return b!==l.y2.COMPLETED?e:(n=t.patient.uuid,(0,s.openmrsFetch)("".concat(s.restBaseUrl,"/visit?patient=").concat(n,"&v=").concat("default","&includeInactive=false"),{signal:void 0,method:"GET",headers:{"Content-type":"application/json"}})).then(function(t){var e,n=null==(e=t.data.results)?void 0:e[0];if(n){var a=new AbortController,r={stopDatetime:new Date};return(0,s.updateVisit)(n.uuid,r,a)}}).catch(function(){return(0,s.showSnackbar)({title:m("failedToUpdateVisit","Failed to update visit"),subtitle:m("failedToEndActiveVisit","Failed to end active visit for {{patient}}",{patient:t.patient.name})}),e})})})).then(function(t){var e;return(e=function(){var e,a,o,i;return function(t,e){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:u(0)}),s(i,"throw",{value:u(1)}),s(i,"return",{value:u(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function u(s){return function(u){var c=[s,u];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&c[0]?a.return:c[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,c[1])).done)return r;switch(a=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,a=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=e.call(t,o)}catch(t){c=[6,t],a=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(u){switch(u.label){case 0:if(!t.some(function(t){return"rejected"==t.status}))return[3,5];e=0,u.label=1;case 1:if(!(e<t.length))return[3,4];if("rejected"!==(a=t[e]).status)return[3,3];return[4,a.reason.response.json()];case 2:o=u.sent(),i=n[e],(0,s.showSnackbar)({title:m("appointmentsUpdateFailed","Appointments update failed"),kind:"error",subtitle:r().createElement("div",null,m("appointmentsUpdateFailedMessage","Appointments update failed for {{patient}}. Reason: {{reason}}",{patient:i.patient.name,reason:o.error.translatedMessage}))}),u.label=3;case 3:return e++,[3,1];case 4:return[3,6];case 5:(0,s.showSnackbar)({title:m("appointmentsUpdated","Appointments updated"),subtitle:m("appointmentsUpdatedMessage","Appointments for selected patients have been successfully updated")}),u.label=6;case 6:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(t){k(o,a,r,i,s,"next",t)}function s(t){k(o,a,r,i,s,"throw",t)}i(void 0)})})()}).finally(function(){S(!1),f(),d()})},[b,n,d,f,m]);return r().createElement(r().Fragment,null,r().createElement(i.rQ0,{closeModal:d,title:m("changeAppointmentsStatus","Change appointments status")}),r().createElement(i.cwr,{className:D.modalBody},r().createElement(i.BJc,{gap:5},r().createElement("p",null,m("changeStatusForSelectedAppointments","Change the status for the following appointments.")),r().createElement("ul",{className:D.appointmentsList},n.map(function(t){return r().createElement("li",{key:t.patient.uuid},r().createElement(o.Trans,{i18nKey:"appointmentDisplay"},r().createElement("strong",null,{patientName:t.patient.name})," -"," ",{serviceName:t.service.name}," - ",{currentStatus:t.status}))})),r().createElement(i.Wdr,null,r().createElement(i.msM,{id:"statusDropdown",className:D.statusDropdown,label:m("selectStatus","Select status"),titleText:"",type:"inline",items:[{id:l.y2.SCHEDULED,label:m("scheduled","Scheduled")},{id:l.y2.CANCELLED,label:m("cancelled","Cancelled")},{id:l.y2.MISSED,label:m("missed","Missed")}].concat(function(t){if(Array.isArray(t))return T(t)}(e=v.enabled?[{id:l.y2.COMPLETED,label:m("completed","Completed")}]:[])||function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||I(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),itemToString:function(t){return t?t.label:""},onChange:function(t){return g(t.selectedItem.id)},size:y?"lg":"sm"})),b===l.y2.COMPLETED&&r().createElement(i.jeF,{kind:"warning",lowContrast:!0,hideCloseButton:!0,title:m("markAppointmentAsCompletedMessage","Marking appointment as completed will end the active visit of the patient")}),b&&E&&r().createElement(i.jeF,{kind:"warning",lowContrast:!0,hideCloseButton:!0,title:m("invalidAppointmentStatusChange","Cannot transition appointment with status {{currentStatus}} to status {{newStatus}}",{currentStatus:E.status,newStatus:b})}))),r().createElement(i.jlY,null,r().createElement(i.$nd,{kind:"secondary",onClick:d},(0,s.getCoreTranslation)("cancel")),r().createElement(i.$nd,{kind:"primary",disabled:C||null!=E||null==b,onClick:A},C?r().createElement(i.OuH,{description:m("saving","Saving")+"..."}):r().createElement("span",null,m("saveAndClose","Save and close")))))}},8423(t,e,n){"use strict";n.d(e,{tF:()=>c,o_:()=>p,w:()=>m,Xz:()=>d,_h:()=>l});var a=n(3464),r=n.n(a),o=n(2735),i=n(5084),s=n(7003);function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(t,e){return t.isSame(e,"month")},l=function(t){for(var e=r()(t).startOf("month"),n=r()(t).endOf("month"),a=r()(t).daysInMonth(),o=r()(t).subtract(1,"month"),i=r()(t).add(1,"month"),s=[],u=o.daysInMonth()-e.day()+1;u<=o.daysInMonth();u++)s.push(o.date(u));for(var c=1;c<=a;c++)s.push(t.date(c));for(var l=s.length>30?7:14,p=1;p<l-n.day();p++)s.push(i.date(p));return s},p=function(t,e){switch(t){case"M":return e("male","Male");case"F":return e("female","Female");case"O":return e("other","Other");case"U":return e("unknown","Unknown");default:return t}},d=function(t){(0,o.launchWorkspace2)("appointments-patient-search-workspace",{initialQuery:"",workspaceTitle:t("createNewAppointment","Create new appointment"),onPatientSelected:function(t,e,n,a){n(s.gC,{patientUuid:e.id})}},{startVisitWorkspaceName:"appointments-start-visit-workspace"})},m=function(t,e){var n,a=(u(n={},i.y2.SCHEDULED,1),u(n,i.y2.CHECKEDIN,3),u(n,i.y2.COMPLETED,4),u(n,i.y2.CANCELLED,4),u(n,i.y2.MISSED,4),n);return a[t]<a[e]||e===i.y2.SCHEDULED}},5370(t,e,n){"use strict";n.d(e,{q:()=>s});var a=n(7125),r=n(1123),o=n(2735),i="".concat(o.restBaseUrl,"/appointment");function s(){var t=(0,r.iX)().mutate;return{mutateAppointments:(0,a.useCallback)(function(){return t(function(t){return"string"==typeof t&&t.startsWith(i)||Array.isArray(t)&&t[0].startsWith(i)})},[t])}}},2845(t,e,n){"use strict";n.d(e,{D:()=>p,y:()=>d});var a=n(3464),r=n.n(a),o=n(1123),i=n(2735),s=n(5602),u=n.n(s);function c(t,e,n,a,r,o,i){try{var s=t[o](i),u=s.value}catch(t){n(t);return}s.done?e(u):Promise.resolve(u).then(a,r)}r().extend(u());var l="".concat(i.restBaseUrl,"/appointments/search");function p(t,e,n){var a,s,u,c,p,d,m,f=(0,o.Ay)(t?[l,t,e]:null,function(){return(0,i.openmrsFetch)(l,{method:"POST",signal:n.signal,headers:{"Content-Type":"application/json"},body:{patientUuid:t,startDate:e}})}),y=f.data,h=f.error,b=f.isLoading,g=f.isValidating,v=f.mutate,w=(null==y||null==(a=y.data)?void 0:a.length)?y.data:null,C=null==w||null==(u=w.sort(function(t,e){return e.startDateTime>t.startDateTime?1:-1}))||null==(s=u.filter(function(t){return"Cancelled"!==t.status}))?void 0:s.filter(function(t){var e=t.startDateTime;return r()(new Date(e).toISOString()).isBefore(new Date().setHours(0,0,0,0))}),S=null==w||null==(p=w.sort(function(t,e){return t.startDateTime>e.startDateTime?1:-1}))||null==(c=p.filter(function(t){return"Cancelled"!==t.status}))?void 0:c.filter(function(t){var e=t.startDateTime;return r()(new Date(e).toISOString()).isAfter(new Date)}),E=null==w||null==(m=w.sort(function(t,e){return t.startDateTime>e.startDateTime?1:-1}))||null==(d=m.filter(function(t){return"Cancelled"!==t.status}))?void 0:d.filter(function(t){var e=t.startDateTime;return r()(new Date(e).toISOString()).isToday()});return{data:y?{pastAppointments:C,upcomingAppointments:S,todaysAppointments:E}:null,error:h,isLoading:b,isValidating:g,mutate:v}}var d=function(t,e){var n;return(n=function(){var n,a,o;return function(t,e){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:u(0)}),s(i,"throw",{value:u(1)}),s(i,"return",{value:u(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function u(s){return function(u){var c=[s,u];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&c[0]?a.return:c[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,c[1])).done)return r;switch(a=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,a=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=e.call(t,o)}catch(t){c=[6,t],a=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(s){switch(s.label){case 0:return n=Intl.DateTimeFormat().resolvedOptions().timeZone,a=r()(new Date).format("YYYY-MM-DDTHH:mm:ss.SSSZZ"),o="".concat(i.restBaseUrl,"/appointments/").concat(e,"/status-change"),[4,(0,i.openmrsFetch)(o,{body:{toStatus:t,onDate:a,timeZone:n},method:"POST",headers:{"Content-Type":"application/json"}})];case 1:return[2,s.sent()]}})},function(){var t=this,e=arguments;return new Promise(function(a,r){var o=n.apply(t,e);function i(t){c(o,a,r,i,s,"next",t)}function s(t){c(o,a,r,i,s,"throw",t)}i(void 0)})})()}},5084(t,e,n){"use strict";n.d(e,{y2:()=>r});var a,r=((a={}).SCHEDULED="Scheduled",a.CANCELLED="Cancelled",a.MISSED="Missed",a.CHECKEDIN="CheckedIn",a.COMPLETED="Completed",a)}}]);
|
|
1
|
+
(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([["4307"],{4961(t,e,n){"use strict";n.d(e,{A:()=>s});var a=n(1452),r=n.n(a),o=n(4567),i=n.n(o)()(r());i.push([t.id,".-esm-appointments__batch-change-appointment-statuses__modalBody___0u1PN{overflow:visible}.-esm-appointments__batch-change-appointment-statuses__modalBody___0u1PN .-esm-appointments__batch-change-appointment-statuses__appointmentsList___QothZ{list-style-type:disc;margin-inline-start:1rem}.-esm-appointments__batch-change-appointment-statuses__modalBody___0u1PN .-esm-appointments__batch-change-appointment-statuses__statusDropdown___iwaUP button{background-color:#fff}","",{version:3,sources:["webpack://./src/appointments/common-components/batch-change-appointment-statuses.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAEA,yEACE,gBAAA,CAEA,yJACE,oBAAA,CACA,wBCwBS,CDpBT,8JACE,qBAAA",sourcesContent:["@use '@carbon/layout';\n\n.modalBody {\n overflow: visible; // make the dropdown pop-up not clip\n\n .appointmentsList {\n list-style-type: disc;\n margin-inline-start: layout.$spacing-05;\n }\n\n .statusDropdown {\n button {\n background-color: #fff;\n }\n }\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),i.locals={modalBody:"-esm-appointments__batch-change-appointment-statuses__modalBody___0u1PN",appointmentsList:"-esm-appointments__batch-change-appointment-statuses__appointmentsList___QothZ",statusDropdown:"-esm-appointments__batch-change-appointment-statuses__statusDropdown___iwaUP"};let s=i},4567(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n}).join("")},e.i=function(t,n,a){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(a)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(r[i]=!0)}for(var s=0;s<t.length;s++){var u=[].concat(t[s]);a&&r[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},1452(t){"use strict";function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=Array(e);n<e;n++)a[n]=t[n];return a}t.exports=function(t){var n=function(t){if(Array.isArray(t))return t}(t)||function(t){var e,n,a=t&&("u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=a){var r=[],o=!0,i=!1;try{for(a=a.call(t);!(o=(e=a.next()).done)&&(r.push(e.value),4!==r.length);o=!0);}catch(t){i=!0,n=t}finally{try{o||null==a.return||a.return()}finally{if(i)throw n}}return r}}(t)||function(t){if(t){if("string"==typeof t)return e(t,4);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,4)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=n[1],r=n[3];if(!r)return a;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(r))));return[a].concat(r.sources.map(function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")})).concat(["/*# ".concat("sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o)," */")]).join("\n")}return[a].join("\n")}},5602(t){t.exports=function(t,e,n){e.prototype.isToday=function(){var t="YYYY-MM-DD",e=n();return this.format(t)===e.format(t)}}},2591(t){"use strict";var e=[];function n(t){for(var n=-1,a=0;a<e.length;a++)if(e[a].identifier===t){n=a;break}return n}function a(t,a){for(var r={},o=[],i=0;i<t.length;i++){var s=t[i],u=a.base?s[0]+a.base:s[0],c=r[u]||0,l="".concat(u," ").concat(c);r[u]=c+1;var p=n(l),d={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==p)e[p].references++,e[p].updater(d);else{var m=function(t,e){var n=e.domAPI(e);return n.update(t),function(e){e?(e.css!==t.css||e.media!==t.media||e.sourceMap!==t.sourceMap||e.supports!==t.supports||e.layer!==t.layer)&&n.update(t=e):n.remove()}}(d,a);a.byIndex=i,e.splice(i,0,{identifier:l,updater:m,references:1})}o.push(l)}return o}t.exports=function(t,r){var o=a(t=t||[],r=r||{});return function(t){t=t||[];for(var i=0;i<o.length;i++){var s=n(o[i]);e[s].references--}for(var u=a(t,r),c=0;c<o.length;c++){var l=n(o[c]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}o=u}}},8128(t){"use strict";var e={};t.exports=function(t,n){var a=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!a)throw Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},3051(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},855(t,e,n){"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},1740(t){"use strict";t.exports=function(t){if("u"<typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){var a,r,o;a="",n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {")),(r=void 0!==n.layer)&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,r&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}"),(o=n.sourceMap)&&"u">typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(a,e,t.options)},remove:function(){var t;null===(t=e).parentNode||t.parentNode.removeChild(t)}}}},3656(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},4350(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>N});var a=n(7125),r=n.n(a),o=n(5921),i=n(8951),s=n(2735),u=n(8423),c=n(2845),l=n(5084),p=n(5370),d=n(2591),m=n.n(d),f=n(1740),y=n.n(f),h=n(8128),b=n.n(h),g=n(855),v=n.n(g),w=n(3051),S=n.n(w),A=n(3656),_=n.n(A),C=n(4961),E={};E.styleTagTransform=_(),E.setAttributes=v(),E.insert=b().bind(null,"head"),E.domAPI=y(),E.insertStyleElement=S(),m()(C.A,E);let D=C.A&&C.A.locals?C.A.locals:void 0;function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=Array(e);n<e;n++)a[n]=t[n];return a}function k(t,e,n,a,r,o,i){try{var s=t[o](i),u=s.value}catch(t){n(t);return}s.done?e(u):Promise.resolve(u).then(a,r)}function M(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n,a,r=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var o=[],i=!0,s=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);i=!0);}catch(t){s=!0,a=t}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(t,e)||I(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(t,e){if(t){if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(t,e)}}let N=function(t){var e,n=t.appointments,d=t.closeModal,m=(0,o.useTranslation)().t,f=(0,p.q)().mutateAppointments,y=!(0,s.isDesktop)((0,s.useLayoutType)()),h=M((0,a.useState)(),2),b=h[0],g=h[1],v=(0,s.useConfig)().checkOutButton,w=M((0,a.useState)(!1),2),S=w[0],A=w[1],_=null!=b?n.find(function(t){return t.status!==b&&!(0,u.w)(t.status,b)}):void 0,C=(0,a.useCallback)(function(){A(!0),Promise.allSettled(n.map(function(t){return b===t.status?Promise.resolve():(0,c.y)(b,t.uuid).then(function(e){var n;return b!==l.y2.COMPLETED?e:(n=t.patient.uuid,(0,s.openmrsFetch)("".concat(s.restBaseUrl,"/visit?patient=").concat(n,"&v=").concat("default","&includeInactive=false"),{signal:void 0,method:"GET",headers:{"Content-type":"application/json"}})).then(function(t){var e,n=null==(e=t.data.results)?void 0:e[0];if(n){var a=new AbortController,r={stopDatetime:new Date};return(0,s.updateVisit)(n.uuid,r,a)}}).catch(function(){return(0,s.showSnackbar)({title:m("failedToUpdateVisit","Failed to update visit"),subtitle:m("failedToEndActiveVisit","Failed to end active visit for {{patient}}",{patient:t.patient.name})}),e})})})).then(function(t){var e;return(e=function(){var e,a,o,i;return function(t,e){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:u(0)}),s(i,"throw",{value:u(1)}),s(i,"return",{value:u(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function u(s){return function(u){var c=[s,u];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&c[0]?a.return:c[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,c[1])).done)return r;switch(a=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,a=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=e.call(t,o)}catch(t){c=[6,t],a=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(u){switch(u.label){case 0:if(!t.some(function(t){return"rejected"==t.status}))return[3,5];e=0,u.label=1;case 1:if(!(e<t.length))return[3,4];if("rejected"!==(a=t[e]).status)return[3,3];return[4,a.reason.response.json()];case 2:o=u.sent(),i=n[e],(0,s.showSnackbar)({title:m("appointmentsUpdateFailed","Appointments update failed"),kind:"error",subtitle:r().createElement("div",null,m("appointmentsUpdateFailedMessage","Appointments update failed for {{patient}}. Reason: {{reason}}",{patient:i.patient.name,reason:o.error.translatedMessage}))}),u.label=3;case 3:return e++,[3,1];case 4:return[3,6];case 5:(0,s.showSnackbar)({title:m("appointmentsUpdated","Appointments updated"),subtitle:m("appointmentsUpdatedMessage","Appointments for selected patients have been successfully updated")}),u.label=6;case 6:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(a,r){var o=e.apply(t,n);function i(t){k(o,a,r,i,s,"next",t)}function s(t){k(o,a,r,i,s,"throw",t)}i(void 0)})})()}).finally(function(){A(!1),f(),d()})},[b,n,d,f,m]);return r().createElement(r().Fragment,null,r().createElement(i.rQ0,{closeModal:d,title:m("changeAppointmentsStatus","Change appointments status")}),r().createElement(i.cwr,{className:D.modalBody},r().createElement(i.BJc,{gap:5},r().createElement("p",null,m("changeStatusForSelectedAppointments","Change the status for the following appointments.")),r().createElement("ul",{className:D.appointmentsList},n.map(function(t){return r().createElement("li",{key:t.patient.uuid},r().createElement(o.Trans,{i18nKey:"appointmentDisplay"},r().createElement("strong",null,{patientName:t.patient.name})," -"," ",{serviceName:t.service.name}," - ",{currentStatus:t.status}))})),r().createElement(i.Wdr,null,r().createElement(i.msM,{id:"statusDropdown",className:D.statusDropdown,label:m("selectStatus","Select status"),titleText:"",type:"inline",items:[{id:l.y2.SCHEDULED,label:m("scheduled","Scheduled")},{id:l.y2.CANCELLED,label:m("cancelled","Cancelled")},{id:l.y2.MISSED,label:m("missed","Missed")}].concat(function(t){if(Array.isArray(t))return T(t)}(e=v.enabled?[{id:l.y2.COMPLETED,label:m("completed","Completed")}]:[])||function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||I(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),itemToString:function(t){return t?t.label:""},onChange:function(t){return g(t.selectedItem.id)},size:y?"lg":"sm"})),b===l.y2.COMPLETED&&r().createElement(i.jeF,{kind:"warning",lowContrast:!0,hideCloseButton:!0,title:m("markAppointmentAsCompletedMessage","Marking appointment as completed will end the active visit of the patient")}),b&&_&&r().createElement(i.jeF,{kind:"warning",lowContrast:!0,hideCloseButton:!0,title:m("invalidAppointmentStatusChange","Cannot transition appointment with status {{currentStatus}} to status {{newStatus}}",{currentStatus:_.status,newStatus:b})}))),r().createElement(i.jlY,null,r().createElement(i.$nd,{kind:"secondary",onClick:d},(0,s.getCoreTranslation)("cancel")),r().createElement(i.$nd,{kind:"primary",disabled:S||null!=_||null==b,onClick:C},S?r().createElement(i.OuH,{description:m("saving","Saving")+"..."}):r().createElement("span",null,m("saveAndClose","Save and close")))))}},8423(t,e,n){"use strict";n.d(e,{tF:()=>c,o_:()=>p,w:()=>m,Xz:()=>d,_h:()=>l});var a=n(3464),r=n.n(a),o=n(2735),i=n(5084),s=n(7003);function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(t,e){return t.isSame(e,"month")},l=function(t){for(var e=r()(t).startOf("month"),n=r()(t).endOf("month"),a=r()(t).daysInMonth(),o=r()(t).subtract(1,"month"),i=r()(t).add(1,"month"),s=[],u=o.daysInMonth()-e.day()+1;u<=o.daysInMonth();u++)s.push(o.date(u));for(var c=1;c<=a;c++)s.push(t.date(c));for(var l=s.length>30?7:14,p=1;p<l-n.day();p++)s.push(i.date(p));return s},p=function(t,e){switch(t){case"M":return e("male","Male");case"F":return e("female","Female");case"O":return e("other","Other");case"U":return e("unknown","Unknown");default:return t}},d=function(t){(0,o.launchWorkspace2)("appointments-patient-search-workspace",{initialQuery:"",workspaceTitle:t("createNewAppointment","Create new appointment"),onPatientSelected:function(t,e,n,a){n(s.gC,{patientUuid:e.id})}},{startVisitWorkspaceName:"appointments-start-visit-workspace"})},m=function(t,e){var n,a=(u(n={},i.y2.REQUESTED,0),u(n,i.y2.SCHEDULED,1),u(n,i.y2.CHECKEDIN,3),u(n,i.y2.COMPLETED,4),u(n,i.y2.CANCELLED,4),u(n,i.y2.MISSED,4),n);return a[t]<a[e]||e===i.y2.SCHEDULED}},5370(t,e,n){"use strict";n.d(e,{q:()=>s});var a=n(7125),r=n(1123),o=n(2735),i="".concat(o.restBaseUrl,"/appointment");function s(){var t=(0,r.iX)().mutate;return{mutateAppointments:(0,a.useCallback)(function(){return t(function(t){return"string"==typeof t&&t.startsWith(i)||Array.isArray(t)&&t[0].startsWith(i)})},[t])}}},2845(t,e,n){"use strict";n.d(e,{D:()=>p,y:()=>d});var a=n(3464),r=n.n(a),o=n(1123),i=n(2735),s=n(5602),u=n.n(s);function c(t,e,n,a,r,o,i){try{var s=t[o](i),u=s.value}catch(t){n(t);return}s.done?e(u):Promise.resolve(u).then(a,r)}r().extend(u());var l="".concat(i.restBaseUrl,"/appointments/search");function p(t,e,n){var a,s,u,c,p,d,m,f=(0,o.Ay)(t?[l,t,e]:null,function(){return(0,i.openmrsFetch)(l,{method:"POST",signal:n.signal,headers:{"Content-Type":"application/json"},body:{patientUuid:t,startDate:e}})}),y=f.data,h=f.error,b=f.isLoading,g=f.isValidating,v=f.mutate,w=(null==y||null==(a=y.data)?void 0:a.length)?y.data:null,S=null==w||null==(u=w.sort(function(t,e){return e.startDateTime>t.startDateTime?1:-1}))||null==(s=u.filter(function(t){return"Cancelled"!==t.status}))?void 0:s.filter(function(t){var e=t.startDateTime;return r()(new Date(e).toISOString()).isBefore(new Date().setHours(0,0,0,0))}),A=null==w||null==(p=w.sort(function(t,e){return t.startDateTime>e.startDateTime?1:-1}))||null==(c=p.filter(function(t){return"Cancelled"!==t.status}))?void 0:c.filter(function(t){var e=t.startDateTime;return r()(new Date(e).toISOString()).isAfter(new Date)}),_=null==w||null==(m=w.sort(function(t,e){return t.startDateTime>e.startDateTime?1:-1}))||null==(d=m.filter(function(t){return"Cancelled"!==t.status}))?void 0:d.filter(function(t){var e=t.startDateTime;return r()(new Date(e).toISOString()).isToday()});return{data:y?{pastAppointments:S,upcomingAppointments:A,todaysAppointments:_}:null,error:h,isLoading:b,isValidating:g,mutate:v}}var d=function(t,e){var n;return(n=function(){var n,a,o;return function(t,e){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:u(0)}),s(i,"throw",{value:u(1)}),s(i,"return",{value:u(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function u(s){return function(u){var c=[s,u];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&c[0]?a.return:c[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,c[1])).done)return r;switch(a=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,a=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=e.call(t,o)}catch(t){c=[6,t],a=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(s){switch(s.label){case 0:return n=Intl.DateTimeFormat().resolvedOptions().timeZone,a=r()(new Date).format("YYYY-MM-DDTHH:mm:ss.SSSZZ"),o="".concat(i.restBaseUrl,"/appointments/").concat(e,"/status-change"),[4,(0,i.openmrsFetch)(o,{body:{toStatus:t,onDate:a,timeZone:n},method:"POST",headers:{"Content-Type":"application/json"}})];case 1:return[2,s.sent()]}})},function(){var t=this,e=arguments;return new Promise(function(a,r){var o=n.apply(t,e);function i(t){c(o,a,r,i,s,"next",t)}function s(t){c(o,a,r,i,s,"throw",t)}i(void 0)})})()}}}]);
|
package/dist/4307.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4307.js","sources":["webpack://@openmrs/esm-appointments-app/./src/appointments/common-components/batch-change-appointment-statuses.scss","webpack://@openmrs/esm-appointments-app/../../node_modules/@openmrs/rspack-config/node_modules/css-loader/dist/runtime/api.js","webpack://@openmrs/esm-appointments-app/../../node_modules/@openmrs/rspack-config/node_modules/css-loader/dist/runtime/cssWithMappingToString.js","webpack://@openmrs/esm-appointments-app/../../node_modules/dayjs/plugin/isToday.js","webpack://@openmrs/esm-appointments-app/../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@openmrs/esm-appointments-app/../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@openmrs/esm-appointments-app/../../node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@openmrs/esm-appointments-app/../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@openmrs/esm-appointments-app/../../node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://@openmrs/esm-appointments-app/../../node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://@openmrs/esm-appointments-app/./src/appointments/common-components/batch-change-appointment-statuses.scss?5747","webpack://@openmrs/esm-appointments-app/./src/appointments/common-components/batch-change-appointment-statuses.modal.tsx","webpack://@openmrs/esm-appointments-app/./src/appointments/common-components/batch-change-appointment-statuses.resources.ts","webpack://@openmrs/esm-appointments-app/./src/helpers/functions.ts","webpack://@openmrs/esm-appointments-app/./src/hooks/useMutateAppointments.ts","webpack://@openmrs/esm-appointments-app/./src/patient-appointments/patient-appointments.resource.ts","webpack://@openmrs/esm-appointments-app/./src/types/index.ts"],"names":["i","a","Array","Symbol","n","Object","TypeError","btoa","unescape","encodeURIComponent","JSON","c","t","document","window","Error","e","appointments","closeModal","useTranslation","mutateAppointments","useMutateAppointments","isTablet","isDesktop","useLayoutType","_useState","status","setStatus","checkOutButton","useConfig","_useState1","isSubmitting","setIsSubmitting","invalidAppointment","canTransition","undefined","submit","useCallback","Promise","appointment","changeAppointmentStatus","res","patientUuid","AppointmentStatus","getActiveVisitsForPatient","openmrsFetch","restBaseUrl","custom","abortController","response","_response_data_results","activeVisit","AbortController","endVisitPayload","Date","updateVisit","showSnackbar","results","result","errorResponse","hasFailedResults","ModalHeader","ModalBody","styles","Stack","Trans","Layer","Dropdown","itemToString","item","onChange","InlineNotification","ModalFooter","Button","getCoreTranslation","InlineLoading","isSameMonth","cellDate","currentDate","monthDays","monthStart","dayjs","monthEnd","lastMonth","nextMonth","days","i1","dayLen","i2","getGender","gender","launchCreateAppointmentForm","launchWorkspace2","onPatientSelected","patient","launchChildWorkspace","closeWorkspace","appointmentsFormWorkspace","fromStatus","toStatus","_obj","sequences","appointmentUrlMatcher","mutate","useSWRConfig","key","isToday","appointmentsSearchUrl","usePatientAppointments","startDate","_data_data","_appointments_sort_filter","_appointments_sort_filter1","_appointments_sort_filter2","_useSWR","data","error","isLoading","isValidating","pastAppointments","b","startDateTime","upcomingAppointments","todaysAppointments","appointmentUuid","timeZone","statusChangeTime","url","Intl"],"mappings":"2MAGI,EAA0B,A,SAA4B,KAE1D,EAAwB,IAAI,CAAC,CAAC,EAAO,EAAE,CAAE,wdAAyd,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wFAAwF,6EAA6E,CAAC,MAAQ,EAAE,CAAC,SAAW,kEAAkE,eAAiB,CAAC,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AC,EACAC,E,suCACC,OAHDF,EAAWG,KAAK,cAAc,GAAG,eAAe,GAAG,QAAQ,CAC3DF,EAAmB7C,IAAM,IAAI3B,MAAQ,MAAM,CAF1B,6BAGjByE,EAAO,GAA8BH,MAAAA,CAA5B9E,EAAAA,WAAWA,CAAC,kBAAgC,OAAhB8E,EAAgB,kBACpD,C,EAAM/E,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAakF,EAAK,CAC7B,KAAM,CAAE5B,SAAAA,EAAU,OAAQ2B,EAAkB,SAAUD,CAAS,EAC/D,OAAQ,OACR,QAAS,CAAE,eAAgB,kBAAmB,CAChD,G,QAJA,MAAO,C,EAAA,S,GAKT,E,4NCtDO,IAAKlF,EAAAA,G,CAAAA,E,oHAAAA,E"}
|
|
1
|
+
{"version":3,"file":"4307.js","sources":["webpack://@openmrs/esm-appointments-app/./src/appointments/common-components/batch-change-appointment-statuses.scss","webpack://@openmrs/esm-appointments-app/../../node_modules/@openmrs/rspack-config/node_modules/css-loader/dist/runtime/api.js","webpack://@openmrs/esm-appointments-app/../../node_modules/@openmrs/rspack-config/node_modules/css-loader/dist/runtime/cssWithMappingToString.js","webpack://@openmrs/esm-appointments-app/../../node_modules/dayjs/plugin/isToday.js","webpack://@openmrs/esm-appointments-app/../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@openmrs/esm-appointments-app/../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@openmrs/esm-appointments-app/../../node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@openmrs/esm-appointments-app/../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@openmrs/esm-appointments-app/../../node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://@openmrs/esm-appointments-app/../../node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://@openmrs/esm-appointments-app/./src/appointments/common-components/batch-change-appointment-statuses.scss?5747","webpack://@openmrs/esm-appointments-app/./src/appointments/common-components/batch-change-appointment-statuses.modal.tsx","webpack://@openmrs/esm-appointments-app/./src/appointments/common-components/batch-change-appointment-statuses.resources.ts","webpack://@openmrs/esm-appointments-app/./src/helpers/functions.ts","webpack://@openmrs/esm-appointments-app/./src/hooks/useMutateAppointments.ts","webpack://@openmrs/esm-appointments-app/./src/patient-appointments/patient-appointments.resource.ts"],"names":["i","a","Array","Symbol","n","Object","TypeError","btoa","unescape","encodeURIComponent","JSON","c","t","document","window","Error","e","appointments","closeModal","useTranslation","mutateAppointments","useMutateAppointments","isTablet","isDesktop","useLayoutType","_useState","status","setStatus","checkOutButton","useConfig","_useState1","isSubmitting","setIsSubmitting","invalidAppointment","canTransition","undefined","submit","useCallback","Promise","appointment","changeAppointmentStatus","res","patientUuid","AppointmentStatus","getActiveVisitsForPatient","openmrsFetch","restBaseUrl","custom","abortController","response","_response_data_results","activeVisit","AbortController","endVisitPayload","Date","updateVisit","showSnackbar","results","result","errorResponse","hasFailedResults","ModalHeader","ModalBody","styles","Stack","Trans","Layer","Dropdown","itemToString","item","onChange","InlineNotification","ModalFooter","Button","getCoreTranslation","InlineLoading","isSameMonth","cellDate","currentDate","monthDays","monthStart","dayjs","monthEnd","lastMonth","nextMonth","days","i1","dayLen","i2","getGender","gender","launchCreateAppointmentForm","launchWorkspace2","onPatientSelected","patient","launchChildWorkspace","closeWorkspace","appointmentsFormWorkspace","fromStatus","toStatus","_obj","sequences","appointmentUrlMatcher","mutate","useSWRConfig","key","isToday","appointmentsSearchUrl","usePatientAppointments","startDate","_data_data","_appointments_sort_filter","_appointments_sort_filter1","_appointments_sort_filter2","_useSWR","data","error","isLoading","isValidating","pastAppointments","b","startDateTime","upcomingAppointments","todaysAppointments","appointmentUuid","timeZone","statusChangeTime","url","Intl"],"mappings":"2MAGI,EAA0B,A,SAA4B,KAE1D,EAAwB,IAAI,CAAC,CAAC,EAAO,EAAE,CAAE,wdAAyd,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wFAAwF,6EAA6E,CAAC,MAAQ,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aAAAA,EACAf,OAAAA,CACF,CACF,CAGO,IAAM/D,EAA0B,SAAO2D,CAAQ,CAAUyB,CAAe,M,0BAEvEC,EACAC,EACAC,E,suCACC,OAHDF,EAAWG,KAAK,cAAc,GAAG,eAAe,GAAG,QAAQ,CAC3DF,EAAmB7C,IAAM,IAAI3B,MAAQ,MAAM,CAF1B,6BAGjByE,EAAO,GAA8BH,MAAAA,CAA5B9E,EAAAA,WAAWA,CAAC,kBAAgC,OAAhB8E,EAAgB,kBACpD,C,EAAM/E,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAakF,EAAK,CAC7B,KAAM,CAAE5B,SAAAA,EAAU,OAAQ2B,EAAkB,SAAUD,CAAS,EAC/D,OAAQ,OACR,QAAS,CAAE,eAAgB,kBAAmB,CAChD,G,QAJA,MAAO,C,EAAA,S,GAKT,E"}
|
package/dist/5117.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([["5117"],{4300(e){e.exports=JSON.parse('{"action":"Action","actions":"Actions","add":"Add","addAppointments":"Add Appointments","age":"Age","allDay":"All day","appointment":"Appointment","appointmentCancelError":"Error cancelling appointment","appointmentCancelled":"Appointment Cancelled","appointmentCancelledSuccessfully":"Appointment cancelled successfully","appointmentCheckedIn":"Appointment Checked In","appointmentCheckedInWithExistingVisit":"Appointment checked in using existing active visit","appointmentCheckInFailed":"An error occurred while checking in the appointment","appointmentConflict":"Appointment conflict","appointmentDate":"Appointment date","appointmentDisplay":"<0>{{patientName}}</0> - {{serviceName}} - {{currentStatus}}","appointmentEdited":"Appointment edited","appointmentEditError":"Error editing appointment","appointmentEnded":"Appointment ended","appointmentEndedAndVisitClosedSuccessfully":"Appointment successfully ended and visit successfully closed","appointmentEndedButVisitNotClosedError":"Appointment ended, but error closing visit","appointmentEndedSuccessfully":"Appointment successfully ended.","appointmentEndError":"Error ending appointment","appointmentFormError":"Error scheduling appointment","appointmentHistory":"Appointment History","appointmentMarkedChecked":"Appointment marked as Checked In","appointmentNoteLabel":"Write an additional note","appointmentNotePlaceholder":"Write any additional points here","appointmentNotes":"Appointment Notes","appointmentNowVisible":"It is now visible on the Appointments page","appointments":"Appointments","Appointments":"Appointments","appointments_lower":"appointments","appointmentsCalendar":"Appointments calendar","appointmentScheduled":"Appointment scheduled","appointmentsForDate":"Appointments for: {{date}}","appointmentsTable":"Appointments table","appointmentStatus":"Appointment status","appointmentsUpdated":"Appointments updated","appointmentsUpdatedMessage":"Appointments for selected patients have been successfully updated","appointmentsUpdateFailed":"Appointments update failed","appointmentsUpdateFailedMessage":"Appointments update failed for {{patient}}. Reason: {{reason}}","appointmentToFulfill":"Select appointment to fulfill","appointmentType":"Appointment type","appointmentType_title":"Appointment Type","back":"Back","calendar":"Calendar","cameEarly":"Came Early","cancel":"Cancel","cancelAppointment":"Cancel Appointment","cancelAppointmentModalConfirmationText":"Are you sure you want to cancel this appointment?","cancelled":"Cancelled","Cancelled":"Cancelled","changeAppointmentsStatus":"Change appointments status","changeStatus":"Change status","changeStatusForSelectedAppointments":"Change the status for the following appointments.","checkedIn":"Checked in","CheckedIn":"Checked in","checkFilters":"Check the filters above","checkIn":"Check In","checkInFailed":"Check-in failed","checkOut":"Check out","chooseAppointmentType":"Choose appointment type","chooseLocation":"Choose a location","chooseProvider":"Choose a provider","chooseService":"Select service","completed":"Completed","Completed":"Completed","Contact":"Contact {{index}}","countMore_one":"{{count}} more","countMore_other":"{{count}} more","createNewAppointment":"Create new appointment","date":"Date","dateAppointmentIssued":"Date appointment issued","dateAppointmentIssuedCannotBeAfterAppointmentDate":"Date appointment issued cannot be after the appointment date","dateAppointmentScheduled":"Date appointment scheduled","dateOfBirth":"Date of birth","dateRange":"Set date range","dateTime":"Appointment time","day":"Day","daysOfWeek":"Days of the week","discard":"Discard","download":"Download","durationErrorMessage":"Duration should be greater than zero","durationInMinutes":"Duration (minutes)","early":"Early","edit":"Edit","editAppointment":"Edit appointment","endAppointmentAndVisitConfirmationMessage":"Checking the patient out will mark the appointment as complete, and close out the active visit for this patient.","endAppointmentConfirmation":"Are you sure you want to check the patient out for this appointment?","endAppointmentConfirmationMessage":"Checking the patient out will mark the appointment as complete.","failedToEndActiveVisit":"Failed to end active visit for {{patient}}","failedToLoadMetrics":"Failed to load","failedToUpdateVisit":"Failed to update visit","filterAppointments":"Filter appointments","filterAppointmentsByServiceType":"Filter appointments by service type","filterAppointmentsByStatus":"Filter appointments by status","filterTable":"Filter table","FRI":"FRI","gender":"Gender","highestServiceVolume":"Highest volume service: {{time}}","highestServiceVolumeCardTitle":"Highest volume service","identifier":"Identifier","invalidAppointmentStatusChange":"Cannot transition appointment with status {{currentStatus}} to status {{newStatus}}","invalidNumber":"Number is not valid","isRecurringAppointment":"Is this a recurring appointment?","itemsPerPage":"Items per page","loading":"Loading","location":"Location","markAppointmentAsCompletedMessage":"Marking appointment as completed will end the active visit of the patient","metricLoadErrorMessage":"Please contact your system administrator if the problem persists.","missed":"Missed","Missed":"Missed","MON":"MON","next":"Next","nextMonth":"Next month","nextPage":"Next page","no":"No","noAppointmentsToDisplay":"No appointments to display","noContent":"No Content","noCurrentAppointments":"There are no appointments scheduled for today to display for this patient","noPastAppointments":"There are no past appointments to display for this patient","notArrived":"Not arrived","note":"Note","notes":"Notes","noUpcomingAppointments":"No upcoming appointments found","noUpcomingAppointmentsForPatient":"There are no upcoming appointments to display for this patient","pageNumber":"Page number","past":"Past","patientDetails":"Patient Details","patientDoubleBooking":"Patient already booked for an appointment at this time","patientName":"Patient name","patients":"Patients","period":"Period","prev":"Prev","previousMonth":"Previous month","previousPage":"Previous page","provider":"Provider","providers":"Providers","providersBooked":"Providers booked: {{time}}","recurringAppointment":"Recurring Appointment","recurringAppointmentShouldHaveEndDate":"A recurring appointment should have an end date","repeatEvery":"Repeat every","SAT":"SAT","saveAndClose":"Save and close","saving":"Saving","scheduled":"Scheduled","Scheduled":"Scheduled","scheduledAppointments":"Scheduled appointments","scheduledForToday":"Scheduled For Today","selectALocation":"Select a location","selectAppointmentStatus":"Select status","selectAppointmentType":"Select an appointment type","selectOption":"Select an option","selectProvider":"Select a provider","selectService":"Select a service","selectStatus":"Select status","service":"Service","serviceName":"Service name","serviceType":"Service type","serviceUnavailable":"Appointment time is outside of service hours","status":"Status","SUN":"SUN","THU":"THU","time":"Time","today":"Today","todaysAppointment":"Today\'s Appointments","TUE":"TUE","type":"Type","unknownError":"An unknown error occurred","unscheduled":"Unscheduled","unscheduledAppointments":"Unscheduled appointments","unscheduledAppointments_lower":"unscheduled appointments","upcoming":"Upcoming","upcomingAppointments":"Upcoming appointments","updateError":"Error updating upcoming appointment","visitStartTime":"Visit start time","WED":"WED","week":"Week","yes":"Yes"}')}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([["5117"],{4300(e){e.exports=JSON.parse('{"action":"Action","actions":"Actions","add":"Add","addAppointments":"Add Appointments","age":"Age","allDay":"All day","appointment":"Appointment","appointmentCancelError":"Error cancelling appointment","appointmentCancelled":"Appointment Cancelled","appointmentCancelledSuccessfully":"Appointment cancelled successfully","appointmentCheckedIn":"Appointment Checked In","appointmentCheckedInWithExistingVisit":"Appointment checked in using existing active visit","appointmentCheckInFailed":"An error occurred while checking in the appointment","appointmentConflict":"Appointment conflict","appointmentDate":"Appointment date","appointmentDisplay":"<0>{{patientName}}</0> - {{serviceName}} - {{currentStatus}}","appointmentEdited":"Appointment edited","appointmentEditError":"Error editing appointment","appointmentEnded":"Appointment ended","appointmentEndedAndVisitClosedSuccessfully":"Appointment successfully ended and visit successfully closed","appointmentEndedButVisitNotClosedError":"Appointment ended, but error closing visit","appointmentEndedSuccessfully":"Appointment successfully ended.","appointmentEndError":"Error ending appointment","appointmentFormError":"Error scheduling appointment","appointmentHistory":"Appointment History","appointmentMarkedChecked":"Appointment marked as Checked In","appointmentNoteLabel":"Write an additional note","appointmentNotePlaceholder":"Write any additional points here","appointmentNotes":"Appointment Notes","appointmentNowVisible":"It is now visible on the Appointments page","appointments":"Appointments","Appointments":"Appointments","appointments_lower":"appointments","appointmentsCalendar":"Appointments calendar","appointmentScheduled":"Appointment scheduled","appointmentsForDate":"Appointments for: {{date}}","appointmentsTable":"Appointments table","appointmentStatus":"Appointment status","appointmentsUpdated":"Appointments updated","appointmentsUpdatedMessage":"Appointments for selected patients have been successfully updated","appointmentsUpdateFailed":"Appointments update failed","appointmentsUpdateFailedMessage":"Appointments update failed for {{patient}}. Reason: {{reason}}","appointmentToFulfill":"Select appointment to fulfill","appointmentType":"Appointment type","appointmentType_title":"Appointment Type","back":"Back","calendar":"Calendar","cameEarly":"Came Early","cancel":"Cancel","cancelAppointment":"Cancel Appointment","cancelAppointmentModalConfirmationText":"Are you sure you want to cancel this appointment?","cancelled":"Cancelled","Cancelled":"Cancelled","changeAppointmentsStatus":"Change appointments status","changeStatus":"Change status","changeStatusForSelectedAppointments":"Change the status for the following appointments.","checkedIn":"Checked in","CheckedIn":"Checked in","checkFilters":"Check the filters above","checkIn":"Check In","checkInFailed":"Check-in failed","checkOut":"Check out","chooseAppointmentType":"Choose appointment type","chooseLocation":"Choose a location","chooseProvider":"Choose a provider","chooseService":"Select service","completed":"Completed","Completed":"Completed","Contact":"Contact {{index}}","countMore_one":"{{count}} more","countMore_other":"{{count}} more","createNewAppointment":"Create new appointment","date":"Date","dateAppointmentIssued":"Date appointment issued","dateAppointmentIssuedCannotBeAfterAppointmentDate":"Date appointment issued cannot be after the appointment date","dateAppointmentScheduled":"Date appointment scheduled","dateOfBirth":"Date of birth","dateRange":"Set date range","dateTime":"Appointment time","day":"Day","daysOfWeek":"Days of the week","discard":"Discard","download":"Download","durationErrorMessage":"Duration should be greater than zero","durationInMinutes":"Duration (minutes)","early":"Early","edit":"Edit","editAppointment":"Edit appointment","endAppointmentAndVisitConfirmationMessage":"Checking the patient out will mark the appointment as complete, and close out the active visit for this patient.","endAppointmentConfirmation":"Are you sure you want to check the patient out for this appointment?","endAppointmentConfirmationMessage":"Checking the patient out will mark the appointment as complete.","failedToEndActiveVisit":"Failed to end active visit for {{patient}}","failedToLoadMetrics":"Failed to load","failedToUpdateVisit":"Failed to update visit","filterAppointments":"Filter appointments","filterAppointmentsByServiceType":"Filter appointments by service type","filterAppointmentsByStatus":"Filter appointments by status","filterTable":"Filter table","FRI":"FRI","gender":"Gender","highestServiceVolume":"Highest volume service: {{time}}","highestServiceVolumeCardTitle":"Highest volume service","identifier":"Identifier","invalidAppointmentStatusChange":"Cannot transition appointment with status {{currentStatus}} to status {{newStatus}}","invalidNumber":"Number is not valid","isRecurringAppointment":"Is this a recurring appointment?","itemsPerPage":"Items per page","loading":"Loading","location":"Location","markAppointmentAsCompletedMessage":"Marking appointment as completed will end the active visit of the patient","metricLoadErrorMessage":"Please contact your system administrator if the problem persists.","missed":"Missed","Missed":"Missed","MON":"MON","next":"Next","nextMonth":"Next month","nextPage":"Next page","no":"No","noAppointmentsToDisplay":"No appointments to display","noContent":"No Content","noCurrentAppointments":"There are no appointments scheduled for today to display for this patient","noPastAppointments":"There are no past appointments to display for this patient","notArrived":"Not arrived","note":"Note","notes":"Notes","noUpcomingAppointments":"No upcoming appointments found","noUpcomingAppointmentsForPatient":"There are no upcoming appointments to display for this patient","pageNumber":"Page number","past":"Past","patientDetails":"Patient Details","patientDoubleBooking":"Patient already booked for an appointment at this time","patientName":"Patient name","patients":"Patients","period":"Period","prev":"Prev","previousMonth":"Previous month","previousPage":"Previous page","provider":"Provider","providers":"Providers","providersBooked":"Providers booked: {{time}}","recurringAppointment":"Recurring Appointment","recurringAppointmentShouldHaveEndDate":"A recurring appointment should have an end date","repeatEvery":"Repeat every","Requested":"Requested","SAT":"SAT","saveAndClose":"Save and close","saving":"Saving","scheduled":"Scheduled","Scheduled":"Scheduled","scheduledAppointments":"Scheduled appointments","scheduledForToday":"Scheduled For Today","selectALocation":"Select a location","selectAppointmentStatus":"Select status","selectAppointmentType":"Select an appointment type","selectOption":"Select an option","selectProvider":"Select a provider","selectService":"Select a service","selectStatus":"Select status","service":"Service","serviceName":"Service name","serviceType":"Service type","serviceUnavailable":"Appointment time is outside of service hours","status":"Status","SUN":"SUN","THU":"THU","time":"Time","today":"Today","todaysAppointment":"Today\'s Appointments","TUE":"TUE","type":"Type","unknownError":"An unknown error occurred","unscheduled":"Unscheduled","unscheduledAppointments":"Unscheduled appointments","unscheduledAppointments_lower":"unscheduled appointments","upcoming":"Upcoming","upcomingAppointments":"Upcoming appointments","updateError":"Error updating upcoming appointment","Virtual":"Virtual","visitStartTime":"Visit start time","WalkIn":"Walk In","WED":"WED","week":"Week","yes":"Yes"}')}}]);
|
package/dist/5117.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"5117.js","sources":["webpack://@openmrs/esm-appointments-app/json|/home/runner/work/openmrs-esm-patient-management/openmrs-esm-patient-management/packages/esm-appointments-app/translations/en.json"],"names":["JSON"],"mappings":"qJAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"5117.js","sources":["webpack://@openmrs/esm-appointments-app/json|/home/runner/work/openmrs-esm-patient-management/openmrs-esm-patient-management/packages/esm-appointments-app/translations/en.json"],"names":["JSON"],"mappings":"qJAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,s5O"}
|