@kenyaemr/esm-patient-registration-app 4.6.0 → 5.2.2

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.
Files changed (108) hide show
  1. package/dist/130.js +1 -1
  2. package/dist/130.js.LICENSE.txt +0 -2
  3. package/dist/130.js.map +1 -1
  4. package/dist/152.js +1 -0
  5. package/dist/152.js.map +1 -0
  6. package/dist/255.js +2 -0
  7. package/dist/255.js.map +1 -0
  8. package/dist/303.js +1 -0
  9. package/dist/303.js.map +1 -0
  10. package/dist/319.js +1 -1
  11. package/dist/330.js +1 -1
  12. package/dist/388.js +2 -0
  13. package/dist/388.js.LICENSE.txt +34 -0
  14. package/dist/388.js.map +1 -0
  15. package/dist/460.js +1 -1
  16. package/dist/537.js +1 -1
  17. package/dist/537.js.map +1 -1
  18. package/dist/574.js +1 -1
  19. package/dist/59.js +1 -0
  20. package/dist/59.js.map +1 -0
  21. package/dist/598.js +1 -0
  22. package/dist/598.js.map +1 -0
  23. package/dist/62.js +1 -1
  24. package/dist/62.js.map +1 -1
  25. package/dist/729.js +1 -0
  26. package/dist/729.js.map +1 -0
  27. package/dist/735.js +1 -1
  28. package/dist/757.js +1 -1
  29. package/dist/788.js +1 -1
  30. package/dist/807.js +1 -1
  31. package/dist/833.js +1 -1
  32. package/dist/840.js +1 -0
  33. package/dist/840.js.map +1 -0
  34. package/dist/main.js +1 -1
  35. package/dist/main.js.LICENSE.txt +35 -0
  36. package/dist/main.js.map +1 -1
  37. package/dist/openmrs-esm-patient-registration-app.js +1 -1
  38. package/dist/openmrs-esm-patient-registration-app.js.buildmanifest.json +114 -221
  39. package/dist/openmrs-esm-patient-registration-app.js.map +1 -1
  40. package/dist/routes.json +1 -1
  41. package/package.json +4 -3
  42. package/src/declarations.d.ts +2 -0
  43. package/src/index.ts +23 -14
  44. package/src/patient-registration/field/address/address-field.component.tsx +2 -2
  45. package/src/patient-registration/field/address/custom-address-field.component.tsx +3 -2
  46. package/src/patient-registration/field/dob/dob.component.tsx +51 -42
  47. package/src/patient-registration/field/dob/dob.test.tsx +1 -14
  48. package/src/patient-registration/field/field.resource.ts +5 -5
  49. package/src/patient-registration/field/id/id-field.component.tsx +8 -6
  50. package/src/patient-registration/field/id/{identifier-selection-overlay.tsx → identifier-selection-overlay.component.tsx} +27 -23
  51. package/src/patient-registration/field/obs/obs-field.component.tsx +4 -3
  52. package/src/patient-registration/field/person-attributes/coded-attributes.component.tsx +2 -1
  53. package/src/patient-registration/field/person-attributes/coded-person-attribute-field.component.tsx +4 -3
  54. package/src/patient-registration/field/person-attributes/person-attribute-field.component.tsx +8 -2
  55. package/src/patient-registration/field/person-attributes/person-attributes.resource.tsx +1 -1
  56. package/src/patient-registration/field/person-attributes/text-person-attribute-field.component.tsx +3 -2
  57. package/src/patient-registration/input/basic-input/input/input.component.tsx +122 -2
  58. package/src/patient-registration/input/combo-input/combo-input.component.tsx +7 -6
  59. package/src/patient-registration/input/custom-input/autosuggest/autosuggest.component.tsx +109 -6
  60. package/src/patient-registration/input/custom-input/autosuggest/autosuggest.scss +9 -0
  61. package/src/patient-registration/input/custom-input/autosuggest/autosuggest.test.tsx +2 -2
  62. package/src/patient-registration/input/dummy-data/dummy-data-input.component.tsx +2 -1
  63. package/src/patient-registration/patient-registration.component.tsx +49 -44
  64. package/src/patient-registration/patient-registration.resource.tsx +18 -7
  65. package/src/patient-registration/patient-registration.scss +6 -0
  66. package/src/patient-registration/patient-registration.test.tsx +19 -21
  67. package/src/patient-registration/section/death-info/death-info-section.component.tsx +2 -1
  68. package/src/patient-registration/section/demographics/demographics-section.test.tsx +1 -14
  69. package/src/patient-registration/section/patient-relationships/relationships-section.component.tsx +27 -20
  70. package/src/patient-registration/section/patient-relationships/relationships.resource.tsx +1 -1
  71. package/src/patient-registration/validation/patient-registration-validation.tsx +6 -0
  72. package/src/root.component.tsx +3 -2
  73. package/src/routes.json +7 -0
  74. package/translations/am.json +18 -7
  75. package/translations/ar.json +17 -6
  76. package/translations/en.json +16 -5
  77. package/translations/es.json +17 -6
  78. package/translations/fr.json +18 -7
  79. package/translations/he.json +28 -17
  80. package/translations/km.json +30 -19
  81. package/dist/117.js +0 -2
  82. package/dist/117.js.map +0 -1
  83. package/dist/218.js +0 -1
  84. package/dist/218.js.map +0 -1
  85. package/dist/275.js +0 -1
  86. package/dist/275.js.map +0 -1
  87. package/dist/317.js +0 -2
  88. package/dist/317.js.LICENSE.txt +0 -6
  89. package/dist/317.js.map +0 -1
  90. package/dist/348.js +0 -1
  91. package/dist/348.js.map +0 -1
  92. package/dist/520.js +0 -2
  93. package/dist/520.js.LICENSE.txt +0 -14
  94. package/dist/520.js.map +0 -1
  95. package/dist/635.js +0 -1
  96. package/dist/635.js.map +0 -1
  97. package/dist/68.js +0 -1
  98. package/dist/68.js.map +0 -1
  99. package/dist/693.js +0 -1
  100. package/dist/693.js.map +0 -1
  101. package/dist/742.js +0 -1
  102. package/dist/742.js.map +0 -1
  103. package/dist/857.js +0 -1
  104. package/dist/857.js.map +0 -1
  105. package/dist/975.js +0 -1
  106. package/dist/975.js.map +0 -1
  107. /package/dist/{117.js.LICENSE.txt → 255.js.LICENSE.txt} +0 -0
  108. /package/src/patient-registration/ui-components/overlay/{index.tsx → overlay.component.tsx} +0 -0
