@openmrs/esm-service-queues-app 5.2.2-pre.2441 → 5.2.2-pre.2445

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.
@@ -38,4 +38,4 @@ Entrypoints:
38
38
  main.js
39
39
  
40
40
 
41
- webpack 5.86.0 compiled with 2 warnings in 103005 ms
41
+ webpack 5.86.0 compiled with 2 warnings in 102539 ms
package/dist/328.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"328.js","mappings":"8MAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,6/BAA8/B,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,0DAA0D,6EAA6E,iEAAiE,MAAQ,GAAG,SAAW,ySAAyS,WAAa,MAE9pDH,EAAwBI,OAAS,CAChC,iBAAoB,sEACpB,YAAe,iEACf,aAAgB,kEAChB,UAAa,gEAEd,S,mPCFIC,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKnB,QAAe,KAAW,IAAQD,OAAS,IAAQA,YAASO,EC1BnE,iB,86BAwOA,QA/LwD,Y,IAyElDC,EAIAA,EA7EqDC,EAAAA,EAAAA,WAAYC,EAAAA,EAAAA,WAC/D,GAAQC,EAAAA,EAAAA,kBAANC,EAEwBC,EAAAA,GAAAA,EAAAA,EAAAA,UAASJ,aAAAA,EAAAA,EAAYK,cAAY,GAA1DC,EAAyBF,EAAAA,GAAfG,EAAeH,EAAAA,GACQA,EAAAA,GAAAA,EAAAA,EAAAA,UAAS,OAA1CI,EAAiCJ,EAAAA,GAAnBK,EAAmBL,EAAAA,GAClC,GAAiBM,EAAAA,EAAAA,MAAfC,WACFC,GAASC,EAAAA,EAAAA,aAC2CT,EAAAA,GAAAA,EAAAA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AO2C,G,KAhB3F,kBAACM,EAAAA,IAAkBA,CACjBzB,UAAWC,EAAOyB,mBAClB1C,KAAM,QACN2C,aAAAA,EACAC,SAAU/F,EAAE,kBAAmB,wCAC/BkD,MAAOlD,EAAE,qBAAsB,2BAgBrC,kBAAC0E,UAAAA,CAAQP,UAAWC,EAAOM,SACzB,kBAACX,MAAAA,CAAII,UAAWC,EAAOgB,cAAepF,EAAE,gBAAiB,mBACzD,kBAACgG,EAAAA,IAAeA,CACdC,KAAK,KACLC,cAAe,EACfpB,SAAU,SAACjD,GACTzB,EAAYyB,EAAM0C,KACpB,IACC/D,aAAAA,EAAAA,EAAYqD,QAAS,EACpBrD,EAAWyE,KAAI,Y,IAAGK,EAAAA,EAAAA,KAAMC,EAAAA,EAAAA,QACtB,OAAO,kBAACY,EAAAA,IAAMA,CAAC5B,KAAMe,EAAMN,KAAMO,EAASJ,IAAKG,EAAM3C,MAAO2C,GAC9D,IAEA,kBAACa,EAAAA,IAAMA,CACL5B,KAAMvE,EAAE,kBAAmB,qBAC3BgF,KAAMhF,EAAE,kBAAmB,qBAC3B2C,MAAO,UAMjB,kBAACyD,EAAAA,IAAWA,KACV,kBAACC,EAAAA,IAAMA,CAAClD,KAAK,YAAYmD,QAASxG,GAC/BE,EAAE,SAAU,WAEf,kBAACqG,EAAAA,IAAMA,CAACE,KAAK,UAAUvG,EAAE,oBAAqB,iCA1GxD,CAgHF,C","sources":["webpack://@openmrs/esm-service-queues-app/./src/active-visits/change-status-dialog.scss","webpack://@openmrs/esm-service-queues-app/./src/active-visits/change-status-dialog.scss?d250","webpack://@openmrs/esm-service-queues-app/./src/active-visits/change-status-dialog.component.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","Object","queueEntry","closeModal","useTranslation","t","useState","priorityUuid","priority","setPriority","newQueueUuid","setNewQueueUuid","usePriority","priorities","config","useConfig","queueLocation","selectedQueueLocation","setSelectedQueueLocation","useServices","services","useQueueLocations","queueLocations","editLocation","setEditLocation","useVisitQueueEntries","mutate","useStatus","statuses","statusUuid","queueStatus","setQueueStatus","changeQueueStatus","useCallback","event","preventDefault","defaultPriority","concepts","defaultPriorityConceptUuid","queuePriority","emergencyPriorityConceptUuid","sortWeight","endDate","Date","updateQueueEntry","visitUuid","queueUuid","target","value","queueEntryUuid","patientUuid","then","status","showToast","critical","title","kind","description","navigate","to","window","spaBase","error","showNotification","message","keys","length","ModalHeader","div","Form","onSubmit","ModalBody","className","styles","modalBody","h5","name","patientSex","patientAge","section","Select","labelText","invalidText","onChange","SelectItem","text","map","location","key","sectionTitle","service","uuid","display","RadioButtonGroup","radioButtonWrapper","defaultSelected","RadioButton","InlineNotification","inlineNotification","lowContrast","subtitle","ContentSwitcher","size","selectedIndex","Switch","ModalFooter","Button","onClick","type"],"sourceRoot":""}
1
+ {"version":3,"file":"328.js","mappings":"8MAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,6/BAA8/B,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,0DAA0D,6EAA6E,iEAAiE,MAAQ,GAAG,SAAW,ySAAyS,WAAa,MAE9pDH,EAAwBI,OAAS,CAChC,iBAAoB,sEACpB,YAAe,iEACf,aAAgB,kEAChB,UAAa,gEAEd,S,mPCFIC,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKnB,QAAe,KAAW,IAAQD,OAAS,IAAQA,YAASO,EC1BnE,iB,86BAgOA,QA/LwD,Y,IAyElDC,EAIAA,EA7EqDC,EAAAA,EAAAA,WAAYC,EAAAA,EAAAA,WAC/D,GAAQC,EAAAA,EAAAA,kBAANC,EAEwBC,EAAAA,GAAAA,EAAAA,EAAAA,UAASJ,aAAAA,EAAA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KAAK,SACLmB,gBAAiBjE,EACjBqD,SAAU,SAACQ,GACT5D,EAAe4D,EACjB,IACC/D,aAAAA,EAAAA,EAAUsC,QAAS,GAClBtC,EAAS0D,KAAI,Y,IAAGK,EAAAA,EAAAA,KAAMC,EAAAA,EAAAA,Q,OAAc,kBAACI,EAAAA,IAAWA,CAACR,IAAKG,EAAMV,UAAWW,EAAS5C,MAAO2C,G,KAhB3F,kBAACM,EAAAA,IAAkBA,CACjBzB,UAAWC,EAAOyB,mBAClB1C,KAAM,QACN2C,aAAAA,EACAC,SAAU/F,EAAE,kBAAmB,wCAC/BkD,MAAOlD,EAAE,qBAAsB,2BAgBrC,kBAAC0E,UAAAA,CAAQP,UAAWC,EAAOM,SACzB,kBAACX,MAAAA,CAAII,UAAWC,EAAOgB,cAAepF,EAAE,gBAAiB,mBACzD,kBAACgG,EAAAA,IAAeA,CACdC,KAAK,KACLC,cAAe,EACfpB,SAAU,SAACjD,GACTzB,EAAYyB,EAAM0C,KACpB,IACC/D,aAAAA,EAAAA,EAAYqD,QAAS,EACpBrD,EAAWyE,KAAI,Y,IAAGK,EAAAA,EAAAA,KAAMC,EAAAA,EAAAA,QACtB,OAAO,kBAACY,EAAAA,IAAMA,CAAC5B,KAAMe,EAAMN,KAAMO,EAASJ,IAAKG,EAAM3C,MAAO2C,GAC9D,IAEA,kBAACa,EAAAA,IAAMA,CACL5B,KAAMvE,EAAE,kBAAmB,qBAC3BgF,KAAMhF,EAAE,kBAAmB,qBAC3B2C,MAAO,UAMjB,kBAACyD,EAAAA,IAAWA,KACV,kBAACC,EAAAA,IAAMA,CAAClD,KAAK,YAAYmD,QAASxG,GAC/BE,EAAE,SAAU,WAEf,kBAACqG,EAAAA,IAAMA,CAACE,KAAK,UAAUvG,EAAE,oBAAqB,iCA1GxD,CAgHF,C","sources":["webpack://@openmrs/esm-service-queues-app/./src/active-visits/change-status-dialog.scss","webpack://@openmrs/esm-service-queues-app/./src/active-visits/change-status-dialog.scss?d250","webpack://@openmrs/esm-service-queues-app/./src/active-visits/change-status-dialog.component.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","Object","queueEntry","closeModal","useTranslation","t","useState","priorityUuid","priority","setPriority","newQueueUuid","setNewQueueUuid","usePriority","priorities","config","useConfig","queueLocation","selectedQueueLocation","setSelectedQueueLocation","useServices","services","useQueueLocations","queueLocations","editLocation","setEditLocation","useVisitQueueEntries","mutate","useStatus","statuses","statusUuid","queueStatus","setQueueStatus","changeQueueStatus","useCallback","event","preventDefault","defaultPriority","concepts","defaultPriorityConceptUuid","queuePriority","emergencyPriorityConceptUuid","sortWeight","endDate","Date","updateQueueEntry","visitUuid","queueUuid","target","value","queueEntryUuid","patientUuid","then","status","showToast","critical","title","kind","description","navigate","to","window","spaBase","error","showNotification","message","keys","length","ModalHeader","div","Form","onSubmit","ModalBody","className","styles","modalBody","h5","name","patientSex","patientAge","section","Select","labelText","invalidText","onChange","SelectItem","text","map","location","key","sectionTitle","service","uuid","display","RadioButtonGroup","radioButtonWrapper","defaultSelected","RadioButton","InlineNotification","inlineNotification","lowContrast","subtitle","ContentSwitcher","size","selectedIndex","Switch","ModalFooter","Button","onClick","type"],"sourceRoot":""}
@@ -263,7 +263,7 @@
263
263
  "auxiliaryFiles": [
264
264
  "328.js.map"
265
265
  ],
