@openmrs/esm-appointments-app 9.2.1-pre.7352 → 9.2.1-pre.7358
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 +10 -14
- package/dist/2891.js +1 -0
- package/dist/2891.js.map +1 -0
- package/dist/{5488.js → 3379.js} +1 -1
- package/dist/{5488.js.map → 3379.js.map} +1 -1
- package/dist/5670.js +1 -0
- package/dist/5670.js.map +1 -0
- package/dist/5755.js +1 -1
- package/dist/5755.js.map +1 -1
- package/dist/6886.js +1 -1
- package/dist/8600.js +2 -0
- package/dist/{9190.js.LICENSE.txt → 8600.js.LICENSE.txt} +15 -0
- package/dist/8600.js.map +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-appointments-app.js +1 -1
- package/dist/openmrs-esm-appointments-app.js.buildmanifest.json +135 -135
- package/dist/openmrs-esm-appointments-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/dist/1739.js +0 -2
- package/dist/1739.js.LICENSE.txt +0 -14
- package/dist/1739.js.map +0 -1
- package/dist/9190.js +0 -2
- package/dist/9190.js.map +0 -1
- package/dist/9500.js +0 -1
- package/dist/9500.js.map +0 -1
package/dist/6886.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[6886],{57691:(e,t,n)=>{"use strict";n.d(t,{AO:()=>s,BC:()=>i,Je:()=>d,Mq:()=>l,gC:()=>r,gL:()=>a,i$:()=>p,lw:()=>o}),window.getOpenmrsSpaBase;var o="".concat(window.spaBase,"/home"),i="YYYY-MM-DDTHH:mm:ss.SSSZZ",a="Appointment Location",s="@openmrs/esm-appointments-app",r="appointments-form-workspace",p="DD/MM/YYYY",l=[{id:"MONDAY",label:"Monday",labelCode:"monday",order:0},{id:"TUESDAY",label:"Tuesday",labelCode:"tuesday",order:1},{id:"WEDNESDAY",label:"Wednesday",labelCode:"wednesday",order:2},{id:"THURSDAY",label:"Thursday",labelCode:"thursday",order:3},{id:"FRIDAY",label:"Friday",labelCode:"friday",order:4},{id:"SATURDAY",label:"Saturday",labelCode:"saturday",order:5},{id:"SUNDAY",label:"Sunday",labelCode:"sunday",order:6}],d=["patientName","identifier","location","serviceType","status","dateTime","provider"]},76886:(e,t,n)=>{"use strict";n.r(t),n.d(t,{appointmentsCalendarDashboardLink:()=>P,appointmentsDashboard:()=>B,appointmentsDashboardLink:()=>k,appointmentsFormWorkspace:()=>Y,appointmentsList:()=>O,cancelAppointmentModal:()=>R,earlyAppointments:()=>L,endAppointmentModal:()=>q,exportedAppointmentsFormWorkspace:()=>N,homeAppointments:()=>D,homeAppointmentsTile:()=>z,importTranslation:()=>j,metricsCardHighestVolumeService:()=>F,metricsCardProvidersBooked:()=>x,metricsCardScheduledAppointments:()=>W,patientAppointmentsDetailedSummary:()=>E,patientAppointmentsOverview:()=>I,patientAppointmentsSummaryDashboardLink:()=>U,patientUpcomingAppointmentsWidget:()=>M,root:()=>C,startupApp:()=>A});var o=n(54440),i=n(95008),a=n(1343),s=n.n(a),r=n(8877),p=function(e){return function(){return s().createElement(r.BrowserRouter,null,s().createElement(o.DashboardExtension,{path:e.path,title:e.title,basePath:e.basePath,icon:e.icon}))}},l={path:"appointments",slot:"clinical-appointments-dashboard-slot",title:"Appointments",basePath:"".concat(window.spaBase,"/home")},d={path:"calendar",slot:"clinical-appointments-dashboard-slot",title:"Appointments calendar",basePath:"".concat(window.spaBase,"/home")},c={slot:"patient-chart-appointments-dashboard-slot",columns:1,title:"Appointments",path:"Appointments",icon:"omrs-icon-event-schedule"},u={title:{_type:o.Type.String,_description:"The title to display, may be a translation key or plain text",_default:"expected"},status:{_type:o.Type.String,_description:"The status to filter on, must be one of the valid appointment statues: Requested, Scheduled, CheckedIn, Completed, Cancelled, Missed",_default:"Scheduled"},showForPastDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a past date",_default:!1},showForToday:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for today",_default:!0},showForFutureDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a future date",_default:!0}},h={title:{_type:o.Type.String,_description:"The title to display, may be a translation key or plain text",_default:"checkedIn"},status:{_type:o.Type.String,_description:"The status to filter on, must be one of the valid appointment statues: Requested, Scheduled, CheckedIn, Completed, Cancelled, Missed",_default:"CheckedIn"},showForPastDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a past date",_default:!1},showForToday:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for today",_default:!0},showForFutureDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a future date",_default:!1}},y={title:{_type:o.Type.String,_description:"The title to display, may be a translation key or plain text",_default:"completed"},status:{_type:o.Type.String,_description:"The status to filter on, must be one of the valid appointment statues: Requested, Scheduled, CheckedIn, Completed, Cancelled, Missed",_default:"Completed"},showForPastDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a past date",_default:!0},showForToday:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for today",_default:!0},showForFutureDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a future date",_default:!1}},f={title:{_type:o.Type.String,_description:"The title to display, may be a translation key or plain text",_default:"missed"},status:{_type:o.Type.String,_description:"The status to filter on, must be one of the valid appointment statues: Requested, Scheduled, CheckedIn, Completed, Cancelled, Missed",_default:"Missed"},showForPastDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a past date",_default:!0},showForToday:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for today",_default:!1},showForFutureDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a future date",_default:!1}},m={title:{_type:o.Type.String,_description:"The title to display, may be a translation key or plain text",_default:"cancelled"},status:{_type:o.Type.String,_description:"The status to filter on, must be one of the valid appointment statues: Requested, Scheduled, CheckedIn, Completed, Cancelled, Missed",_default:"Cancelled"},showForPastDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a past date",_default:!0},showForToday:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for today",_default:!0},showForFutureDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a future date",_default:!0}},_={title:{_type:o.Type.String,_description:"The title to display, may be a translation key or plain text",_default:"cameEarly"},showForPastDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a past date",_default:!0},showForToday:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for today",_default:!0},showForFutureDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a future date",_default:!1}};function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function w(e,t,n,o,i,a,s){try{var r=e[a](s),p=r.value}catch(e){return void n(e)}r.done?t(p):Promise.resolve(p).then(o,i)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){g(e,t,n[t])})}return e}var v="@openmrs/esm-appointments-app",S={featureName:"appointments",moduleName:v},j=n(84767);function A(){var e="".concat(window.spaBase,"/home/appointments");(0,o.defineConfigSchema)(v,i.Q),(0,o.defineExtensionConfigSchema)("expected-appointments-panel",u),(0,o.defineExtensionConfigSchema)("checked-in-appointments-panel",h),(0,o.defineExtensionConfigSchema)("completed-appointments-panel",y),(0,o.defineExtensionConfigSchema)("missed-appointments-panel",f),(0,o.defineExtensionConfigSchema)("cancelled-appointments-panel",m),(0,o.defineExtensionConfigSchema)("early-appointments-panel",_),(0,o.registerBreadcrumbs)([{title:"Appointments",path:e,parent:"".concat(window.spaBase,"/home")},{path:"".concat(window.spaBase,"/patient-list/:forDate/:serviceName"),title:function(e){var t,n,o=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,a=[],s=!0,r=!1;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(a.push(o.value),!t||a.length!==t);s=!0);}catch(e){r=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(r)throw i}}return a}}(t,n)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=(o[0],o[1]);return"Patient Lists / ".concat(decodeURI(i))},parent:"".concat(window.spaBase)}])}var C=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(1559),n.e(7638),n.e(5434),n.e(2339),n.e(8241),n.e(4036),n.e(7999),n.e(4515),n.e(1431),n.e(592)]).then(n.bind(n,70592))},S),k=(0,o.getSyncLifecycle)(p(l),S),P=(0,o.getSyncLifecycle)(p(d),S),B=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(1559),n.e(7638),n.e(5434),n.e(2339),n.e(8241),n.e(4036),n.e(1431)]).then(n.bind(n,81431))},S),D=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(1559),n.e(3968),n.e(5434),n.e(2339),n.e(8241),n.e(4036),n.e(525),n.e(849)]).then(n.bind(n,50849))},S),O=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(1559),n.e(3968),n.e(5434),n.e(2339),n.e(8241),n.e(4036),n.e(525),n.e(6931)]).then(n.bind(n,86931))},S),L=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(1559),n.e(3968),n.e(5434),n.e(2339),n.e(8241),n.e(4036),n.e(525),n.e(6112)]).then(n.bind(n,16112))},S),W=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5488),n.e(5434),n.e(2339),n.e(5755),n.e(4599)]).then(n.bind(n,94599))},S),F=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5488),n.e(5434),n.e(2339),n.e(5755),n.e(6467)]).then(n.bind(n,76467))},S),x=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5488),n.e(5434),n.e(2339),n.e(5755),n.e(8784)]).then(n.bind(n,68784))},S),U=(0,o.getAsyncLifecycle)(function(){return(e=function(){return function(e,t){var n,o,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=r(0),s.throw=r(1),s.return=r(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function r(r){return function(p){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,r[0]&&(a=0)),a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,p])}}}(this,function(e){switch(e.label){case 0:return[4,n.e(7999).then(n.t.bind(n,97999,23))];case 1:return[2,{default:e.sent().createDashboardLink((t=T({},c),o={moduleName:v},o=null!=o?o:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}),t))}]}var t,o})},function(){var t=this,n=arguments;return new Promise(function(o,i){var a=e.apply(t,n);function s(e){w(a,o,i,s,r,"next",e)}function r(e){w(a,o,i,s,r,"throw",e)}s(void 0)})})();var e},S),E=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(5434),n.e(2339),n.e(8241),n.e(7999),n.e(4515),n.e(7294)]).then(n.bind(n,94515))},S),I=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(5434),n.e(2339),n.e(8241),n.e(7999),n.e(4515),n.e(449)]).then(n.bind(n,84772))},S),M=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(5434),n.e(2339),n.e(8241),n.e(7999),n.e(4745)]).then(n.bind(n,34745))},S),R=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(5434),n.e(2339),n.e(8241),n.e(3431)]).then(n.bind(n,73431))},S),Y=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(5666),n.e(5434),n.e(2339),n.e(8241),n.e(4889)]).then(n.bind(n,74889))},S),N=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(5666),n.e(5434),n.e(2339),n.e(8241),n.e(4889),n.e(2265)]).then(n.bind(n,72265))},S),q=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(5434),n.e(2339),n.e(8241),n.e(9712)]).then(n.bind(n,79712))},S),z=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(5434),n.e(2339),n.e(8241),n.e(3167)]).then(n.bind(n,13167))},S)},84767:(e,t,n)=>{var o={"./am.json":[81197,1197],"./ar.json":[14132,4132],"./ar_SY.json":[37617,7617],"./bn.json":[77159,7159],"./cs.json":[86589,6589],"./de.json":[34944,4944],"./en.json":[34300,4300],"./en_US.json":[59569,9569],"./es.json":[93099,3099],"./es_MX.json":[88349,8349],"./fr.json":[94055,4055],"./he.json":[84652,4652],"./hi.json":[36840,6840],"./hi_IN.json":[55442,5442],"./id.json":[72690,2690],"./it.json":[9538,9538],"./ka.json":[70795,795],"./km.json":[54335,4335],"./ku.json":[9895,9895],"./ky.json":[88163,8163],"./lg.json":[64618,4618],"./ne.json":[12146,2146],"./pl.json":[41119,1119],"./pt.json":[96679,6679],"./pt_BR.json":[36468,6468],"./qu.json":[35173,5173],"./ro_RO.json":[46022,6022],"./ru_RU.json":[60986,986],"./si.json":[56859,6859],"./sq.json":[88371,8371],"./sw.json":[89913,9913],"./sw_KE.json":[88618,8618],"./tr.json":[55241,5241],"./tr_TR.json":[99900,9900],"./uk.json":[60723,723],"./uz.json":[43584,3584],"./uz@Latn.json":[27097,7097],"./uz_UZ.json":[70890,890],"./vi.json":[79214,9214],"./zh.json":[35661,5661],"./zh_CN.json":[99879,9879],"./zh_TW.json":[10439,439]};function i(e){if(!n.o(o,e))return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=o[e],i=t[0];return n.e(t[1]).then(()=>n(i))}i.keys=()=>Object.keys(o),i.id=84767,e.exports=i},95008:(e,t,n)=>{"use strict";n.d(t,{Q:()=>a});var o=n(54440),i=n(57691),a={allowAllDayAppointments:{_type:o.Type.Boolean,_default:!1,_description:"Whether to allow scheduling of all-day appointments (vs appointments with start time and end time)"},appointmentStatuses:{_type:o.Type.Array,_default:["Requested","Scheduled","CheckedIn","Completed","Cancelled","Missed"],_description:"Configurable appointment status (status of appointments)",_elements:{_type:o.Type.String,_description:"Status of an appointment"}},appointmentTypes:{_type:o.Type.Array,_default:["Scheduled"],_description:"Configurable appointment types (types of appointments)",_elements:{_type:o.Type.String,_description:"Type of an appointment"}},checkInButton:{enabled:{_type:o.Type.Boolean,_default:!0,_description:'Whether the check-in button on the "Appointments" list should be enabled'},showIfActiveVisit:{_type:o.Type.Boolean,_default:!1,_description:"Whether to show the check-in button if the patient currently has an active visit"},customUrl:{_type:o.Type.String,_default:"",_description:"Custom URL to open when clicking the check-in button (instead of thes start visit form)"}},checkOutButton:{enabled:{_type:o.Type.Boolean,_default:!0,_description:'Whether the check-out button on the "Appointments" list should be disabled'},customUrl:{_type:o.Type.String,_default:"",_description:"Custom URL to open when clicking the check-out button"}},customPatientChartUrl:{_type:o.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_description:"Template URL that will be used when clicking on the patient name in the queues table.\n Available argument: patientUuid, openmrsSpaBase, openBase\n (openmrsSpaBase and openBase are available to any <ConfigurableLink>)",_validators:[o.validators.isUrlWithTemplateParameters(["patientUuid"])]},includePhoneNumberInExcelSpreadsheet:{_type:o.Type.Boolean,_default:!1,_description:"Whether to include phone numbers in the exported Excel spreadsheet"},patientIdentifierType:{_type:o.Type.String,_default:"",_description:"The name of the patient identifier type to be used for the patient identifier field"},showUnscheduledAppointmentsTab:{_type:o.Type.Boolean,_default:!1,_description:"Whether to show the Unscheduled Appointments tab. Note that configuring this to true requires a custom unscheduledAppointment endpoint not currently available"},appointmentsTableColumns:{_type:o.Type.Array,_description:"Columns to display in the appointment table. Available options: "+i.Je.join(", "),_default:["patientName","identifier","location","serviceType","status"],_elements:{_type:o.Type.String,_validators:[o.validators.oneOf(i.Je)]}}}}}]);
|
|
1
|
+
(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[6886],{57691:(e,t,n)=>{"use strict";n.d(t,{AO:()=>s,BC:()=>i,Je:()=>d,Mq:()=>l,gC:()=>r,gL:()=>a,i$:()=>p,lw:()=>o}),window.getOpenmrsSpaBase;var o="".concat(window.spaBase,"/home"),i="YYYY-MM-DDTHH:mm:ss.SSSZZ",a="Appointment Location",s="@openmrs/esm-appointments-app",r="appointments-form-workspace",p="DD/MM/YYYY",l=[{id:"MONDAY",label:"Monday",labelCode:"monday",order:0},{id:"TUESDAY",label:"Tuesday",labelCode:"tuesday",order:1},{id:"WEDNESDAY",label:"Wednesday",labelCode:"wednesday",order:2},{id:"THURSDAY",label:"Thursday",labelCode:"thursday",order:3},{id:"FRIDAY",label:"Friday",labelCode:"friday",order:4},{id:"SATURDAY",label:"Saturday",labelCode:"saturday",order:5},{id:"SUNDAY",label:"Sunday",labelCode:"sunday",order:6}],d=["patientName","identifier","location","serviceType","status","dateTime","provider"]},76886:(e,t,n)=>{"use strict";n.r(t),n.d(t,{appointmentsCalendarDashboardLink:()=>P,appointmentsDashboard:()=>B,appointmentsDashboardLink:()=>k,appointmentsFormWorkspace:()=>Y,appointmentsList:()=>O,cancelAppointmentModal:()=>R,earlyAppointments:()=>L,endAppointmentModal:()=>q,exportedAppointmentsFormWorkspace:()=>N,homeAppointments:()=>D,homeAppointmentsTile:()=>z,importTranslation:()=>j,metricsCardHighestVolumeService:()=>F,metricsCardProvidersBooked:()=>x,metricsCardScheduledAppointments:()=>W,patientAppointmentsDetailedSummary:()=>E,patientAppointmentsOverview:()=>I,patientAppointmentsSummaryDashboardLink:()=>U,patientUpcomingAppointmentsWidget:()=>M,root:()=>C,startupApp:()=>A});var o=n(54440),i=n(95008),a=n(1343),s=n.n(a),r=n(8877),p=function(e){return function(){return s().createElement(r.BrowserRouter,null,s().createElement(o.DashboardExtension,{path:e.path,title:e.title,basePath:e.basePath,icon:e.icon}))}},l={path:"appointments",slot:"clinical-appointments-dashboard-slot",title:"Appointments",basePath:"".concat(window.spaBase,"/home")},d={path:"calendar",slot:"clinical-appointments-dashboard-slot",title:"Appointments calendar",basePath:"".concat(window.spaBase,"/home")},c={slot:"patient-chart-appointments-dashboard-slot",columns:1,title:"Appointments",path:"Appointments",icon:"omrs-icon-event-schedule"},u={title:{_type:o.Type.String,_description:"The title to display, may be a translation key or plain text",_default:"expected"},status:{_type:o.Type.String,_description:"The status to filter on, must be one of the valid appointment statues: Requested, Scheduled, CheckedIn, Completed, Cancelled, Missed",_default:"Scheduled"},showForPastDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a past date",_default:!1},showForToday:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for today",_default:!0},showForFutureDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a future date",_default:!0}},h={title:{_type:o.Type.String,_description:"The title to display, may be a translation key or plain text",_default:"checkedIn"},status:{_type:o.Type.String,_description:"The status to filter on, must be one of the valid appointment statues: Requested, Scheduled, CheckedIn, Completed, Cancelled, Missed",_default:"CheckedIn"},showForPastDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a past date",_default:!1},showForToday:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for today",_default:!0},showForFutureDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a future date",_default:!1}},y={title:{_type:o.Type.String,_description:"The title to display, may be a translation key or plain text",_default:"completed"},status:{_type:o.Type.String,_description:"The status to filter on, must be one of the valid appointment statues: Requested, Scheduled, CheckedIn, Completed, Cancelled, Missed",_default:"Completed"},showForPastDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a past date",_default:!0},showForToday:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for today",_default:!0},showForFutureDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a future date",_default:!1}},f={title:{_type:o.Type.String,_description:"The title to display, may be a translation key or plain text",_default:"missed"},status:{_type:o.Type.String,_description:"The status to filter on, must be one of the valid appointment statues: Requested, Scheduled, CheckedIn, Completed, Cancelled, Missed",_default:"Missed"},showForPastDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a past date",_default:!0},showForToday:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for today",_default:!1},showForFutureDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a future date",_default:!1}},m={title:{_type:o.Type.String,_description:"The title to display, may be a translation key or plain text",_default:"cancelled"},status:{_type:o.Type.String,_description:"The status to filter on, must be one of the valid appointment statues: Requested, Scheduled, CheckedIn, Completed, Cancelled, Missed",_default:"Cancelled"},showForPastDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a past date",_default:!0},showForToday:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for today",_default:!0},showForFutureDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a future date",_default:!0}},_={title:{_type:o.Type.String,_description:"The title to display, may be a translation key or plain text",_default:"cameEarly"},showForPastDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a past date",_default:!0},showForToday:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for today",_default:!0},showForFutureDate:{_type:o.Type.Boolean,_description:"Whether to display this panel when viewing scheduled appointments for a future date",_default:!1}};function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function w(e,t,n,o,i,a,s){try{var r=e[a](s),p=r.value}catch(e){return void n(e)}r.done?t(p):Promise.resolve(p).then(o,i)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){g(e,t,n[t])})}return e}var v="@openmrs/esm-appointments-app",S={featureName:"appointments",moduleName:v},j=n(84767);function A(){var e="".concat(window.spaBase,"/home/appointments");(0,o.defineConfigSchema)(v,i.Q),(0,o.defineExtensionConfigSchema)("expected-appointments-panel",u),(0,o.defineExtensionConfigSchema)("checked-in-appointments-panel",h),(0,o.defineExtensionConfigSchema)("completed-appointments-panel",y),(0,o.defineExtensionConfigSchema)("missed-appointments-panel",f),(0,o.defineExtensionConfigSchema)("cancelled-appointments-panel",m),(0,o.defineExtensionConfigSchema)("early-appointments-panel",_),(0,o.registerBreadcrumbs)([{title:"Appointments",path:e,parent:"".concat(window.spaBase,"/home")},{path:"".concat(window.spaBase,"/patient-list/:forDate/:serviceName"),title:function(e){var t,n,o=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,a=[],s=!0,r=!1;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(a.push(o.value),!t||a.length!==t);s=!0);}catch(e){r=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(r)throw i}}return a}}(t,n)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=(o[0],o[1]);return"Patient Lists / ".concat(decodeURI(i))},parent:"".concat(window.spaBase)}])}var C=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(1559),n.e(7638),n.e(5434),n.e(2339),n.e(8241),n.e(4036),n.e(7999),n.e(4515),n.e(1431),n.e(592)]).then(n.bind(n,70592))},S),k=(0,o.getSyncLifecycle)(p(l),S),P=(0,o.getSyncLifecycle)(p(d),S),B=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(1559),n.e(7638),n.e(5434),n.e(2339),n.e(8241),n.e(4036),n.e(1431)]).then(n.bind(n,81431))},S),D=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(1559),n.e(3968),n.e(5434),n.e(2339),n.e(8241),n.e(4036),n.e(525),n.e(849)]).then(n.bind(n,50849))},S),O=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(1559),n.e(3968),n.e(5434),n.e(2339),n.e(8241),n.e(4036),n.e(525),n.e(6931)]).then(n.bind(n,86931))},S),L=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(1559),n.e(3968),n.e(5434),n.e(2339),n.e(8241),n.e(4036),n.e(525),n.e(6112)]).then(n.bind(n,16112))},S),W=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3379),n.e(5434),n.e(2339),n.e(5755),n.e(4599)]).then(n.bind(n,94599))},S),F=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3379),n.e(5434),n.e(2339),n.e(5755),n.e(6467)]).then(n.bind(n,76467))},S),x=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(3379),n.e(5434),n.e(2339),n.e(5755),n.e(8784)]).then(n.bind(n,68784))},S),U=(0,o.getAsyncLifecycle)(function(){return(e=function(){return function(e,t){var n,o,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=r(0),s.throw=r(1),s.return=r(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function r(r){return function(p){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,r[0]&&(a=0)),a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,p])}}}(this,function(e){switch(e.label){case 0:return[4,n.e(7999).then(n.t.bind(n,97999,23))];case 1:return[2,{default:e.sent().createDashboardLink((t=T({},c),o={moduleName:v},o=null!=o?o:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}),t))}]}var t,o})},function(){var t=this,n=arguments;return new Promise(function(o,i){var a=e.apply(t,n);function s(e){w(a,o,i,s,r,"next",e)}function r(e){w(a,o,i,s,r,"throw",e)}s(void 0)})})();var e},S),E=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(5434),n.e(2339),n.e(8241),n.e(7999),n.e(4515),n.e(7294)]).then(n.bind(n,94515))},S),I=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(5434),n.e(2339),n.e(8241),n.e(7999),n.e(4515),n.e(449)]).then(n.bind(n,84772))},S),M=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(5434),n.e(2339),n.e(8241),n.e(7999),n.e(4745)]).then(n.bind(n,34745))},S),R=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(5434),n.e(2339),n.e(8241),n.e(3431)]).then(n.bind(n,73431))},S),Y=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(5666),n.e(5434),n.e(2339),n.e(8241),n.e(4889)]).then(n.bind(n,74889))},S),N=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(5666),n.e(5434),n.e(2339),n.e(8241),n.e(4889),n.e(2265)]).then(n.bind(n,72265))},S),q=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(5434),n.e(2339),n.e(8241),n.e(9712)]).then(n.bind(n,79712))},S),z=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(66),n.e(5257),n.e(5434),n.e(2339),n.e(8241),n.e(3167)]).then(n.bind(n,13167))},S)},84767:(e,t,n)=>{var o={"./am.json":[81197,1197],"./ar.json":[14132,4132],"./ar_SY.json":[37617,7617],"./bn.json":[77159,7159],"./cs.json":[86589,6589],"./de.json":[34944,4944],"./en.json":[34300,4300],"./en_US.json":[59569,9569],"./es.json":[93099,3099],"./es_MX.json":[88349,8349],"./fr.json":[94055,4055],"./he.json":[84652,4652],"./hi.json":[36840,6840],"./hi_IN.json":[55442,5442],"./id.json":[72690,2690],"./it.json":[9538,9538],"./ka.json":[70795,795],"./km.json":[54335,4335],"./ku.json":[9895,9895],"./ky.json":[88163,8163],"./lg.json":[64618,4618],"./ne.json":[12146,2146],"./pl.json":[41119,1119],"./pt.json":[96679,6679],"./pt_BR.json":[36468,6468],"./qu.json":[35173,5173],"./ro_RO.json":[46022,6022],"./ru_RU.json":[60986,986],"./si.json":[56859,6859],"./sq.json":[88371,8371],"./sw.json":[89913,9913],"./sw_KE.json":[88618,8618],"./tr.json":[55241,5241],"./tr_TR.json":[99900,9900],"./uk.json":[60723,723],"./uz.json":[43584,3584],"./uz@Latn.json":[27097,7097],"./uz_UZ.json":[70890,890],"./vi.json":[79214,9214],"./zh.json":[35661,5661],"./zh_CN.json":[99879,9879],"./zh_TW.json":[10439,439]};function i(e){if(!n.o(o,e))return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=o[e],i=t[0];return n.e(t[1]).then(()=>n(i))}i.keys=()=>Object.keys(o),i.id=84767,e.exports=i},95008:(e,t,n)=>{"use strict";n.d(t,{Q:()=>a});var o=n(54440),i=n(57691),a={allowAllDayAppointments:{_type:o.Type.Boolean,_default:!1,_description:"Whether to allow scheduling of all-day appointments (vs appointments with start time and end time)"},appointmentStatuses:{_type:o.Type.Array,_default:["Requested","Scheduled","CheckedIn","Completed","Cancelled","Missed"],_description:"Configurable appointment status (status of appointments)",_elements:{_type:o.Type.String,_description:"Status of an appointment"}},appointmentTypes:{_type:o.Type.Array,_default:["Scheduled"],_description:"Configurable appointment types (types of appointments)",_elements:{_type:o.Type.String,_description:"Type of an appointment"}},checkInButton:{enabled:{_type:o.Type.Boolean,_default:!0,_description:'Whether the check-in button on the "Appointments" list should be enabled'},showIfActiveVisit:{_type:o.Type.Boolean,_default:!1,_description:"Whether to show the check-in button if the patient currently has an active visit"},customUrl:{_type:o.Type.String,_default:"",_description:"Custom URL to open when clicking the check-in button (instead of thes start visit form)"}},checkOutButton:{enabled:{_type:o.Type.Boolean,_default:!0,_description:'Whether the check-out button on the "Appointments" list should be disabled'},customUrl:{_type:o.Type.String,_default:"",_description:"Custom URL to open when clicking the check-out button"}},customPatientChartUrl:{_type:o.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_description:"Template URL that will be used when clicking on the patient name in the queues table.\n Available argument: patientUuid, openmrsSpaBase, openBase\n (openmrsSpaBase and openBase are available to any <ConfigurableLink>)",_validators:[o.validators.isUrlWithTemplateParameters(["patientUuid"])]},includePhoneNumberInExcelSpreadsheet:{_type:o.Type.Boolean,_default:!1,_description:"Whether to include phone numbers in the exported Excel spreadsheet"},patientIdentifierType:{_type:o.Type.String,_default:"",_description:"The name of the patient identifier type to be used for the patient identifier field"},showUnscheduledAppointmentsTab:{_type:o.Type.Boolean,_default:!1,_description:"Whether to show the Unscheduled Appointments tab. Note that configuring this to true requires a custom unscheduledAppointment endpoint not currently available"},appointmentsTableColumns:{_type:o.Type.Array,_description:"Columns to display in the appointment table. Available options: "+i.Je.join(", "),_default:["patientName","identifier","location","serviceType","status"],_elements:{_type:o.Type.String,_validators:[o.validators.oneOf(i.Je)]}}}}}]);
|