@openmrs/esm-patient-notes-app 12.3.5-pre.12468 → 12.3.5-pre.12472
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/.turbo/turbo-build.log +1 -1
- package/dist/8800.js +1 -1
- package/dist/8800.js.map +1 -1
- package/dist/openmrs-esm-patient-notes-app.js +2 -2
- package/dist/openmrs-esm-patient-notes-app.js.buildmanifest.json +4 -4
- package/dist/routes.json +1 -1
- package/package.json +2 -2
- package/src/notes/notes-overview.extension.tsx +6 -18
package/.turbo/turbo-build.log
CHANGED
package/dist/8800.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_openmrs_esm_patient_notes_app=globalThis.webpackChunk_openmrs_esm_patient_notes_app||[]).push([["8800"],{4767(e,t,n){var o={"./uk.json":["723","9072"],"./ar.json":["4132","7045"],"./ru_RU.json":["986","8359"],"./uz_UZ.json":["890","7175"],"./fr.json":["4055","6508"],"./sw_KE.json":["8618","903"],"./uz.json":["3584","6377"],"./en.json":["4300","5117"],"./ky.json":["8163","2416"],"./pl.json":["1119","6724"],"./sq.json":["8371","4928"],"./ka.json":["795","1480"],"./si.json":["6859","6904"],"./zh_TW.json":["439","556"],"./de.json":["4944","5145"],"./lg.json":["4618","8695"],"./vi.json":["9214","6371"],"./tr.json":["5241","434"],"./es_MX.json":["8349","1646"],"./tr_TR.json":["9900","1869"],"./zh_CN.json":["9879","5644"],"./en_US.json":["9569","4106"],"./he.json":["4652","2317"],"./id.json":["2690","6047"],"./ku.json":["9895","4348"],"./es.json":["3099","7912"],"./ne.json":["2146","5503"],"./ar_SY.json":["7617","282"],"./uz@Latn.json":["7097","4658"],"./bn.json":["7159","6444"],"./cs.json":["6589","7182"],"./zh.json":["1690","7742"],"./hi_IN.json":["5442","4383"],"./pt_BR.json":["4087","1877"],"./qu.json":["5173","8358"],"./ro_RO.json":["6022","3963"],"./sw.json":["9913","3378"],"./am.json":["1197","9806"],"./pt.json":["6679","5132"],"./it.json":["9538","4111"],"./km.json":["4335","5940"],"./hi.json":["6840","2881"]};function s(e){if(!n.o(o,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=o[e],s=t[0];return n.e(t[1]).then(function(){return n(s)})}s.keys=()=>Object.keys(o),s.id=4767,e.exports=s},7251(e,t,n){"use strict";n.r(t),n.d(t,{visitNotesFormWorkspace:()=>E,stickyNoteModal:()=>k,importTranslation:()=>f,exportedVisitNotesFormWorkspace:()=>j,visitNotesActionButton:()=>T,startupApp:()=>v,notesOverview:()=>b,deleteStickyNoteModal:()=>N,stickyNotesButton:()=>w});var o=n(2293);let s={clinicianEncounterRole:{_type:o.Type.UUID,_default:"240b26f9-dd88-4172-823d-4a8bfeb7841f",_description:"Doctor or Nurse who is the primary provider for an encounter, and will sign the note"},visitDiagnosesConceptUuid:{_type:o.Type.ConceptUuid,_default:"159947AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",_description:"The set of diagnoses that were either addressed or diagnosed during the current visit"},encounterNoteTextConceptUuid:{_type:o.Type.ConceptUuid,_default:"162169AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",_description:"Free text note field intended to capture unstructured description of the patient encounter"},encounterTypeUuid:{_type:o.Type.UUID,_default:"d7151f82-c1f3-4152-a605-2f9ea7414a79",_description:"Encounter where a full or abbreviated examination is done, usually leading to a presumptive or confirmed diagnosis, recorded by the examining clinician."},formConceptUuid:{_type:o.Type.UUID,_default:"c75f120a-04ec-11e3-8780-2b40bef9a44b",_description:"The UUID of the Visit Note form to be associated with visit note encounters"}},a={diagnosisConceptClass:{_type:o.Type.UUID,_default:"8d4918b0-c2cc-11de-8d13-0010c6dffd0f",_description:"The concept class UUID for diagnoses"},isPrimaryDiagnosisRequired:{_type:o.Type.Boolean,_default:!0,_description:"Indicates whether a primary diagnosis is required when submitting a visit note"},stickyNoteConceptUuid:{_type:o.Type.ConceptUuid,_default:"165095AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",_description:"The concept UUID for storing sticky notes as observations"},visitNoteConfig:s};var i=n(5399),r=n.n(i),c=n(7807),l=n(324),d=n(3040),u=n(1273),p=n(3373),m=n.n(p),A=n(9689);let _={widgetCard:"-esm-patient-notes__notes-overview__widgetCard___p6Joq",expandedRow:"-esm-patient-notes__notes-overview__expandedRow___lvq57",copy:"-esm-patient-notes__notes-overview__copy___abK8F",container:"-esm-patient-notes__notes-overview__container___BAYjB",metadata:"-esm-patient-notes__notes-overview__metadata___jCssX",hiddenRow:"-esm-patient-notes__notes-overview__hiddenRow___czQKK"},y=({notes:e,pageSize:t,pageUrl:n,urlLabel:s})=>{let{t:a}=(0,c.useTranslation)(),u=(0,o.useLayoutType)(),[p,y]=(0,i.useState)({key:"",order:"none"}),h=[{key:"encounterDate",header:a("date","Date")},{key:"diagnoses",header:a("diagnoses","Diagnoses")}],{key:g,order:f}=p,v="encounterDate"===g?"ASC"===f?(0,A.A)(e,[e=>new Date(e.encounterDate).getTime()],["desc"]):(0,A.A)(e,[e=>new Date(e.encounterDate).getTime()],["asc"]):"DESC"===f?(0,A.A)(e,[g],["desc"]):(0,A.A)(e,[g],["asc"]),{results:b,goTo:T,currentPage:E}=(0,o.usePagination)(v,t),j=r().useMemo(()=>b?.map(e=>({...e,id:`${e.id}`,encounterDate:(0,o.formatDate)((0,o.parseDate)(e.encounterDate),{mode:"wide"}),diagnoses:e.diagnoses?e.diagnoses:"--"})),[b]);return r().createElement(r().Fragment,null,r().createElement(l.DataTable,{rows:j,sortRow:function(e,t,{sortDirection:n,sortStates:o}){return y({key:Object.keys(o).find(e=>o[e]===n)??"",order:n}),0},headers:h,isSortable:!0,size:"tablet"===u?"lg":"sm",useZebraStyles:!0},({getExpandedRowProps:e,getExpandHeaderProps:t,getHeaderProps:n,getRowProps:s,getTableContainerProps:i,getTableProps:c,headers:d,rows:u})=>r().createElement(l.TableContainer,i(),r().createElement(l.Table,c(),r().createElement(l.TableHead,null,r().createElement(l.TableRow,null,r().createElement(l.TableExpandHeader,{enableToggle:!0,...t()}),d.map((e,t)=>r().createElement(l.TableHeader,{key:t,className:m()(_.productiveHeading01,_.text02),...n({header:e})},e.header)))),r().createElement(l.TableBody,null,u.map((t,n)=>r().createElement(r().Fragment,{key:t.id},r().createElement(l.TableExpandRow,s({row:t}),t.cells.map(e=>r().createElement(l.TableCell,{key:e.id},e.value))),t.isExpanded?r().createElement(l.TableExpandedRow,{className:_.expandedRow,colSpan:d.length+1,...e({row:t})},r().createElement("div",{className:_.container,key:n},j?.[n]?.encounterNote?r().createElement("div",{className:_.copy},r().createElement("span",{className:_.content},j?.[n]?.encounterNote),r().createElement("span",{className:_.metadata},(0,o.formatTime)(new Date(j?.[n]?.encounterNoteRecordedAt))," \xb7"," ",j?.[n]?.encounterProvider,", ",j?.[n]?.encounterProviderRole)):r().createElement("span",{className:_.copy},a("noVisitNoteToDisplay","No visit note to display")))):r().createElement(l.TableExpandedRow,{className:_.hiddenRow,colSpan:d.length+2}))))))),r().createElement(d.PatientChartPagination,{pageNumber:E,totalItems:e.length,currentItems:b.length,pageSize:t,onPageNumberChange:({page:e})=>T(e),dashboardLinkUrl:n,dashboardLinkLabel:s}))},h="@openmrs/esm-patient-notes-app",g={featureName:"patient-notes",moduleName:h},f=n(4767);function v(){(0,o.defineConfigSchema)(h,a)}let b=(0,o.getSyncLifecycle)(({patientUuid:e,patient:t,basePath:n})=>{let{t:s}=(0,c.useTranslation)(),a=`\${openmrsSpaBase}/patient/${t.id}/chart/visits`,i=s("seeAll","See all"),{visitContext:p}=(0,d.usePatientChartStore)(e),m=s("visitNotes","Visit notes"),A=s("visitNotes","Visit notes"),{visitNotes:h,error:g,isLoading:f,isValidating:v}=(0,u.aw)(e),b=(0,o.useLayoutType)(),T=r().useCallback(()=>{p?(0,o.launchWorkspace)("visit-notes-form-workspace"):(0,d.launchStartVisitPrompt)()},[p]);return f?r().createElement(l.DataTableSkeleton,{role:"progressbar",compact:"large-desktop"===b||"small-desktop"===b,zebra:!0}):g?r().createElement(d.ErrorState,{error:g,headerTitle:A}):h?.length?r().createElement("div",{className:_.widgetCard},r().createElement(d.CardHeader,{title:A},r().createElement("span",null,v?r().createElement(l.InlineLoading,null):null),r().createElement(l.Button,{kind:"ghost",renderIcon:e=>r().createElement(o.AddIcon,{size:16,...e}),iconDescription:s("addVisitNote","Add visit note"),onClick:T},s("add","Add"))),r().createElement(y,{notes:h,pageSize:5,urlLabel:i,pageUrl:a})):r().createElement(d.EmptyState,{displayText:m,headerTitle:A,launchForm:T})},g),T=(0,o.getSyncLifecycle)(({groupProps:{patientUuid:e}})=>{let{t}=(0,c.useTranslation)(),n=(0,d.useStartVisitIfNeeded)(e);return r().createElement(o.ActionMenuButton2,{icon:e=>r().createElement(o.PenIcon,e),label:t("visitNote","Visit note"),workspaceToLaunch:{workspaceName:"visit-notes-form-workspace",workspaceProps:{}},onBeforeWorkspaceLaunch:n})},g),E=(0,o.getAsyncLifecycle)(()=>Promise.all([n.e("9488"),n.e("3416"),n.e("5059"),n.e("7078"),n.e("2286")]).then(n.bind(n,7952)),g),j=(0,o.getAsyncLifecycle)(()=>Promise.all([n.e("9488"),n.e("3416"),n.e("5059"),n.e("7078"),n.e("8962")]).then(n.bind(n,9615)),g),w=(0,o.getAsyncLifecycle)(()=>Promise.all([n.e("2153"),n.e("2842")]).then(n.bind(n,8321)),g),N=(0,o.getAsyncLifecycle)(()=>n.e("2824").then(n.bind(n,6939)),g),k=(0,o.getAsyncLifecycle)(()=>Promise.all([n.e("2153"),n.e("5861")]).then(n.bind(n,2548)),g)},1273(e,t,n){"use strict";n.d(t,{HE:()=>p,Vm:()=>c,XH:()=>_,aw:()=>l,k7:()=>A,mN:()=>m,ph:()=>d,v_:()=>u});var o=n(5399),s=n(1619),a=n.n(s),i=n(2293),r=n(3040);function c(e,t){let{data:n,isLoading:s,error:a}=(0,i.useAttachments)(t?e:null,!1,t);return{images:(0,o.useMemo)(()=>n.filter(e=>"IMAGE"===e.bytesContentFamily).map(e=>({id:e.uuid,src:(0,r.getAttachmentBytesUrl)(e.uuid),description:e.comment,filename:e.filename})),[n]),isLoading:s,error:a}}function l(e){let{visitNoteConfig:{encounterNoteTextConceptUuid:t,visitDiagnosesConceptUuid:n}}=(0,i.useConfig)(),o=`${i.restBaseUrl}/encounter?patient=${e}&obs=${n}&v=custom:(uuid,display,encounterDatetime,patient,obs,encounterProviders:(uuid,display,encounterRole:(uuid,display),provider:(uuid,person:(uuid,display))),diagnoses`,{data:s,error:r,isLoading:c,isValidating:l,mutate:d}=a()(o,i.openmrsFetch),u=s?.data?.results?.map((e,n)=>({id:`${n}`,diagnoses:e.diagnoses.filter(e=>!e.voided).map(e=>e.display).filter(e=>e).join(", "),encounterDate:e.encounterDatetime,encounterNote:e.obs.find(e=>e.concept.uuid===t)?.value,encounterNoteRecordedAt:e.obs.find(e=>e.concept.uuid===t)?.obsDatetime,encounterProvider:e?.encounterProviders[0]?.provider?.person?.display,encounterProviderRole:e?.encounterProviders[0]?.encounterRole?.display}))?.sort((e,t)=>new Date(t.encounterDate).getTime()-new Date(e.encounterDate).getTime());return{visitNotes:s?u:null,error:r,isLoading:c,isValidating:l,mutateVisitNotes:d}}function d(e,t){let n=`${i.restBaseUrl}/concept?name=${e}&searchType=fuzzy&class=${t}&v=custom:(uuid,display)`;return(0,i.openmrsFetch)(n).then(({data:e})=>Promise.resolve(e.results))}function u(e,t){return(0,i.openmrsFetch)(`${i.restBaseUrl}/encounter`,{headers:{"Content-Type":"application/json"},method:"POST",body:t,signal:e.signal})}function p(e,t,n){return(0,i.openmrsFetch)(`${i.restBaseUrl}/encounter/${t}`,{headers:{"Content-Type":"application/json"},method:"POST",body:n,signal:e.signal})}function m(e,t){return(0,i.openmrsFetch)(`${i.restBaseUrl}/patientdiagnoses`,{headers:{"Content-Type":"application/json"},method:"POST",body:t,signal:e.signal})}function A(e,t){return(0,i.openmrsFetch)(`${i.restBaseUrl}/patientdiagnoses/${t}`,{method:"DELETE",signal:e.signal})}function _(e){return(0,i.openmrsFetch)(`${i.restBaseUrl}/obs/${e}?reason=Removed%20from%20visit%20note`,{method:"DELETE"})}}}]);
|
|
1
|
+
(globalThis.webpackChunk_openmrs_esm_patient_notes_app=globalThis.webpackChunk_openmrs_esm_patient_notes_app||[]).push([["8800"],{4767(e,t,n){var o={"./uk.json":["723","9072"],"./ar.json":["4132","7045"],"./ru_RU.json":["986","8359"],"./uz_UZ.json":["890","7175"],"./fr.json":["4055","6508"],"./sw_KE.json":["8618","903"],"./uz.json":["3584","6377"],"./en.json":["4300","5117"],"./ky.json":["8163","2416"],"./pl.json":["1119","6724"],"./sq.json":["8371","4928"],"./ka.json":["795","1480"],"./si.json":["6859","6904"],"./zh_TW.json":["439","556"],"./de.json":["4944","5145"],"./lg.json":["4618","8695"],"./vi.json":["9214","6371"],"./tr.json":["5241","434"],"./es_MX.json":["8349","1646"],"./tr_TR.json":["9900","1869"],"./zh_CN.json":["9879","5644"],"./en_US.json":["9569","4106"],"./he.json":["4652","2317"],"./id.json":["2690","6047"],"./ku.json":["9895","4348"],"./es.json":["3099","7912"],"./ne.json":["2146","5503"],"./ar_SY.json":["7617","282"],"./uz@Latn.json":["7097","4658"],"./bn.json":["7159","6444"],"./cs.json":["6589","7182"],"./zh.json":["1690","7742"],"./hi_IN.json":["5442","4383"],"./pt_BR.json":["4087","1877"],"./qu.json":["5173","8358"],"./ro_RO.json":["6022","3963"],"./sw.json":["9913","3378"],"./am.json":["1197","9806"],"./pt.json":["6679","5132"],"./it.json":["9538","4111"],"./km.json":["4335","5940"],"./hi.json":["6840","2881"]};function s(e){if(!n.o(o,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=o[e],s=t[0];return n.e(t[1]).then(function(){return n(s)})}s.keys=()=>Object.keys(o),s.id=4767,e.exports=s},7251(e,t,n){"use strict";n.r(t),n.d(t,{visitNotesFormWorkspace:()=>E,stickyNoteModal:()=>k,importTranslation:()=>f,exportedVisitNotesFormWorkspace:()=>j,visitNotesActionButton:()=>T,startupApp:()=>v,notesOverview:()=>b,deleteStickyNoteModal:()=>N,stickyNotesButton:()=>w});var o=n(2293);let s={clinicianEncounterRole:{_type:o.Type.UUID,_default:"240b26f9-dd88-4172-823d-4a8bfeb7841f",_description:"Doctor or Nurse who is the primary provider for an encounter, and will sign the note"},visitDiagnosesConceptUuid:{_type:o.Type.ConceptUuid,_default:"159947AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",_description:"The set of diagnoses that were either addressed or diagnosed during the current visit"},encounterNoteTextConceptUuid:{_type:o.Type.ConceptUuid,_default:"162169AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",_description:"Free text note field intended to capture unstructured description of the patient encounter"},encounterTypeUuid:{_type:o.Type.UUID,_default:"d7151f82-c1f3-4152-a605-2f9ea7414a79",_description:"Encounter where a full or abbreviated examination is done, usually leading to a presumptive or confirmed diagnosis, recorded by the examining clinician."},formConceptUuid:{_type:o.Type.UUID,_default:"c75f120a-04ec-11e3-8780-2b40bef9a44b",_description:"The UUID of the Visit Note form to be associated with visit note encounters"}},a={diagnosisConceptClass:{_type:o.Type.UUID,_default:"8d4918b0-c2cc-11de-8d13-0010c6dffd0f",_description:"The concept class UUID for diagnoses"},isPrimaryDiagnosisRequired:{_type:o.Type.Boolean,_default:!0,_description:"Indicates whether a primary diagnosis is required when submitting a visit note"},stickyNoteConceptUuid:{_type:o.Type.ConceptUuid,_default:"165095AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",_description:"The concept UUID for storing sticky notes as observations"},visitNoteConfig:s};var i=n(5399),r=n.n(i),c=n(7807),d=n(324),l=n(3040),u=n(1273),p=n(3373),m=n.n(p),A=n(9689);let _={widgetCard:"-esm-patient-notes__notes-overview__widgetCard___p6Joq",expandedRow:"-esm-patient-notes__notes-overview__expandedRow___lvq57",copy:"-esm-patient-notes__notes-overview__copy___abK8F",container:"-esm-patient-notes__notes-overview__container___BAYjB",metadata:"-esm-patient-notes__notes-overview__metadata___jCssX",hiddenRow:"-esm-patient-notes__notes-overview__hiddenRow___czQKK"},y=({notes:e,pageSize:t,pageUrl:n,urlLabel:s})=>{let{t:a}=(0,c.useTranslation)(),u=(0,o.useLayoutType)(),[p,y]=(0,i.useState)({key:"",order:"none"}),h=[{key:"encounterDate",header:a("date","Date")},{key:"diagnoses",header:a("diagnoses","Diagnoses")}],{key:g,order:f}=p,v="encounterDate"===g?"ASC"===f?(0,A.A)(e,[e=>new Date(e.encounterDate).getTime()],["desc"]):(0,A.A)(e,[e=>new Date(e.encounterDate).getTime()],["asc"]):"DESC"===f?(0,A.A)(e,[g],["desc"]):(0,A.A)(e,[g],["asc"]),{results:b,goTo:T,currentPage:E}=(0,o.usePagination)(v,t),j=r().useMemo(()=>b?.map(e=>({...e,id:`${e.id}`,encounterDate:(0,o.formatDate)((0,o.parseDate)(e.encounterDate),{mode:"wide"}),diagnoses:e.diagnoses?e.diagnoses:"--"})),[b]);return r().createElement(r().Fragment,null,r().createElement(d.DataTable,{rows:j,sortRow:function(e,t,{sortDirection:n,sortStates:o}){return y({key:Object.keys(o).find(e=>o[e]===n)??"",order:n}),0},headers:h,isSortable:!0,size:"tablet"===u?"lg":"sm",useZebraStyles:!0},({getExpandedRowProps:e,getExpandHeaderProps:t,getHeaderProps:n,getRowProps:s,getTableContainerProps:i,getTableProps:c,headers:l,rows:u})=>r().createElement(d.TableContainer,i(),r().createElement(d.Table,c(),r().createElement(d.TableHead,null,r().createElement(d.TableRow,null,r().createElement(d.TableExpandHeader,{enableToggle:!0,...t()}),l.map((e,t)=>r().createElement(d.TableHeader,{key:t,className:m()(_.productiveHeading01,_.text02),...n({header:e})},e.header)))),r().createElement(d.TableBody,null,u.map((t,n)=>r().createElement(r().Fragment,{key:t.id},r().createElement(d.TableExpandRow,s({row:t}),t.cells.map(e=>r().createElement(d.TableCell,{key:e.id},e.value))),t.isExpanded?r().createElement(d.TableExpandedRow,{className:_.expandedRow,colSpan:l.length+1,...e({row:t})},r().createElement("div",{className:_.container,key:n},j?.[n]?.encounterNote?r().createElement("div",{className:_.copy},r().createElement("span",{className:_.content},j?.[n]?.encounterNote),r().createElement("span",{className:_.metadata},(0,o.formatTime)(new Date(j?.[n]?.encounterNoteRecordedAt))," \xb7"," ",j?.[n]?.encounterProvider,", ",j?.[n]?.encounterProviderRole)):r().createElement("span",{className:_.copy},a("noVisitNoteToDisplay","No visit note to display")))):r().createElement(d.TableExpandedRow,{className:_.hiddenRow,colSpan:l.length+2}))))))),r().createElement(l.PatientChartPagination,{pageNumber:E,totalItems:e.length,currentItems:b.length,pageSize:t,onPageNumberChange:({page:e})=>T(e),dashboardLinkUrl:n,dashboardLinkLabel:s}))},h="@openmrs/esm-patient-notes-app",g={featureName:"patient-notes",moduleName:h},f=n(4767);function v(){(0,o.defineConfigSchema)(h,a)}let b=(0,o.getSyncLifecycle)(({patientUuid:e,patient:t,basePath:n})=>{let{t:s}=(0,c.useTranslation)(),a=`\${openmrsSpaBase}/patient/${t.id}/chart/visits`,i=s("seeAll","See all"),p=s("visitNotes","Visit notes"),m=s("visitNotes","Visit notes"),{visitNotes:A,error:h,isLoading:g,isValidating:f}=(0,u.aw)(e),v=(0,o.useLayoutType)(),b=(0,l.useLaunchWorkspaceRequiringVisit)(e,"visit-notes-form-workspace");return g?r().createElement(d.DataTableSkeleton,{role:"progressbar",compact:"large-desktop"===v||"small-desktop"===v,zebra:!0}):h?r().createElement(l.ErrorState,{error:h,headerTitle:m}):A?.length?r().createElement("div",{className:_.widgetCard},r().createElement(l.CardHeader,{title:m},r().createElement("span",null,f?r().createElement(d.InlineLoading,null):null),r().createElement(d.Button,{kind:"ghost",renderIcon:e=>r().createElement(o.AddIcon,{size:16,...e}),iconDescription:s("addVisitNote","Add visit note"),onClick:b},s("add","Add"))),r().createElement(y,{notes:A,pageSize:5,urlLabel:i,pageUrl:a})):r().createElement(l.EmptyState,{displayText:p,headerTitle:m,launchForm:()=>b()})},g),T=(0,o.getSyncLifecycle)(({groupProps:{patientUuid:e}})=>{let{t}=(0,c.useTranslation)(),n=(0,l.useStartVisitIfNeeded)(e);return r().createElement(o.ActionMenuButton2,{icon:e=>r().createElement(o.PenIcon,e),label:t("visitNote","Visit note"),workspaceToLaunch:{workspaceName:"visit-notes-form-workspace",workspaceProps:{}},onBeforeWorkspaceLaunch:n})},g),E=(0,o.getAsyncLifecycle)(()=>Promise.all([n.e("9488"),n.e("3416"),n.e("5059"),n.e("7078"),n.e("2286")]).then(n.bind(n,7952)),g),j=(0,o.getAsyncLifecycle)(()=>Promise.all([n.e("9488"),n.e("3416"),n.e("5059"),n.e("7078"),n.e("8962")]).then(n.bind(n,9615)),g),w=(0,o.getAsyncLifecycle)(()=>Promise.all([n.e("2153"),n.e("2842")]).then(n.bind(n,8321)),g),N=(0,o.getAsyncLifecycle)(()=>n.e("2824").then(n.bind(n,6939)),g),k=(0,o.getAsyncLifecycle)(()=>Promise.all([n.e("2153"),n.e("5861")]).then(n.bind(n,2548)),g)},1273(e,t,n){"use strict";n.d(t,{HE:()=>p,Vm:()=>c,XH:()=>_,aw:()=>d,k7:()=>A,mN:()=>m,ph:()=>l,v_:()=>u});var o=n(5399),s=n(1619),a=n.n(s),i=n(2293),r=n(3040);function c(e,t){let{data:n,isLoading:s,error:a}=(0,i.useAttachments)(t?e:null,!1,t);return{images:(0,o.useMemo)(()=>n.filter(e=>"IMAGE"===e.bytesContentFamily).map(e=>({id:e.uuid,src:(0,r.getAttachmentBytesUrl)(e.uuid),description:e.comment,filename:e.filename})),[n]),isLoading:s,error:a}}function d(e){let{visitNoteConfig:{encounterNoteTextConceptUuid:t,visitDiagnosesConceptUuid:n}}=(0,i.useConfig)(),o=`${i.restBaseUrl}/encounter?patient=${e}&obs=${n}&v=custom:(uuid,display,encounterDatetime,patient,obs,encounterProviders:(uuid,display,encounterRole:(uuid,display),provider:(uuid,person:(uuid,display))),diagnoses`,{data:s,error:r,isLoading:c,isValidating:d,mutate:l}=a()(o,i.openmrsFetch),u=s?.data?.results?.map((e,n)=>({id:`${n}`,diagnoses:e.diagnoses.filter(e=>!e.voided).map(e=>e.display).filter(e=>e).join(", "),encounterDate:e.encounterDatetime,encounterNote:e.obs.find(e=>e.concept.uuid===t)?.value,encounterNoteRecordedAt:e.obs.find(e=>e.concept.uuid===t)?.obsDatetime,encounterProvider:e?.encounterProviders[0]?.provider?.person?.display,encounterProviderRole:e?.encounterProviders[0]?.encounterRole?.display}))?.sort((e,t)=>new Date(t.encounterDate).getTime()-new Date(e.encounterDate).getTime());return{visitNotes:s?u:null,error:r,isLoading:c,isValidating:d,mutateVisitNotes:l}}function l(e,t){let n=`${i.restBaseUrl}/concept?name=${e}&searchType=fuzzy&class=${t}&v=custom:(uuid,display)`;return(0,i.openmrsFetch)(n).then(({data:e})=>Promise.resolve(e.results))}function u(e,t){return(0,i.openmrsFetch)(`${i.restBaseUrl}/encounter`,{headers:{"Content-Type":"application/json"},method:"POST",body:t,signal:e.signal})}function p(e,t,n){return(0,i.openmrsFetch)(`${i.restBaseUrl}/encounter/${t}`,{headers:{"Content-Type":"application/json"},method:"POST",body:n,signal:e.signal})}function m(e,t){return(0,i.openmrsFetch)(`${i.restBaseUrl}/patientdiagnoses`,{headers:{"Content-Type":"application/json"},method:"POST",body:t,signal:e.signal})}function A(e,t){return(0,i.openmrsFetch)(`${i.restBaseUrl}/patientdiagnoses/${t}`,{method:"DELETE",signal:e.signal})}function _(e){return(0,i.openmrsFetch)(`${i.restBaseUrl}/obs/${e}?reason=Removed%20from%20visit%20note`,{method:"DELETE"})}}}]);
|
package/dist/8800.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"8800.js","sources":["webpack://@openmrs/esm-patient-notes-app/./translations|lazy|nonrecursive|/.json$/","webpack://@openmrs/esm-patient-notes-app/./src/notes/visit-note-config-schema.ts","webpack://@openmrs/esm-patient-notes-app/./src/config-schema.ts","webpack://@openmrs/esm-patient-notes-app/./src/notes/notes-overview.scss?5523","webpack://@openmrs/esm-patient-notes-app/./src/notes/paginated-notes.component.tsx","webpack://@openmrs/esm-patient-notes-app/./src/index.ts","webpack://@openmrs/esm-patient-notes-app/./src/notes/notes-overview.extension.tsx","webpack://@openmrs/esm-patient-notes-app/./src/visit-note-action-button.extension.tsx","webpack://@openmrs/esm-patient-notes-app/./src/notes/visit-notes.resource.ts"],"names":["Promise","Error","Object","Type","configSchema","notesConfigSchema","notes","pageSize","pageUrl","urlLabel","t","useTranslation","layout","useLayoutType","sortParams","setSortParams","useState","tableHeaders","key","order","sortedData","orderBy","obj","Date","paginatedNotes","goTo","currentPage","usePagination","tableRows","React","note","formatDate","parseDate","DataTable","cellA","cellB","sortDirection","sortStates","k","isTablet","getExpandedRowProps","getExpandHeaderProps","getHeaderProps","getRowProps","getTableContainerProps","getTableProps","headers","rows","TableContainer","Table","TableHead","TableRow","TableExpandHeader","header","i","TableHeader","classNames","styles","TableBody","row","TableExpandRow","cell","TableCell","TableExpandedRow","formatTime","PatientChartPagination","page","moduleName","options","importTranslation","require","startupApp","defineConfigSchema","notesOverview","getSyncLifecycle","patientUuid","patient","basePath","visitContext","usePatientChartStore","displayText","headerTitle","visitNotes","error","isLoading","isValidating","useVisitNotes","launchVisitNoteForm","launchWorkspace","launchStartVisitPrompt","DataTableSkeleton","ErrorState","CardHeader","InlineLoading","Button","props","AddIcon","PaginatedNotes","EmptyState","visitNotesActionButton","startVisitIfNeeded","useStartVisitIfNeeded","ActionMenuButton2","PenIcon","visitNotesFormWorkspace","getAsyncLifecycle","exportedVisitNotesFormWorkspace","stickyNotesButton","deleteStickyNoteModal","stickyNoteModal","useVisitNoteImages","encounterUuid","data","useAttachments","images","useMemo","attachment","getAttachmentBytesUrl","encounterNoteTextConceptUuid","visitDiagnosesConceptUuid","useConfig","encountersApiUrl","restBaseUrl","mutate","useSWR","openmrsFetch","formattedVisitNotes","index","diagnosis","diagnosisData","val","observation","noteA","noteB","fetchDiagnosisConceptsByName","searchTerm","diagnosisConceptClass","url","saveVisitNote","abortController","payload","updateVisitNote","savePatientDiagnosis","deletePatientDiagnosis","diagnosisUuid","removeVisitNoteImage","imageUuid"],"mappings":"8IAAA,IAAI,EAAM,CACR,YAAa,CACX,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,MACA,OACD,CACD,eAAgB,CACd,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,MACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,MACA,MACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,MACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,MACD,CACD,iBAAkB,CAChB,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,AACH,EACA,SAAS,EAAuB,CAAG,EAC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vF,MAAOf,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CAAC,EAAEH,EAAAA,WAAWA,CAAC,UAAU,CAAC,CAAE,CAC9C,QAAS,CACP,eAAgB,kBAClB,EACA,OAAQ,OACR,KAAMkB,EACN,OAAQD,EAAgB,MAAM,AAChC,EACF,CAEO,SAASE,EAAgBF,CAAgC,CAAE5B,CAAqB,CAAE6B,CAAyB,EAChH,MAAOf,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CAAC,EAAEH,EAAAA,WAAWA,CAAC,WAAW,EAAEX,EAAc,CAAC,CAAE,CAC/D,QAAS,CACP,eAAgB,kBAClB,EACA,OAAQ,OACR,KAAM6B,EACN,OAAQD,EAAgB,MAAM,AAChC,EACF,CAEO,SAASG,EAAqBH,CAAgC,CAAEC,CAAyB,EAC9F,MAAOf,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CAAC,EAAEH,EAAAA,WAAWA,CAAC,iBAAiB,CAAC,CAAE,CACrD,QAAS,CACP,eAAgB,kBAClB,EACA,OAAQ,OACR,KAAMkB,EACN,OAAQD,EAAgB,MAAM,AAChC,EACF,CAEO,SAASI,EAAuBJ,CAAgC,CAAEK,CAAqB,EAC5F,MAAOnB,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CAAC,EAAEH,EAAAA,WAAWA,CAAC,kBAAkB,EAAEsB,EAAc,CAAC,CAAE,CACtE,OAAQ,SACR,OAAQL,EAAgB,MAAM,AAChC,EACF,CAGO,SAASM,EAAqBC,CAAiB,EACpD,MAAOrB,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CAAC,EAAEH,EAAAA,WAAWA,CAAC,KAAK,EAAEwB,EAAU,qCAAqC,CAAC,CAAE,CAAE,OAAQ,QAAS,EACjH,C"}
|
|
1
|
+
{"version":3,"file":"8800.js","sources":["webpack://@openmrs/esm-patient-notes-app/./translations|lazy|nonrecursive|/.json$/","webpack://@openmrs/esm-patient-notes-app/./src/notes/visit-note-config-schema.ts","webpack://@openmrs/esm-patient-notes-app/./src/config-schema.ts","webpack://@openmrs/esm-patient-notes-app/./src/notes/notes-overview.scss?5523","webpack://@openmrs/esm-patient-notes-app/./src/notes/paginated-notes.component.tsx","webpack://@openmrs/esm-patient-notes-app/./src/index.ts","webpack://@openmrs/esm-patient-notes-app/./src/notes/notes-overview.extension.tsx","webpack://@openmrs/esm-patient-notes-app/./src/visit-note-action-button.extension.tsx","webpack://@openmrs/esm-patient-notes-app/./src/notes/visit-notes.resource.ts"],"names":["Promise","Error","Object","Type","configSchema","notesConfigSchema","notes","pageSize","pageUrl","urlLabel","t","useTranslation","layout","useLayoutType","sortParams","setSortParams","useState","tableHeaders","key","order","sortedData","orderBy","obj","Date","paginatedNotes","goTo","currentPage","usePagination","tableRows","React","note","formatDate","parseDate","DataTable","cellA","cellB","sortDirection","sortStates","k","isTablet","getExpandedRowProps","getExpandHeaderProps","getHeaderProps","getRowProps","getTableContainerProps","getTableProps","headers","rows","TableContainer","Table","TableHead","TableRow","TableExpandHeader","header","i","TableHeader","classNames","styles","TableBody","row","TableExpandRow","cell","TableCell","TableExpandedRow","formatTime","PatientChartPagination","page","moduleName","options","importTranslation","require","startupApp","defineConfigSchema","notesOverview","getSyncLifecycle","patientUuid","patient","basePath","displayText","headerTitle","visitNotes","error","isLoading","isValidating","useVisitNotes","launchVisitNoteForm","useLaunchWorkspaceRequiringVisit","DataTableSkeleton","ErrorState","CardHeader","InlineLoading","Button","props","AddIcon","PaginatedNotes","EmptyState","visitNotesActionButton","startVisitIfNeeded","useStartVisitIfNeeded","ActionMenuButton2","PenIcon","visitNotesFormWorkspace","getAsyncLifecycle","exportedVisitNotesFormWorkspace","stickyNotesButton","deleteStickyNoteModal","stickyNoteModal","useVisitNoteImages","encounterUuid","data","useAttachments","images","useMemo","attachment","getAttachmentBytesUrl","encounterNoteTextConceptUuid","visitDiagnosesConceptUuid","useConfig","encountersApiUrl","restBaseUrl","mutate","useSWR","openmrsFetch","formattedVisitNotes","index","diagnosis","diagnosisData","val","observation","noteA","noteB","fetchDiagnosisConceptsByName","searchTerm","diagnosisConceptClass","url","saveVisitNote","abortController","payload","updateVisitNote","savePatientDiagnosis","deletePatientDiagnosis","diagnosisUuid","removeVisitNoteImage","imageUuid"],"mappings":"8IAAA,IAAI,EAAM,CACR,YAAa,CACX,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,MACA,OACD,CACD,eAAgB,CACd,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,MACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,MACA,MACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,MACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,MACD,CACD,iBAAkB,CAChB,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OAC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CAAC,CAAE,CAC9C,QAAS,CACP,eAAgB,kBAClB,EACA,OAAQ,OACR,KAAMkB,EACN,OAAQD,EAAgB,MAAM,AAChC,EACF,CAEO,SAASE,EAAgBF,CAAgC,CAAE5B,CAAqB,CAAE6B,CAAyB,EAChH,MAAOf,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CAAC,EAAEH,EAAAA,WAAWA,CAAC,WAAW,EAAEX,EAAc,CAAC,CAAE,CAC/D,QAAS,CACP,eAAgB,kBAClB,EACA,OAAQ,OACR,KAAM6B,EACN,OAAQD,EAAgB,MAAM,AAChC,EACF,CAEO,SAASG,EAAqBH,CAAgC,CAAEC,CAAyB,EAC9F,MAAOf,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CAAC,EAAEH,EAAAA,WAAWA,CAAC,iBAAiB,CAAC,CAAE,CACrD,QAAS,CACP,eAAgB,kBAClB,EACA,OAAQ,OACR,KAAMkB,EACN,OAAQD,EAAgB,MAAM,AAChC,EACF,CAEO,SAASI,EAAuBJ,CAAgC,CAAEK,CAAqB,EAC5F,MAAOnB,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CAAC,EAAEH,EAAAA,WAAWA,CAAC,kBAAkB,EAAEsB,EAAc,CAAC,CAAE,CACtE,OAAQ,SACR,OAAQL,EAAgB,MAAM,AAChC,EACF,CAGO,SAASM,EAAqBC,CAAiB,EACpD,MAAOrB,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CAAC,EAAEH,EAAAA,WAAWA,CAAC,KAAK,EAAEwB,EAAU,qCAAqC,CAAC,CAAE,CAAE,OAAQ,QAAS,EACjH,C"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var _openmrs_esm_patient_notes_app;!function(){var e="u">typeof globalThis?globalThis:self;if(void 0===e._FEDERATION_RUNTIME_CORE||void 0===e._OPENMRS_FEDERATION_SDK||void 0===e._OPENMRS_FEDERATION_ERROR_CODES)throw Error("@openmrs/esm-patient-notes-app cannot start: the OpenMRS app shell serving this page does not provide the Module Federation runtime. This app was built with newer OpenMRS tooling than the app shell, so either upgrade @openmrs/esm-app-shell, or rebuild this app with tooling matching the app shell.");var t=e._FEDERATION_RUNTIME_CORE_FROM;t&&t.version&&"2.8"!==String(t.version).split(".").slice(0,2).join(".")&&console.warn("@openmrs/esm-patient-notes-app was built against Module Federation 2.8.x but the app shell provides "+t.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,t,r,n,o,i={8143(e,t,r){"use strict";var n,o,i,a,s,l,u,p,c,d,f,h,m=r(523),g=r.n(m);let b=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),y={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{let n=r();Array.isArray(n)?(null!=e[t]||(e[t]=[]),e[t].push(...n)):"object"==typeof n&&null!==n&&(null!=e[t]||(e[t]={}),Object.assign(e[t],n))},m=(e,t,r)=>{null!=e[t]||(e[t]=r())},S=null!=(n=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?n:{},E=null!=(o=null==(u=r.remotesLoadingData)?void 0:u.moduleIdToRemoteDataMapping)?o:{},M=null!=(i=null==(p=r.initializeSharingData)?void 0:p.scopeToSharingDataMapping)?i:{},_=null!=(a=null==(c=r.consumesLoadingData)?void 0:c.chunkMapping)?a:{},O=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},v={},R=[],T={},w=null==(f=r.initializeExposesData)?void 0:f.shareScope;for(let e in g())r.federation[e]=g()[e];m(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[t,r]of Object.entries(O))e[t]={getter:r.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager},scope:[r.shareScope]},shareKey:r.shareKey};return e}),m(r.federation,"initOptions",()=>({})),m(r.federation.initOptions,"name",()=>"@openmrs/esm-patient-notes-app"),m(r.federation.initOptions,"shareStrategy",()=>"version-first"),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(M))for(let n of r)if("object"==typeof n&&null!==n){let{name:r,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[t],shareConfig:p,get:i};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(y).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>b),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>y),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(E))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(E)){let n=y[r.remoteName];n&&(e[t]=n)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:S,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:_,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:v,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:R,initTokens:T,webpackRequire:r})),e(r,"initContainer",(e,t,n)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:w,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.runtime.init(r.federation.initOptions),(null==(h=r.consumesLoadingData)?void 0:h.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:v,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},9188(e,t,r){"use strict";r.d(t,{get:()=>r.getContainer,init:()=>r.initContainer})},3054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},1853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},1772(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},9837(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(1772);let n=r(7789),o=r(3054),i={...o.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},a=o.helpers.share,s=o.helpers.utils;t.default={global:i,share:a,utils:s},t.global=i,t.share=a,t.utils=s},3738(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(1772);let n=r(7789),o=r(3054),i=r(9170);function a(e){let t=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,o.setGlobalFederationInstance)(t),t}let s=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return o.Module}}),t.ModuleFederation=o.ModuleFederation,t.createInstance=a,t.getInstance=function(e){return e?o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),t.init=function(e){let t=n.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=a(r)},t.loadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),t.loadShare=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerShared.apply(s,e)}},7789(e,t,r){r(1772);let n=r(3054);t.getGlobalFederationInstance=function(e,t){let r="@openmrs/esm-patient-notes-app:12.3.5-pre.12468";return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}},223(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},3545(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},6917(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},1864(e,t,r){let n=r(3545),o=r(1092),i=r(2677),a=r(85),s=r(6781);t.consumes=function(e){o.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:u,chunkMapping:p,moduleToHandlerMapping:c}=e;n.attachShareScopeMap(u),u.o(p,t)&&p[t].forEach(e=>{if(u.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,u.m[e]=r=>{delete u.c[e];let n=t(),{shareInfo:o}=c[e];if(o?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=o.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete l[e],u.m[e]=r=>{throw delete u.c[e],t}};try{let o=u.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:p,getter:d,shareInfo:f,treeShakingGetter:h}=c[e],m=i.getUsedExports(u,p),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[o.options.name]});let b=o.loadShare(p,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(a.RUNTIME_012,{[a.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:p}));return h?.()||d()}return e});b.then?r.push(l[e]=b.then(t).catch(n)):t(b)}catch(e){n(e)}})}},85(e,t){t.RUNTIME_012="RUNTIME-012"},6781(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&o.push(`Original Error Message:
|
|
1
|
+
var _openmrs_esm_patient_notes_app;!function(){var e="u">typeof globalThis?globalThis:self;if(void 0===e._FEDERATION_RUNTIME_CORE||void 0===e._OPENMRS_FEDERATION_SDK||void 0===e._OPENMRS_FEDERATION_ERROR_CODES)throw Error("@openmrs/esm-patient-notes-app cannot start: the OpenMRS app shell serving this page does not provide the Module Federation runtime. This app was built with newer OpenMRS tooling than the app shell, so either upgrade @openmrs/esm-app-shell, or rebuild this app with tooling matching the app shell.");var t=e._FEDERATION_RUNTIME_CORE_FROM;t&&t.version&&"2.8"!==String(t.version).split(".").slice(0,2).join(".")&&console.warn("@openmrs/esm-patient-notes-app was built against Module Federation 2.8.x but the app shell provides "+t.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,t,r,n,o,i={8143(e,t,r){"use strict";var n,o,i,a,s,l,u,p,c,d,f,h,m=r(523),g=r.n(m);let b=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),y={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{let n=r();Array.isArray(n)?(null!=e[t]||(e[t]=[]),e[t].push(...n)):"object"==typeof n&&null!==n&&(null!=e[t]||(e[t]={}),Object.assign(e[t],n))},m=(e,t,r)=>{null!=e[t]||(e[t]=r())},S=null!=(n=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?n:{},E=null!=(o=null==(u=r.remotesLoadingData)?void 0:u.moduleIdToRemoteDataMapping)?o:{},M=null!=(i=null==(p=r.initializeSharingData)?void 0:p.scopeToSharingDataMapping)?i:{},_=null!=(a=null==(c=r.consumesLoadingData)?void 0:c.chunkMapping)?a:{},O=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},v={},R=[],T={},w=null==(f=r.initializeExposesData)?void 0:f.shareScope;for(let e in g())r.federation[e]=g()[e];m(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[t,r]of Object.entries(O))e[t]={getter:r.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager},scope:[r.shareScope]},shareKey:r.shareKey};return e}),m(r.federation,"initOptions",()=>({})),m(r.federation.initOptions,"name",()=>"@openmrs/esm-patient-notes-app"),m(r.federation.initOptions,"shareStrategy",()=>"version-first"),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(M))for(let n of r)if("object"==typeof n&&null!==n){let{name:r,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[t],shareConfig:p,get:i};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(y).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>b),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>y),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(E))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(E)){let n=y[r.remoteName];n&&(e[t]=n)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:S,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:_,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:v,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:R,initTokens:T,webpackRequire:r})),e(r,"initContainer",(e,t,n)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:w,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.runtime.init(r.federation.initOptions),(null==(h=r.consumesLoadingData)?void 0:h.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:v,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},9188(e,t,r){"use strict";r.d(t,{get:()=>r.getContainer,init:()=>r.initContainer})},3054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},1853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},1772(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},9837(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(1772);let n=r(7789),o=r(3054),i={...o.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},a=o.helpers.share,s=o.helpers.utils;t.default={global:i,share:a,utils:s},t.global=i,t.share=a,t.utils=s},3738(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(1772);let n=r(7789),o=r(3054),i=r(9170);function a(e){let t=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,o.setGlobalFederationInstance)(t),t}let s=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return o.Module}}),t.ModuleFederation=o.ModuleFederation,t.createInstance=a,t.getInstance=function(e){return e?o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),t.init=function(e){let t=n.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=a(r)},t.loadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),t.loadShare=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerShared.apply(s,e)}},7789(e,t,r){r(1772);let n=r(3054);t.getGlobalFederationInstance=function(e,t){let r="@openmrs/esm-patient-notes-app:12.3.5-pre.12472";return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}},223(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},3545(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},6917(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},1864(e,t,r){let n=r(3545),o=r(1092),i=r(2677),a=r(85),s=r(6781);t.consumes=function(e){o.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:u,chunkMapping:p,moduleToHandlerMapping:c}=e;n.attachShareScopeMap(u),u.o(p,t)&&p[t].forEach(e=>{if(u.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,u.m[e]=r=>{delete u.c[e];let n=t(),{shareInfo:o}=c[e];if(o?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=o.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete l[e],u.m[e]=r=>{throw delete u.c[e],t}};try{let o=u.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:p,getter:d,shareInfo:f,treeShakingGetter:h}=c[e],m=i.getUsedExports(u,p),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[o.options.name]});let b=o.loadShare(p,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(a.RUNTIME_012,{[a.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:p}));return h?.()||d()}return e});b.then?r.push(l[e]=b.then(t).catch(n)):t(b)}catch(e){n(e)}})}},85(e,t){t.RUNTIME_012="RUNTIME-012"},6781(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&o.push(`Original Error Message:
|
|
2
2
|
${n}`),o.join("\n")}},1315(e,t){t.getSharedFallbackGetter=({shareKey:e,factory:t,version:r,webpackRequire:n,libraryType:o="global"})=>{let{runtime:i,instance:a,bundlerRuntime:s,sharedFallback:l}=n.federation;if(!l)return t;let u=l[e];if(!u)return t;let p=r?u.find(e=>e[1]===r):u[0];if(!p)throw Error(`No fallback item found for shareKey: ${e} and version: ${r}`);return()=>i.getRemoteEntry({origin:n.federation.instance,remoteInfo:{name:p[2],entry:`${n.p}${p[0]}`,type:o,entryGlobalName:p[2],shareScope:"default"}}).then(t=>{if(!t)throw Error(`Failed to load fallback entry for shareKey: ${e} and version: ${r}`);return t.init(n.federation.instance,s).then(()=>t.get())})}},2677(e,t){t.getUsedExports=function(e,t){let r=e.federation.usedExports;if(r)return r[t]}},523(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let n=r(223),o=r(3545),i=r(3586),a=r(1864),s=r(2221),l=r(4307),u=r(1180),p=r(367),c=r(1315),d=r(3738);d=n.__toESM(d);let f={remotes:i.remotes,consumes:a.consumes,I:s.initializeSharing,S:{},installInitialConsumes:l.installInitialConsumes,initContainerEntry:u.initContainerEntry,init:p.init,getSharedFallbackGetter:c.getSharedFallbackGetter},h={runtime:d,instance:void 0,initOptions:void 0,bundlerRuntime:f,attachShareScopeMap:o.attachShareScopeMap,bundlerRuntimeOptions:{}},m=h.instance,g=h.initOptions,b=h.bundlerRuntimeOptions;t.attachShareScopeMap=o.attachShareScopeMap,t.bundlerRuntime=f,t.bundlerRuntimeOptions=b,t.default=h,t.initOptions=g,t.instance=m,Object.defineProperty(t,"runtime",{enumerable:!0,get:function(){return d}})},367(e,t,r){let n=r(223),o=r(3738),i=r(9837);i=n.__toESM(i),t.init=function({webpackRequire:e}){let{initOptions:t,runtime:n,sharedFallback:a,bundlerRuntime:s,libraryType:l}=e.federation;if(!t)throw Error("initOptions is required!");return t.plugins||=[],t.plugins.push({name:"tree-shake-plugin",beforeInit(t){let{userOptions:n,origin:u,options:p}=t,c=n.version||p.version;if(!a)return t;let d=n.shared||{},f=[];Object.keys(d).forEach(t=>{(Array.isArray(d[t])?d[t]:[d[t]]).forEach(r=>{f.push([t,r]),"get"in r&&(r.treeShaking||={},r.treeShaking.get=r.get,r.get=s.getSharedFallbackGetter({shareKey:t,factory:r.get,webpackRequire:e,libraryType:l,version:r.version}))})});let h=i.default.global.getGlobalSnapshotInfoByModuleInfo({name:u.name,version:c});return h&&"shared"in h&&(Object.keys(p.shared||{}).forEach(e=>{p.shared[e].forEach(t=>{f.push([e,t])})}),f.forEach(([e,t])=>{((e,t)=>{let n=h.shared.find(t=>t.sharedName===e);if(!n)return;let{treeShaking:i}=t;if(!i)return;let{secondarySharedTreeShakingName:a,secondarySharedTreeShakingEntry:s,treeShakingStatus:p}=n;i.status!==p&&(i.status=p,s&&l&&a&&(i.get=async()=>{let e=await (0,o.getRemoteEntry)({origin:u,remoteInfo:{name:a,entry:s,type:l,entryGlobalName:a,shareScope:"default"}});return await e.init(u,r.federation.bundlerRuntime),e.get()}))})(e,t)})),t}}),n.init(t)}},1180(e,t){t.initContainerEntry=function(e){let{webpackRequire:t,shareScope:r,initScope:n,shareScopeKey:o,remoteEntryInitOptions:i}=e;if(!t.S||!t.federation||!t.federation.instance||!t.federation.initOptions)return;let a=t.federation.instance;a.initOptions({name:t.federation.initOptions.name,remotes:[],...i});let s=i?.shareScopeKeys,l=i?.shareScopeMap;if(o&&"string"!=typeof o)o.forEach(e=>{if(!s||!l)return void a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}});l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})});else{let e=o||"default";Array.isArray(s)?s.forEach(e=>{l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})}):a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}})}return(t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),Array.isArray(o))?t.federation.initOptions.shared?t.I(o,n):Promise.all(o.map(e=>t.I(e,n))).then(()=>!0):t.I(o||"default",n)}},2221(e,t,r){let n=r(3545),o=r(6917);t.initializeSharing=function({shareScopeName:e,webpackRequire:t,initPromises:r,initTokens:i,initScope:a}){let s=Array.isArray(e)?e:[e];var l=[],u=function(s){a||(a=[]);let l=t.federation.instance;var u=i[s];if(u||(u=i[s]={from:l.name}),a.indexOf(u)>=0)return;a.push(u);let p=r[s];if(p)return p;var c=r=>{var n=e=>{let t;return t="Initialization of sharing external failed: "+e,"u">typeof console&&console.warn&&console.warn(t)};try{var o=t(r);if(!o)return;var i=r=>r&&r.init&&r.init(t.S[s],a,{shareScopeMap:t.S||{},shareScopeKeys:e});if(o.then)return d.push(o.then(i,n));var l=i(o);if(l&&"boolean"!=typeof l&&l.then)return d.push(l.catch(n))}catch(e){n(e)}};let d=l.initializeSharing(s,{strategy:l.options.shareStrategy,initScope:a,from:"build"});n.attachShareScopeMap(t);let f=t.federation.bundlerRuntimeOptions.remotes;return(f&&Object.keys(f.idToRemoteMap).forEach(e=>{let t=f.idToRemoteMap[e],r=f.idToExternalAndNameMapping[e][2];if(t.length>1)c(r);else if(1===t.length){let e=t[0];o.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||c(r)}}),d.length)?r[s]=Promise.all(d).then(()=>r[s]=!0):r[s]=!0};return s.forEach(e=>{l.push(u(e))}),Promise.all(l).then(()=>!0)}},4307(e,t,r){let n=r(1092),o=r(2677);t.installInitialConsumes=function(e){n.updateConsumeOptions(e);let{moduleToHandlerMapping:t,webpackRequire:r,installedModules:i,initialConsumes:a,asyncLoad:s}=e,l=[];a.forEach(e=>{l.push([e,()=>(function(e){let{moduleId:t,moduleToHandlerMapping:r,webpackRequire:n,asyncLoad:i}=e,a=n.federation.instance;if(!a)throw Error("Federation instance not found!");let{shareKey:s,shareInfo:l}=r[t];try{let e=o.getUsedExports(n,s),t={...l};if(e&&(t.treeShaking={usedExports:e,useIn:[a.options.name]}),i)return a.loadShare(s,{customShareInfo:t});return a.loadShareSync(s,{customShareInfo:t})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}})({moduleId:e,moduleToHandlerMapping:t,webpackRequire:r,asyncLoad:s})])});let u=(e,n)=>{r.m[e]=o=>{i[e]=0,delete r.c[e];let a=n();if("function"!=typeof a)throw Error(`Shared module is not available for eager consumption: ${e}`);let s=a(),{shareInfo:l}=t[e];if(l?.shareConfig?.layer&&s&&"object"==typeof s)try{s.hasOwnProperty("layer")&&void 0!==s.layer||(s.layer=l.shareConfig.layer)}catch(e){}o.exports=s}};if(s)return Promise.all(l.map(async([e,t])=>{let r=await t();u(e,()=>r)}));l.forEach(([e,t])=>{u(e,t)})}},3586(e,t,r){r(223);let n=r(3545),o=r(6917),i=r(1092),a=r(1853);t.remotes=function(e){i.updateRemoteOptions(e);let{chunkId:t,promises:r,webpackRequire:s,chunkMapping:l,idToExternalAndNameMapping:u,idToRemoteMap:p}=e;n.attachShareScopeMap(s),s.o(l,t)&&l[t].forEach(e=>{let t=s.R;t||(t=[]);let n=u[e],i=p[e]||[];if(t.indexOf(n)>=0)return;if(t.push(n),n.p)return r.push(n.p);let l=t=>{t||(t=Error("Container missing")),"string"==typeof t.message&&(t.message+=`
|
|
3
|
-
while loading "${n[1]}" from ${n[2]}`),s.m[e]=()=>{throw t},n.p=0},c=(e,t,o,i,a,s)=>{try{let u=e(t,o);if(!u||!u.then)return a(u,i,s);{let e=u.then(e=>a(e,i),l);if(!s)return e;r.push(n.p=e)}}catch(e){l(e)}};var d=(e,r,o)=>c(r.get,n[1],t,0,f,o),f=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};1===i.length&&o.FEDERATION_SUPPORTED_TYPES.includes(i[0].externalType)&&i[0].name?c(()=>{try{let e=(0,a.decodeName)(i[0].name,a.ENCODE_NAME_PREFIX)+n[1].slice(1),t=s.federation.instance,r=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){let e=Array.isArray(n[0])?n[0]:[n[0]];return Promise.all(e.map(e=>t.sharedHandler.initializeSharing(e))).then(()=>r())}return r()}catch(e){l(e)}},n[2],0,0,f,1):c(s,n[2],0,0,(e,t,r)=>e?c(s.I,n[0],0,e,d,r):l(),1)})}},1092(e,t){t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:n,initializeSharingData:o}=t,{sharedFallback:i,bundlerRuntime:a,libraryType:s}=t.federation;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:o={},initialConsumes:l=[],chunkMapping:u={}}=n;if(Object.entries(o).forEach(([e,n])=>{r[e]||(r[e]={getter:i?a?.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:t,libraryType:s}):n.fallback,treeShakingGetter:i?n.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:n.requiredVersion,strictVersion:n.strictVersion,singleton:n.singleton,eager:n.eager,layer:n.layer},scope:Array.isArray(n.shareScope)?n.shareScope:[n.shareScope||"default"],treeShaking:i?{get:n.fallback,mode:n.treeShakingMode}:void 0},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;l.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(u).forEach(([e,r])=>{t[e]||(t[e]=[]),r.forEach(r=>{t[e].includes(r)||t[e].push(r)})})}n._updated=1}if(o&&!o._updated){let{federation:e}=t;if(!e.instance||!o.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(o.scopeToSharingDataMapping))for(let n of t)if("object"==typeof n&&null!==n){let{name:t,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={requiredVersion:`^${o}`},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[e],shareConfig:p,get:i};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),o._updated=1}},t.updateRemoteOptions=function(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:n={},chunkMapping:o={}}=e,{remotesLoadingData:i}=t,a=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!a)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=i;if(s&&l){for(let[e,t]of Object.entries(l))if(r[e]||(r[e]=[t.shareScope,t.name,t.externalModuleId]),!n[e]&&a[t.remoteName]){let r=a[t.remoteName];n[e]||=[],r.forEach(t=>{n[e].includes(t)||n[e].push(t)})}o&&Object.entries(s).forEach(([e,t])=>{o[e]||(o[e]=[]),t.forEach(t=>{o[e].includes(t)||o[e].push(t)})}),i._updated=1}}}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return i[e].call(r.exports,r,r.exports,s),r.exports}s.m=i,s.c=a,s.x=()=>s(9188),s.federation||(s.federation={chunkMatcher:function(e){return!/^((50|99)59|3158|3543|4006|4957|7468|8652)$/.test(e)},rootOutputDir:""}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>""+e+".js",s.miniCssF=e=>""+e+".css",s.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l={},s.l=function(e,t,r,n){if(l[e])return void l[e].push(t);if(void 0!==r)for(var o,i,a=document.getElementsByTagName("script"),u=0;u<a.length;u++){var p=a[u];if(p.getAttribute("src")==e||p.getAttribute("data-rspack")=="@openmrs/esm-patient-notes-app:"+r){o=p;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@openmrs/esm-patient-notes-app:"+r),o.src=e),l[e]=[t];var c=function(t,r){o.onerror=o.onload=null,clearTimeout(d);var n=l[e];if(delete l[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),i&&document.head.appendChild(o)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.rv=()=>"1.7.9",s.S={},s.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@carbon/react",version:"1.92.1",factory:()=>Promise.all([s.e("4669"),s.e("9488"),s.e("5"),s.e("8652"),s.e("7468"),s.e("3390")]).then(()=>()=>s(6020)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"@openmrs/esm-framework",version:"10.0.1-pre.5588",factory:()=>Promise.all([s.e("4669"),s.e("7621"),s.e("5312"),s.e("8652"),s.e("7468"),s.e("3543"),s.e("5059"),s.e("9959"),s.e("3158")]).then(()=>()=>s(3955)),eager:0,singleton:1,requiredVersion:"10.x",strictVersion:0},{name:"@openmrs/esm-patient-common-lib",version:"12.3.5-pre.12468",factory:()=>Promise.all([s.e("7621"),s.e("8652"),s.e("3543"),s.e("9959"),s.e("1284"),s.e("4006"),s.e("9116")]).then(()=>()=>s(7295)),eager:0,singleton:1,requiredVersion:"12.x",strictVersion:0},{name:"dayjs",version:"1.11.13",factory:()=>s.e("5697").then(()=>()=>s(3464)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([s.e("689"),s.e("8652")]).then(()=>()=>s(3144)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([s.e("1789"),s.e("8652")]).then(()=>()=>s(2348)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.4",factory:()=>Promise.all([s.e("9712"),s.e("8652"),s.e("7468")]).then(()=>()=>s(7059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>s.e("466").then(()=>()=>s(4041)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"swr/_internal",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("8652")]).then(()=>()=>s(2372)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("8652"),s.e("9061")]).then(()=>()=>s(9876)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("8652"),s.e("9771")]).then(()=>()=>s(2470)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("8652"),s.e("7209")]).then(()=>()=>s(5216)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-patient-notes-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(u=s.g.location+"");var l,u,p=s.g.document;if(!u&&p&&(p.currentScript&&"SCRIPT"===p.currentScript.tagName.toUpperCase()&&(u=p.currentScript.src),!u)){var c=p.getElementsByTagName("script");if(c.length)for(var d=c.length-1;d>-1&&(!u||!/^http(s?):/.test(u));)u=c[d--].src}if(!u)throw Error("Automatic publicPath is not supported in this browser");if(s.p=u=u.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.consumesLoadingData={chunkMapping:{9959:["7807","324","1619"],8652:["5399"],7468:["8439"],5059:["222"],4006:["2293"],8800:["3040"],3543:["5571","3660"],3158:["682","3432"]},moduleIdToConsumeDataMapping:{682:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("2152")]).then(()=>()=>s(2470))},3432:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("3989").then(()=>()=>s(2372))},2293:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"10.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("4669"),s.e("5312"),s.e("7468"),s.e("3543"),s.e("5059"),s.e("3158")]).then(()=>()=>s(3955))},3040:{shareScope:"default",shareKey:"@openmrs/esm-patient-common-lib",import:"@openmrs/esm-patient-common-lib",requiredVersion:"12.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3543"),s.e("1284"),s.e("4957")]).then(()=>()=>s(7295))},8439:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("689").then(()=>()=>s(3144))},5571:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("9712"),s.e("7468")]).then(()=>()=>s(7059))},3660:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("1442")]).then(()=>()=>s(9876))},222:{shareScope:"default",shareKey:"dayjs",import:"dayjs",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("5697").then(()=>()=>s(3464))},5399:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("466").then(()=>()=>s(4041))},7807:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1789").then(()=>()=>s(2348))},324:{shareScope:"default",shareKey:"@carbon/react",import:"@carbon/react",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("4669"),s.e("9488"),s.e("5"),s.e("7468")]).then(()=>()=>s(6020))},1619:{shareScope:"default",shareKey:"swr",import:"swr",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("9590")]).then(()=>()=>s(5216))}},initialConsumes:[]},s.f.consumes=s.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},"u">typeof document){var f=function(e,t,r,n,o){var i=document.createElement("link");return i.rel="stylesheet",i.type="text/css",s.nc&&(i.nonce=s.nc),i.href=t,i.onerror=i.onload=function(r){if(i.onerror=i.onload=null,"load"===r.type)n();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}},r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},h=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],i=o.getAttribute("data-href")||o.getAttribute("href");if(i&&(i=i.split("?")[0]),"stylesheet"===o.rel&&(i===e||i===t))return o}for(var a=document.getElementsByTagName("style"),n=0;n<a.length;n++){var o=a[n],i=o.getAttribute("data-href");if(i===e||i===t)return o}},m={2190:0};s.f.miniCss=function(e,t){if(m[e])t.push(m[e]);else 0!==m[e]&&({2286:1,2842:1,4957:1,5312:1,5861:1,8800:1,8962:1,9116:1})[e]&&t.push(m[e]=new Promise(function(t,r){var n=s.miniCssF(e),o=s.p+n;if(h(n,o))return t();f(e,o,null,t,r)}).then(function(){m[e]=0},function(t){throw delete m[e],t}))}}s.initializeExposesData={moduleMap:{"./start":()=>Promise.all([s.e("7621"),s.e("7682"),s.e("8652"),s.e("9959"),s.e("4006"),s.e("8800")]).then(()=>()=>s(7251))},shareScope:"default"},s.getContainer=s.getContainer||function(){throw Error("should have __webpack_require__.getContainer")},s.initContainer=s.initContainer||function(){throw Error("should have __webpack_require__.initContainer")},e={2190:0},s.f.j=function(t,r){var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^((50|99)59|3158|3543|4006|4957|7468|8652)$/.test(t))e[t]=0;else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var i=s.p+s.u(t),a=Error();s.l(i,function(r){if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}},"chunk-"+t,t)}},t=(t,r)=>{var n,o,[i,a,l]=r,u=0;if(i.some(t=>0!==e[t])){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);l&&l(s)}for(t&&t(r);u<i.length;u++)o=i[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},(r=globalThis.webpackChunk_openmrs_esm_patient_notes_app=globalThis.webpackChunk_openmrs_esm_patient_notes_app||[]).forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r)),s.ruid="bundler=rspack@1.7.9",n=s.x,o=!1,s.x=function(){if(o||(o=!0,s(8143)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_openmrs_esm_patient_notes_app=s.x()})();
|
|
3
|
+
while loading "${n[1]}" from ${n[2]}`),s.m[e]=()=>{throw t},n.p=0},c=(e,t,o,i,a,s)=>{try{let u=e(t,o);if(!u||!u.then)return a(u,i,s);{let e=u.then(e=>a(e,i),l);if(!s)return e;r.push(n.p=e)}}catch(e){l(e)}};var d=(e,r,o)=>c(r.get,n[1],t,0,f,o),f=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};1===i.length&&o.FEDERATION_SUPPORTED_TYPES.includes(i[0].externalType)&&i[0].name?c(()=>{try{let e=(0,a.decodeName)(i[0].name,a.ENCODE_NAME_PREFIX)+n[1].slice(1),t=s.federation.instance,r=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){let e=Array.isArray(n[0])?n[0]:[n[0]];return Promise.all(e.map(e=>t.sharedHandler.initializeSharing(e))).then(()=>r())}return r()}catch(e){l(e)}},n[2],0,0,f,1):c(s,n[2],0,0,(e,t,r)=>e?c(s.I,n[0],0,e,d,r):l(),1)})}},1092(e,t){t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:n,initializeSharingData:o}=t,{sharedFallback:i,bundlerRuntime:a,libraryType:s}=t.federation;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:o={},initialConsumes:l=[],chunkMapping:u={}}=n;if(Object.entries(o).forEach(([e,n])=>{r[e]||(r[e]={getter:i?a?.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:t,libraryType:s}):n.fallback,treeShakingGetter:i?n.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:n.requiredVersion,strictVersion:n.strictVersion,singleton:n.singleton,eager:n.eager,layer:n.layer},scope:Array.isArray(n.shareScope)?n.shareScope:[n.shareScope||"default"],treeShaking:i?{get:n.fallback,mode:n.treeShakingMode}:void 0},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;l.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(u).forEach(([e,r])=>{t[e]||(t[e]=[]),r.forEach(r=>{t[e].includes(r)||t[e].push(r)})})}n._updated=1}if(o&&!o._updated){let{federation:e}=t;if(!e.instance||!o.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(o.scopeToSharingDataMapping))for(let n of t)if("object"==typeof n&&null!==n){let{name:t,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={requiredVersion:`^${o}`},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[e],shareConfig:p,get:i};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),o._updated=1}},t.updateRemoteOptions=function(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:n={},chunkMapping:o={}}=e,{remotesLoadingData:i}=t,a=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!a)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=i;if(s&&l){for(let[e,t]of Object.entries(l))if(r[e]||(r[e]=[t.shareScope,t.name,t.externalModuleId]),!n[e]&&a[t.remoteName]){let r=a[t.remoteName];n[e]||=[],r.forEach(t=>{n[e].includes(t)||n[e].push(t)})}o&&Object.entries(s).forEach(([e,t])=>{o[e]||(o[e]=[]),t.forEach(t=>{o[e].includes(t)||o[e].push(t)})}),i._updated=1}}}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return i[e].call(r.exports,r,r.exports,s),r.exports}s.m=i,s.c=a,s.x=()=>s(9188),s.federation||(s.federation={chunkMatcher:function(e){return!/^((50|99)59|3158|3543|4006|4957|7468|8652)$/.test(e)},rootOutputDir:""}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>""+e+".js",s.miniCssF=e=>""+e+".css",s.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l={},s.l=function(e,t,r,n){if(l[e])return void l[e].push(t);if(void 0!==r)for(var o,i,a=document.getElementsByTagName("script"),u=0;u<a.length;u++){var p=a[u];if(p.getAttribute("src")==e||p.getAttribute("data-rspack")=="@openmrs/esm-patient-notes-app:"+r){o=p;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@openmrs/esm-patient-notes-app:"+r),o.src=e),l[e]=[t];var c=function(t,r){o.onerror=o.onload=null,clearTimeout(d);var n=l[e];if(delete l[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),i&&document.head.appendChild(o)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.rv=()=>"1.7.9",s.S={},s.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@carbon/react",version:"1.92.1",factory:()=>Promise.all([s.e("4669"),s.e("9488"),s.e("5"),s.e("8652"),s.e("7468"),s.e("3390")]).then(()=>()=>s(6020)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"@openmrs/esm-framework",version:"10.0.1-pre.5588",factory:()=>Promise.all([s.e("4669"),s.e("7621"),s.e("5312"),s.e("8652"),s.e("7468"),s.e("3543"),s.e("5059"),s.e("9959"),s.e("3158")]).then(()=>()=>s(3955)),eager:0,singleton:1,requiredVersion:"10.x",strictVersion:0},{name:"@openmrs/esm-patient-common-lib",version:"12.3.5-pre.12472",factory:()=>Promise.all([s.e("7621"),s.e("8652"),s.e("3543"),s.e("9959"),s.e("1284"),s.e("4006"),s.e("9116")]).then(()=>()=>s(7295)),eager:0,singleton:1,requiredVersion:"12.x",strictVersion:0},{name:"dayjs",version:"1.11.13",factory:()=>s.e("5697").then(()=>()=>s(3464)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([s.e("689"),s.e("8652")]).then(()=>()=>s(3144)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([s.e("1789"),s.e("8652")]).then(()=>()=>s(2348)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.4",factory:()=>Promise.all([s.e("9712"),s.e("8652"),s.e("7468")]).then(()=>()=>s(7059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>s.e("466").then(()=>()=>s(4041)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"swr/_internal",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("8652")]).then(()=>()=>s(2372)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("8652"),s.e("9061")]).then(()=>()=>s(9876)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("8652"),s.e("9771")]).then(()=>()=>s(2470)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("8652"),s.e("7209")]).then(()=>()=>s(5216)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-patient-notes-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(u=s.g.location+"");var l,u,p=s.g.document;if(!u&&p&&(p.currentScript&&"SCRIPT"===p.currentScript.tagName.toUpperCase()&&(u=p.currentScript.src),!u)){var c=p.getElementsByTagName("script");if(c.length)for(var d=c.length-1;d>-1&&(!u||!/^http(s?):/.test(u));)u=c[d--].src}if(!u)throw Error("Automatic publicPath is not supported in this browser");if(s.p=u=u.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.consumesLoadingData={chunkMapping:{9959:["7807","324","1619"],8652:["5399"],7468:["8439"],5059:["222"],4006:["2293"],8800:["3040"],3543:["5571","3660"],3158:["682","3432"]},moduleIdToConsumeDataMapping:{682:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("2152")]).then(()=>()=>s(2470))},3432:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("3989").then(()=>()=>s(2372))},2293:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"10.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("4669"),s.e("5312"),s.e("7468"),s.e("3543"),s.e("5059"),s.e("3158")]).then(()=>()=>s(3955))},3040:{shareScope:"default",shareKey:"@openmrs/esm-patient-common-lib",import:"@openmrs/esm-patient-common-lib",requiredVersion:"12.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3543"),s.e("1284"),s.e("4957")]).then(()=>()=>s(7295))},8439:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("689").then(()=>()=>s(3144))},5571:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("9712"),s.e("7468")]).then(()=>()=>s(7059))},3660:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("1442")]).then(()=>()=>s(9876))},222:{shareScope:"default",shareKey:"dayjs",import:"dayjs",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("5697").then(()=>()=>s(3464))},5399:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("466").then(()=>()=>s(4041))},7807:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1789").then(()=>()=>s(2348))},324:{shareScope:"default",shareKey:"@carbon/react",import:"@carbon/react",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("4669"),s.e("9488"),s.e("5"),s.e("7468")]).then(()=>()=>s(6020))},1619:{shareScope:"default",shareKey:"swr",import:"swr",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("9590")]).then(()=>()=>s(5216))}},initialConsumes:[]},s.f.consumes=s.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},"u">typeof document){var f=function(e,t,r,n,o){var i=document.createElement("link");return i.rel="stylesheet",i.type="text/css",s.nc&&(i.nonce=s.nc),i.href=t,i.onerror=i.onload=function(r){if(i.onerror=i.onload=null,"load"===r.type)n();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}},r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},h=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],i=o.getAttribute("data-href")||o.getAttribute("href");if(i&&(i=i.split("?")[0]),"stylesheet"===o.rel&&(i===e||i===t))return o}for(var a=document.getElementsByTagName("style"),n=0;n<a.length;n++){var o=a[n],i=o.getAttribute("data-href");if(i===e||i===t)return o}},m={2190:0};s.f.miniCss=function(e,t){if(m[e])t.push(m[e]);else 0!==m[e]&&({2286:1,2842:1,4957:1,5312:1,5861:1,8800:1,8962:1,9116:1})[e]&&t.push(m[e]=new Promise(function(t,r){var n=s.miniCssF(e),o=s.p+n;if(h(n,o))return t();f(e,o,null,t,r)}).then(function(){m[e]=0},function(t){throw delete m[e],t}))}}s.initializeExposesData={moduleMap:{"./start":()=>Promise.all([s.e("7621"),s.e("7682"),s.e("8652"),s.e("9959"),s.e("4006"),s.e("8800")]).then(()=>()=>s(7251))},shareScope:"default"},s.getContainer=s.getContainer||function(){throw Error("should have __webpack_require__.getContainer")},s.initContainer=s.initContainer||function(){throw Error("should have __webpack_require__.initContainer")},e={2190:0},s.f.j=function(t,r){var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^((50|99)59|3158|3543|4006|4957|7468|8652)$/.test(t))e[t]=0;else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var i=s.p+s.u(t),a=Error();s.l(i,function(r){if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}},"chunk-"+t,t)}},t=(t,r)=>{var n,o,[i,a,l]=r,u=0;if(i.some(t=>0!==e[t])){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);l&&l(s)}for(t&&t(r);u<i.length;u++)o=i[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},(r=globalThis.webpackChunk_openmrs_esm_patient_notes_app=globalThis.webpackChunk_openmrs_esm_patient_notes_app||[]).forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r)),s.ruid="bundler=rspack@1.7.9",n=s.x,o=!1,s.x=function(){if(o||(o=!0,s(8143)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_openmrs_esm_patient_notes_app=s.x()})();
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
"auxiliaryFiles": [
|
|
241
241
|
"openmrs-esm-patient-notes-app.js.map"
|
|
242
242
|
],
|
|
243
|
-
"hash": "
|
|
243
|
+
"hash": "a49af3edbd85297d",
|
|
244
244
|
"childrenByOrder": {}
|
|
245
245
|
},
|
|
246
246
|
{
|
|
@@ -1659,11 +1659,11 @@
|
|
|
1659
1659
|
"rendered": true,
|
|
1660
1660
|
"initial": false,
|
|
1661
1661
|
"entry": false,
|
|
1662
|
-
"size":
|
|
1662
|
+
"size": 19110,
|
|
1663
1663
|
"sizes": {
|
|
1664
1664
|
"consume-shared": 42,
|
|
1665
1665
|
"css/mini-extract": 1434,
|
|
1666
|
-
"javascript":
|
|
1666
|
+
"javascript": 17634
|
|
1667
1667
|
},
|
|
1668
1668
|
"names": [],
|
|
1669
1669
|
"idHints": [],
|
|
@@ -1678,7 +1678,7 @@
|
|
|
1678
1678
|
"8800.css.map",
|
|
1679
1679
|
"8800.js.map"
|
|
1680
1680
|
],
|
|
1681
|
-
"hash": "
|
|
1681
|
+
"hash": "9e8461dc419275fe",
|
|
1682
1682
|
"childrenByOrder": {}
|
|
1683
1683
|
},
|
|
1684
1684
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"attachments":">=3.1.0","fhir2":">=1.2","webservices.rest":">=2.23.0"},"extensions":[{"name":"notes-overview-widget","component":"notesOverview","meta":{"fullWidth":false},"order":5},{"name":"sticky-notes-button","component":"stickyNotesButton","slot":"patient-info-slot","order":1}],"modals":[{"name":"delete-sticky-note-modal","component":"deleteStickyNoteModal"},{"name":"sticky-note-modal","component":"stickyNoteModal"}],"workspaces2":[{"name":"visit-notes-form-workspace","component":"visitNotesFormWorkspace","window":"visit-note"}],"workspaceWindows2":[{"name":"visit-note","icon":"visitNotesActionButton","group":"patient-chart","order":2}],"version":"12.3.5-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"attachments":">=3.1.0","fhir2":">=1.2","webservices.rest":">=2.23.0"},"extensions":[{"name":"notes-overview-widget","component":"notesOverview","meta":{"fullWidth":false},"order":5},{"name":"sticky-notes-button","component":"stickyNotesButton","slot":"patient-info-slot","order":1}],"modals":[{"name":"delete-sticky-note-modal","component":"deleteStickyNoteModal"},{"name":"sticky-note-modal","component":"stickyNoteModal"}],"workspaces2":[{"name":"visit-notes-form-workspace","component":"visitNotesFormWorkspace","window":"visit-note"}],"workspaceWindows2":[{"name":"visit-note","icon":"visitNotesActionButton","group":"patient-chart","order":2}],"version":"12.3.5-pre.12472"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-patient-notes-app",
|
|
3
|
-
"version": "12.3.5-pre.
|
|
3
|
+
"version": "12.3.5-pre.12472",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Patient notes microfrontend for the OpenMRS SPA",
|
|
6
6
|
"browser": "dist/openmrs-esm-patient-notes-app.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@carbon/react": "^1.92.1",
|
|
58
|
-
"@openmrs/esm-patient-common-lib": "12.3.5-pre.
|
|
58
|
+
"@openmrs/esm-patient-common-lib": "12.3.5-pre.12472",
|
|
59
59
|
"openmrs": "next",
|
|
60
60
|
"vitest": "^4.1.2"
|
|
61
61
|
},
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import React, { type ComponentProps } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { Button, DataTableSkeleton, InlineLoading } from '@carbon/react';
|
|
4
|
-
import { AddIcon,
|
|
5
|
-
import {
|
|
6
|
-
CardHeader,
|
|
7
|
-
EmptyState,
|
|
8
|
-
ErrorState,
|
|
9
|
-
launchStartVisitPrompt,
|
|
10
|
-
usePatientChartStore,
|
|
11
|
-
} from '@openmrs/esm-patient-common-lib';
|
|
4
|
+
import { AddIcon, useLayoutType } from '@openmrs/esm-framework';
|
|
5
|
+
import { CardHeader, EmptyState, ErrorState, useLaunchWorkspaceRequiringVisit } from '@openmrs/esm-patient-common-lib';
|
|
12
6
|
import { useVisitNotes } from './visit-notes.resource';
|
|
13
7
|
import PaginatedNotes from './paginated-notes.component';
|
|
14
8
|
import styles from './notes-overview.scss';
|
|
@@ -20,7 +14,8 @@ interface NotesOverviewProps {
|
|
|
20
14
|
}
|
|
21
15
|
|
|
22
16
|
/**
|
|
23
|
-
* This extension uses the patient chart store and MUST only be mounted within the patient chart
|
|
17
|
+
* This extension uses the patient chart store and MUST only be mounted within the patient chart.
|
|
18
|
+
* This component is not used in the refapp.
|
|
24
19
|
*/
|
|
25
20
|
const NotesOverview: React.FC<NotesOverviewProps> = ({ patientUuid, patient, basePath }) => {
|
|
26
21
|
const pageSize = 5;
|
|
@@ -28,20 +23,13 @@ const NotesOverview: React.FC<NotesOverviewProps> = ({ patientUuid, patient, bas
|
|
|
28
23
|
const pageUrl = `\${openmrsSpaBase}/patient/${patient.id}/chart/visits`;
|
|
29
24
|
const urlLabel = t('seeAll', 'See all');
|
|
30
25
|
|
|
31
|
-
const { visitContext } = usePatientChartStore(patientUuid);
|
|
32
26
|
const displayText = t('visitNotes', 'Visit notes');
|
|
33
27
|
const headerTitle = t('visitNotes', 'Visit notes');
|
|
34
28
|
const { visitNotes, error, isLoading, isValidating } = useVisitNotes(patientUuid);
|
|
35
29
|
const layout = useLayoutType();
|
|
36
30
|
const isDesktop = layout === 'large-desktop' || layout === 'small-desktop';
|
|
37
31
|
|
|
38
|
-
const launchVisitNoteForm =
|
|
39
|
-
if (visitContext) {
|
|
40
|
-
launchWorkspace('visit-notes-form-workspace');
|
|
41
|
-
} else {
|
|
42
|
-
launchStartVisitPrompt();
|
|
43
|
-
}
|
|
44
|
-
}, [visitContext]);
|
|
32
|
+
const launchVisitNoteForm = useLaunchWorkspaceRequiringVisit(patientUuid, 'visit-notes-form-workspace');
|
|
45
33
|
|
|
46
34
|
if (isLoading) {
|
|
47
35
|
return <DataTableSkeleton role="progressbar" compact={isDesktop} zebra />;
|
|
@@ -50,7 +38,7 @@ const NotesOverview: React.FC<NotesOverviewProps> = ({ patientUuid, patient, bas
|
|
|
50
38
|
return <ErrorState error={error} headerTitle={headerTitle} />;
|
|
51
39
|
}
|
|
52
40
|
if (!visitNotes?.length) {
|
|
53
|
-
return <EmptyState displayText={displayText} headerTitle={headerTitle} launchForm={launchVisitNoteForm} />;
|
|
41
|
+
return <EmptyState displayText={displayText} headerTitle={headerTitle} launchForm={() => launchVisitNoteForm()} />;
|
|
54
42
|
}
|
|
55
43
|
|
|
56
44
|
return (
|