266
- "hash": "ee7ace6c470964f8",
266
+ "hash": "8e01eaea453eb9f0",
267
267
  "childrenByOrder": {}
268
268
  },
269
269
  {
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.2.0"},"extensions":[{"name":"outpatient-side-nav-ext","component":"outpatientSideNav","slot":"outpatient-sidebar-slot","online":true,"offline":true},{"name":"service-queues-dashboard-link","component":"serviceQueuesDashboardLink","slot":"homepage-dashboard-slot","meta":{"name":"service-queues","slot":"service-queues-dashboard-slot","title":"Service queues"},"online":true,"offline":true},{"component":"root","name":"service-queues-dashboard","slot":"service-queues-dashboard-slot"},{"name":"edit-queue-entry-status-modal","component":"editQueueEntryStatusModal"},{"name":"patient-info-banner-slot","component":"patientInfoBannerSlot"},{"name":"add-patient-to-queue","component":"addPatientToQueue","slot":"add-patient-to-queue-slot"},{"name":"remove-queue-entry","component":"removeQueueEntry"},{"name":"clear-all-queue-entries","component":"clearAllQueueEntries"},{"name":"add-visit-to-queue-modal","component":"addVisitToQueueModal"},{"name":"transition-queue-entry-status-modal","component":"transitionQueueEntryStatusModal"},{"name":"previous-visit-summary-widget","component":"pastVisitSummary","slot":"previous-visit-summary-slot"},{"name":"add-provider-to-room-modal","component":"addProviderToRoomModal"},{"name":"add-queue-entry-widget","component":"addQueueEntry","slot":"add-queue-entry-slot"}],"version":"5.2.2-pre.2441"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.2.0"},"extensions":[{"name":"outpatient-side-nav-ext","component":"outpatientSideNav","slot":"outpatient-sidebar-slot","online":true,"offline":true},{"name":"service-queues-dashboard-link","component":"serviceQueuesDashboardLink","slot":"homepage-dashboard-slot","meta":{"name":"service-queues","slot":"service-queues-dashboard-slot","title":"Service queues"},"online":true,"offline":true},{"component":"root","name":"service-queues-dashboard","slot":"service-queues-dashboard-slot"},{"name":"edit-queue-entry-status-modal","component":"editQueueEntryStatusModal"},{"name":"patient-info-banner-slot","component":"patientInfoBannerSlot"},{"name":"add-patient-to-queue","component":"addPatientToQueue","slot":"add-patient-to-queue-slot"},{"name":"remove-queue-entry","component":"removeQueueEntry"},{"name":"clear-all-queue-entries","component":"clearAllQueueEntries"},{"name":"add-visit-to-queue-modal","component":"addVisitToQueueModal"},{"name":"transition-queue-entry-status-modal","component":"transitionQueueEntryStatusModal"},{"name":"previous-visit-summary-widget","component":"pastVisitSummary","slot":"previous-visit-summary-slot"},{"name":"add-provider-to-room-modal","component":"addProviderToRoomModal"},{"name":"add-queue-entry-widget","component":"addQueueEntry","slot":"add-queue-entry-slot"}],"version":"5.2.2-pre.2445"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-service-queues-app",
3
- "version": "5.2.2-pre.2441",
3
+ "version": "5.2.2-pre.2445",
4
4
  "description": "Outpatient front-end module for the OpenMRS SPA",
