@ampath/esm-patient-registration-app 6.0.1-pre.6

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 (176) hide show
  1. package/.turbo/turbo-build.log +41 -0
  2. package/README.md +7 -0
  3. package/dist/130.js +2 -0
  4. package/dist/130.js.LICENSE.txt +3 -0
  5. package/dist/130.js.map +1 -0
  6. package/dist/152.js +1 -0
  7. package/dist/152.js.map +1 -0
  8. package/dist/249.js +2 -0
  9. package/dist/249.js.LICENSE.txt +46 -0
  10. package/dist/249.js.map +1 -0
  11. package/dist/255.js +2 -0
  12. package/dist/255.js.LICENSE.txt +9 -0
  13. package/dist/255.js.map +1 -0
  14. package/dist/271.js +1 -0
  15. package/dist/303.js +1 -0
  16. package/dist/303.js.map +1 -0
  17. package/dist/319.js +1 -0
  18. package/dist/365.js +1 -0
  19. package/dist/365.js.map +1 -0
  20. package/dist/460.js +1 -0
  21. package/dist/525.js +1 -0
  22. package/dist/525.js.map +1 -0
  23. package/dist/537.js +1 -0
  24. package/dist/537.js.map +1 -0
  25. package/dist/574.js +1 -0
  26. package/dist/591.js +2 -0
  27. package/dist/591.js.LICENSE.txt +32 -0
  28. package/dist/591.js.map +1 -0
  29. package/dist/621.js +1 -0
  30. package/dist/621.js.map +1 -0
  31. package/dist/644.js +1 -0
  32. package/dist/729.js +1 -0
  33. package/dist/729.js.map +1 -0
  34. package/dist/735.js +1 -0
  35. package/dist/735.js.map +1 -0
  36. package/dist/757.js +1 -0
  37. package/dist/784.js +2 -0
  38. package/dist/784.js.LICENSE.txt +9 -0
  39. package/dist/784.js.map +1 -0
  40. package/dist/788.js +1 -0
  41. package/dist/807.js +1 -0
  42. package/dist/833.js +1 -0
  43. package/dist/879.js +1 -0
  44. package/dist/879.js.map +1 -0
  45. package/dist/ampath-esm-patient-registration-app.js +1 -0
  46. package/dist/ampath-esm-patient-registration-app.js.buildmanifest.json +649 -0
  47. package/dist/ampath-esm-patient-registration-app.js.map +1 -0
  48. package/dist/main.js +2 -0
  49. package/dist/main.js.LICENSE.txt +56 -0
  50. package/dist/main.js.map +1 -0
  51. package/dist/routes.json +1 -0
  52. package/docs/images/patient-registration-hierarchy.png +0 -0
  53. package/jest.config.js +3 -0
  54. package/package.json +61 -0
  55. package/src/add-patient-link.scss +3 -0
  56. package/src/add-patient-link.test.tsx +20 -0
  57. package/src/add-patient-link.tsx +21 -0
  58. package/src/config-schema.ts +410 -0
  59. package/src/constants.ts +14 -0
  60. package/src/declarations.d.ts +6 -0
  61. package/src/index.ts +71 -0
  62. package/src/nav-link.test.tsx +13 -0
  63. package/src/nav-link.tsx +10 -0
  64. package/src/offline.resources.ts +155 -0
  65. package/src/offline.ts +91 -0
  66. package/src/patient-registration/before-save-prompt.tsx +73 -0
  67. package/src/patient-registration/date-util.ts +52 -0
  68. package/src/patient-registration/field/__mocks__/field.resource.ts +60 -0
  69. package/src/patient-registration/field/address/address-field.component.tsx +153 -0
  70. package/src/patient-registration/field/address/address-hierarchy-levels.component.tsx +73 -0
  71. package/src/patient-registration/field/address/address-hierarchy.resource.tsx +157 -0
  72. package/src/patient-registration/field/address/address-search.component.tsx +85 -0
  73. package/src/patient-registration/field/address/address-search.scss +53 -0
  74. package/src/patient-registration/field/address/custom-address-field.component.tsx +31 -0
  75. package/src/patient-registration/field/address/tests/address-hierarchy.test.tsx +214 -0
  76. package/src/patient-registration/field/address/tests/address-search-component.test.tsx +135 -0
  77. package/src/patient-registration/field/custom-field.component.tsx +25 -0
  78. package/src/patient-registration/field/dob/dob.component.tsx +159 -0
  79. package/src/patient-registration/field/dob/dob.test.tsx +75 -0
  80. package/src/patient-registration/field/field.component.tsx +47 -0
  81. package/src/patient-registration/field/field.resource.ts +35 -0
  82. package/src/patient-registration/field/field.scss +127 -0
  83. package/src/patient-registration/field/field.test.tsx +294 -0
  84. package/src/patient-registration/field/gender/gender-field.component.tsx +49 -0
  85. package/src/patient-registration/field/gender/gender-field.test.tsx +59 -0
  86. package/src/patient-registration/field/id/id-field.component.tsx +144 -0
  87. package/src/patient-registration/field/id/id-field.test.tsx +107 -0
  88. package/src/patient-registration/field/id/identifier-selection-overlay.component.tsx +198 -0
  89. package/src/patient-registration/field/id/identifier-selection.scss +37 -0
  90. package/src/patient-registration/field/name/name-field.component.tsx +142 -0
  91. package/src/patient-registration/field/obs/obs-field.component.tsx +204 -0
  92. package/src/patient-registration/field/obs/obs-field.test.tsx +205 -0
  93. package/src/patient-registration/field/person-attributes/coded-attributes.component.tsx +60 -0
  94. package/src/patient-registration/field/person-attributes/coded-person-attribute-field.component.tsx +116 -0
  95. package/src/patient-registration/field/person-attributes/coded-person-attribute-field.test.tsx +127 -0
  96. package/src/patient-registration/field/person-attributes/person-attribute-field.component.tsx +88 -0
  97. package/src/patient-registration/field/person-attributes/person-attribute-field.test.tsx +187 -0
  98. package/src/patient-registration/field/person-attributes/person-attributes.resource.ts +20 -0
  99. package/src/patient-registration/field/person-attributes/text-person-attribute-field.component.tsx +58 -0
  100. package/src/patient-registration/field/person-attributes/text-person-attribute-field.test.tsx +88 -0
  101. package/src/patient-registration/field/phone/phone-field.component.tsx +16 -0
  102. package/src/patient-registration/form-manager.test.ts +67 -0
  103. package/src/patient-registration/form-manager.ts +414 -0
  104. package/src/patient-registration/input/basic-input/input/input.component.tsx +179 -0
  105. package/src/patient-registration/input/basic-input/input/input.test.tsx +72 -0
  106. package/src/patient-registration/input/basic-input/select/select-input.component.tsx +32 -0
  107. package/src/patient-registration/input/basic-input/select/select-input.test.tsx +49 -0
  108. package/src/patient-registration/input/combo-input/combo-input.component.tsx +128 -0
  109. package/src/patient-registration/input/combo-input/selection-tick.component.tsx +20 -0
  110. package/src/patient-registration/input/custom-input/autosuggest/autosuggest.component.tsx +187 -0
  111. package/src/patient-registration/input/custom-input/autosuggest/autosuggest.scss +62 -0
  112. package/src/patient-registration/input/custom-input/autosuggest/autosuggest.test.tsx +132 -0
  113. package/src/patient-registration/input/custom-input/identifier/identifier-input.component.tsx +156 -0
  114. package/src/patient-registration/input/custom-input/identifier/identifier-input.test.tsx +107 -0
  115. package/src/patient-registration/input/custom-input/identifier/utils.test.ts +81 -0
  116. package/src/patient-registration/input/custom-input/identifier/utils.ts +19 -0
  117. package/src/patient-registration/input/dummy-data/dummy-data-input.component.tsx +53 -0
  118. package/src/patient-registration/input/dummy-data/dummy-data-input.test.tsx +43 -0
  119. package/src/patient-registration/input/input.scss +118 -0
  120. package/src/patient-registration/patient-registration-context.ts +24 -0
  121. package/src/patient-registration/patient-registration-hooks.ts +287 -0
  122. package/src/patient-registration/patient-registration-utils.ts +216 -0
  123. package/src/patient-registration/patient-registration.component.tsx +240 -0
  124. package/src/patient-registration/patient-registration.resource.test.tsx +26 -0
  125. package/src/patient-registration/patient-registration.resource.ts +250 -0
  126. package/src/patient-registration/patient-registration.scss +122 -0
  127. package/src/patient-registration/patient-registration.test.tsx +471 -0
  128. package/src/patient-registration/patient-registration.types.ts +318 -0
  129. package/src/patient-registration/section/death-info/death-info-section.component.tsx +31 -0
  130. package/src/patient-registration/section/death-info/death-info-section.test.tsx +64 -0
  131. package/src/patient-registration/section/demographics/demographics-section.component.tsx +30 -0
  132. package/src/patient-registration/section/demographics/demographics-section.test.tsx +83 -0
  133. package/src/patient-registration/section/generic-section.component.tsx +17 -0
  134. package/src/patient-registration/section/patient-relationships/relationships-section.component.tsx +235 -0
  135. package/src/patient-registration/section/patient-relationships/relationships-section.test.tsx +100 -0
  136. package/src/patient-registration/section/patient-relationships/relationships.resource.tsx +78 -0
  137. package/src/patient-registration/section/patient-relationships/relationships.scss +35 -0
  138. package/src/patient-registration/section/section-wrapper.component.tsx +40 -0
  139. package/src/patient-registration/section/section.component.tsx +23 -0
  140. package/src/patient-registration/section/section.scss +1 -0
  141. package/src/patient-registration/ui-components/overlay/overlay.component.tsx +51 -0
  142. package/src/patient-registration/ui-components/overlay/overlay.scss +63 -0
  143. package/src/patient-registration/validation/patient-registration-validation.test.tsx +157 -0
  144. package/src/patient-registration/validation/patient-registration-validation.tsx +60 -0
  145. package/src/patient-verification/client-registry-constants.ts +13 -0
  146. package/src/patient-verification/client-registry.component.tsx +66 -0
  147. package/src/patient-verification/client-registry.scss +1 -0
  148. package/src/patient-verification/utils.tsx +56 -0
  149. package/src/patient-verification/verification-modal.scss +20 -0
  150. package/src/patient-verification/verification.component.tsx +48 -0
  151. package/src/resource.ts +12 -0
  152. package/src/root.component.tsx +63 -0
  153. package/src/root.scss +7 -0
  154. package/src/root.test.tsx +32 -0
  155. package/src/routes.json +66 -0
  156. package/src/widgets/cancel-patient-edit.component.tsx +37 -0
  157. package/src/widgets/cancel-patient-edit.test.tsx +27 -0
  158. package/src/widgets/delete-identifier-confirmation-modal.test.tsx +34 -0
  159. package/src/widgets/delete-identifier-confirmation-modal.tsx +41 -0
  160. package/src/widgets/delete-identifier-modal.scss +34 -0
  161. package/src/widgets/display-photo.component.tsx +30 -0
  162. package/src/widgets/display-photo.test.tsx +37 -0
  163. package/src/widgets/edit-patient-details-button.component.tsx +34 -0
  164. package/src/widgets/edit-patient-details-button.scss +3 -0
  165. package/src/widgets/edit-patient-details-button.test.tsx +41 -0
  166. package/translations/am.json +97 -0
  167. package/translations/ar.json +97 -0
  168. package/translations/en.json +103 -0
  169. package/translations/es.json +97 -0
  170. package/translations/fr.json +97 -0
  171. package/translations/he.json +97 -0
  172. package/translations/km.json +97 -0
  173. package/translations/zh.json +89 -0
  174. package/translations/zh_CN.json +89 -0
  175. package/tsconfig.json +5 -0
  176. package/webpack.config.js +1 -0
