@kenyaemr/esm-patient-registration-app 6.0.0 → 6.0.1-pre.1.0.0

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/dist/59.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[59],{7059:(e,t,a)=>{a.r(t),a.d(t,{default:()=>s});var l=a(268),n=a.n(l),i=a(4924),r=a(5305),o=a(2870),m=a(1140),c=function(e){var t=e.label,a=e.value;return n().createElement("div",{style:{display:"grid",gridTemplateColumns:"0.25fr 0.75fr",margin:"0.25rem"}},n().createElement("span",{style:{minWidth:"5rem",fontWeight:"bold"}},t),n().createElement("span",null,a))};const s=function(e){var t,a=e.close,l=e.onConfirm,s=e.patient,d=(0,i.useTranslation)().t;return n().createElement(n().Fragment,null,n().createElement("div",{className:"cds--modal-header"},n().createElement("h3",{className:"cds--modal-header__heading"},d("clientRegistryEmpty","Patient ".concat(null==s?void 0:s.firstName," ").concat(null==s?void 0:s.lastName," found")))),n().createElement("div",{className:"cds--modal-content"},n().createElement("p",null,d("patientDetailsFound","Patient information found in the registry, do you want to use the information to continue with registration?")),n().createElement("div",{style:{display:"flex",margin:"1rem"}},n().createElement(o.ExtensionSlot,{style:{display:"flex",alignItems:"center"},extensionSlotName:"patient-photo-slot",state:{patientName:"".concat(null==s?void 0:s.firstName," ").concat(null==s?void 0:s.lastName)}}),n().createElement("div",{style:{width:"100%",marginLeft:"0.625rem"}},n().createElement(c,{label:d("patientName","Patient name"),value:"".concat(null==s?void 0:s.firstName," ").concat(null==s?void 0:s.lastName)}),n().createElement(c,{label:d("nationalId","National ID"),value:null===(t=null==s?void 0:s.identifications[0])||void 0===t?void 0:t.identificationNumber}),n().createElement(c,{label:d("age","Age"),value:(0,o.age)(null==s?void 0:s.dateOfBirth)}),n().createElement(c,{label:d("dateOfBirth","Date of birth"),value:(0,o.formatDate)(new Date(null==s?void 0:s.dateOfBirth))}),n().createElement(c,{label:d("gender","Gender"),value:(0,m.Z)(null==s?void 0:s.gender)}),n().createElement(c,{label:d("NUPI"),value:null==s?void 0:s.clientNumber}),n().createElement(c,{label:d("SHA Number"),value:"--"})))),n().createElement("div",{className:"cds--modal-footer"},n().createElement(r.zxk,{kind:"secondary",onClick:a},d("cancel","Cancel")),n().createElement(r.zxk,{onClick:l},d("useValues","Use values"))))}}}]);
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[59],{7059:(e,t,a)=>{a.r(t),a.d(t,{default:()=>s});var n=a(268),l=a.n(n),i=a(4924),r=a(5305),o=a(2870),m=a(1140),c=function(e){var t=e.label,a=e.value;return l().createElement("div",{style:{display:"grid",gridTemplateColumns:"0.25fr 0.75fr",margin:"0.25rem"}},l().createElement("span",{style:{minWidth:"5rem",fontWeight:"bold"}},t),l().createElement("span",null,a))};const s=function(e){var t,a=e.close,n=e.onConfirm,s=e.patient,d=(0,i.useTranslation)().t;return l().createElement(l().Fragment,null,l().createElement("div",{className:"cds--modal-header"},l().createElement("h3",{className:"cds--modal-header__heading"},d("clientRegistryEmpty","Patient ".concat(null==s?void 0:s.firstName," ").concat(null==s?void 0:s.lastName," found")))),l().createElement("div",{className:"cds--modal-content"},l().createElement("p",null,d("patientDetailsFound","Patient information found in the registry, do you want to use the information to continue with registration?")),l().createElement("div",{style:{display:"flex",margin:"1rem"}},l().createElement(o.ExtensionSlot,{style:{display:"flex",alignItems:"center"},name:"patient-photo-slot",state:{patientName:"".concat(null==s?void 0:s.firstName," ").concat(null==s?void 0:s.lastName)}}),l().createElement("div",{style:{width:"100%",marginLeft:"0.625rem"}},l().createElement(c,{label:d("patientName","Patient name"),value:"".concat(null==s?void 0:s.firstName," ").concat(null==s?void 0:s.lastName)}),l().createElement(c,{label:d("nationalId","National ID"),value:null===(t=null==s?void 0:s.identifications[0])||void 0===t?void 0:t.identificationNumber}),l().createElement(c,{label:d("age","Age"),value:(0,o.age)(null==s?void 0:s.dateOfBirth)}),l().createElement(c,{label:d("dateOfBirth","Date of birth"),value:(0,o.formatDate)(new Date(null==s?void 0:s.dateOfBirth))}),l().createElement(c,{label:d("gender","Gender"),value:(0,m.Z)(null==s?void 0:s.gender)}),l().createElement(c,{label:d("nupiIdentification","NUPI"),value:null==s?void 0:s.clientNumber}),l().createElement(c,{label:d("shaNumber","SHA Number"),value:"--"})))),l().createElement("div",{className:"cds--modal-footer"},l().createElement(r.zxk,{kind:"secondary",onClick:a},d("cancel","Cancel")),l().createElement(r.zxk,{onClick:n},d("useValues","Use values"))))}}}]);
package/dist/59.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"59.js","mappings":"sQAOMA,EAA0D,Y,IAAGC,EAAAA,EAAAA,MAAOC,EAAAA,EAAAA,MACxE,OACE,kBAACC,MAAAA,CAAIC,MAAO,CAAEC,QAAS,OAAQC,oBAAqB,gBAAiBC,OAAQ,YAC3E,kBAACC,OAAAA,CAAKJ,MAAO,CAAEK,SAAU,OAAQC,WAAY,SAAWT,GACxD,kBAACO,OAAAA,KAAMN,GAGb,EAyDA,QAjDoD,Y,MAAGS,EAAAA,EAAAA,MAAOC,EAAAA,EAAAA,UAAWC,EAAAA,EAAAA,QACjE,GAAQC,EAAAA,EAAAA,kBAANC,EACR,OACE,oCACE,kBAACZ,MAAAA,CAAIa,UAAU,qBACb,kBAACC,KAAAA,CAAGD,UAAU,8BACXD,EAAE,sBAAuB,WAAiCF,OAAtBA,aAAAA,EAAAA,EAASK,UAAU,KAAqB,OAAlBL,aAAAA,EAAAA,EAASM,SAAS,aAGjF,kBAAChB,MAAAA,CAAIa,UAAU,sBACb,kBAACI,IAAAA,KACEL,EACC,sBACA,iHAGJ,kBAACZ,MAAAA,CAAIC,MAAO,CAAEC,QAAS,OAAQE,OAAQ,SACrC,kBAACc,EAAAA,cAAaA,CACZjB,MAAO,CAAEC,QAAS,OAAQiB,WAAY,UACtCC,kBAAkB,qBAClBC,MAAO,CAAEC,YAAa,GAAyBZ,OAAtBA,aAAAA,EAAAA,EAASK,UAAU,KAAqB,OAAlBL,aAAAA,EAAAA,EAASM,aAE1D,kBAAChB,MAAAA,CAAIC,MAAO,CAAEsB,MAAO,OAAQC,WAAY,aACvC,kBAAC3B,EAAAA,CACCC,MAAOc,EAAE,cAAe,gBACxBb,MAAO,GAAyBW,OAAtBA,aAAAA,EAAAA,EAASK,UAAU,KAAqB,OAAlBL,aAAAA,EAAAA,EAASM,YAE3C,kBAACnB,EAAAA,CACCC,MAAOc,EAAE,aAAc,eACvBb,MAAkC,QAA3BW,EAAAA,aAAAA,EAAAA,EAASe,gBAAgB,UAAE,WAA3Bf,EAAAA,EAA6BgB,uBAEtC,kBAAC7B,EAAAA,CAAYC,MAAOc,EAAE,MAAO,OAAQb,OAAO4B,EAAAA,EAAAA,KAAIjB,aAAAA,EAAAA,EAASkB,eACzD,kBAAC/B,EAAAA,CAAYC,MAAOc,EAAE,cAAe,iBAAkBb,OAAO8B,EAAAA,EAAAA,YAAW,IAAIC,KAAKpB,aAAAA,EAAAA,EAASkB,gBAC3F,kBAAC/B,EAAAA,CAAYC,MAAOc,EAAE,SAAU,UAAWb,OAAOgC,EAAAA,EAAAA,GAAWrB,aAAAA,EAAAA,EAASsB,UACtE,kBAACnC,EAAAA,CAAYC,MAAOc,EAAE,QAASb,MAAOW,aAAAA,EAAAA,EAASuB,eAC/C,kBAACpC,EAAAA,CAAYC,MAAOc,EAAE,cAAeb,MAAO,UAIlD,kBAACC,MAAAA,CAAIa,UAAU,qBACb,kBAACqB,EAAAA,IAAMA,CAACC,KAAK,YAAYC,QAAS5B,GAC/BI,EAAE,SAAU,WAEf,kBAACsB,EAAAA,IAAMA,CAACE,QAAS3B,GAAYG,EAAE,YAAa,gBAIpD,C","sources":["webpack://@kenyaemr/esm-patient-registration-app/./src/patient-verification/verification-modal/confirm-prompt.component.tsx"],"names":["PatientInfo","label","value","div","style","display","gridTemplateColumns","margin","span","minWidth","fontWeight","close","onConfirm","patient","useTranslation","t","className","h3","firstName","lastName","p","ExtensionSlot","alignItems","extensionSlotName","state","patientName","width","marginLeft","identifications","identificationNumber","age","dateOfBirth","formatDate","Date","capitalize","gender","clientNumber","Button","kind","onClick"],"sourceRoot":""}
1
+ {"version":3,"file":"59.js","mappings":"sQAOMA,EAA0D,Y,IAAGC,EAAAA,EAAAA,MAAOC,EAAAA,EAAAA,MACxE,OACE,kBAACC,MAAAA,CAAIC,MAAO,CAAEC,QAAS,OAAQC,oBAAqB,gBAAiBC,OAAQ,YAC3E,kBAACC,OAAAA,CAAKJ,MAAO,CAAEK,SAAU,OAAQC,WAAY,SAAWT,GACxD,kBAACO,OAAAA,KAAMN,GAGb,EAyDA,QAjDoD,Y,MAAGS,EAAAA,EAAAA,MAAOC,EAAAA,EAAAA,UAAWC,EAAAA,EAAAA,QACjE,GAAQC,EAAAA,EAAAA,kBAANC,EACR,OACE,oCACE,kBAACZ,MAAAA,CAAIa,UAAU,qBACb,kBAACC,KAAAA,CAAGD,UAAU,8BACXD,EAAE,sBAAuB,WAAiCF,OAAtBA,aAAAA,EAAAA,EAASK,UAAU,KAAqB,OAAlBL,aAAAA,EAAAA,EAASM,SAAS,aAGjF,kBAAChB,MAAAA,CAAIa,UAAU,sBACb,kBAACI,IAAAA,KACEL,EACC,sBACA,iHAGJ,kBAACZ,MAAAA,CAAIC,MAAO,CAAEC,QAAS,OAAQE,OAAQ,SACrC,kBAACc,EAAAA,cAAaA,CACZjB,MAAO,CAAEC,QAAS,OAAQiB,WAAY,UACtCC,KAAK,qBACLC,MAAO,CAAEC,YAAa,GAAyBZ,OAAtBA,aAAAA,EAAAA,EAASK,UAAU,KAAqB,OAAlBL,aAAAA,EAAAA,EAASM,aAE1D,kBAAChB,MAAAA,CAAIC,MAAO,CAAEsB,MAAO,OAAQC,WAAY,aACvC,kBAAC3B,EAAAA,CACCC,MAAOc,EAAE,cAAe,gBACxBb,MAAO,GAAyBW,OAAtBA,aAAAA,EAAAA,EAASK,UAAU,KAAqB,OAAlBL,aAAAA,EAAAA,EAASM,YAE3C,kBAACnB,EAAAA,CACCC,MAAOc,EAAE,aAAc,eACvBb,MAAkC,QAA3BW,EAAAA,aAAAA,EAAAA,EAASe,gBAAgB,UAAE,WAA3Bf,EAAAA,EAA6BgB,uBAEtC,kBAAC7B,EAAAA,CAAYC,MAAOc,EAAE,MAAO,OAAQb,OAAO4B,EAAAA,EAAAA,KAAIjB,aAAAA,EAAAA,EAASkB,eACzD,kBAAC/B,EAAAA,CAAYC,MAAOc,EAAE,cAAe,iBAAkBb,OAAO8B,EAAAA,EAAAA,YAAW,IAAIC,KAAKpB,aAAAA,EAAAA,EAASkB,gBAC3F,kBAAC/B,EAAAA,CAAYC,MAAOc,EAAE,SAAU,UAAWb,OAAOgC,EAAAA,EAAAA,GAAWrB,aAAAA,EAAAA,EAASsB,UACtE,kBAACnC,EAAAA,CAAYC,MAAOc,EAAE,qBAAsB,QAASb,MAAOW,aAAAA,EAAAA,EAASuB,eACrE,kBAACpC,EAAAA,CAAYC,MAAOc,EAAE,YAAa,cAAeb,MAAO,UAI/D,kBAACC,MAAAA,CAAIa,UAAU,qBACb,kBAACqB,EAAAA,IAAMA,CAACC,KAAK,YAAYC,QAAS5B,GAC/BI,EAAE,SAAU,WAEf,kBAACsB,EAAAA,IAAMA,CAACE,QAAS3B,GAAYG,EAAE,YAAa,gBAIpD,C","sources":["webpack://@kenyaemr/esm-patient-registration-app/./src/patient-verification/verification-modal/confirm-prompt.component.tsx"],"names":["PatientInfo","label","value","div","style","display","gridTemplateColumns","margin","span","minWidth","fontWeight","close","onConfirm","patient","useTranslation","t","className","h3","firstName","lastName","p","ExtensionSlot","alignItems","name","state","patientName","width","marginLeft","identifications","identificationNumber","age","dateOfBirth","formatDate","Date","capitalize","gender","clientNumber","Button","kind","onClick"],"sourceRoot":""}
@@ -5,9 +5,9 @@
5
5
  "initial": false,