5
5
  "browser": "dist/openmrs-esm-service-queues-app.js",
6
6
  "main": "src/index.ts",
@@ -1,13 +1,11 @@
1
1
  import React from 'react';
2
+ import { of } from 'rxjs';
2
3
  import { screen } from '@testing-library/react';
3
4
  import { ConfigObject, useConfig, usePagination, useSession } from '@openmrs/esm-framework';
4
- import { of } from 'rxjs';
5
- import { renderWithSwr } from '../../../../tools/test-helpers';
6
- import { mockServices, mockVisitQueueEntries } from '../../__mocks__/active-visits.mock';
7
- import { mockMappedQueueEntries } from '../../../../__mocks__/queue-entry.mock';
5
+ import { mockServices, mockVisitQueueEntries, mockMappedQueueEntries, mockSession } from '__mocks__';
6
+ import { renderWithSwr } from 'tools';
8
7
  import { useVisitQueueEntries } from './active-visits-table.resource';
9
8
  import { useQueueRooms } from '../add-provider-queue-room/add-provider-queue-room.resource';
10
- import { mockSession } from '../../../../__mocks__/session.mock';
11
9
  import { useQueueLocations } from '../patient-search/hooks/useQueueLocations';
12
10
  import ActiveVisitsTable from './active-visits-table.component';
13
11
 
@@ -14,15 +14,7 @@ import {
14
14
  RadioButtonGroup,
15
15
  } from '@carbon/react';
16
16
  import { useTranslation } from 'react-i18next';
17
- import {
18
- ConfigObject,
19
- navigate,
20
- showNotification,
21
- showToast,
22
- toDateObjectStrict,
23
- toOmrsIsoString,
24
- useConfig,
25
- } from '@openmrs/esm-framework';
17
+ import { ConfigObject, navigate, showNotification, showToast, useConfig } from '@openmrs/esm-framework';
26
18
  import { MappedQueueEntry } from '../types';