package/dist/152.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[152,303],{2303:(e,a,t)=>{t.r(a),t.d(a,{default:()=>l,immutable:()=>n});var i=t(3255),r=t(3325);const n=e=>(a,t,i)=>(i.revalidateOnFocus=!1,i.revalidateIfStale=!1,i.revalidateOnReconnect=!1,e(a,t,i));var l=(0,r.withMiddleware)(i.ZP,n)}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"152.js","mappings":"qPAGA,MAAMA,EAAaC,GAAa,CAACC,EAAKC,EAASC,KAEvCA,EAAOC,mBAAoB,EAC3BD,EAAOE,mBAAoB,EAC3BF,EAAOG,uBAAwB,EACxBN,EAAWC,EAAKC,EAASC,IAExC,IAAII,GAAQ,IAAAC,gBAAe,KAAQT,E","sources":["webpack://@kenyaemr/esm-patient-registration-app/../../node_modules/swr/immutable/dist/index.mjs"],"names":["immutable","useSWRNext","key","fetcher","config","revalidateOnFocus","revalidateIfStale","revalidateOnReconnect","index","withMiddleware"],"sourceRoot":""}
package/dist/255.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 255.js.LICENSE.txt */
2
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[255],{452:(e,n,t)=>{var r=t(268),i="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},a=r.useState,s=r.useEffect,u=r.useLayoutEffect,o=r.useDebugValue;function d(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!i(e,t)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),r=a({inst:{value:t,getSnapshot:n}}),i=r[0].inst,c=r[1];return u((function(){i.value=t,i.getSnapshot=n,d(i)&&c({inst:i})}),[e,t,n]),s((function(){return d(i)&&c({inst:i}),e((function(){d(i)&&c({inst:i})}))}),[e]),o(t),t};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},3100:(e,n,t)=>{e.exports=t(452)},3255:(e,n,t)=>{t.d(n,{ZP:()=>u});var r=t(268),i=t(3100),a=t(3325);const s={dedupe:!0};a.OBJECT.defineProperty(a.SWRConfig,"defaultValue",{value:a.defaultConfig});var u=(0,a.withArgs)(((e,n,t)=>{const{cache:u,compare:o,suspense:d,fallbackData:c,revalidateOnMount:l,refreshInterval:f,refreshWhenHidden:E,refreshWhenOffline:g,keepPreviousData:p}=t,[v,S,h]=a.SWRGlobalState.get(u),[b,m]=(0,a.serialize)(e),U=(0,r.useRef)(!1),_=(0,r.useRef)(!1),y=(0,r.useRef)(b),R=(0,r.useRef)(n),C=(0,r.useRef)(t),T=()=>C.current,V=()=>T().isVisible()&&T().isOnline(),[k,w,I]=(0,a.createCacheHelper)(u,b),L=(0,r.useRef)({}).current,O=(0,a.isUndefined)(c)?t.fallback[b]:c,D=(e,n)=>{let t=!0;for(const r in L){const i=r;o(n[i],e[i])||"data"===i&&(0,a.isUndefined)(e[i])&&o(n[i],j)||(t=!1)}return t},N=(0,r.useMemo)((()=>{const e=!!b&&!!n&&((0,a.isUndefined)(l)?!T().isPaused()&&!d:l),t=()=>{const n=k(),t=(0,a.mergeObjects)(n);return delete t._k,e?{isValidating:!0,isLoading:!0,...t}:t};let r=t();return()=>{const e=t();return D(e,r)?r:r=e}}),[u,b]),F=(0,i.useSyncExternalStore)((0,r.useCallback)((e=>I(b,((n,t)=>{D(n,t)||e()}))),[u,b]),N,N),A=!U.current,P=F.data,x=(0,a.isUndefined)(P)?O:P,M=F.error,W=(0,r.useRef)(x),j=p?(0,a.isUndefined)(P)?W.current:P:x,G=A&&!(0,a.isUndefined)(l)?l:!T().isPaused()&&(d?!(0,a.isUndefined)(x)&&t.revalidateIfStale:(0,a.isUndefined)(x)||t.revalidateIfStale),H=!!(b&&n&&A&&G),Y=(0,a.isUndefined)(F.isValidating)?H:F.isValidating,q=(0,a.isUndefined)(F.isLoading)?H:F.isLoading,z=(0,r.useCallback)((async e=>{const n=R.current;if(!b||!n||_.current||T().isPaused())return!1;let r,i,s=!0;const u=e||{},d=!h[b]||!u.dedupe,c=()=>a.IS_REACT_LEGACY?!_.current&&b===y.current&&U.current:b===y.current,l={isValidating:!1,isLoading:!1},f=()=>{w(l)},E=()=>{const e=h[b];e&&e[1]===i&&delete h[b]},g={isValidating:!0};(0,a.isUndefined)(k().data)&&(g.isLoading=!0);try{if(d&&(w(g),t.loadingTimeout&&(0,a.isUndefined)(k().data)&&setTimeout((()=>{s&&c()&&T().onLoadingSlow(b,t)}),t.loadingTimeout),h[b]=[n(m),(0,a.getTimestamp)()]),[r,i]=h[b],r=await r,d&&setTimeout(E,t.dedupingInterval),!h[b]||h[b][1]!==i)return d&&c()&&T().onDiscarded(b),!1;l.error=a.UNDEFINED;const e=S[b];if(!(0,a.isUndefined)(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return f(),d&&c()&&T().onDiscarded(b),!1;const u=k().data;l.data=o(u,r)?u:r,d&&c()&&T().onSuccess(r,b,t)}catch(e){E();const n=T(),{shouldRetryOnError:t}=n;n.isPaused()||(l.error=e,d&&c()&&(n.onError(e,b,n),(!0===t||(0,a.isFunction)(t)&&t(e))&&V()&&n.onErrorRetry(e,b,n,z,{retryCount:(u.retryCount||0)+1,dedupe:!0})))}return s=!1,f(),!0}),[b,u]),B=(0,r.useCallback)(((...e)=>(0,a.internalMutate)(u,y.current,...e)),[]);if((0,a.useIsomorphicLayoutEffect)((()=>{R.current=n,C.current=t,(0,a.isUndefined)(P)||(W.current=P)})),(0,a.useIsomorphicLayoutEffect)((()=>{if(!b)return;const e=z.bind(a.UNDEFINED,s);let n=0;const t=(0,a.subscribeCallback)(b,v,(t=>{if(t==a.revalidateEvents.FOCUS_EVENT){const t=Date.now();T().revalidateOnFocus&&t>n&&V()&&(n=t+T().focusThrottleInterval,e())}else if(t==a.revalidateEvents.RECONNECT_EVENT)T().revalidateOnReconnect&&V()&&e();else if(t==a.revalidateEvents.MUTATE_EVENT)return z()}));return _.current=!1,y.current=b,U.current=!0,w({_k:m}),G&&((0,a.isUndefined)(x)||a.IS_SERVER?e():(0,a.rAF)(e)),()=>{_.current=!0,t()}}),[b]),(0,a.useIsomorphicLayoutEffect)((()=>{let e;function n(){const n=(0,a.isFunction)(f)?f(x):f;n&&-1!==e&&(e=setTimeout(t,n))}function t(){k().error||!E&&!T().isVisible()||!g&&!T().isOnline()?n():z(s).then(n)}return n(),()=>{e&&(clearTimeout(e),e=-1)}}),[f,E,g,b]),(0,r.useDebugValue)(j),d&&(0,a.isUndefined)(x)&&b){if(!a.IS_REACT_LEGACY&&a.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");throw R.current=n,C.current=t,_.current=!1,(0,a.isUndefined)(M)?z(s):M}return{mutate:B,get data(){return L.data=!0,j},get error(){return L.error=!0,M},get isValidating(){return L.isValidating=!0,Y},get isLoading(){return L.isLoading=!0,q}}}))}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"255.js","mappings":";0KASa,IAAIA,EAAE,EAAQ,KAA4EC,EAAE,mBAAoBC,OAAOC,GAAGD,OAAOC,GAA1G,SAAWC,EAAEC,GAAG,OAAOD,IAAIC,IAAI,IAAID,GAAG,EAAEA,GAAI,EAAEC,IAAID,GAAIA,GAAGC,GAAIA,CAAC,EAAiDC,EAAEN,EAAEO,SAASC,EAAER,EAAES,UAAUC,EAAEV,EAAEW,gBAAgBC,EAAEZ,EAAEa,cACtM,SAASC,EAAEV,GAAG,IAAIC,EAAED,EAAEW,YAAYX,EAAEA,EAAEY,MAAM,IAAI,IAAIC,EAAEZ,IAAI,OAAOJ,EAAEG,EAAEa,EAAE,CAAC,MAAMC,GAAG,OAAM,CAAE,CAAC,CAA4B,IAAIC,EAAE,oBAAqBC,aAAQ,IAAqBA,OAAOC,eAAU,IAAqBD,OAAOC,SAASC,cAAzI,SAAWlB,EAAEC,GAAG,OAAOA,GAAG,EAD+F,SAAWD,EAAEC,GAAG,IAAIY,EAAEZ,IAAIa,EAAEZ,EAAE,CAACiB,KAAK,CAACP,MAAMC,EAAEF,YAAYV,KAAKmB,EAAEN,EAAE,GAAGK,KAAKE,EAAEP,EAAE,GAAwJ,OAArJR,GAAE,WAAWc,EAAER,MAAMC,EAAEO,EAAET,YAAYV,EAAES,EAAEU,IAAIC,EAAE,CAACF,KAAKC,GAAG,GAAE,CAACpB,EAAEa,EAAEZ,IAAIG,GAAE,WAA6B,OAAlBM,EAAEU,IAAIC,EAAE,CAACF,KAAKC,IAAWpB,GAAE,WAAWU,EAAEU,IAAIC,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KAEHjF,EAAaK,SAAU,EACvB+E,GAAa,CAChB,GACF,CACCzF,KAGJ,IAAAqF,4BAA0B,KACtB,IAAIkB,EACJ,SAASC,IAGL,MAAMC,GAAW,IAAA1B,YAAWxF,GAAmBA,EAAgBoD,GAAQpD,EAInEkH,IAAuB,IAAXF,IACZA,EAAQrC,WAAWwC,EAASD,GAEpC,CACA,SAASC,IAGA5F,IAAW8B,QAAUpD,IAAqBiB,IAAYG,cAAiBnB,IAAsBgB,IAAYI,WAI1G2F,IAHAvD,EAAW1E,GAAaoI,KAAKH,EAKrC,CAEA,OADAA,IACO,KACCD,IACAK,aAAaL,GACbA,GAAS,EACb,CACH,GACF,CACChH,EACAC,EACAC,EACAO,KAGJ,IAAAzC,eAAcmE,GAKVtC,IAAY,IAAAgC,aAAYuB,IAAS3C,EAAK,CAItC,IAAK,EAAA2D,iBAAmB,EAAA0C,UACpB,MAAM,IAAIQ,MAAM,yDAMpB,MAHAtG,EAAWG,QAAU1B,EACrBwB,EAAUE,QAAUzB,EACpBoB,EAAaK,SAAU,GACjB,IAAAU,aAAYwB,GAASK,EAAW1E,GAAeqE,CACzD,CACA,MAAO,CACHkE,OAAQ5B,EACJvC,WAEA,OADAzB,EAAkByB,MAAO,EAClBjB,CACX,EACIkB,YAEA,OADA1B,EAAkB0B,OAAQ,EACnBA,CACX,EACIT,mBAEA,OADAjB,EAAkBiB,cAAe,EAC1BA,CACX,EACIC,gBAEA,OADAlB,EAAkBkB,WAAY,EACvBA,CACX,EACH","sources":["webpack://@kenyaemr/esm-patient-registration-app/../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js","webpack://@kenyaemr/esm-patient-registration-app/../../node_modules/use-sync-external-store/shim/index.js","webpack://@kenyaemr/esm-patient-registration-app/../../node_modules/swr/core/dist/index.mjs"],"names":["e","k","Object","is","a","b","l","useState","m","useEffect","n","useLayoutEffect","p","useDebugValue","r","getSnapshot","value","d","f","u","window","document","createElement","inst","c","g","exports","useSyncExternalStore","module","WITH_DEDUPE","dedupe","OBJECT","defineProperty","SWRConfig","defaultConfig","useSWR","withArgs","_key","fetcher","config","cache","compare","suspense","fallbackData","revalidateOnMount","refreshInterval","refreshWhenHidden","refreshWhenOffline","keepPreviousData","EVENT_REVALIDATORS","MUTATION","FETCH","SWRGlobalState","get","key","fnArg","serialize","initialMountedRef","useRef","unmountedRef","keyRef","fetcherRef","configRef","getConfig","current","isActive","isVisible","isOnline","getCache","setCache","subscribeCache","createCacheHelper","stateDependencies","fallback","isUndefined","isEqual","prev","equal","_","t","returnedData","useMemo","shouldStartRequest","isPaused","getSelectedCache","state","snapshot","mergeObjects","_k","isValidating","isLoading","memorizedSnapshot","cached","useCallback","callback","isInitialMount","cachedData","data","error","laggyDataRef","shouldDoInitialRevalidation","revalidateIfStale","defaultValidatingState","revalidate","async","revalidateOpts","currentFetcher","newData","startAt","loading","opts","shouldStartNewRequest","callbackSafeguard","IS_REACT_LEGACY","finalState","finishRequestAndUpdateState","cleanupState","requestInfo","initialState","loadingTimeout","setTimeout","onLoadingSlow","getTimestamp","dedupingInterval","onDiscarded","UNDEFINED","mutationInfo","cacheData","onSuccess","err","currentConfig","shouldRetryOnError","onError","isFunction","onErrorRetry","retryCount","boundMutate","args","internalMutate","useIsomorphicLayoutEffect","softRevalidate","bind","nextFocusRevalidatedAt","unsubEvents","subscribeCallback","type","revalidateEvents","FOCUS_EVENT","now","Date","revalidateOnFocus","focusThrottleInterval","RECONNECT_EVENT","revalidateOnReconnect","MUTATE_EVENT","IS_SERVER","rAF","timer","next","interval","execute","then","clearTimeout","Error","mutate"],"sourceRoot":""}
package/dist/303.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[303,152],{2303:(e,a,t)=>{t.r(a),t.d(a,{default:()=>l,immutable:()=>n});var i=t(3255),r=t(3325);const n=e=>(a,t,i)=>(i.revalidateOnFocus=!1,i.revalidateIfStale=!1,i.revalidateOnReconnect=!1,e(a,t,i));var l=(0,r.withMiddleware)(i.ZP,n)}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"303.js","mappings":"qPAGA,MAAMA,EAAaC,GAAa,CAACC,EAAKC,EAASC,KAEvCA,EAAOC,mBAAoB,EAC3BD,EAAOE,mBAAoB,EAC3BF,EAAOG,uBAAwB,EACxBN,EAAWC,EAAKC,EAASC,IAExC,IAAII,GAAQ,IAAAC,gBAAe,KAAQT,E","sources":["webpack://@kenyaemr/esm-patient-registration-app/../../node_modules/swr/immutable/dist/index.mjs"],"names":["immutable","useSWRNext","key","fetcher","config","revalidateOnFocus","revalidateIfStale","revalidateOnReconnect","index","withMiddleware"],"sourceRoot":""}
package/dist/319.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[319],{8319:e=>{e.exports=JSON.parse('{"addRelationshipButtonText":"Agregar relación","addressHeader":"Dirección","allFieldsRequiredText":"Todos los campos son obligatorios a menos que se indique como opcionales","autoGeneratedPlaceholderText":"Autogenerado","birthdayNotInTheFuture":"Cumpleaños no puede ser en el futuro","birthdayRequired":"Cumpleaños es obligatorio","birthFieldLabelText":"Nacimiento","cancel":"Cancelar","causeOfDeathInputLabel":"Causa de defunción","configure":"Configurar","contactSection":"Detalles de Contacto","createNew":"Crear Nuevo/a","dateOfBirthLabelText":"Fecha de Nacimiento","deathDateInputLabel":"Fecha de fallecimiento","deathdayNotInTheFuture":"El día de la muerte no puede ser en el futuro","deathSection":"Información de Fallecimiento","deleteIdentifierTooltip":"Eliminar","deleteRelationshipTooltipText":"Eliminar","demographicsSection":"Información Básica","discard":"Descartar","discardModalBody":"Los cambios realizados en los datos de este paciente no se han guardado. ¿Descartar cambios?","discardModalHeader":"Confirmar cambios de descarte","dobToggleLabelText":"¿Se conoce la fecha de nacimiento?","edit":"Editar","editIdentifierTooltip":"Editar","editPatientDetails":"Modificar los datos del paciente","error":"Error","errorFetchingOrderedFields":"Error ocurrió al obtener campos ordenados para la jerarquía de direcciones","estimatedAgeInMonthsLabelText":"Edad estimada en meses","estimatedAgeInYearsLabelText":"Edad estimada en años","familyNameLabelText":"Apellidos","familyNameRequired":"Apellidos es obligatorio","female":"Femenino","fieldErrorTitleMessage":"Los siguientes campos tienen errores:","fullNameLabelText":"Nombre y Apellidos","genderLabelText":"Sexo","genderRequired":"El sexo es obligatorio","genderUnspecified":"Género no especificado","givenNameLabelText":"Nombre","givenNameRequired":"El nombre es obligatorio","identifierValueRequired":"El valor del identificador es obligatorio","idFieldLabelText":"Identificadores","incompleteForm":"Formulario incompleto","invalidEmail":"Debe indicar un email válido","invalidInput":"Entrada no válida","isDeadInputLabel":"Está muerto","jumpTo":"Ir a","loadingResults":"Cargando resultados","male":"Masculino","middleNameLabelText":"Segundo Nombre","negativeMonths":"Meses negativos","negativeYears":"Años negativos","no":"No","noResultsFound":"No se encuentran resultados","numberInNameDubious":"Número en nombre es dudoso","optional":"opcional","other":"Otro","patient":"Paciente","patientNameKnown":"¿Se sabe el nombre del paciente?","registerPatient":"Registrar paciente","registrationSuccessToastDescription":"Ahora se puede encontrar al paciente buscándolo por su nombre o número de identificación","registrationSuccessToastTitle":"Nuevo paciente creado","relationship":"Relación","relationshipPlaceholder":"Relación","relationshipRemovedText":"Relación eliminada","relationshipsSection":"Relaciones","relationshipToPatient":"Relación con el paciente","relativeFullNameLabelText":"Nombre y Apellidos","relativeNamePlaceholder":"Nombre Apellido","resetIdentifierTooltip":"resetear","restoreRelationshipActionButton":"Deshacer","searchAddress":"Buscar dirección","selectAnOption":"Seleccionar una opción","sexFieldLabelText":"Sexo","stroke":"Ictus","unableToFetch":"No se puede obtener el tipo de atributo de persona {personattributetype}","unknown":"Desconocido","updatePatient":"Paciente Actualizado","updationSuccessToastDescription":"La información del paciente se ha actualizado correctamente","updationSuccessToastTitle":"Datos del paciente actualizados","yearsEstimateRequired":"Estimación de años obligatoria","yes":"Sí"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[319],{8319:e=>{e.exports=JSON.parse('{"addRelationshipButtonText":"Agregar relación","addressHeader":"Dirección","allFieldsRequiredText":"Todos los campos son obligatorios a menos que se indique como opcionales","autoGeneratedPlaceholderText":"Autogenerado","birthdayNotInTheFuture":"Cumpleaños no puede ser en el futuro","birthdayRequired":"Cumpleaños es obligatorio","birthFieldLabelText":"Nacimiento","cancel":"Cancelar","causeOfDeathInputLabel":"Causa de defunción","closeOverlay":"Close overlay","configure":"Configurar","configureIdentifiers":"Configure identifiers","contactSection":"Detalles de Contacto","createNew":"Crear Nuevo/a","dateOfBirthLabelText":"Fecha de Nacimiento","deathDateInputLabel":"Fecha de fallecimiento","deathdayNotInTheFuture":"El día de la muerte no puede ser en el futuro","deathSection":"Información de Fallecimiento","deleteIdentifierTooltip":"Eliminar","deleteRelationshipTooltipText":"Eliminar","demographicsSection":"Información Básica","discard":"Descartar","discardModalBody":"Los cambios realizados en los datos de este paciente no se han guardado. ¿Descartar cambios?","discardModalHeader":"Confirmar cambios de descarte","dobToggleLabelText":"¿Se conoce la fecha de nacimiento?","edit":"Editar","editIdentifierTooltip":"Editar","editPatientDetails":"Modificar los datos del paciente","editPatientDetailsBreadcrumb":"Edit patient details","error":"Error","errorFetchingOrderedFields":"Error ocurrió al obtener campos ordenados para la jerarquía de direcciones","estimatedAgeInMonthsLabelText":"Edad estimada en meses","estimatedAgeInYearsLabelText":"Edad estimada en años","familyNameLabelText":"Apellidos","familyNameRequired":"Apellidos es obligatorio","female":"Femenino","fullNameLabelText":"Nombre y Apellidos","genderLabelText":"Sexo","genderRequired":"El sexo es obligatorio","genderUnspecified":"Género no especificado","givenNameLabelText":"Nombre","givenNameRequired":"El nombre es obligatorio","identifierValueRequired":"El valor del identificador es obligatorio","idFieldLabelText":"Identificadores","IDInstructions":"Select the identifiers you\'d like to add for this patient:","incompleteForm":"Formulario incompleto","invalidEmail":"Debe indicar un email válido","invalidInput":"Entrada no válida","isDeadInputLabel":"Está muerto","jumpTo":"Ir a","loadingResults":"Cargando resultados","male":"Masculino","middleNameLabelText":"Segundo Nombre","negativeMonths":"Meses negativos","negativeYears":"Años negativos","no":"No","noResultsFound":"No se encuentran resultados","numberInNameDubious":"Número en nombre es dudoso","optional":"opcional","other":"Otro","patient":"Paciente","patientNameKnown":"¿Se sabe el nombre del paciente?","patientRegistrationBreadcrumb":"Patient Registration","registerPatient":"Registrar paciente","registerPatientSuccessSnackbarSubtitle":"The patient can now be found by searching for them using their name or ID number","registerPatientSuccessSnackbarTitle":"New Patient Created","registrationErrorSnackbarTitle":"Patient Registration Failed","relationship":"Relación","relationshipPersonMustExist":"Related person must be an existing person","relationshipPlaceholder":"Relación","relationshipRemovedText":"Relación eliminada","relationshipsSection":"Relaciones","relationshipToPatient":"Relación con el paciente","relativeFullNameLabelText":"Nombre y Apellidos","relativeNamePlaceholder":"Nombre Apellido","resetIdentifierTooltip":"resetear","restoreRelationshipActionButton":"Deshacer","searchAddress":"Buscar dirección","searchIdentifierPlaceholder":"Search identifier","selectAnOption":"Seleccionar una opción","sexFieldLabelText":"Sexo","source":"Source","stroke":"Ictus","submitting":"Submitting","unableToFetch":"No se puede obtener el tipo de atributo de persona {{personattributetype}}","unknown":"Desconocido","unknownPatientAttributeType":"Patient attribute type has unknown format {{personAttributeTypeFormat}}","updatePatient":"Paciente Actualizado","updatePatientErrorSnackbarTitle":"Patient Details Update Failed","updatePatientSuccessSnackbarSubtitle":"The patient\'s information has been successfully updated","updatePatientSuccessSnackbarTitle":"Patient Details Updated","yearsEstimateRequired":"Estimación de años obligatoria","yes":"Sí"}')}}]);
package/dist/330.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[330],{1330:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var a=n(268),o=n.n(a),r=n(4924),c=n(1520);const i=function(e){var t=e.close,n=e.onConfirm,a=(0,r.useTranslation)().t;return o().createElement(o().Fragment,null,o().createElement("div",{className:"cds--modal-header"},o().createElement("h3",{className:"cds--modal-header__heading"},a("clientRegistryEmpty","Create & Post Patient"))),o().createElement("div",{className:"cds--modal-content"},o().createElement("p",null,a("patientNotFound","The patient records could not be found in Client registry, do you want to continue to create and post patient to registry"))),o().createElement("div",{className:"cds--modal-footer"},o().createElement(c.zxk,{kind:"secondary",onClick:t},a("cancel","Cancel")),o().createElement(c.zxk,{onClick:n},a("continue","Continue to registration"))))}}}]);
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[330],{1330:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var a=n(268),o=n.n(a),r=n(4924),c=n(4151);const i=function(e){var t=e.close,n=e.onConfirm,a=(0,r.useTranslation)().t;return o().createElement(o().Fragment,null,o().createElement("div",{className:"cds--modal-header"},o().createElement("h3",{className:"cds--modal-header__heading"},a("clientRegistryEmpty","Create & Post Patient"))),o().createElement("div",{className:"cds--modal-content"},o().createElement("p",null,a("patientNotFound","The patient records could not be found in Client registry, do you want to continue to create and post patient to registry"))),o().createElement("div",{className:"cds--modal-footer"},o().createElement(c.zxk,{kind:"secondary",onClick:t},a("cancel","Cancel")),o().createElement(c.zxk,{onClick:n},a("continue","Continue to registration"))))}}}]);