package/dist/255.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 255.js.LICENSE.txt */
2
+ "use strict";(globalThis.webpackChunk_ampath_esm_patient_registration_app=globalThis.webpackChunk_ampath_esm_patient_registration_app||[]).push([[255],{452:(e,t,n)=>{var r=n(268),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,s=r.useEffect,u=r.useLayoutEffect,o=r.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return u((function(){i.value=n,i.getSnapshot=t,d(i)&&c({inst:i})}),[e,n,t]),s((function(){return d(i)&&c({inst:i}),e((function(){d(i)&&c({inst:i})}))}),[e]),o(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},3100:(e,t,n)=>{e.exports=n(452)},3255:(e,t,n)=>{n.d(t,{ZP:()=>u});var r=n(268),i=n(3100),a=n(3325);const s={dedupe:!0};a.OBJECT.defineProperty(a.SWRConfig,"defaultValue",{value:a.defaultConfig});var u=(0,a.withArgs)(((e,t,n)=>{const{cache:u,compare:o,suspense:d,fallbackData:c,revalidateOnMount:l,refreshInterval:f,refreshWhenHidden:E,refreshWhenOffline:g,keepPreviousData:p}=n,[h,v,S]=a.SWRGlobalState.get(u),[b,m]=(0,a.serialize)(e),U=(0,r.useRef)(!1),_=(0,r.useRef)(!1),R=(0,r.useRef)(b),C=(0,r.useRef)(t),T=(0,r.useRef)(n),y=()=>T.current,V=()=>y().isVisible()&&y().isOnline(),[w,k,I]=(0,a.createCacheHelper)(u,b),L=(0,r.useRef)({}).current,O=(0,a.isUndefined)(c)?n.fallback[b]:c,D=(e,t)=>{let n=!0;for(const r in L){const i=r;o(t[i],e[i])||"data"===i&&(0,a.isUndefined)(e[i])&&o(t[i],j)||(n=!1)}return n},N=(0,r.useMemo)((()=>{const e=!!b&&!!t&&((0,a.isUndefined)(l)?!y().isPaused()&&!d:l),n=()=>{const t=w(),n=(0,a.mergeObjects)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n};let r=n();return()=>{const e=n();return D(e,r)?r:r=e}}),[u,b]),F=(0,i.useSyncExternalStore)((0,r.useCallback)((e=>I(b,((t,n)=>{D(t,n)||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:!y().isPaused()&&(d?!(0,a.isUndefined)(x)&&n.revalidateIfStale:(0,a.isUndefined)(x)||n.revalidateIfStale),H=!!(b&&t&&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 t=C.current;if(!b||!t||_.current||y().isPaused())return!1;let r,i,s=!0;const u=e||{},d=!S[b]||!u.dedupe,c=()=>a.IS_REACT_LEGACY?!_.current&&b===R.current&&U.current:b===R.current,l={isValidating:!1,isLoading:!1},f=()=>{k(l)},E=()=>{const e=S[b];e&&e[1]===i&&delete S[b]},g={isValidating:!0};(0,a.isUndefined)(w().data)&&(g.isLoading=!0);try{if(d&&(k(g),n.loadingTimeout&&(0,a.isUndefined)(w().data)&&setTimeout((()=>{s&&c()&&y().onLoadingSlow(b,n)}),n.loadingTimeout),S[b]=[t(m),(0,a.getTimestamp)()]),[r,i]=S[b],r=await r,d&&setTimeout(E,n.dedupingInterval),!S[b]||S[b][1]!==i)return d&&c()&&y().onDiscarded(b),!1;l.error=a.UNDEFINED;const e=v[b];if(!(0,a.isUndefined)(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return f(),d&&c()&&y().onDiscarded(b),!1;const u=w().data;l.data=o(u,r)?u:r,d&&c()&&y().onSuccess(r,b,n)}catch(e){E();const t=y(),{shouldRetryOnError:n}=t;t.isPaused()||(l.error=e,d&&c()&&(t.onError(e,b,t),(!0===n||(0,a.isFunction)(n)&&n(e))&&V()&&t.onErrorRetry(e,b,t,z,{retryCount:(u.retryCount||0)+1,dedupe:!0})))}return s=!1,f(),!0}),[b,u]),B=(0,r.useCallback)(((...e)=>(0,a.internalMutate)(u,R.current,...e)),[]);if((0,a.useIsomorphicLayoutEffect)((()=>{C.current=t,T.current=n,(0,a.isUndefined)(P)||(W.current=P)})),(0,a.useIsomorphicLayoutEffect)((()=>{if(!b)return;const e=z.bind(a.UNDEFINED,s);let t=0;const n=(0,a.subscribeCallback)(b,h,(n=>{if(n==a.revalidateEvents.FOCUS_EVENT){const n=Date.now();y().revalidateOnFocus&&n>t&&V()&&(t=n+y().focusThrottleInterval,e())}else if(n==a.revalidateEvents.RECONNECT_EVENT)y().revalidateOnReconnect&&V()&&e();else if(n==a.revalidateEvents.MUTATE_EVENT)return z()}));return _.current=!1,R.current=b,U.current=!0,k({_k:m}),G&&((0,a.isUndefined)(x)||a.IS_SERVER?e():(0,a.rAF)(e)),()=>{_.current=!0,n()}}),[b]),(0,a.useIsomorphicLayoutEffect)((()=>{let e;function t(){const t=(0,a.isFunction)(f)?f(x):f;t&&-1!==e&&(e=setTimeout(n,t))}function n(){w().error||!E&&!y().isVisible()||!g&&!y().isOnline()?t():z(s).then(t)}return t(),()=>{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 C.current=t,T.current=n,_.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,9 @@
1
+ /**
2
+ * @license React
3
+ * use-sync-external-store-shim.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"255.js","mappings":";sKASa,IAAIA,EAAE,EAAQ,KAA4EC,EAAE,mBAAoBC,OAAOC,GAAGD,OAAOC,GAA1G,SAAWC,EAAEC,GAAG,OAA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AK,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://@ampath/esm-patient-registration-app/../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js","webpack://@ampath/esm-patient-registration-app/../../node_modules/use-sync-external-store/shim/index.js","webpack://@ampath/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/271.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_ampath_esm_patient_registration_app=globalThis.webpackChunk_ampath_esm_patient_registration_app||[]).push([[271],{8271:e=>{e.exports=JSON.parse('{"addRelationshipButtonText":"添加关系","address1":"地址行1","address2":"地址行2","addressHeader":"地址","allFieldsRequiredText":"所有字段都是必填的,除非标记为可选。","autoGeneratedPlaceholderText":"自动生成","birthdayNotInTheFuture":"生日不能是未来的日期","birthdayRequired":"生日是必填项","birthFieldLabelText":"出生","cancel":"取消","causeOfDeathInputLabel":"死因","cityVillage":"城市","configure":"配置","country":"国家","countyDistrict":"区县","createNew":"新建","dateOfBirthLabelText":"出生日期","deathDateInputLabel":"死亡日期","deathdayNotInTheFuture":"死亡日期不能是未来的日期","deleteIdentifierTooltip":"删除","deleteRelationshipTooltipText":"删除","discard":"放弃","discardModalBody":"您对该患者的详细信息所做的更改尚未保存。放弃更改吗?","discardModalHeader":"确认放弃更改","dobToggleLabelText":"出生日期已知?","edit":"编辑","editIdentifierTooltip":"编辑","editPatientDetails":"编辑患者详情","emailLabelText":"电子邮件","estimatedAgeInMonthsLabelText":"月龄估算","estimatedAgeInYearsLabelText":"年龄估算","familyNameLabelText":"姓氏","familyNameRequired":"姓氏是必填项","female":"女性","fieldErrorTitleMessage":"以下字段存在错误:","fullNameLabelText":"全名","genderLabelText":"性别","genderRequired":"性别是必填项","genderUnspecified":"性别未指定","givenNameLabelText":"名字","givenNameRequired":"名字是必填项","identifierValueRequired":"ID标识是必填项","idFieldLabelText":"ID标识","incompleteForm":"表单未填完","invalidEmail":"需要提供一个有效的电子邮件地址","invalidInput":"输入无效","isDeadInputLabel":"已故","jumpTo":"跳转至","loadingResults":"正在加载结果","male":"男性","middleNameLabelText":"中间名","months":"月","negativeMonths":"负的月份","negativeYears":"负的年份","no":"否","noResultsFound":"未找到结果","numberInNameDubious":"姓名中含有数字","optional":"可选的","other":"其他","patient":"患者","patientNameKnown":"患者的姓名已知?","phoneEmailLabelText":"电话、电子邮件等。","phoneNumberInputLabelText":"电话号码","postalCode":"邮政编码","registerPatient":"注册患者","registrationSuccessToastDescription":"现在可以通过姓名或ID来搜索患者。","registrationSuccessToastTitle":"新患者已创建","relationship":"关系","relationshipPlaceholder":"关系","relationshipRemovedText":"关系已移除","relationshipToPatient":"与患者的关系","relativeFullNameLabelText":"全名","relativeNamePlaceholder":"名字 姓氏","resetIdentifierTooltip":"重置","restoreRelationshipActionButton":"撤销","searchAddress":"搜索地址","sexFieldLabelText":"性别","stateProvince":"省份","stroke":"卒中","unidentifiedPatient":"未知患者","unknown":"未知","updatePatient":"更新患者","updationSuccessToastDescription":"患者信息已成功更新","updationSuccessToastTitle":"患者详情已更新","years":"年","yearsEstimateRequired":"需要年龄估算","yes":"是"}')}}]);
package/dist/303.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_ampath_esm_patient_registration_app=globalThis.webpackChunk_ampath_esm_patient_registration_app||[]).push([[303,152],{2303:(a,e,t)=>{t.r(e),t.d(e,{default:()=>n,immutable:()=>l});var i=t(3255),r=t(3325);const l=a=>(e,t,i)=>(i.revalidateOnFocus=!1,i.revalidateIfStale=!1,i.revalidateOnReconnect=!1,a(e,t,i));var n=(0,r.withMiddleware)(i.ZP,l)}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"303.js","mappings":"iPAGA,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://@ampath/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 ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_ampath_esm_patient_registration_app=globalThis.webpackChunk_ampath_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":"Cerrar superposición","codedPersonAttributeAnswerSetEmpty":"El campo de atributo de persona codificado \'{{codedPersonAttributeFieldId}}\' se ha definido con un conjunto de conceptos de respuesta UUID \'{{answerConceptSetUuid}}\' que no tiene respuestas de concepto.","codedPersonAttributeAnswerSetInvalid":"El campo de atributo de persona codificado \'{{codedPersonAttributeFieldId}}\' se ha definido con un UUID de conjunto de conceptos de respuesta no válido \'{{answerConceptSetUuid}}\'.","codedPersonAttributeNoAnswerSet":"El campo de atributo de persona \'{{codedPersonAttributeFieldId}}\' es de tipo \'codificado\' pero se ha definido sin UUID de conjunto de conceptos de respuesta. La clave \'answerConceptSetUuid\' es requerida.","configure":"Configurar","configureIdentifiers":"Configurar identificadores","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 descarte de cambios","dobToggleLabelText":"¿Se conoce la fecha de nacimiento?","edit":"Editar","editIdentifierTooltip":"Editar","editPatientDetails":"Modificar los datos del paciente","editPatientDetailsBreadcrumb":"Editar detalles del paciente","error":"Error","errorFetchingOrderedFields":"Ocurrió un error 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":"Selecciona los identificadores que te gustaría agregar para este paciente:","incompleteForm":"Formulario incompleto","invalidEmail":"Debe indicar un email válido","invalidInput":"Entrada no válida","isDeadInputLabel":"Está muerto","jumpTo":"Ir a","male":"Masculino","middleNameLabelText":"Segundo Nombre","negativeMonths":"Meses negativos","negativeYears":"Años negativos","no":"No","numberInNameDubious":"Número en nombre es dudoso","obsFieldUnknownDatatype":"El concepto para el campo de observación \'{{fieldDefinitionId}}\' tiene un tipo de datos desconocido \'{{datatypeName}}\'","optional":"Opcional","other":"Otro","patient":"Paciente","patientNameKnown":"¿Se sabe el nombre del paciente?","patientRegistrationBreadcrumb":"Registro de Pacientes","registerPatient":"Registrar paciente","registerPatientSuccessSnackbarSubtitle":"El paciente ahora se puede encontrar buscándolo por su nombre o número de identificación","registerPatientSuccessSnackbarTitle":"Nuevo paciente creado","registrationErrorSnackbarTitle":"Error en el registro del paciente","relationship":"Relación","relationshipPersonMustExist":"La persona relacionada debe ser una persona existente","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":"Buscar identificador","selectAnOption":"Seleccionar una opción","sexFieldLabelText":"Sexo","source":"Fuente","stroke":"Ictus","submitting":"Enviando","unableToFetch":"No se puede obtener el tipo de atributo de persona {{personattributetype}}","unknown":"Desconocido","unknownPatientAttributeType":"El tipo de atributo del paciente tiene un formato desconocido {{personAttributeTypeFormat}}","updatePatient":"Paciente Actualizado","updatePatientErrorSnackbarTitle":"Error al actualizar los detalles del paciente","updatePatientSuccessSnackbarSubtitle":"La información del paciente se ha actualizado correctamente","updatePatientSuccessSnackbarTitle":"Detalles del paciente actualizados","yearsEstimateRequired":"Estimación de años obligatoria","yes":"Sí"}')}}]);