27
19
  import {
28
20
  updateQueueEntry,
@@ -1,12 +1,8 @@
1
1
  import React from 'react';
2
2
  import userEvent from '@testing-library/user-event';
3
3
  import { screen, render, within } from '@testing-library/react';
4
- import { mockServices } from '../../__mocks__/active-visits.mock';
5
- import { mockPriorities, mockStatus } from '../../../../__mocks__/metrics.mock';
6
- import { mockSession } from '../../../../__mocks__/session.mock';
7
- import { mockLocations } from '../../../../__mocks__/locations.mock';
4
+ import { mockServices, mockPriorities, mockStatus, mockSession, mockLocations, mockQueueEntry } from '__mocks__';
8
5
  import { ConfigObject, showToast, useConfig, showNotification } from '@openmrs/esm-framework';
9
- import { mockQueueEntry } from '../../../../__mocks__/queue-entry.mock';
10
6
  import { updateQueueEntry } from './active-visits-table.resource';
11
7
  import ChangeStatus from './change-status-dialog.component';
12
8
 
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { render, screen } from '@testing-library/react';
3
3
  import { useVisit } from './current-visit.resource';
4
- import { mockPastVisit } from '../../__mocks__/visits.mock';
4
+ import { mockPastVisit } from '__mocks__';
5
5
  import CurrentVisit from './current-visit-summary.component';
6
6
 
7
7
  const useVisitMock = useVisit as jest.Mock;
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import { screen } from '@testing-library/react';
3
3
  import PastVisitSummary from './past-visit-details/past-visit-summary.component';
4
4
  import userEvent from '@testing-library/user-event';
5
- import { mockPastVisit } from '../../__mocks__/visits.mock';
6
- import { mockPatient, renderWithSwr } from '../../../../tools/test-helpers';
5
+ import { mockPastVisit } from '__mocks__';
6
+ import { mockPatient, renderWithSwr } from 'tools';
7
7
  import { usePastVisits } from './past-visit.resource';
8
8
 
9
9
  const mockUsePastVisits = usePastVisits as jest.Mock;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { screen } from '@testing-library/react';
3
- import { mockPatient, renderWithSwr } from '../../../../tools/test-helpers';
3
+ import { mockPatient, renderWithSwr } from 'tools';
4
4
  import AppointmentDetails from './appointment-details.component';
5
5
  import { usePastVisits } from './../past-visit/past-visit.resource';
6
6
  import { useAppointments } from './appointments.resource';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { screen } from '@testing-library/react';
3
- import { renderWithSwr } from '../../../../tools/test-helpers';
3
+ import { renderWithSwr } from 'tools';
4
4
  import { usePatientAttributes, usePatientContactAttributes } from './hooks/usePatientAttributes';
5
5
  import ContactDetails from './contact-details.component';
6
6
 
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import userEvent from '@testing-library/user-event';
3
3
  import { screen, render } from '@testing-library/react';
4
4
  import { age } from '@openmrs/esm-framework';
5
- import { mockPatient } from '../../../../tools/test-helpers';
5
+ import { mockPatient } from 'tools';
6
6
  import PatientInfo from './patient-info.component';
7
7
 
8
8
  const mockAge = age as jest.Mock;
@@ -1,10 +1,8 @@
1
1
  import React from 'react';
2
2
  import { render, screen } from '@testing-library/react';
3
3
  import { openmrsFetch, useConfig } from '@openmrs/esm-framework';
4
+ import { mockMetrics, mockServiceTypes, mockLocations, mockSession } from '__mocks__';
4
5
  import ClinicMetrics from './clinic-metrics.component';
5
- import { mockMetrics, mockServiceTypes } from '../../../../__mocks__/metrics.mock';
6
- import { mockLocations } from '../../../../__mocks__/locations.mock';
7
- import { mockSession } from '../../../../__mocks__/session.mock';
8
6
 
9
7
  const mockedOpenmrsFetch = openmrsFetch as jest.Mock;
10
8
  const mockedUseConfig = useConfig as jest.Mock;
@@ -1,12 +1,9 @@
1
1
  import React from 'react';
2
2
  import { screen } from '@testing-library/react';
3
- import PatientScheduledVisits from './patient-scheduled-visits.component';
4
- import { renderWithSwr, waitForLoadingToFinish } from '../../../../tools/test-helpers';
5
- import { mockPatientsVisits } from '../../../../__mocks__/patient-visits.mock';
6
- import { mockLocations } from '../../../../__mocks__/locations.mock';
7
- import { mockSession } from '../../../../__mocks__/session.mock';
3
+ import { renderWithSwr, waitForLoadingToFinish } from 'tools';
4
+ import { mockPatientsVisits, mockLocations, mockSession, mockPatient } from '__mocks__';
8
5
  import { ConfigObject, openmrsFetch, useConfig } from '@openmrs/esm-framework';
9
- import { mockPatient } from '../../../../__mocks__/appointments.mock';
6
+ import PatientScheduledVisits from './patient-scheduled-visits.component';
10
7
 
11
8
  const mockedUseConfig = useConfig as jest.Mock;
12
9
  const mockToggleSearchType = jest.fn();
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import userEvent from '@testing-library/user-event';
3
3
  import BaseVisitType from './base-visit-type.component';
4
4
  import { render, screen } from '@testing-library/react';
5
- import { mockVisitTypes } from '../../../__mocks__/visits.mock';
5
+ import { mockPatient, mockVisitTypes } from '__mocks__';
6
6
 
7
7
  jest.mock('@openmrs/esm-framework', () => ({
8
8
  useLayoutType: () => 'desktop',
@@ -11,7 +11,7 @@ jest.mock('@openmrs/esm-framework', () => ({
11
11
 
12
12
  describe('BaseVisitType', () => {
13
13
  it('renders visit types correctly', () => {
14
- render(<BaseVisitType onChange={() => {}} visitTypes={mockVisitTypes} />);
14
+ render(<BaseVisitType patientUuid={mockPatient.uuid} onChange={() => {}} visitTypes={mockVisitTypes} />);
15
15
 
16
16
  const searchInput = screen.getByRole('searchbox');
17
17
  expect(searchInput).toBeInTheDocument();
@@ -25,7 +25,7 @@ describe('BaseVisitType', () => {
25
25
  it('handles search input correctly', async () => {
26
26
  const user = userEvent.setup();
27
27
 
28
- render(<BaseVisitType onChange={() => {}} visitTypes={mockVisitTypes} />);
28
+ render(<BaseVisitType patientUuid={mockPatient.uuid} onChange={() => {}} visitTypes={mockVisitTypes} />);
29
29
 
30
30
  const searchInput: HTMLInputElement = screen.getByRole('searchbox');
31
31
  await user.type(searchInput, 'Visit Type 1');
@@ -37,7 +37,7 @@ describe('BaseVisitType', () => {
37
37
  const user = userEvent.setup();
38
38
 
39
39
  const mockOnChange = jest.fn();
40
- render(<BaseVisitType onChange={mockOnChange} visitTypes={mockVisitTypes} />);
40
+ render(<BaseVisitType patientUuid={mockPatient.uuid} onChange={mockOnChange} visitTypes={mockVisitTypes} />);
41
41
 
42
42
  const radioButton: HTMLInputElement = screen.getByLabelText(mockVisitTypes[0].display);
43
43
  await user.click(radioButton);
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import { screen } from '@testing-library/react';
3
3
  import userEvent from '@testing-library/user-event';
4
4
  import { usePagination } from '@openmrs/esm-framework';
5
- import { mockMappedAppointmentsData } from '../../../../__mocks__/appointments.mock';
6
- import { renderWithSwr } from '../../../../tools/test-helpers';
5
+ import { mockMappedAppointmentsData } from '__mocks__';
6
+ import { renderWithSwr } from 'tools';
7
7
  import QueuePatientBaseTable from './queue-linelist-base-table.component';
8
8
 
9
9
  const mockUsePagination = usePagination as jest.Mock;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import userEvent from '@testing-library/user-event';
3
3
  import { render, screen } from '@testing-library/react';
4
- import { mockVisitTypes } from '../../__mocks__/visits.mock';
4
+ import { mockVisitTypes } from '__mocks__';
5
5
  import QueueLinelistFilter from './queue-linelist-filter.component';
6
6
 
7
7
  jest.mock('@openmrs/esm-framework', () => ({
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import userEvent from '@testing-library/user-event';
3
3
  import { render, screen } from '@testing-library/react';
4
+ import { mockAppointmentsData } from '__mocks__';
4
5
  import AppointmentsTable from './scheduled-appointments-table.component';
5
- import { mockAppointmentsData } from '../../__mocks__/appointments-data.mock';
6
6
 
7
7
  jest.mock('@openmrs/esm-framework', () => ({
8
8
  ...jest.requireActual('@openmrs/esm-framework'),
@@ -27,7 +27,7 @@ describe('AppointmentsTable', () => {
27
27
  it('renders appointments when loading is complete', () => {
28
28
  render(<AppointmentsTable />);
29
29
 
30
- const appointmentName = screen.getByText('Hungai Kevin');
30
+ const appointmentName = screen.getByText(/charles babbage/i);
31
31
  expect(appointmentName).toBeInTheDocument();
32
32
  });
33
33
 
@@ -40,7 +40,7 @@ describe('AppointmentsTable', () => {
40
40
 
41
41
  await user.type(statusDropdown[0], 'Completed');
42
42
 
43
- const filteredAppointmentName = screen.getByText('Hungai Kevin');
43
+ const filteredAppointmentName = screen.getByText(/charles babbage/i);
44
44
  expect(filteredAppointmentName).toBeInTheDocument();
45
45
  });
46
46
  });
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import userEvent from '@testing-library/user-event';
3
3
  import { render, screen } from '@testing-library/react';
4
- import { mockServices } from '../../__mocks__/active-visits.mock';
4
+ import { mockServices } from '__mocks__';
5
5
  import QueueRoomForm from './queue-room-form.component';
6
6
 
7
7
  jest.mock('@openmrs/esm-framework', () => ({
@@ -4,6 +4,9 @@ import { useActiveTickets } from './useActiveTickets';
4
4
  import QueueScreen from './queue-screen.component';
5
5
 
6
6
  jest.mock('./useActiveTickets');
7
+ jest.mock('../helpers/helpers', () => ({
8
+ useSelectedQueueLocationName: jest.fn().mockReturnValue('Room A'),
9
+ }));
7
10
 
8
11
  describe('QueueScreen component', () => {
9
12
  test('renders loading skeleton when data is loading', () => {
package/tsconfig.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "extends": "../../tsconfig.json",
3
3
  "include": ["src/**/*"],
4
- "exclude": ["src/**/*.test.tsx", "src/**/*.outdated.tsx"]
4
+ "exclude": ["src/**/*.test.tsx"]
5
5
  }
@@ -1,97 +0,0 @@
1
- export const mockServices = [
2
- { uuid: '176052c7-5fd4-4b33-89cc-7bae6848c65a', display: 'Clinical consultation' },
3
- { uuid: 'd80ff12a-06a7-11ed-b939-0242ac120002', display: 'Triage' },
4
- ];
5
-
6
- export const mockVisitQueueEntries = [
7
- {
8
- uuid: 'fa1e98f1-f002-4174-9e55-34d60951e710',
9
- visit: {
10
- uuid: 'c90386ff-ae85-45cc-8a01-25852099c5ae',
11
- display: 'Facility Visit @ Outpatient Clinic - 04/03/2022 07:22',
12
- },
13
- queueEntry: {
14
- uuid: '712289ab-32c0-430f-87b6-d9c1e4e4686e',
15
- display: 'Eric Test Ric',
16
- priorityComment: 'Needs Triage',
17
- sortWeight: 0,
18
- startedAt: '2022-03-04T09:50:54.000+0000',
19
- endedAt: null,
20
- queue: {
21
- uuid: '6a97bd65-3a9a-4fab-ae8f-be59dd4ddd87',
22
- display: 'Triage',
23
- name: 'Triage',
24
- description: 'Queue for patients waiting for triage',
25
- service: {
26
- display: 'Triage',
27
- },
28
- },
29
- status: {
30
- uuid: 'aaec62b1-4b03-4166-ada7-230cb4b4aaaa',
31
- display: 'Waiting',
32
- links: [
33
- {
34
- rel: 'self',
35
- uri: 'http://openmrs:8080/openmrs/ws/rest/v1/concept/aaec62b1-4b03-4166-ada7-230cb4b4aaaa',
36
- },
37
- ],
38
- },
39
- patient: {
40
- uuid: 'cc75ad73-c24b-499c-8db9-a7ef4fc0b36d',
41
- display: '10000F1 - Eric Test Ric',
42
- person: {
43
- age: '32',
44
- gender: 'F',
45
- },
46
- },
47
- priority: {
48
- uuid: 'f9684018-a4d3-4d6f-9dd5-b4b1e89af3e7',
49
- display: 'Not Urgent',
50
- },
51
- locationWaitingFor: null,
52
- providerWaitingFor: null,
53
- },
54
- },
55
- {
56
- uuid: '2f85d611-5bb9-4bca-b6f8-661517df86c9',
57
- visit: {
58
- uuid: '6b3e233d-2b44-40ca-b0c8-c5a57a8c51b6',
59
- display: 'Home Visit @ Outpatient Clinic - 09/03/2022 21:08',
60
- },
61
- queueEntry: {
62
- uuid: '5f017eb0-b035-4acd-b284-da45f5067502',
63
- display: 'John Smith',
64
- priorityComment: 'Needs immediate assistance',
65
- sortWeight: 0,
66
- startedAt: '2022-03-09T13:50:54.000+0000',
67
- endedAt: null,
68
- queue: {
69
- uuid: 'c187d78b-5c54-49bf-a0f8-b7fb6034d36d',
70
- display: 'Clinical Consultation',
71
- name: 'Clinical Consultation',
72
- description: 'A queue for patients for a clincal consultation i.e. Doctor, Clinician',
73
- service: {
74
- display: 'Clinical Consultation',
75
- },
76
- },
77
- status: {
78
- uuid: 'aaec62b1-4b03-4166-ada7-230cb4b4aaaa',
79
- display: 'Waiting',
80
- },
81
- patient: {
82
- uuid: '53568469-f652-470d-95e8-13131914286b',
83
- display: '10000JT - John Smith',
84
- person: {
85
- age: '27',
86
- gender: 'M',
87
- },
88
- },
89
- priority: {
90
- uuid: 'b6a84ad0-c5e6-4a37-896e-5b7a0bccfd6c',
91
- display: 'Emergency',
92
- },
93
- locationWaitingFor: null,
94
- providerWaitingFor: null,
95
- },
96
- },
97
- ];
@@ -1,283 +0,0 @@
1
- export const mockAppointmentsData = {
2
- data: [
3
- {
4
- uuid: '0d54aa56-0411-47f9-9ce9-23d702965881',
5
- appointmentNumber: '0000',
6
- patient: {
7
- identifier: '100GEJ',
8
- name: 'Hungai Kevin',
9
- uuid: '8673ee4f-e2ab-4077-ba55-4980f408773e',
10
- age: 32,
11
- gender: 'Male',
12
- phone_number: '0798654231',
13
- },
14
- service: {
15
- appointmentServiceId: 1,
16
- name: 'Outpatient',
17
- description: null,
18
- speciality: {},
19
- startTime: '',
20
- endTime: '',
21
- maxAppointmentsLimit: null,
22
- durationMins: null,
23
- location: {},
24
- uuid: 'e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90',
25
- color: '#006400',
26
- initialAppointmentStatus: 'Scheduled',
27
- creatorName: null,
28
- },
29
- serviceType: null,
30
- provider: null,
31
- location: { name: 'Isolation Ward', uuid: '2131aff8-2e2a-480a-b7ab-4ac53250262b' },
32
- startDateTime: 1628598900000,
33
- endDateTime: 1628599020000,
34
- appointmentKind: 'Adult HIV return visit',
35
- status: 'Scheduled',
36
- comments: null,
37
- additionalInfo: null,
38
- providers: [],
39
- recurring: false,
40
- },
41
- {
42
- uuid: '0f445395-74a7-4d8b-a6ae-8f5195cc172e',
43
- appointmentNumber: '0000',
44
- patient: {
45
- identifier: '100GEJ',
46
- name: 'Neil Amstrong',
47
- uuid: '8673ee4f-e2ab-4077-ba55-4980f408773e',
48
- age: 48,
49
- gender: 'Female',
50
- phone_number: '0798654231',
51
- },
52
- service: {
53
- appointmentServiceId: 1,
54
- name: 'Outpatient',
55
- description: null,
56
- speciality: {},
57
- startTime: '',
58
- endTime: '',
59
- maxAppointmentsLimit: null,
60
- durationMins: null,
61
- location: {},
62
- uuid: 'e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90',
63
- color: '#006400',
64
- initialAppointmentStatus: 'Scheduled',
65
- creatorName: null,
66
- },
67
- serviceType: null,
68
- provider: null,
69
- location: { name: 'Isolation Ward', uuid: '2131aff8-2e2a-480a-b7ab-4ac53250262b' },
70
- startDateTime: 1628598900000,
71
- endDateTime: 1628599020000,
72
- appointmentKind: 'Diabetes return visit',
73
- status: 'Scheduled',
74
- comments: null,
75
- additionalInfo: null,
76
- providers: [],
77
- recurring: false,
78
- },
79
- {
80
- uuid: 'c5f4fdab-2d48-4412-adf4-ee26a6b0816f',
81
- appointmentNumber: '0000',
82
- patient: {
83
- identifier: '100GEJ',
84
- name: 'John Wilson',
85
- uuid: '8673ee4f-e2ab-4077-ba55-4980f408773e',
86
- age: 12,
87
- gender: 'Male',
88
- phone_number: '0798654231',
89
- },
90
- service: {
91
- appointmentServiceId: 1,
92
- name: 'Outpatient',
93
- description: null,
94
- speciality: {},
95
- startTime: '',
96
- endTime: '',
97
- maxAppointmentsLimit: null,
98
- durationMins: null,
99
- location: {},
100
- uuid: 'e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90',
101
- color: '#006400',
102
- initialAppointmentStatus: 'Scheduled',
103
- creatorName: null,
104
- },
105
- serviceType: null,
106
- provider: null,
107
- location: { name: 'Isolation Ward', uuid: '2131aff8-2e2a-480a-b7ab-4ac53250262b' },
108
- startDateTime: 1628599800000,
109
- endDateTime: 1628600100000,
110
- appointmentKind: 'Hypertension consultation visit',
111
- status: 'Scheduled',
112
- comments: null,
113
- additionalInfo: null,
114
- providers: [],
115
- recurring: false,
116
- },
117
- ],
118
- };
119
-
120
- export const mockPastAndUpcomingAppointments = {
121
- pastAppointments: [
122
- {
123
- uuid: 'a4662406-2bfe-49be-8465-6dbdfe9b4d5d',
124
- appointmentNumber: '0000',
125
- patient: {
126
- identifier: '1003R8',
127
- name: 'Brian Evans',
128
- uuid: '8f75dbf1-833d-498a-bc99-3a24cad5cee9',
129
- },
130
- service: {
131
- appointmentServiceId: 1,
132
- name: 'HIV return visit',
133
- description: null,
134
- speciality: {},
135
- startTime: '',
136
- endTime: '',
137
- maxAppointmentsLimit: null,
138
- durationMins: null,
139
- location: {},
140
- uuid: 'e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90',
141
- color: '#006400',
142
- initialAppointmentStatus: 'Scheduled',
143
- creatorName: null,
144
- },
145
- serviceType: null,
146
- provider: null,
147
- location: {
148
- name: 'Outpatient Clinic',
149
- uuid: 'f76c0c8e-2c3a-443c-b26d-96a9f3847764',
150
- },
151
- startDateTime: '2021-10-28T11:14:17.064Z',
152
- endDateTime: 1649935800000,
153
- appointmentKind: 'Scheduled',
154
- status: 'Scheduled',
155
- comments: null,
156
- additionalInfo: null,
157
- teleconsultation: null,
158
- providers: [],
159
- voided: false,
160
- extensions: {
161
- patientEmailDefined: false,
162
- },
163
- teleconsultationLink: null,
164
- recurring: false.valueOf,
165
- },
166
- ],
167
- upcomingAppointments: [
168
- {
169
- uuid: 'a4662406-2bfe-49be-8465-6dbdfe9b4d5d',
170
- appointmentNumber: '0000',
171
- patient: {
172
- identifier: '1003R8',
173
- name: 'Brian Evans',
174
- uuid: '8f75dbf1-833d-498a-bc99-3a24cad5cee9',
175
- },
176
- service: {
177
- appointmentServiceId: 1,
178
- name: 'Clinical observation',
179
- description: null,
180
- speciality: {},
181
- startTime: '',
182
- endTime: '',
183
- maxAppointmentsLimit: null,
184
- durationMins: null,
185
- location: {},
186
- uuid: 'e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90',
187
- color: '#006400',
188
- initialAppointmentStatus: 'Scheduled',
189
- creatorName: null,
190
- },
191
- serviceType: null,
192
- provider: null,
193
- location: {
194
- name: 'Outpatient Clinic',
195
- uuid: 'f76c0c8e-2c3a-443c-b26d-96a9f3847764',
196
- },
197
- startDateTime: 1649934000000,
198
- endDateTime: 1649935800000,
199
- appointmentKind: 'Scheduled',
200
- status: 'Scheduled',
201
- comments: null,
202
- additionalInfo: null,
203
- teleconsultation: null,
204
- providers: [],
205
- voided: false,
206
- extensions: {
207
- patientEmailDefined: false,
208
- },
209
- teleconsultationLink: null,
210
- recurring: false.valueOf,
211
- },
212
- ],
213
- };
214
-
215
- export const mockUseAppointmentServiceData = [
216
- {
217
- appointmentServiceId: 1,
218
- name: 'Outpatient',
219
- description: null,
220
- speciality: {},
221
- startTime: '',
222
- endTime: '',
223
- maxAppointmentsLimit: null,
224
- durationMins: null,
225
- location: {},
226
- uuid: 'e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90',
227
- color: '#006400',
228
- initialAppointmentStatus: 'Scheduled',
229
- creatorName: null,
230
- weeklyAvailability: [
231
- {
232
- dayOfWeek: 'MONDAY',
233
- startTime: '07:00:00',
234
- endTime: '20:00:00',
235
- maxAppointmentsLimit: null,
236
- uuid: '7c7c53c8-c104-40cc-9926-50fc6fe4c4c1',
237
- },
238
- {
239
- dayOfWeek: 'TUESDAY',
240
- startTime: '07:00:00',
241
- endTime: '20:00:00',
242
- maxAppointmentsLimit: null,
243
- uuid: '7683b94e-6c48-4132-b402-54837a8c0fb2',
244
- },
245
- {
246
- dayOfWeek: 'SUNDAY',
247
- startTime: '07:00:00',
248
- endTime: '20:00:00',
249
- maxAppointmentsLimit: null,
250
- uuid: '00be8427-0037-4984-8875-6a5a2bc57e8e',
251
- },
252
- {
253
- dayOfWeek: 'FRIDAY',
254
- startTime: '07:00:00',
255
- endTime: '20:00:00',
256
- maxAppointmentsLimit: null,
257
- uuid: 'af6b8d5b-be05-4e24-8601-30573f848bec',
258
- },
259
- {
260
- dayOfWeek: 'THURSDAY',
261
- startTime: '07:00:00',
262
- endTime: '20:00:00',
263
- maxAppointmentsLimit: null,
264
- uuid: 'eb35e91b-6909-41fe-9d09-750b83fb3b9c',
265
- },
266
- {
267
- dayOfWeek: 'SATURDAY',
268
- startTime: '07:00:00',
269
- endTime: '20:00:00',
270
- maxAppointmentsLimit: null,
271
- uuid: '7f6347fd-c514-4fd2-ab79-d7fd760bf82f',
272
- },
273
- {
274
- dayOfWeek: 'WEDNESDAY',
275
- startTime: '07:00:00',
276
- endTime: '20:00:00',
277
- maxAppointmentsLimit: null,
278
- uuid: 'dad83f54-a0a2-4ba9-819b-01e906c89b69',
279
- },
280
- ],
281
- serviceTypes: [{ duration: 15, name: 'Chemotherapy', uuid: '53d58ff1-0c45-4e2e-9bd2-9cc826cb46e1' }],
282
- },
283
- ];
@@ -1,35 +0,0 @@
1
- export const mockSearchResults = {
2
- data: {
3
- results: [
4
- {
5
- display: '10000F1 - Eric Test Ric',
6
- identifiers: [
7
- {
8
- display: 'OpenMRS ID = 10000F1',
9
- identifier: '10000F1',
10
- voided: false,
11
- },
12
- ],
13
- patientId: 20,
14
- patientIdentifier: {
15
- identifier: '10000F1',
16
- },
17
- person: {
18
- gender: 'M',
19
- age: 35,
20
- birthdate: '1986-04-03T00:00:00.000+0000',
21
- birthdateEstimated: false,
22
- dead: false,
23
- deathDate: null,
24
- display: 'Eric Test Ric',
25
- personName: {
26
- givenName: 'Eric',
27
- middleName: 'Test',
28
- familyName: 'Ric',
29
- },
30
- },
31
- uuid: 'cc75ad73-c24b-499c-8db9-a7ef4fc0b36d',
32
- },
33
- ],
34
- },
35
- };
@@ -1,42 +0,0 @@
1
- export const mockPastVisit = {
2
- data: {
3
- results: [
4
- {
5
- uuid: 'b80b8fba-ab62-11ec-b909-0242ac120002',
6
- patient: {
7
- uuid: 'b80b8b8c-ab62-11ec-b909-0242ac120002',
8
- display: '113RGH - Test Test Test',
9
- },
10
- visitType: {
11
- uuid: 'e7786ac0-ab62-11ec-b909-0242ac120002',
12
- display: 'Facility Visit',
13
- },
14
- location: {
15
- uuid: 'e7786d9a-ab62-11ec-b909-0242ac120002',
16
- display: 'Location Test',
17
- },
18
- startDatetime: '2022-03-23T10:29:00.000+0000',
19
- stopDatetime: '2022-03-24T10:29:00.000+0000',
20
- encounters: [],
21
- },
22
- ],
23
- },
24
- };
25
-
26
- export const mockVisitTypes = [
27
- {
28
- uuid: 'some-uuid1',
29
- name: 'Outpatient Visit',
30
- display: 'Outpatient Visit',
31
- },
32
- {
33
- uuid: 'some-uuid2',
34
- name: 'HIV Return Visit',
35
- display: 'HIV Return Visit',
36
- },
37
- {
38
- uuid: 'some-uuid3',
39
- name: 'Diabetes Clinic Visit',
40
- display: 'Diabetes Clinic Visit',
41
- },
42
- ];