6
6
  "entry": false,
7
7
  "recorded": false,
8
- "size": 4071,
8
+ "size": 4093,
9
9
  "sizes": {
10
- "javascript": 4071
10
+ "javascript": 4093
11
11
  },
12
12
  "names": [],
13
13
  "idHints": [],
@@ -21,7 +21,7 @@
21
21
  "auxiliaryFiles": [
22
22
  "59.js.map"
23
23
  ],
24
- "hash": "f0520ab4bc7ec4aa",
24
+ "hash": "5a62e36761b88727",
25
25
  "childrenByOrder": {}
26
26
  },
27
27
  {
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.24.0"},"pages":[{"component":"root","route":"patient-registration","online":true,"offline":true},{"component":"editPatient","routeRegex":"patient\\/([a-zA-Z0-9\\-]+)\\/edit","online":true,"offline":true}],"extensions":[{"component":"addPatientLink","name":"add-patient-action","slot":"top-nav-actions-slot","online":true,"offline":true},{"component":"cancelPatientEditModal","name":"cancel-patient-edit-modal","online":true,"offline":true},{"component":"patientPhoto","name":"patient-photo-widget","slot":"patient-photo-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-actions-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-search-actions-slot","online":true,"offline":true},{"component":"deleteIdentifierConfirmationModal","name":"delete-identifier-confirmation-modal","online":true,"offline":true},{"component":"emptyClientRegistryModal","name":"empty-client-registry-modal","online":true,"offline":true},{"component":"confirmClientRegistryModal","name":"confirm-client-registry-modal","online":true,"offline":true}],"version":"6.0.0"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.24.0"},"pages":[{"component":"root","route":"patient-registration","online":true,"offline":true},{"component":"editPatient","routeRegex":"patient\\/([a-zA-Z0-9\\-]+)\\/edit","online":true,"offline":true}],"extensions":[{"component":"addPatientLink","name":"add-patient-action","slot":"top-nav-actions-slot","online":true,"offline":true},{"component":"cancelPatientEditModal","name":"cancel-patient-edit-modal","online":true,"offline":true},{"component":"patientPhoto","name":"patient-photo-widget","slot":"patient-photo-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-actions-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-search-actions-slot","online":true,"offline":true},{"component":"deleteIdentifierConfirmationModal","name":"delete-identifier-confirmation-modal","online":true,"offline":true},{"component":"emptyClientRegistryModal","name":"empty-client-registry-modal","online":true,"offline":true},{"component":"confirmClientRegistryModal","name":"confirm-client-registry-modal","online":true,"offline":true}],"version":"6.0.1-pre.1.0.0"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenyaemr/esm-patient-registration-app",
3
- "version": "6.0.0",
3
+ "version": "6.0.1-pre.1.0.0",
4
4
  "description": "Patient registration microfrontend for the OpenMRS SPA",
