@openmrs/esm-patient-search-app 4.3.1-pre.1421 → 4.3.1-pre.1435

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.
@@ -27,4 +27,4 @@ Assets:
27
27
  858.js (381 KiB)
28
28
  481.js (274 KiB)
29
29
 
30
- webpack 5.74.0 compiled with 1 warning in 45134 ms
30
+ webpack 5.74.0 compiled with 1 warning in 41045 ms
package/dist/842.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_openmrs_esm_patient_search_app=globalThis.webpackChunk_openmrs_esm_patient_search_app||[]).push([[842],{8842:(e,t,n)=>{"use strict";n.r(t),n.d(t,{backendDependencies:()=>l,frontendDependencies:()=>p,importTranslation:()=>u,setupOpenMRS:()=>d,version:()=>c});var r=n(906),a={search:{patientResultUrl:{_type:r.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_description:"Where clicking a patient result takes the user. Accepts template parameter ${patientUuid}",_validators:[r.validators.isUrlWithTemplateParameters(["patientUuid"])]},redirectToPatientDashboard:{_type:r.Type.String,_default:"Patient Summary",_description:"On clicking the patient banner in the search results, which should be the default patient chart dashboard to redirect to."}},includeDead:{_type:r.Type.Boolean,_default:!0,_description:"Whether to include dead patients in search results"},contactAttributeType:{_type:r.Type.Array,_elements:{_type:r.Type.UUID},_default:["14d4f066-15f5-102d-96e4-000c29c2a5d7","e3d177ee-04ad-11ed-828d-0242ac1e0002"]},defaultIdentifierTypes:{_type:r.Type.Array,_elements:{_type:r.Type.UUID},_description:"The identifier types to be display on all patient search result page",_default:["b4d66522-11fc-45c7-83e3-39a1af21ae0d","f85081e2-b4be-4e48-b3a4-7994b69bb101"]},defaultIdentifier:{_type:r.Type.String,_description:"Identifier to be shown in the event defaultIdentifierTypes does is empty",_default:"OpenMRS ID"}};function i(e,t,n,r,a,i,s){try{var o=e[i](s),c=o.value}catch(e){return void n(e)}o.done?t(c):Promise.resolve(c).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var s=e.apply(t,n);function o(e){i(s,r,a,o,c,"next",e)}function c(e){i(s,r,a,o,c,"throw",e)}o(void 0)}))}}var o=function(e,t){var n,r,a,i,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((a=(a=s.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){s.label=i[1];break}if(6===i[0]&&s.label<a[1]){s.label=a[1],a=i;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(i);break}a[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}},c="4.3.1-pre.1421",u=n(3979),l={"webservices.rest":"^2.2.0"},p={"@openmrs/esm-framework":"^4.2.1-pre.619"};function d(){var e="@openmrs/esm-patient-search-app",t={featureName:"patient-search",moduleName:e};return(0,r.defineConfigSchema)(e,a),(0,r.setupDynamicOfflineDataHandler)({id:"esm-patient-search-app:patient",type:"patient",displayName:"Patient search",isSynced:function(e){return s((function(){var t,n,a;return o(this,(function(i){switch(i.label){case 0:return t=["/ws/fhir2/R4/Patient/".concat(e)],n=t.map((function(e){return window.origin+(0,r.makeUrl)(e)})),[4,caches.open("omrs-spa-cache-v1")];case 1:return[4,i.sent().keys()];case 2:return a=i.sent().map((function(e){return e.url})),[2,n.every((function(e){return a.includes(e)}))]}}))}))()},sync:function(e){return s((function(){return o(this,(function(t){switch(t.label){case 0:return[4,(0,r.messageOmrsServiceWorker)({type:"registerDynamicRoute",pattern:"/ws/fhir2/R4/Patient/".concat(e)})];case 1:return t.sent(),[4,(0,r.fetchCurrentPatient)(e)];case 2:return t.sent(),[2]}}))}))()}}),{pages:[{route:/^search/,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(508),n.e(439),n.e(206),n.e(924),n.e(481),n.e(744),n.e(460)]).then(n.bind(n,9460))}),t)}],extensions:[{id:"patient-search-icon",slot:"top-nav-actions-slot",order:0,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(508),n.e(439),n.e(206),n.e(924),n.e(481),n.e(314),n.e(744),n.e(494)]).then(n.bind(n,2494))}),t)},{id:"patient-search-button",slot:"patient-search-button-slot",load:(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(508),n.e(439),n.e(206),n.e(924),n.e(481),n.e(327)]).then(n.bind(n,1327))}),t),offline:!0},{id:"patient-search-bar",slot:"patient-search-bar-slot",load:(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(508),n.e(206),n.e(924),n.e(314),n.e(693)]).then(n.bind(n,8749))}),t),offline:!0}]}}},3979:(e,t,n)=>{var r={"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757],"./km.json":[7807,807]};function a(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],a=t[0];return n.e(t[1]).then((()=>n(a)))}a.keys=()=>Object.keys(r),a.id=3979,e.exports=a}}]);
1
+ (globalThis.webpackChunk_openmrs_esm_patient_search_app=globalThis.webpackChunk_openmrs_esm_patient_search_app||[]).push([[842],{8842:(e,t,n)=>{"use strict";n.r(t),n.d(t,{backendDependencies:()=>l,frontendDependencies:()=>p,importTranslation:()=>u,setupOpenMRS:()=>d,version:()=>c});var r=n(906),a={search:{patientResultUrl:{_type:r.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_description:"Where clicking a patient result takes the user. Accepts template parameter ${patientUuid}",_validators:[r.validators.isUrlWithTemplateParameters(["patientUuid"])]},redirectToPatientDashboard:{_type:r.Type.String,_default:"Patient Summary",_description:"On clicking the patient banner in the search results, which should be the default patient chart dashboard to redirect to."}},includeDead:{_type:r.Type.Boolean,_default:!0,_description:"Whether to include dead patients in search results"},contactAttributeType:{_type:r.Type.Array,_elements:{_type:r.Type.UUID},_default:["14d4f066-15f5-102d-96e4-000c29c2a5d7","e3d177ee-04ad-11ed-828d-0242ac1e0002"]},defaultIdentifierTypes:{_type:r.Type.Array,_elements:{_type:r.Type.UUID},_description:"The identifier types to be display on all patient search result page",_default:["b4d66522-11fc-45c7-83e3-39a1af21ae0d","f85081e2-b4be-4e48-b3a4-7994b69bb101"]},defaultIdentifier:{_type:r.Type.String,_description:"Identifier to be shown in the event defaultIdentifierTypes does is empty",_default:"OpenMRS ID"}};function i(e,t,n,r,a,i,s){try{var o=e[i](s),c=o.value}catch(e){return void n(e)}o.done?t(c):Promise.resolve(c).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var s=e.apply(t,n);function o(e){i(s,r,a,o,c,"next",e)}function c(e){i(s,r,a,o,c,"throw",e)}o(void 0)}))}}var o=function(e,t){var n,r,a,i,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((a=(a=s.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){s.label=i[1];break}if(6===i[0]&&s.label<a[1]){s.label=a[1],a=i;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(i);break}a[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}},c="4.3.1-pre.1435",u=n(3979),l={"webservices.rest":"^2.2.0"},p={"@openmrs/esm-framework":"^4.2.1-pre.619"};function d(){var e="@openmrs/esm-patient-search-app",t={featureName:"patient-search",moduleName:e};return(0,r.defineConfigSchema)(e,a),(0,r.setupDynamicOfflineDataHandler)({id:"esm-patient-search-app:patient",type:"patient",displayName:"Patient search",isSynced:function(e){return s((function(){var t,n,a;return o(this,(function(i){switch(i.label){case 0:return t=["/ws/fhir2/R4/Patient/".concat(e)],n=t.map((function(e){return window.origin+(0,r.makeUrl)(e)})),[4,caches.open("omrs-spa-cache-v1")];case 1:return[4,i.sent().keys()];case 2:return a=i.sent().map((function(e){return e.url})),[2,n.every((function(e){return a.includes(e)}))]}}))}))()},sync:function(e){return s((function(){return o(this,(function(t){switch(t.label){case 0:return[4,(0,r.messageOmrsServiceWorker)({type:"registerDynamicRoute",pattern:"/ws/fhir2/R4/Patient/".concat(e)})];case 1:return t.sent(),[4,(0,r.fetchCurrentPatient)(e)];case 2:return t.sent(),[2]}}))}))()}}),{pages:[{route:/^search/,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(508),n.e(439),n.e(206),n.e(924),n.e(481),n.e(744),n.e(460)]).then(n.bind(n,9460))}),t)}],extensions:[{id:"patient-search-icon",slot:"top-nav-actions-slot",order:0,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(508),n.e(439),n.e(206),n.e(924),n.e(481),n.e(314),n.e(744),n.e(494)]).then(n.bind(n,2494))}),t)},{id:"patient-search-button",slot:"patient-search-button-slot",load:(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(508),n.e(439),n.e(206),n.e(924),n.e(481),n.e(327)]).then(n.bind(n,1327))}),t),offline:!0},{id:"patient-search-bar",slot:"patient-search-bar-slot",load:(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(508),n.e(206),n.e(924),n.e(314),n.e(693)]).then(n.bind(n,8749))}),t),offline:!0}]}}},3979:(e,t,n)=>{var r={"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757],"./km.json":[7807,807]};function a(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],a=t[0];return n.e(t[1]).then((()=>n(a)))}a.keys=()=>Object.keys(r),a.id=3979,e.exports=a}}]);
@@ -52,7 +52,7 @@
52
52
  "auxiliaryFiles": [
53
53
  "main.js.map"
54
54
  ],
55
- "hash": "807833181ac70591",
55
+ "hash": "32e3aa00d2d3c6fc",
56
56
  "childrenByOrder": {}
57
57
  },
58
58
  {
@@ -484,7 +484,7 @@
484
484
  "auxiliaryFiles": [
485
485
  "842.js.map"
486
486
  ],
487
- "hash": "d180db321b033de7",
487
+ "hash": "6bc448c06fa39bf2",
488
488
  "childrenByOrder": {}
489
489
  },
490
490
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-patient-search-app",
3
- "version": "4.3.1-pre.1421",
3
+ "version": "4.3.1-pre.1435",
4
4
  "description": "Patient search microfrontend for the OpenMRS SPA",
5
5
  "browser": "dist/openmrs-esm-patient-search-app.js",
6
6
  "main": "src/index.ts",
@@ -46,5 +46,5 @@
46
46
  "devDependencies": {
47
47
  "webpack": "^5.74.0"
48
48
  },
49
- "gitHead": "fc7b491b60edfe70bdcacba191544199bded43de"
49
+ "gitHead": "b6bca54f01b3ac03e87afd9a600f82a2fa90fc24"
50
50
  }