@kenyaemr/esm-ward-app 8.5.4-pre.43 → 8.5.4-pre.47

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.
@@ -10,4 +10,4 @@
10
10
  │ main.js
11
11
  
12
12
 
13
- Rspack compiled with 2 warnings in 30.44 s
13
+ Rspack compiled with 2 warnings in 32.66 s
package/dist/3261.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([["3261"],{98488:function(e,t,r){r.d(t,{IC:()=>s,b4:()=>c});var n=r(10558),o=r(31262),i=r(66002),a=r(93498);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t,r,n,o,i,a){try{var u=e[i](a),l=u.value}catch(e){r(e);return}u.done?t(l):Promise.resolve(l).then(n,o)}var c=function(){var e,t=(0,i.useTranslation)().t,r=(null!=(e=(0,n.useAppContext)("ward-view-context"))?e:{}).wardPatientGroupDetails,o=(0,n.useSession)();return{handleDischarge:function(e,i,a,u,c){var s;return(s=function(){var e,l,s,d,f;return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(a,"next",{value:l(0)}),u(a,"throw",{value:l(1)}),u(a,"return",{value:l(2)}),"function"==typeof Symbol&&u(a,Symbol.iterator,{value:function(){return this}}),a;function l(u){return function(l){var c=[u,l];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(p){var v,h,m,y,b,g,S,w,k,E;switch(p.label){case 0:return p.trys.push([0,4,5,6]),v=i.patient.uuid,h=a.exitFromInpatientEncounterType,m=null!=c?c:null==o?void 0:o.sessionLocation,y=null==o?void 0:o.currentProvider,b=u.uuid,g=a.clinicianEncounterRole,[4,(S={patient:v,encounterType:h,location:null==m?void 0:m.uuid,encounterProviders:[{provider:null==y?void 0:y.uuid,encounterRole:null==g?void 0:g.uuid}],obs:[],visit:b},(0,n.openmrsFetch)("".concat(n.restBaseUrl,"/encounter"),{method:"POST",body:S,headers:{"Content-Type":"application/json"}}))];case 1:if(!(null==(l=p.sent())?void 0:l.ok))throw Error("Failed to create discharge encounter");if(!(null==i||null==(e=i.bed)?void 0:e.id))return[3,3];return[4,(w=i.bed.id,k=null==i||null==(s=i.patient)?void 0:s.uuid,(0,n.openmrsFetch)("".concat(n.restBaseUrl,"/beds/").concat(w,"?patientUuid=").concat(k),{method:"DELETE"}))];case 2:if(!(null==(d=p.sent())?void 0:d.ok))throw Error("Failed to remove patient from bed");p.label=3;case 3:return(0,n.showSnackbar)({title:t("patientWasDischarged","Patient was discharged"),kind:"success"}),[3,6];case 4:return f=p.sent(),(0,n.showSnackbar)({title:t("errorDischargingPatient","Error discharging patient"),subtitle:(null!=(E=Error)&&"undefined"!=typeof Symbol&&E[Symbol.hasInstance]?!!E[Symbol.hasInstance](f):f instanceof E)?f.message:"Unknown error occurred",kind:"error"}),[3,6];case 5:return null==r||r.mutate(),[7];case 6:return[2]}})},function(){var e=this,t=arguments;return new Promise(function(r,n){var o=s.apply(e,t);function i(e){l(o,r,n,i,a,"next",e)}function a(e){l(o,r,n,i,a,"throw",e)}i(void 0)})})()}}},s=function(e,t,r){var i=(0,n.useConfig)().dailyBedFeeBillableService,l=null==t?void 0:t.toISOString(),c=null==r?void 0:r.toISOString(),s="".concat(n.restBaseUrl,"/cashier/bill?v=").concat("custom:(uuid,display,voided,voidReason,dateCreated,patient:(uuid,display))","&patientUuid=").concat(e,"&createdOnOrAfter=").concat(l,"&createdOnOrBefore=").concat(c),d=(0,a.ZP)(t&&r?s:null),f=d.data,p=d.isLoading,v=d.error,h=(0,o.useMemo)(function(){var t,r;return(null!=(t=null==f||null==(r=f.data)?void 0:r.results)?t:[]).filter(function(t){return!t.voided&&t.patient.uuid===e})},[f,e]),m=(0,o.useMemo)(function(){return h.filter(function(e){return e.lineItems.some(function(e){return"PENDING"===e.paymentStatus})})},[h]),y=(0,o.useCallback)(function(e){return!e||e<=0||h.reduce(function(e,t){var r,n=(null!=(r=t.lineItems)?r:[]).filter(function(e){return e.itemOrServiceConceptUuid===i});return e.push.apply(e,function(e){if(Array.isArray(e))return u(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return u(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),e},[]).reduce(function(e,t){return e+t.quantity},0)>=e},[i,h]);return{error:v,isLoading:p,bills:h,pendingBills:m,dailyBedFeeSettled:y}}},61363:function(e,t,r){r.r(t),r.d(t,{default:()=>s});var n=r(31262),o=r.n(n),i=r(66002),a=r(65992),u=r(10558),l=r(98488);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}let s=function(e){var t,r=(0,i.useTranslation)().t,s=(t=(0,n.useState)(!1),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,u=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),i.length!==t);a=!0);}catch(e){u=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(u)throw n}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return c(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=s[0],f=s[1],p=e.workspaceProps,v=p.patientUuid,h=p.wardPatient,m=p.formUuid,y=p.dischargePatientOnSuccesfullSubmission,b=void 0===y||y,g=e.closeWorkspace,S=(null!=h?h:{}).visit,w=(0,u.usePatient)(v),k=w.patient,E=w.isLoading,C=w.error,I=(0,u.useEmrConfiguration)(),U=I.emrConfiguration,P=I.isLoadingEmrConfiguration,O=I.errorFetchingEmrConfiguration,A=(0,l.b4)().handleDischarge,T=(0,n.useMemo)(function(){var e,t,r;return{view:"form",formUuid:m,visitUuid:null!=(e=null==S?void 0:S.uuid)?e:null,visitTypeUuid:null!=(t=null==S||null==(r=S.visitType)?void 0:r.uuid)?t:null,patientUuid:null!=v?v:null,patient:k,encounterUuid:"",closeWorkspaceWithSavedChanges:function(){return g({discardUnsavedChanges:!1})},closeWorkspace:g,promptBeforeClosing:function(){return f(!0)},handlePostResponse:function(e){b&&A(e,h,U,S)}}},[v,S,k,g,f,U,A,b,m,h]),D=C||O;return E||P?o().createElement(a.lSo,{description:r("loading","Loading"),iconDescription:r("loading","Loading data...")}):D?o().createElement(a.K0D,{"aria-label":r("error","Error"),kind:"error",onClose:function(){},onCloseButtonClick:function(){},statusIconDescription:"notification",subtitle:r("errorLoadingPatientWorkspace","Error loading patient workspace {{errorMessage}}",{errorMessage:null==D?void 0:D.message}),title:r("error","Error")}):o().createElement(u.Workspace2,{title:r("discharge","Discharge"),hasUnsavedChanges:d},o().createElement("div",null,k&&o().createElement(u.ExtensionSlot,{name:"form-widget-slot",state:T})))}}}]);
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([["3261"],{98488:function(e,t,r){r.d(t,{IC:()=>s,b4:()=>c});var n=r(10558),o=r(31262),i=r(66002),a=r(93498);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t,r,n,o,i,a){try{var u=e[i](a),l=u.value}catch(e){r(e);return}u.done?t(l):Promise.resolve(l).then(n,o)}var c=function(){var e,t=(0,i.useTranslation)().t,r=(null!=(e=(0,n.useAppContext)("ward-view-context"))?e:{}).wardPatientGroupDetails,o=(0,n.useSession)();return{handleDischarge:function(e,i,a,u,c){var s;return(s=function(){var e,l,s,d,f;return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(a,"next",{value:l(0)}),u(a,"throw",{value:l(1)}),u(a,"return",{value:l(2)}),"function"==typeof Symbol&&u(a,Symbol.iterator,{value:function(){return this}}),a;function l(u){return function(l){var c=[u,l];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(p){var v,h,m,y,b,g,S,w,k,E;switch(p.label){case 0:return p.trys.push([0,4,5,6]),v=i.patient.uuid,h=a.exitFromInpatientEncounterType,m=null!=c?c:null==o?void 0:o.sessionLocation,y=null==o?void 0:o.currentProvider,b=u.uuid,g=a.clinicianEncounterRole,[4,(S={patient:v,encounterType:h,location:null==m?void 0:m.uuid,encounterProviders:[{provider:null==y?void 0:y.uuid,encounterRole:null==g?void 0:g.uuid}],obs:[],visit:b},(0,n.openmrsFetch)("".concat(n.restBaseUrl,"/encounter"),{method:"POST",body:S,headers:{"Content-Type":"application/json"}}))];case 1:if(!(null==(l=p.sent())?void 0:l.ok))throw Error("Failed to create discharge encounter");if(!(null==i||null==(e=i.bed)?void 0:e.id))return[3,3];return[4,(w=i.bed.id,k=null==i||null==(s=i.patient)?void 0:s.uuid,(0,n.openmrsFetch)("".concat(n.restBaseUrl,"/beds/").concat(w,"?patientUuid=").concat(k),{method:"DELETE"}))];case 2:if(!(null==(d=p.sent())?void 0:d.ok))throw Error("Failed to remove patient from bed");p.label=3;case 3:return(0,n.showSnackbar)({title:t("patientWasDischarged","Patient was discharged"),kind:"success"}),[3,6];case 4:return f=p.sent(),(0,n.showSnackbar)({title:t("errorDischargingPatient","Error discharging patient"),subtitle:(null!=(E=Error)&&"undefined"!=typeof Symbol&&E[Symbol.hasInstance]?!!E[Symbol.hasInstance](f):f instanceof E)?f.message:"Unknown error occurred",kind:"error"}),[3,6];case 5:return null==r||r.mutate(),[7];case 6:return[2]}})},function(){var e=this,t=arguments;return new Promise(function(r,n){var o=s.apply(e,t);function i(e){l(o,r,n,i,a,"next",e)}function a(e){l(o,r,n,i,a,"throw",e)}i(void 0)})})()}}},s=function(e,t,r){var i=(0,n.useConfig)().dailyBedFeeBillableService,l=null==t?void 0:t.toISOString(),c=null==r?void 0:r.toISOString(),s="".concat(n.restBaseUrl,"/cashier/bill?v=").concat("custom:(uuid,display,voided,voidReason,dateCreated,patient:(uuid,display))","&patientUuid=").concat(e,"&createdOnOrAfter=").concat(l,"&createdOnOrBefore=").concat(c),d=(0,a.ZP)(t&&r?s:null),f=d.data,p=d.isLoading,v=d.error,h=(0,o.useMemo)(function(){var t,r;return(null!=(t=null==f||null==(r=f.data)?void 0:r.results)?t:[]).filter(function(t){return!t.voided&&t.patient.uuid===e})},[f,e]),m=(0,o.useMemo)(function(){return h.filter(function(e){return e.lineItems.some(function(e){return"PENDING"===e.paymentStatus})})},[h]),y=(0,o.useCallback)(function(e){return!e||e<=0||h.reduce(function(e,t){var r,n=(null!=(r=t.lineItems)?r:[]).filter(function(e){return e.itemOrServiceConceptUuid===i});return e.push.apply(e,function(e){if(Array.isArray(e))return u(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return u(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),e},[]).reduce(function(e,t){return e+t.quantity},0)>=e},[i,h]);return{error:v,isLoading:p,bills:h,pendingBills:m,dailyBedFeeSettled:y}}},61363:function(e,t,r){r.r(t),r.d(t,{default:()=>s});var n=r(31262),o=r.n(n),i=r(66002),a=r(65992),u=r(10558),l=r(98488);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}let s=function(e){var t,r=(0,i.useTranslation)().t,s=(t=(0,n.useState)(!1),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,u=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),i.length!==t);a=!0);}catch(e){u=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(u)throw n}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return c(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=s[0],f=s[1],p=e.workspaceProps,v=p.patientUuid,h=p.wardPatient,m=p.formUuid,y=p.dischargePatientOnSuccesfullSubmission,b=void 0===y||y,g=e.closeWorkspace,S=(null!=h?h:{}).visit,w=(0,u.usePatient)(v),k=w.patient,E=w.isLoading,C=w.error,I=(0,u.useEmrConfiguration)(),U=I.emrConfiguration,P=I.isLoadingEmrConfiguration,O=I.errorFetchingEmrConfiguration,A=(0,l.b4)().handleDischarge,T=(0,n.useMemo)(function(){var e,t,r;return{view:"form",formUuid:m,visitUuid:null!=(e=null==S?void 0:S.uuid)?e:null,visitTypeUuid:null!=(t=null==S||null==(r=S.visitType)?void 0:r.uuid)?t:null,patientUuid:null!=v?v:null,patient:k,encounterUuid:"",closeWorkspaceWithSavedChanges:function(){return g({discardUnsavedChanges:!0})},closeWorkspace:g,promptBeforeClosing:function(e){return f(e())},handlePostResponse:function(e){b&&A(e,h,U,S)}}},[v,S,k,g,f,U,A,b,m,h]),D=C||O;return E||P?o().createElement(a.lSo,{description:r("loading","Loading"),iconDescription:r("loading","Loading data...")}):D?o().createElement(a.K0D,{"aria-label":r("error","Error"),kind:"error",onClose:function(){},onCloseButtonClick:function(){},statusIconDescription:"notification",subtitle:r("errorLoadingPatientWorkspace","Error loading patient workspace {{errorMessage}}",{errorMessage:null==D?void 0:D.message}),title:r("error","Error")}):o().createElement(u.Workspace2,{title:r("discharge","Discharge"),hasUnsavedChanges:d},o().createElement("div",null,k&&o().createElement(u.ExtensionSlot,{name:"form-widget-slot",state:T})))}}}]);
package/dist/3261.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"3261.js","sources":["webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/kenya-emr-patient-discharge/patient-discharge.resource.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/kenya-emr-patient-discharge/patient-discharge.workspace.tsx"],"names":["usePatientDischarge","useAppContext","t","useTranslation","wardPatientGroupDetails","session","useSession","handleDischarge","encounter","wardPatient","emrConfiguration","visit","wardLocation","dischargeResponse","bedRemovalResponse","err","patientUuid","encounterType","location","currentProvider","visitUuid","clinicianEncounterRole","encounterPayload","bedId","patient","uuid","exitFromInpatientEncounterType","sessionLocation","encounterProviders","provider","encounterRole","obs","openmrsFetch","restBaseUrl","method","body","headers","ok","Error","bed","id","showSnackbar","title","kind","subtitle","message","mutate","usePatientBills","startingDate","endDate","dailyBedFeeBillableService","useConfig","startingDateISO","toISOString","endDateISO","url","rep","useSWR","data","isLoading","error","bills","useMemo","results","filter","b","voided","pendingBills","bill","lineItems","some","it","paymentStatus","dailyBedFeeSettled","useCallback","daysInWard","totalQuantity","dailyBedFeesLineItems","reduce","prev","curr","item","itemOrServiceConceptUuid","push","quantity","props","useState","hasUnsavedChanges","setHasUnsavedChanges","workspaceProps","formUuid","dischargePatientOnSuccesfullSubmission","closeWorkspace","currentVisit","usePatient","isLoadingPatient","patientError","useEmrConfiguration","isLoadingEmrConfiguration","errorFetchingEmrConfiguration","state","view","visitTypeUuid","visitType","encounterUuid","closeWorkspaceWithSavedChanges","discardUnsavedChanges","promptBeforeClosing","handlePostResponse","InlineLoading","description","iconDescription","InlineNotification","aria-label","onClose","onCloseButtonClick","statusIconDescription","errorMessage","Workspace2","div","ExtensionSlot","name"],"mappings":"0bAwDO,IAAMA,EAAsB,WACjC,IAEEC,EAFMC,EAAMC,AAAAA,GAAAA,EAAAA,cAAAA,AAAAA,IAAND,CAAC,CACDE,EAAAA,AAAAA,OACNH,CAAAA,EAAAA,AAAAA,GAAAA,EAAAA,aAAAA,AAAAA,EAAmE,oBAAmB,EAAtFA,EAA2F,CAAC,GADtFG,uBAAuB,CAEzBC,EAAUC,AAAAA,GAAAA,EAAAA,UAAAA,AAAAA,IA+ChB,MAAO,CAAEC,gBA7Ce,SACtBC,CAAS,CACTC,CAAW,CACXC,CAAgB,CAChBC,CAAK,CACLC,CAAY,M,0BAkBNH,EANEI,EAOsEJ,EAApEK,EAUDC,E,mtCAvEXC,EACAC,EACAC,EACAC,EACAC,EACAC,EAkBgCC,EA9BGC,EAAeP,E,yBA6DpB,O,uBAtD9BA,EA8CMP,EAAYe,OAAO,CAACC,IAAI,CA7C9BR,EA8CMP,EAAiBgB,8BAA8B,CA7CrDR,EA8CMN,MAAAA,EAAAA,EAAiBP,MAAAA,EAAAA,KAAAA,EAAAA,EAASsB,eAAe,CA7C/CR,EA8CMd,MAAAA,EAAAA,KAAAA,EAAAA,EAASc,eAAe,CA7C9BC,EA8CM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D,EAAQoC,GAAgBG,SAE9B,AAHkBJ,GAAoBG,EAI7B,kBAACW,EAAAA,GAAaA,CAAAA,CAACC,YAAa5G,EAAE,UAAW,WAAY6G,gBAAiB7G,EAAE,UAAW,kB,GAGxF0D,EAEA,kBAACoD,EAAAA,GAAkBA,CAAAA,CACjBC,aAAY/G,EAAE,QAAS,SACvByC,KAAK,QACLuE,QAAS,WAAO,EAChBC,mBAAoB,WAAO,EAC3BC,sBAAsB,eACtBxE,SAAU1C,EAAE,+BAAgC,mDAAoD,CAC9FmH,aAAczD,MAAAA,EAAAA,KAAAA,EAAAA,EAAOf,OAAO,AAC9B,GACAH,MAAOxC,EAAE,QAAS,Q,GAMtB,kBAACoH,EAAAA,UAAUA,CAAAA,CAAC5E,MAAOxC,EAAE,YAAa,aAAcqF,kBAAmBA,C,EACjE,kBAACgC,MAAAA,KAEE/F,GAAW,kBAACgG,EAAAA,aAAaA,CAAAA,CAACC,KAAK,mBAAmBrB,MAAOA,C,IAIlE,C"}
1
+ {"version":3,"file":"3261.js","sources":["webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/kenya-emr-patient-discharge/patient-discharge.resource.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/kenya-emr-patient-discharge/patient-discharge.workspace.tsx"],"names":["usePatientDischarge","useAppContext","t","useTranslation","wardPatientGroupDetails","session","useSession","handleDischarge","encounter","wardPatient","emrConfiguration","visit","wardLocation","dischargeResponse","bedRemovalResponse","err","patientUuid","encounterType","location","currentProvider","visitUuid","clinicianEncounterRole","encounterPayload","bedId","patient","uuid","exitFromInpatientEncounterType","sessionLocation","encounterProviders","provider","encounterRole","obs","openmrsFetch","restBaseUrl","method","body","headers","ok","Error","bed","id","showSnackbar","title","kind","subtitle","message","mutate","usePatientBills","startingDate","endDate","dailyBedFeeBillableService","useConfig","startingDateISO","toISOString","endDateISO","url","rep","useSWR","data","isLoading","error","bills","useMemo","results","filter","b","voided","pendingBills","bill","lineItems","some","it","paymentStatus","dailyBedFeeSettled","useCallback","daysInWard","totalQuantity","dailyBedFeesLineItems","reduce","prev","curr","item","itemOrServiceConceptUuid","push","quantity","props","useState","hasUnsavedChanges","setHasUnsavedChanges","workspaceProps","formUuid","dischargePatientOnSuccesfullSubmission","closeWorkspace","currentVisit","usePatient","isLoadingPatient","patientError","useEmrConfiguration","isLoadingEmrConfiguration","errorFetchingEmrConfiguration","state","view","visitTypeUuid","visitType","encounterUuid","closeWorkspaceWithSavedChanges","discardUnsavedChanges","promptBeforeClosing","func","handlePostResponse","InlineLoading","description","iconDescription","InlineNotification","aria-label","onClose","onCloseButtonClick","statusIconDescription","errorMessage","Workspace2","div","ExtensionSlot","name"],"mappings":"0bAwDO,IAAMA,EAAsB,WACjC,IAEEC,EAFMC,EAAMC,AAAAA,GAAAA,EAAAA,cAAAA,AAAAA,IAAND,CAAC,CACDE,EAAAA,AAAAA,OACNH,CAAAA,EAAAA,AAAAA,GAAAA,EAAAA,aAAAA,AAAAA,EAAmE,oBAAmB,EAAtFA,EAA2F,CAAC,GADtFG,uBAAuB,CAEzBC,EAAUC,AAAAA,GAAAA,EAAAA,UAAAA,AAAAA,IA+ChB,MAAO,CAAEC,gBA7Ce,SACtBC,CAAS,CACTC,CAAW,CACXC,CAAgB,CAChBC,CAAK,CACLC,CAAY,M,0BAkBNH,EANEI,EAOsEJ,EAApEK,EAUDC,E,mtCAvEXC,EACAC,EACAC,EACAC,EACAC,EACAC,EAkBgCC,EA9BGC,EAAeP,E,yBA6DpB,O,uBAtD9BA,EA8CMP,EAAYe,OAAO,CAACC,IAAI,CA7C9BR,EA8CMP,EAAiBgB,8BAA8B,CA7CrDR,EA8CMN,MAAAA,EAAAA,EAAiBP,MAAAA,EAAAA,KAAAA,EAAAA,EAASsB,eAAe,CA7C/CR,EA8CMd,MAAAA,EAAAA,KAAAA,EAAAA,EAASc,eAAe,CA7C9BC,EA8CMT,EAAMc,IAAI,CA7ChBJ,EA8CMX,EAAiBW,sBAAsB,CAGf,C,GA/BE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BAACY,EAAAA,GAAaA,CAAAA,CAACC,YAAa7G,EAAE,UAAW,WAAY8G,gBAAiB9G,EAAE,UAAW,kB,GAGxF0D,EAEA,kBAACqD,EAAAA,GAAkBA,CAAAA,CACjBC,aAAYhH,EAAE,QAAS,SACvByC,KAAK,QACLwE,QAAS,WAAO,EAChBC,mBAAoB,WAAO,EAC3BC,sBAAsB,eACtBzE,SAAU1C,EAAE,+BAAgC,mDAAoD,CAC9FoH,aAAc1D,MAAAA,EAAAA,KAAAA,EAAAA,EAAOf,OAAO,AAC9B,GACAH,MAAOxC,EAAE,QAAS,Q,GAMtB,kBAACqH,EAAAA,UAAUA,CAAAA,CAAC7E,MAAOxC,EAAE,YAAa,aAAcqF,kBAAmBA,C,EACjE,kBAACiC,MAAAA,KAEEhG,GAAW,kBAACiG,EAAAA,aAAaA,CAAAA,CAACC,KAAK,mBAAmBtB,MAAOA,C,IAIlE,C"}
package/dist/7607.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([["7607"],{4019:function(e){e.exports=JSON.parse('{"accountOfficer":"Account Ofiicer","action":"Action","addPatientToWard":"Add patient to ward","admissionDate":"Admission Date","admissionDetail":"Admission Details","admissionDetails":"Admission Details","admissionLocation":"Admission Location","admissionRequest":"Admission Request","admissionRequestCancelled":"Admission request cancelled.","admissionRequests":"Admission requests","admissionRequestsCount":"{{count}} admission request","admissionRequestsCount_plural":"{{count}} admission request","admissions":"Admissions","admissionType":"Admission Type","admit":"Admit","admitElsewhere":"Admit elsewhere","admitPatient":"Admit patient","admitPatientForm":"Admit Patient Form","admitted":"Admitted","admittedPatients":"Admitted Patients","admitting":"Admitting...","age":"Age","anaesthesiaType":"Anaesthesia Type","approvedBy":"Approved By","awaitingAdmision":"Awaiting Admission","awaitingAdmission":"Awaiting Admission","backToSearchResults":"Back to search results","backToWards":"Back to Wards","bed":"Bed","bedNumber":"Bed Number","bedOccupancy":"Bed Occupancy %","bedShare":"Bed share","bedSwap":"Bed Swap","bedType":"Bed type","billsNotRaised":"Bills Not Raised","billsSettled":"Bills Settled","billStatus":"Bill Status","cancel":"Cancel","cancelAdmissionRequest":"Cancel admission request","capacity":"Capacity","capacityMetricValue":"{{ metricValue }} %","cardView":"Card","cash":"Cash","cashCheckBox":"Cash [ ]","chequCheckBox":"Cheque [ ]","chooseAnOption":"Choose an option","clinicalForms":"Clinical forms","clinicalNoteLabel":"Write your notes","clinicalNotes":"Clinical notes","closureMethod":"Closure Method","countItems":"{{count}} {{item}}","countItems_plural":"{{count}} {{item}}","dailyBedFeeUnmatching":"Daily bed fee and days in ward not matching","date":"Date","dateDate":"Date & time","dateOfAdmission":"Date of Admission","dateOfAdmissionAbrv":"DOA","dateOfDischargeAbrv":"DOD","dateQueued":"Date Queued","days":"","days_plural":"","daysInWard":"Days in ward","department":"Department","destination":"Destination","diagnosis":"Diagnosis","discharge":"Discharge","discharged":"Discharged","dischargeDate":"Discharge Date","dischargeIn":"Discharge In","dischargeInstructions":"Discharge Instructions","dischargeSummary":"Discharge Summary","disposition":"Disposition","durationOnWard":"Duration on Ward","editThisEncounter":"Edit this encounter","emergencyDoctor":"Emergency Doctor","emergencyDoctorPhoneNumber":"Emergency doctor phone number","emptyBed":"Empty bed","emptyText":"Empty","encounterDate":"Encounter Date","encounterDisplay":"{{encounterType}} {{encounterDate}}","encounters":"Encounters","encountersDescription":"List of encounters during the current visit","encounterType":"Encounter Type","error":"Error","Error cancelling admission request":"Error cancelling admission request","errorChangingPatientBedAssignment":"Error changing patient bed assignment","errorConfiguringPatientCard":"Error configuring patient card","errorConfiguringPatientCardMessage":"Unable to find configuration for {{elementType}}, id: {{id}}","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingEncounter":"Failed to admit patient","errorCreatingTransferRequest":"Error creating transfer request","errorDischargingPatient":"Error discharging patient","errorLoadingBedDetails":"Error loading bed details","errorLoadingChildren":"Error loading children info","errorLoadingMother":"Error loading mother info","errorLoadingPatientAdmissionRequests":"Error loading patient admission requests","errorLoadingPatientInfo":"Error loading patient info","errorLoadingPatients":"Error loading admitted patients","errorLoadingPatientWorkspace":"Error loading patient workspace {{errorMessage}}","errorLoadingWardLocation":"Error loading ward location","errorLoadingWards":"Error loading wards","errorMessageForSettingDefaultWard":"Proceed to selected ward view, your preference has not been set, you can try again","errorSettingDefaultWard":"Error setting default ward view","female":"Female","fetchingEmrConfigurationFailed":"Fetching EMR configuration failed. Try refreshing the page or contact your system administrator.","fetchingPatientNotesFailed":"Fetching patient notes failed. Try refreshing the page or contact your system administrator.","findings":"Findings","formName":"Form Name","freebeds":"Free Beds","freeBeds":"Free beds","freeBedsMetricValue":"{{ metricValue }}","gatePass":"Gate Pass","gender":"Gender","goToBilling":"Go to Billing","healthRecordOfficer":"Health Record Officer","histology":"Histology","history":"History","hours":"","hours_plural":"","idNumber":"ID Number","incisionLocation":"Location of Incision","incisionType":"Type of Incision","inpatientdetails":"Inpatient Details","inpatientDetails":"Inpatient Detail","inPatientForms":"In-Patient Forms","inpatientMetrics":"Inpatient Metrics","inpatientNotesWorkspaceTitle":"In-patient notes","insuarance":"Insuarance","insuranceType":"Insurance type","interWardTransfer":"Interward Trasfer","invalidLocationSpecified":"Invalid location specified","invalidWardLocation":"Invalid ward location: {{location}}","investigation":"Investigation","ipNo":"IP No","knownDrugAllergies":"Known drug allergies","labelColon":"{{label}}:","labResultError":"Error loading lab results","listView":"List","loading":"Loading data...","loadinglabresults":"Loading lab results","loadingLocation":"Loading location...","location":"Location","majorComplaintOrDiagnosis":"Major Complaint/Diagnosis","male":"Male","manage":"Manage","methodsOfPayment":"Method of payment (tick as approximately)","minutes":"","minutes_plural":"","motherChildBedShare":"Mother / Child","mpesa":"MPESA","mrm":"M.R.M [ ]","name":"Name","nameOfConsultant":"Name of consultant","nextPage":"Next page","noActiveVisit":"This Patient Not currently admitted to ward","noAdmittedPatientsinCurrentward":"No admitted patients in the current ward","noBed":"No bed","noBedsConfigured":"No beds configured for this location","noBedsConfiguredForLocation":"No beds configured for {{location}} location","noDiagnoses":"No Diagnoses","noDischargedPatients":"No Discharged patients","noDischargeInpatients":"No Discharge in patients","noEncounters":"No encounters found","noExaminations":"No Examinations","noFindings":"No findings recorded","noInstructions":"No instructions","noKnownDrugAllergies":"No known drug allergies","noLocationsFound":"No locations found","noNotes":"No procedure notes recorded","noObservationsFound":"No observations found","noPatientInAdmisionQueue":"No patients in admission queue","noPendingPatientRequests":"No pending patient requests","noPostProcedureEncounter":"No post procedure encounter found for this visit","noResults":"No results","notConfigured":"Bed type not configured","note":"Note","notes":"Notes","notesRequiredForCancellingRequest":"Notes required for cancelling admission or transfer request","noteText":"This form should be filled in duplicate, one copy to be retained in the ward and the other to be left in the main gate","noVisit":"No visit found","noWards":"No wards found","numberofbeds":"Number of Beds","numberOfBeds":"Number of Beds","nurseInCharge":"Nurse In Charge","occupiedBeds":"Occupied Beds","operativeProcedure":"Operative Procedure","Orders":"Orders","other":"Other","otherInsuranceType":"Other Insurance Type","paperNo":"Paper No","Patient":"patient","patientAbscondend":"Patient Absconded","patientAdmittedButBedNotAssigned":"Patient admitted successfully but fail to assign bed to patient","patientAdmittedSuccessfully":"Patient admitted successfully","patientAdmittedSuccessfullySubtitle":"{{patientName}} has been successfully admitted and assigned to bed {{bedNumber}}","patientAdmittedWoBed":"Patient admitted successfully to {{location}}","patientAlreadyAdmittedToCurrentLocation":"Patient already admitted to current location","patientAssignedNewBed":"Patient assigned to new bed","patientAssignedNewBedDetail":"{{patientName}} assigned to bed {{bedNumber}}","patientCurrentlyAdmittedToWardLocation":"Patient currently admitted to {{wardLocation}}","patientCurrentlyNotAdmitted":"Patient currently not admitted","patienthasNoActiveVisit":"Patient has no active visit","patientHasPendingAdmissionRequest":"Patient already has a pending admission request to location {{location}}","patientNames":"Patient names","patientNo":"Patient No","patientNotAdmitted":"This Patient Not currently admitted to ward","PatientNote":"Patient Note","patientNoteNowVisible":"It should be now visible in the notes history","patientNoteSaveError":"Error saving patient note","patientNotesDidntLoad":"Patient notes didn\'t load","patientPosition":"Patient Position","patients":"Patients","patientsMetricValue":"{{ metricValue }}","patientTransferRequest":"Patient Transfer Request","patientTransferRequestCreated":"Patient transfer request created","patientUnassignedFromBed":"Patient unassigned from bed","patientUnassignedFromBedDetail":"{{patientName}} is now unassigned from bed","patientWasDischarged":"Patient was discharged","paymentMode":"Payment mode","pendingAdmissions":"Pending admissions","pendingBills":"Pending Bills","pendingDischarge":"Pending Discharge","pendingOut":"Pending out","pendingOutMetricValue":"{{ metricValue }}","pendingTransfer":"Pending Transfer","phoneNumber":"Phone number","physicalExamination":"Physical Examination","pleaseSelectBed":"Please select a bed","pleaseSelectTransferLocation":"Please select transfer location","pleaseSelectTransferType":"Please select transfer type","pleaseSpecify":"Please specify","postOperationNotes":"Post Operation Notes","postProcedureSummary":"Post Procedure Summary","previousPage":"Previous page","primaryDoctor":"Primary Doctor","primaryDoctorPhoneNumber":"Primary doctor phone number","print":"Print","printPreview":"Print Preview","procedureDetails":"Procedure Details","procedureNotes":"Procedure Notes","proceedWithPatientDischarge":"Proceed with patient discharge","provider":"Provider","requestDatetime":"Request Datetime","save":"Save","saving":"Saving...","savingDefaultWard":"Saving your default ward...","scheme":"Scheme [ ]","searchInpatients":"Search inpatients","searchLocations":"Search locations","searchPatients":"Search patients","seconds":"","seconds_plural":"","securityGuard":"Security Guard","selectABed":"Select a bed","selectALocation":"Select a location","selectWard":"Select a ward","selectWardPlaceholder":"Choose a ward to view","sex":"Sex","shaCheckBox":"SHA [ ]","showingLocations":"{{start}}-{{end}} of {{count}} locations","showingLocations_plural":"{{start}}-{{end}} of {{count}} locations","sign":"Sign","signature":"Signature","somePartsOfTheFormDidntLoad":"Some parts of the form didn\'t load","specimenCollected":"Specimen for Histology Collected","specimenType":"Type of Specimen","surgeon":"Surgeon","surgeryDateTime":"Date & Time of Surgery","switchWard":"Switch ward","switchWardPrompt":"Do you want to switch the ward you are currently viewing?","time":"Time","timeOnWard":"Time on this ward: {{timeOnWard}}","timeSinceAdmission":"Admitted: {{timeSinceAdmission}}","transfer":"Transfer","transferElsewhere":"Transfer elsewhere","transferRequest":"Transfer request","transfers":"Transfers","transferToDispositionLocation":"Transfer to {{location}}","transferType":"Transfer type","treatment":"Treatment","typeOfTransfer":"Type of transfer","unAssignBed":"Un Assign bed","unknown":"Unknown","visitNoteSaved":"Patient note saved","waivePatient":"Waive Patient","ward":"Ward","wardClinicalNotePlaceholder":"Write any notes here","wardGatePass":"Ward gate pass","wardName":"Ward Name","wardPatients":"Ward Patients","wards":"Wards","years":"Years","admissionRequestsCount_one":"{{count}} admission request","admissionRequestsCount_other":"{{count}} admission requests","countItems_one":"{{count}} {{item}}","countItems_other":"{{count}} {{item}}","days_one":"{{count}} day","days_other":"{{count}} days","hours_one":"{{count}} hour","hours_other":"{{count}} hours","minutes_one":"{{count}} minutes","minutes_other":"{{count}} minutes","seconds_one":"{{count}} second","seconds_other":"{{count}} seconds","showingLocations_one":"{{start}}-{{end}} of {{count}} locations","showingLocations_other":"{{start}}-{{end}} of {{count}} locations"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([["7607"],{4019:function(e){e.exports=JSON.parse('{"accountOfficer":"Account Ofiicer","action":"Action","addPatientToWard":"Add patient to ward","admissionDate":"Admission Date","admissionDetail":"Admission Details","admissionDetails":"Admission Details","admissionLocation":"Admission Location","admissionRequest":"Admission Request","admissionRequestCancelled":"Admission request cancelled.","admissionRequests":"Admission requests","admissionRequestsCount_one":"{{count}} admission request","admissionRequestsCount_other":"{{count}} admission requests","admissions":"Admissions","admissionType":"Admission Type","admit":"Admit","admitElsewhere":"Admit elsewhere","admitPatient":"Admit patient","admitPatientForm":"Admit Patient Form","admitted":"Admitted","admittedPatients":"Admitted Patients","admitting":"Admitting...","age":"Age","anaesthesiaType":"Anaesthesia Type","approvedBy":"Approved By","awaitingAdmision":"Awaiting Admission","awaitingAdmission":"Awaiting Admission","backToSearchResults":"Back to search results","backToWards":"Back to Wards","bed":"Bed","bedNumber":"Bed Number","bedOccupancy":"Bed Occupancy %","bedShare":"Bed share","bedSwap":"Bed Swap","bedType":"Bed type","billsNotRaised":"Bills Not Raised","billsSettled":"Bills Settled","billStatus":"Bill Status","cancel":"Cancel","cancelAdmissionRequest":"Cancel admission request","capacity":"Capacity","capacityMetricValue":"{{ metricValue }} %","cardView":"Card","cash":"Cash","cashCheckBox":"Cash [ ]","chequCheckBox":"Cheque [ ]","chooseAnOption":"Choose an option","clinicalForms":"Clinical forms","clinicalNoteLabel":"Write your notes","clinicalNotes":"Clinical notes","closureMethod":"Closure Method","countItems_one":"{{count}} {{item}}","countItems_other":"{{count}} {{item}}","dailyBedFeeUnmatching":"Daily bed fee and days in ward not matching","date":"Date","dateDate":"Date & time","dateOfAdmission":"Date of Admission","dateOfAdmissionAbrv":"DOA","dateOfDischargeAbrv":"DOD","dateQueued":"Date Queued","days_one":"{{count}} day","days_other":"{{count}} days","daysInWard":"Days in ward","department":"Department","destination":"Destination","diagnosis":"Diagnosis","discharge":"Discharge","discharged":"Discharged","dischargeDate":"Discharge Date","dischargeIn":"Discharge In","dischargeInstructions":"Discharge Instructions","dischargeSummary":"Discharge Summary","disposition":"Disposition","durationOnWard":"Duration on Ward","editThisEncounter":"Edit this encounter","emergencyDoctor":"Emergency Doctor","emergencyDoctorPhoneNumber":"Emergency doctor phone number","emptyBed":"Empty bed","emptyText":"Empty","encounterDate":"Encounter Date","encounterDisplay":"{{encounterType}} {{encounterDate}}","encounters":"Encounters","encountersDescription":"List of encounters during the current visit","encounterType":"Encounter Type","error":"Error","Error cancelling admission request":"Error cancelling admission request","errorChangingPatientBedAssignment":"Error changing patient bed assignment","errorConfiguringPatientCard":"Error configuring patient card","errorConfiguringPatientCardMessage":"Unable to find configuration for {{elementType}}, id: {{id}}","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingEncounter":"Failed to admit patient","errorCreatingTransferRequest":"Error creating transfer request","errorDischargingPatient":"Error discharging patient","errorLoadingBedDetails":"Error loading bed details","errorLoadingChildren":"Error loading children info","errorLoadingMother":"Error loading mother info","errorLoadingPatientAdmissionRequests":"Error loading patient admission requests","errorLoadingPatientInfo":"Error loading patient info","errorLoadingPatients":"Error loading admitted patients","errorLoadingPatientWorkspace":"Error loading patient workspace {{errorMessage}}","errorLoadingWardLocation":"Error loading ward location","errorLoadingWards":"Error loading wards","errorMessageForSettingDefaultWard":"Proceed to selected ward view, your preference has not been set, you can try again","errorSettingDefaultWard":"Error setting default ward view","female":"Female","fetchingEmrConfigurationFailed":"Fetching EMR configuration failed. Try refreshing the page or contact your system administrator.","fetchingPatientNotesFailed":"Fetching patient notes failed. Try refreshing the page or contact your system administrator.","findings":"Findings","formName":"Form Name","freebeds":"Free Beds","freeBeds":"Free beds","freeBedsMetricValue":"{{ metricValue }}","gatePass":"Gate Pass","gender":"Gender","goToBilling":"Go to Billing","healthRecordOfficer":"Health Record Officer","histology":"Histology","history":"History","hours_one":"{{count}} hour","hours_other":"{{count}} hours","idNumber":"ID Number","incisionLocation":"Location of Incision","incisionType":"Type of Incision","inpatientdetails":"Inpatient Details","inpatientDetails":"Inpatient Detail","inPatientForms":"In-Patient Forms","inpatientMetrics":"Inpatient Metrics","inpatientNotesWorkspaceTitle":"In-patient notes","insuarance":"Insuarance","insuranceType":"Insurance type","interWardTransfer":"Interward Trasfer","invalidLocationSpecified":"Invalid location specified","invalidWardLocation":"Invalid ward location: {{location}}","investigation":"Investigation","ipNo":"IP No","knownDrugAllergies":"Known drug allergies","labelColon":"{{label}}:","labResultError":"Error loading lab results","listView":"List","loading":"Loading data...","loadinglabresults":"Loading lab results","loadingLocation":"Loading location...","location":"Location","majorComplaintOrDiagnosis":"Major Complaint/Diagnosis","male":"Male","manage":"Manage","methodsOfPayment":"Method of payment (tick as approximately)","minutes_one":"{{count}} minutes","minutes_other":"{{count}} minutes","motherChildBedShare":"Mother / Child","mpesa":"MPESA","mrm":"M.R.M [ ]","name":"Name","nameOfConsultant":"Name of consultant","nextPage":"Next page","noActiveVisit":"This Patient Not currently admitted to ward","noAdmittedPatientsinCurrentward":"No admitted patients in the current ward","noBed":"No bed","noBedsConfigured":"No beds configured for this location","noBedsConfiguredForLocation":"No beds configured for {{location}} location","noDiagnoses":"No Diagnoses","noDischargedPatients":"No Discharged patients","noDischargeInpatients":"No Discharge in patients","noEncounters":"No encounters found","noExaminations":"No Examinations","noFindings":"No findings recorded","noInstructions":"No instructions","noKnownDrugAllergies":"No known drug allergies","noLocationsFound":"No locations found","noNotes":"No procedure notes recorded","noObservationsFound":"No observations found","noPatientInAdmisionQueue":"No patients in admission queue","noPendingPatientRequests":"No pending patient requests","noPostProcedureEncounter":"No post procedure encounter found for this visit","noResults":"No results","notConfigured":"Bed type not configured","note":"Note","notes":"Notes","notesRequiredForCancellingRequest":"Notes required for cancelling admission or transfer request","noteText":"This form should be filled in duplicate, one copy to be retained in the ward and the other to be left in the main gate","noVisit":"No visit found","noWards":"No wards found","numberofbeds":"Number of Beds","numberOfBeds":"Number of Beds","nurseInCharge":"Nurse In Charge","occupiedBeds":"Occupied Beds","operativeProcedure":"Operative Procedure","Orders":"Orders","other":"Other","otherInsuranceType":"Other Insurance Type","paperNo":"Paper No","Patient":"patient","patientAbscondend":"Patient Absconded","patientAdmittedButBedNotAssigned":"Patient admitted successfully but fail to assign bed to patient","patientAdmittedSuccessfully":"Patient admitted successfully","patientAdmittedSuccessfullySubtitle":"{{patientName}} has been successfully admitted and assigned to bed {{bedNumber}}","patientAdmittedWoBed":"Patient admitted successfully to {{location}}","patientAlreadyAdmittedToCurrentLocation":"Patient already admitted to current location","patientAssignedNewBed":"Patient assigned to new bed","patientAssignedNewBedDetail":"{{patientName}} assigned to bed {{bedNumber}}","patientCurrentlyAdmittedToWardLocation":"Patient currently admitted to {{wardLocation}}","patientCurrentlyNotAdmitted":"Patient currently not admitted","patienthasNoActiveVisit":"Patient has no active visit","patientHasPendingAdmissionRequest":"Patient already has a pending admission request to location {{location}}","patientNames":"Patient names","patientNo":"Patient No","patientNotAdmitted":"This Patient Not currently admitted to ward","PatientNote":"Patient Note","patientNoteNowVisible":"It should be now visible in the notes history","patientNoteSaveError":"Error saving patient note","patientNotesDidntLoad":"Patient notes didn\'t load","patientPosition":"Patient Position","patients":"Patients","patientsMetricValue":"{{ metricValue }}","patientTransferRequest":"Patient Transfer Request","patientTransferRequestCreated":"Patient transfer request created","patientUnassignedFromBed":"Patient unassigned from bed","patientUnassignedFromBedDetail":"{{patientName}} is now unassigned from bed","patientWasDischarged":"Patient was discharged","paymentMode":"Payment mode","pendingAdmissions":"Pending admissions","pendingBills":"Pending Bills","pendingDischarge":"Pending Discharge","pendingOut":"Pending out","pendingOutMetricValue":"{{ metricValue }}","pendingTransfer":"Pending Transfer","phoneNumber":"Phone number","physicalExamination":"Physical Examination","pleaseSelectBed":"Please select a bed","pleaseSelectTransferLocation":"Please select transfer location","pleaseSelectTransferType":"Please select transfer type","pleaseSpecify":"Please specify","postOperationNotes":"Post Operation Notes","postProcedureSummary":"Post Procedure Summary","previousPage":"Previous page","primaryDoctor":"Primary Doctor","primaryDoctorPhoneNumber":"Primary doctor phone number","print":"Print","printPreview":"Print Preview","procedureDetails":"Procedure Details","procedureNotes":"Procedure Notes","proceedWithPatientDischarge":"Proceed with patient discharge","provider":"Provider","requestDatetime":"Request Datetime","save":"Save","saving":"Saving...","savingDefaultWard":"Saving your default ward...","scheme":"Scheme [ ]","searchInpatients":"Search inpatients","searchLocations":"Search locations","searchPatients":"Search patients","seconds_one":"{{count}} second","seconds_other":"{{count}} seconds","securityGuard":"Security Guard","selectABed":"Select a bed","selectALocation":"Select a location","selectWard":"Select a ward","selectWardPlaceholder":"Choose a ward to view","sex":"Sex","shaCheckBox":"SHA [ ]","showingLocations_one":"{{start}}-{{end}} of {{count}} locations","showingLocations_other":"{{start}}-{{end}} of {{count}} locations","sign":"Sign","signature":"Signature","somePartsOfTheFormDidntLoad":"Some parts of the form didn\'t load","specimenCollected":"Specimen for Histology Collected","specimenType":"Type of Specimen","surgeon":"Surgeon","surgeryDateTime":"Date & Time of Surgery","switchWard":"Switch ward","switchWardPrompt":"Do you want to switch the ward you are currently viewing?","time":"Time","timeOnWard":"Time on this ward: {{timeOnWard}}","timeSinceAdmission":"Admitted: {{timeSinceAdmission}}","transfer":"Transfer","transferElsewhere":"Transfer elsewhere","transferRequest":"Transfer request","transfers":"Transfers","transferToDispositionLocation":"Transfer to {{location}}","transferType":"Transfer type","treatment":"Treatment","typeOfTransfer":"Type of transfer","unAssignBed":"Un Assign bed","unknown":"Unknown","visitNoteSaved":"Patient note saved","waivePatient":"Waive Patient","ward":"Ward","wardClinicalNotePlaceholder":"Write any notes here","wardGatePass":"Ward gate pass","wardName":"Ward Name","wardPatients":"Ward Patients","wards":"Wards","years":"Years"}')}}]);
@@ -508,9 +508,9 @@
508
508
  "rendered": true,
509
509
  "initial": false,
510
510
  "entry": false,
511
- "size": 20461,
511
+ "size": 20466,
512
512
  "sizes": {
513
- "javascript": 20461
513
+ "javascript": 20466
514
514
  },
515
515
  "names": [],
516
516
  "idHints": [],
@@ -524,7 +524,7 @@
524
524
  "auxiliaryFiles": [
525
525
  "3261.js.map"
526
526
  ],
527
- "hash": "895660c9a5d6922a",
527
+ "hash": "ac0298b7f8a9489d",
528
528
  "childrenByOrder": {}
529
529
  },
530
530
  {
@@ -1707,9 +1707,9 @@
1707
1707
  "rendered": true,
1708
1708
  "initial": false,
1709
1709
  "entry": false,
1710
- "size": 13586,
1710
+ "size": 13085,
1711
1711
  "sizes": {
1712
- "javascript": 13586
1712
+ "javascript": 13085
1713
1713
  },
1714
1714
  "names": [],
1715
1715
  "idHints": [],
@@ -1721,7 +1721,7 @@
1721
1721
  "7607.js"
1722
1722
  ],
1723
1723
  "auxiliaryFiles": [],
1724
- "hash": "95ca052e25be81a7",
1724
+ "hash": "e4eea934894efdfe",
1725
1725
  "childrenByOrder": {}
1726
1726
  },
1727
1727
  {
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=3.0.0 <4.0.0","emrapi":">=3.0.0 <4.0.0","bedmanagement":">=7.0.0"},"optionalBackendDependencies":{"bedmanagement":{"version":"^6.0.0 || 6.0.0-SNAPSHOT","feature":{"flagName":"bedmanagement-module","label":"Ward App Patient Service","description":"This module, if installed, provides services for managing patients admitted to the ward."}}},"extensions":[{"name":"ward-dashboard-link","component":"wardDashboardLink","slot":"homepage-dashboard-slot","meta":{"name":"ward","slot":"ward-dashboard-slot","title":"Wards"}},{"component":"root","name":"ward-dashboard","slot":"ward-dashboard-slot"},{"component":"wardView","name":"ward-view","slot":"ward-view-slot"},{"component":"wardPatientActionButtonExtension","name":"ward-patient-action-button","slot":"action-menu-ward-patient-items-slot"},{"component":"wardPatientNotesActionButtonExtension","name":"ward-inpatient-notes-form-action-button","slot":"action-menu-ward-patient-items-slot"},{"component":"coloredObsTagCardRowExtension","name":"colored-obs-tags-card-row","slot":"ward-patient-card-slot"},{"name":"transfer-swap-patient-siderail-button","slot":"action-menu-ward-patient-items-slot","component":"patientTransferAndSwapWorkspaceSiderailIcon"},{"name":"patient-discharge-siderail-button","slot":"action-menu-ward-patient-items-slot","component":"patientDischargeWorkspaceSideRailIcon"},{"name":"clinical-forms-workspace-siderail-button","component":"clinicalFormWorkspaceSideRailIcon","slot":"action-menu-ward-patient-items-slot"},{"name":"admission-requests-workspace-siderail-button","component":"admissionRequestsWorkspaceSideRailIcon","slot":"action-menu-ward-patient-admission-requests-items-slot"},{"name":"create-admission-request-workspace-siderail-button","component":"createAdmissionEncounterWorkspaceSideRailIcon","slot":"action-menu-ward-patient-admission-requests-items-slot"},{"component":"defaultWardView","name":"default-ward","slot":"default-ward"},{"component":"maternalWardView","name":"maternal-ward","slot":"maternal-ward"},{"component":"patientDischargeDocumentPreview","name":"patient-discharge-document-preview-modal"},{"component":"wardPatientWorkspaceBanner","name":"ward-patient-workspace-banner","slot":"ward-workspace-patient-banner-slot"},{"name":"in-patient-dashboard-link","component":"inPatientChartLink","order":7,"meta":{"slot":"patient-chart-in-patient-dashboard-slot","path":"in-patient","layoutMode":"anchored","columns":1,"columnSpan":1}},{"name":"in-patient-dashboard","slot":"patient-chart-in-patient-dashboard-slot","component":"inPatientChartDashboard","meta":{"fullWidth":false}}],"modals":[{"name":"ward-switch-modal","component":"wardSwitchModal"}],"workspaces":[{"name":"admission-requests-workspace","component":"admissionRequestWorkspace","title":"admissionRequests","type":"pending-admission-requests","width":"wider"},{"name":"create-admission-encounter-workspace","component":"createAdmissionEncounterWorkspace","title":"admitPatient","type":"patient-search-workspace","width":"wider"},{"name":"ward-patient-notes-workspace","component":"wardPatientNotesWorkspace","type":"ward-patient-notes","title":"inpatientNotesWorkspaceTitle"},{"name":"ward-patient-workspace","component":"wardPatientWorkspace","type":"ward","title":"Ward patient","width":"extra-wide"},{"name":"ward-patient-clinical-forms-workspace","component":"patientClinicalFormsWorkspace","title":"clinicalForms","type":"ward-patient-clinical-forms","width":"wider"}],"workspaceGroups":[{"name":"ward-patient","members":["ward-patient-workspace","ward-patient-notes-workspace","patient-transfer-swap-workspace","patient-discharge-workspace","ward-patient-clinical-forms-workspace","add-drug-order","order-basket","add-lab-order"]},{"name":"ward-patient-admission-requests","members":["admission-requests-workspace","create-admission-encounter-workspace"]}],"workspaces2":[{"name":"patient-transfer-request-workspace","component":"patientTransferRequestWorkspace","window":"kenyaemr-esm-ward-window"},{"name":"cancel-admission-request-workspace","component":"cancelAdmissionRequestWorkspace","window":"kenyaemr-esm-ward-window"},{"name":"admit-patient-form-workspace","component":"admitPatientFormWorkspace","window":"kenyaemr-esm-ward-window"},{"name":"patient-transfer-swap-workspace","component":"patientTransferAndSwapWorkspace","window":"kenyaemr-esm-ward-window"},{"name":"patient-admit-or-transfer-request-form","component":"patientAdmitOrTransferRequestForm","window":"kenyaemr-esm-ward-window"},{"name":"patient-bed-swap-form","component":"patientBedSwapForm","window":"kenyaemr-esm-ward-window"},{"name":"patient-discharge-workspace","component":"patientDischargeWorkspace","window":"kenyaemr-form-entry-window"}],"workspaceWindows2":[{"name":"kenyaemr-esm-ward-window","group":"kenyaemr-esm-ward-group","canMaximize":true},{"name":"kenyaemr-form-entry-window","group":"kenyaemr-esm-ward-group","canMaximize":true,"width":"extra-wide"}],"workspaceGroups2":[{"name":"kenyaemr-esm-ward-group"}],"version":"8.5.4-pre.43"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=3.0.0 <4.0.0","emrapi":">=3.0.0 <4.0.0","bedmanagement":">=7.0.0"},"optionalBackendDependencies":{"bedmanagement":{"version":"^6.0.0 || 6.0.0-SNAPSHOT","feature":{"flagName":"bedmanagement-module","label":"Ward App Patient Service","description":"This module, if installed, provides services for managing patients admitted to the ward."}}},"extensions":[{"name":"ward-dashboard-link","component":"wardDashboardLink","slot":"homepage-dashboard-slot","meta":{"name":"ward","slot":"ward-dashboard-slot","title":"Wards"}},{"component":"root","name":"ward-dashboard","slot":"ward-dashboard-slot"},{"component":"wardView","name":"ward-view","slot":"ward-view-slot"},{"component":"wardPatientActionButtonExtension","name":"ward-patient-action-button","slot":"action-menu-ward-patient-items-slot"},{"component":"wardPatientNotesActionButtonExtension","name":"ward-inpatient-notes-form-action-button","slot":"action-menu-ward-patient-items-slot"},{"component":"coloredObsTagCardRowExtension","name":"colored-obs-tags-card-row","slot":"ward-patient-card-slot"},{"name":"transfer-swap-patient-siderail-button","slot":"action-menu-ward-patient-items-slot","component":"patientTransferAndSwapWorkspaceSiderailIcon"},{"name":"patient-discharge-siderail-button","slot":"action-menu-ward-patient-items-slot","component":"patientDischargeWorkspaceSideRailIcon"},{"name":"clinical-forms-workspace-siderail-button","component":"clinicalFormWorkspaceSideRailIcon","slot":"action-menu-ward-patient-items-slot"},{"name":"admission-requests-workspace-siderail-button","component":"admissionRequestsWorkspaceSideRailIcon","slot":"action-menu-ward-patient-admission-requests-items-slot"},{"name":"create-admission-request-workspace-siderail-button","component":"createAdmissionEncounterWorkspaceSideRailIcon","slot":"action-menu-ward-patient-admission-requests-items-slot"},{"component":"defaultWardView","name":"default-ward","slot":"default-ward"},{"component":"maternalWardView","name":"maternal-ward","slot":"maternal-ward"},{"component":"patientDischargeDocumentPreview","name":"patient-discharge-document-preview-modal"},{"component":"wardPatientWorkspaceBanner","name":"ward-patient-workspace-banner","slot":"ward-workspace-patient-banner-slot"},{"name":"in-patient-dashboard-link","component":"inPatientChartLink","order":7,"meta":{"slot":"patient-chart-in-patient-dashboard-slot","path":"in-patient","layoutMode":"anchored","columns":1,"columnSpan":1}},{"name":"in-patient-dashboard","slot":"patient-chart-in-patient-dashboard-slot","component":"inPatientChartDashboard","meta":{"fullWidth":false}}],"modals":[{"name":"ward-switch-modal","component":"wardSwitchModal"}],"workspaces":[{"name":"admission-requests-workspace","component":"admissionRequestWorkspace","title":"admissionRequests","type":"pending-admission-requests","width":"wider"},{"name":"create-admission-encounter-workspace","component":"createAdmissionEncounterWorkspace","title":"admitPatient","type":"patient-search-workspace","width":"wider"},{"name":"ward-patient-notes-workspace","component":"wardPatientNotesWorkspace","type":"ward-patient-notes","title":"inpatientNotesWorkspaceTitle"},{"name":"ward-patient-workspace","component":"wardPatientWorkspace","type":"ward","title":"Ward patient","width":"extra-wide"},{"name":"ward-patient-clinical-forms-workspace","component":"patientClinicalFormsWorkspace","title":"clinicalForms","type":"ward-patient-clinical-forms","width":"wider"}],"workspaceGroups":[{"name":"ward-patient","members":["ward-patient-workspace","ward-patient-notes-workspace","patient-transfer-swap-workspace","patient-discharge-workspace","ward-patient-clinical-forms-workspace","add-drug-order","order-basket","add-lab-order"]},{"name":"ward-patient-admission-requests","members":["admission-requests-workspace","create-admission-encounter-workspace"]}],"workspaces2":[{"name":"patient-transfer-request-workspace","component":"patientTransferRequestWorkspace","window":"kenyaemr-esm-ward-window"},{"name":"cancel-admission-request-workspace","component":"cancelAdmissionRequestWorkspace","window":"kenyaemr-esm-ward-window"},{"name":"admit-patient-form-workspace","component":"admitPatientFormWorkspace","window":"kenyaemr-esm-ward-window"},{"name":"patient-transfer-swap-workspace","component":"patientTransferAndSwapWorkspace","window":"kenyaemr-esm-ward-window"},{"name":"patient-admit-or-transfer-request-form","component":"patientAdmitOrTransferRequestForm","window":"kenyaemr-esm-ward-window"},{"name":"patient-bed-swap-form","component":"patientBedSwapForm","window":"kenyaemr-esm-ward-window"},{"name":"patient-discharge-workspace","component":"patientDischargeWorkspace","window":"kenyaemr-form-entry-window"},{"name":"discharge-appointment-form-workspace","component":"@kenyaemr/esm-appointments-app#exportedAppointmentForm","window":"kenyaemr-form-entry-window"}],"workspaceWindows2":[{"name":"kenyaemr-esm-ward-window","group":"kenyaemr-esm-ward-group","canMaximize":true},{"name":"kenyaemr-form-entry-window","group":"kenyaemr-esm-ward-group","canMaximize":true,"width":"extra-wide"}],"workspaceGroups2":[{"name":"kenyaemr-esm-ward-group"}],"version":"8.5.4-pre.47"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenyaemr/esm-ward-app",
3
- "version": "8.5.4-pre.43",
3
+ "version": "8.5.4-pre.47",
4
4
  "description": "Ward and bed management module for O3",
5
5
  "browser": "dist/kenyaemr-esm-ward-app.js",
6
6
  "main": "src/index.ts",
package/src/routes.json CHANGED
@@ -215,6 +215,11 @@
215
215
  "name": "patient-discharge-workspace",
216
216
  "component": "patientDischargeWorkspace",
217
217
  "window": "kenyaemr-form-entry-window"
218
+ },
219
+ {
220
+ "name": "discharge-appointment-form-workspace",
221
+ "component": "@kenyaemr/esm-appointments-app#exportedAppointmentForm",
222
+ "window": "kenyaemr-form-entry-window"
218
223
  }
219
224
  ],
220
225
  "workspaceWindows2": [
@@ -41,9 +41,9 @@ const PatientDischargeWorkspace: React.FC<Workspace2DefinitionProps<PatientDisch
41
41
  patientUuid: patientUuid ?? null,
42
42
  patient,
43
43
  encounterUuid: '',
44
- closeWorkspaceWithSavedChanges: () => closeWorkspace({ discardUnsavedChanges: false }),
44
+ closeWorkspaceWithSavedChanges: () => closeWorkspace({ discardUnsavedChanges: true }),
45
45
  closeWorkspace,
46
- promptBeforeClosing: () => setHasUnsavedChanges(true),
46
+ promptBeforeClosing: (func) => setHasUnsavedChanges(func()),
47
47
  handlePostResponse: (encounter: Encounter) => {
48
48
  if (dischargePatientOnSuccesfullSubmission)
49
49
  handleDischarge(encounter, wardPatient, emrConfiguration as Record<string, unknown>, currentVisit);
@@ -9,8 +9,8 @@
9
9
  "admissionRequest": "Admission Request",
10
10
  "admissionRequestCancelled": "Admission request cancelled.",
11
11
  "admissionRequests": "Admission requests",
12
- "admissionRequestsCount": "{{count}} admission request",
13
- "admissionRequestsCount_plural": "{{count}} admission request",
12
+ "admissionRequestsCount_one": "{{count}} admission request",
13
+ "admissionRequestsCount_other": "{{count}} admission requests",
14
14
  "admissions": "Admissions",
15
15
  "admissionType": "Admission Type",
16
16
  "admit": "Admit",
@@ -49,8 +49,8 @@
49
49
  "clinicalNoteLabel": "Write your notes",
50
50
  "clinicalNotes": "Clinical notes",
51
51
  "closureMethod": "Closure Method",
52
- "countItems": "{{count}} {{item}}",
53
- "countItems_plural": "{{count}} {{item}}",
52
+ "countItems_one": "{{count}} {{item}}",
53
+ "countItems_other": "{{count}} {{item}}",
54
54
  "dailyBedFeeUnmatching": "Daily bed fee and days in ward not matching",
55
55
  "date": "Date",
56
56
  "dateDate": "Date & time",
@@ -58,8 +58,8 @@
58
58
  "dateOfAdmissionAbrv": "DOA",
59
59
  "dateOfDischargeAbrv": "DOD",
60
60
  "dateQueued": "Date Queued",
61
- "days": "",
62
- "days_plural": "",
61
+ "days_one": "{{count}} day",
62
+ "days_other": "{{count}} days",
63
63
  "daysInWard": "Days in ward",
64
64
  "department": "Department",
65
65
  "destination": "Destination",
@@ -116,8 +116,8 @@
116
116
  "healthRecordOfficer": "Health Record Officer",
117
117
  "histology": "Histology",
118
118
  "history": "History",
119
- "hours": "",
120
- "hours_plural": "",
119
+ "hours_one": "{{count}} hour",
120
+ "hours_other": "{{count}} hours",
121
121
  "idNumber": "ID Number",
122
122
  "incisionLocation": "Location of Incision",
123
123
  "incisionType": "Type of Incision",
@@ -145,8 +145,8 @@
145
145
  "male": "Male",
146
146
  "manage": "Manage",
147
147
  "methodsOfPayment": "Method of payment (tick as approximately)",
148
- "minutes": "",
149
- "minutes_plural": "",
148
+ "minutes_one": "{{count}} minutes",
149
+ "minutes_other": "{{count}} minutes",
150
150
  "motherChildBedShare": "Mother / Child",
151
151
  "mpesa": "MPESA",
152
152
  "mrm": "M.R.M [ ]",
@@ -249,8 +249,8 @@
249
249
  "searchInpatients": "Search inpatients",
250
250
  "searchLocations": "Search locations",
251
251
  "searchPatients": "Search patients",
252
- "seconds": "",
253
- "seconds_plural": "",
252
+ "seconds_one": "{{count}} second",
253
+ "seconds_other": "{{count}} seconds",
254
254
  "securityGuard": "Security Guard",
255
255
  "selectABed": "Select a bed",
256
256
  "selectALocation": "Select a location",
@@ -258,8 +258,8 @@
258
258
  "selectWardPlaceholder": "Choose a ward to view",
259
259
  "sex": "Sex",
260
260
  "shaCheckBox": "SHA [ ]",
261
- "showingLocations": "{{start}}-{{end}} of {{count}} locations",
262
- "showingLocations_plural": "{{start}}-{{end}} of {{count}} locations",
261
+ "showingLocations_one": "{{start}}-{{end}} of {{count}} locations",
262
+ "showingLocations_other": "{{start}}-{{end}} of {{count}} locations",
263
263
  "sign": "Sign",
264
264
  "signature": "Signature",
265
265
  "somePartsOfTheFormDidntLoad": "Some parts of the form didn't load",
@@ -290,19 +290,5 @@
290
290
  "wardName": "Ward Name",
291
291
  "wardPatients": "Ward Patients",
292
292
  "wards": "Wards",
293
- "years": "Years",
294
- "admissionRequestsCount_one": "{{count}} admission request",
295
- "admissionRequestsCount_other": "{{count}} admission requests",
296
- "countItems_one": "{{count}} {{item}}",
297
- "countItems_other": "{{count}} {{item}}",
298
- "days_one": "{{count}} day",
299
- "days_other": "{{count}} days",
300
- "hours_one": "{{count}} hour",
301
- "hours_other": "{{count}} hours",
302
- "minutes_one": "{{count}} minutes",
303
- "minutes_other": "{{count}} minutes",
304
- "seconds_one": "{{count}} second",
305
- "seconds_other": "{{count}} seconds",
306
- "showingLocations_one": "{{start}}-{{end}} of {{count}} locations",
307
- "showingLocations_other": "{{start}}-{{end}} of {{count}} locations"
293
+ "years": "Years"
308
294
  }