5
5
  "browser": "dist/kenyaemr-esm-patient-registration-app.js",
6
6
  "main": "src/index.ts",
@@ -56,5 +56,6 @@
56
56
  },
57
57
  "devDependencies": {
58
58
  "webpack": "^5.74.0"
59
- }
59
+ },
60
+ "stableVersion": "6.0.0"
60
61
  }
@@ -39,7 +39,7 @@ const ConfirmPrompt: React.FC<ConfirmPromptProps> = ({ close, onConfirm, patient
39
39
  <div style={{ display: 'flex', margin: '1rem' }}>
40
40
  <ExtensionSlot
41
41
  style={{ display: 'flex', alignItems: 'center' }}
42
- extensionSlotName="patient-photo-slot"
42
+ name="patient-photo-slot"
43
43
  state={{ patientName: `${patient?.firstName} ${patient?.lastName}` }}
44
44
  />
45
45
  <div style={{ width: '100%', marginLeft: '0.625rem' }}>
@@ -54,8 +54,8 @@ const ConfirmPrompt: React.FC<ConfirmPromptProps> = ({ close, onConfirm, patient
54
54
  <PatientInfo label={t('age', 'Age')} value={age(patient?.dateOfBirth)} />
55
55
  <PatientInfo label={t('dateOfBirth', 'Date of birth')} value={formatDate(new Date(patient?.dateOfBirth))} />
56
56
  <PatientInfo label={t('gender', 'Gender')} value={capitalize(patient?.gender)} />
57
- <PatientInfo label={t('NUPI')} value={patient?.clientNumber} />
58
- <PatientInfo label={t('SHA Number')} value={'--'} />
57
+ <PatientInfo label={t('nupiIdentification', 'NUPI')} value={patient?.clientNumber} />
58
+ <PatientInfo label={t('shaNumber', 'SHA Number')} value={'--'} />
59
59
  </div>
60
60
  </div>
61
61
  </div>