@openmrs/esm-appointments-app 9.2.1-pre.7358 → 9.2.1-pre.7366

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/dist/1119.js +1 -1
  3. package/dist/1197.js +1 -1
  4. package/dist/1431.js +1 -1
  5. package/dist/1431.js.map +1 -1
  6. package/dist/2146.js +1 -1
  7. package/dist/2690.js +1 -1
  8. package/dist/3099.js +1 -1
  9. package/dist/3584.js +1 -1
  10. package/dist/4055.js +1 -1
  11. package/dist/4132.js +1 -1
  12. package/dist/4300.js +1 -1
  13. package/dist/4335.js +1 -1
  14. package/dist/439.js +1 -1
  15. package/dist/4515.js +1 -1
  16. package/dist/4515.js.map +1 -1
  17. package/dist/4618.js +1 -1
  18. package/dist/4652.js +1 -1
  19. package/dist/4889.js +1 -1
  20. package/dist/4889.js.map +1 -1
  21. package/dist/4944.js +1 -1
  22. package/dist/5173.js +1 -1
  23. package/dist/5241.js +1 -1
  24. package/dist/525.js +1 -1
  25. package/dist/525.js.map +1 -1
  26. package/dist/5442.js +1 -1
  27. package/dist/5661.js +1 -1
  28. package/dist/6022.js +1 -1
  29. package/dist/6468.js +1 -1
  30. package/dist/6589.js +1 -1
  31. package/dist/6679.js +1 -1
  32. package/dist/6840.js +1 -1
  33. package/dist/6859.js +1 -1
  34. package/dist/7097.js +1 -1
  35. package/dist/7159.js +1 -1
  36. package/dist/723.js +1 -1
  37. package/dist/7617.js +1 -1
  38. package/dist/795.js +1 -1
  39. package/dist/8163.js +1 -1
  40. package/dist/8349.js +1 -1
  41. package/dist/8371.js +1 -1
  42. package/dist/8618.js +1 -1
  43. package/dist/890.js +1 -1
  44. package/dist/9214.js +1 -1
  45. package/dist/9538.js +1 -1
  46. package/dist/9569.js +1 -1
  47. package/dist/986.js +1 -1
  48. package/dist/9879.js +1 -1
  49. package/dist/9895.js +1 -1
  50. package/dist/9900.js +1 -1
  51. package/dist/9913.js +1 -1
  52. package/dist/openmrs-esm-appointments-app.js.buildmanifest.json +140 -140
  53. package/dist/routes.json +1 -1
  54. package/package.json +1 -1
  55. package/src/appointments/appointment-tabs.component.tsx +16 -14
  56. package/src/appointments/common-components/appointments-table.component.tsx +7 -3
  57. package/src/appointments/unscheduled/unscheduled-appointments.component.tsx +1 -1
  58. package/src/declarations.d.ts +0 -1
  59. package/src/form/appointments-form.workspace.tsx +14 -9
  60. package/src/patient-appointments/patient-appointments-detailed-summary.extension.tsx +1 -0
  61. package/src/patient-appointments/patient-appointments-table.component.tsx +2 -3
  62. package/translations/am.json +0 -7
  63. package/translations/ar.json +0 -7
  64. package/translations/ar_SY.json +0 -7
  65. package/translations/bn.json +0 -7
  66. package/translations/cs.json +0 -7
  67. package/translations/de.json +0 -7
  68. package/translations/en.json +0 -7
  69. package/translations/en_US.json +0 -7
  70. package/translations/es.json +0 -7
  71. package/translations/es_MX.json +0 -7
  72. package/translations/fr.json +0 -7
  73. package/translations/he.json +0 -7
  74. package/translations/hi.json +0 -7
  75. package/translations/hi_IN.json +0 -7
  76. package/translations/id.json +0 -7
  77. package/translations/it.json +0 -7
  78. package/translations/ka.json +0 -7
  79. package/translations/km.json +0 -7
  80. package/translations/ku.json +0 -7
  81. package/translations/ky.json +0 -7
  82. package/translations/lg.json +0 -7
  83. package/translations/ne.json +0 -7
  84. package/translations/pl.json +0 -7
  85. package/translations/pt.json +0 -7
  86. package/translations/pt_BR.json +0 -7
  87. package/translations/qu.json +0 -7
  88. package/translations/ro_RO.json +0 -7
  89. package/translations/ru_RU.json +0 -7
  90. package/translations/si.json +0 -7
  91. package/translations/sq.json +0 -7
  92. package/translations/sw.json +0 -7
  93. package/translations/sw_KE.json +0 -7
  94. package/translations/tr.json +0 -7
  95. package/translations/tr_TR.json +0 -7
  96. package/translations/uk.json +0 -7
  97. package/translations/uz.json +0 -7
  98. package/translations/uz@Latn.json +0 -7
  99. package/translations/uz_UZ.json +0 -7
  100. package/translations/vi.json +0 -7
  101. package/translations/zh.json +0 -7
  102. package/translations/zh_CN.json +0 -7
  103. package/translations/zh_TW.json +0 -7
  104. package/src/past-visit/encounter-list.component.tsx +0 -54
  105. package/src/past-visit/past-visit.component.tsx +0 -106
  106. package/src/past-visit/past-visit.resource.ts +0 -25
  107. package/src/past-visit/past-visit.scss +0 -111
@@ -58,7 +58,6 @@
58
58
  "countMore_other": "{{count}} more",
59
59
  "createNewAppointment": "Create new appointment",
60
60
  "date": "Date",
61
- "date&Time": "Date & time",
62
61
  "dateAppointmentIssued": "Date appointment issued",
63
62
  "dateAppointmentIssuedCannotBeAfterAppointmentDate": "Date appointment issued cannot be after the appointment date",
64
63
  "dateAppointmentScheduled": "Date appointment scheduled",
@@ -74,8 +73,6 @@
74
73
  "edit": "Edit",
75
74
  "editAppointment": "Edit appointment",
76
75
  "emptyStateText": "There are no <1>{{displayText}}</1> to display",
77
- "encounters": "Encounters",
78
- "encounterType": "Encounter type",
79
76
  "endAppointmentAndVisitConfirmationMessage": "Checking the patient out will mark the appointment as complete, and close out the active visit for this patient.",
80
77
  "endAppointmentConfirmation": "Are you sure you want to check the patient out for this appointment?",
81
78
  "endAppointmentConfirmationMessage": "Checking the patient out will mark the appointment as complete.",
@@ -94,7 +91,6 @@
94
91
  "itemsPerPage": "Items per page",
95
92
  "loading": "Loading",
96
93
  "location": "Location",
97
- "medications": "Medications",
98
94
  "metricLoadErrorMessage": "Please contact your system administrator if the problem persists.",
99
95
  "missed": "Missed",
100
96
  "MON": "MON",
@@ -105,10 +101,8 @@
105
101
  "noAppointmentsToDisplay": "No appointments to display",
106
102
  "noContent": "No Content",
107
103
  "noCurrentAppointments": "There are no appointments scheduled for today to display for this patient",
108
- "noEncountersFound": "No encounters found",
109
104
  "noMatchingAppointments": "No matching appointments found",
110
105
  "noPastAppointments": "There are no past appointments to display for this patient",
111
- "noPreviousVisitFound": "No previous visit found",
112
106
  "notArrived": "Not arrived",
113
107
  "note": "Note",
114
108
  "notes": "Notes",
@@ -160,7 +154,6 @@
160
154
  "upcoming": "Upcoming",
161
155
  "upcomingAppointments": "Upcoming appointments",
162
156
  "updateError": "Error updating upcoming appointment",
163
- "vitals": "Vitals",
164
157
  "WED": "WED",
165
158
  "week": "Week",
166
159
  "yes": "Yes"
@@ -58,7 +58,6 @@
58
58
  "countMore_other": "{{count}} nữa",
59
59
  "createNewAppointment": "Tạo cuộc hẹn mới",
60
60
  "date": "Ngày",
61
- "date&Time": "Ngày & giờ",
62
61
  "dateAppointmentIssued": "Date appointment issued",
63
62
  "dateAppointmentIssuedCannotBeAfterAppointmentDate": "Ngày cấp giấy hẹn không được sau ngày hẹn",
64
63
  "dateAppointmentScheduled": "Date appointment scheduled",
@@ -74,8 +73,6 @@
74
73
  "edit": "Chỉnh sửa",
75
74
  "editAppointment": "Edit appointment",
76
75
  "emptyStateText": "Không có 1{{displayText}}1 để hiển thị",
77
- "encounters": "Cuộc gặp",
78
- "encounterType": "Loại cuộc gặp",
79
76
  "endAppointmentAndVisitConfirmationMessage": "Việc kiểm tra bệnh nhân sẽ đánh dấu cuộc hẹn đã hoàn tất và kết thúc chuyến thăm khám đang diễn ra của bệnh nhân này.",
80
77
  "endAppointmentConfirmation": "Bạn có chắc chắn muốn cho bệnh nhân ra ngoài cuộc hẹn này không?",
81
78
  "endAppointmentConfirmationMessage": "Việc trả phòng cho bệnh nhân sẽ đánh dấu cuộc hẹn đã hoàn tất.",
@@ -94,7 +91,6 @@
94
91
  "itemsPerPage": "Số mục trên mỗi trang",
95
92
  "loading": "Đang tải",
96
93
  "location": "Vị trí",
97
- "medications": "Thuốc men",
98
94
  "metricLoadErrorMessage": "Please contact your system administrator if the problem persists.",
99
95
  "missed": "Bỏ lỡ",
100
96
  "MON": "MON",
@@ -105,10 +101,8 @@
105
101
  "noAppointmentsToDisplay": "Không có cuộc hẹn nào để hiển thị",
106
102
  "noContent": "Không có nội dung",
107
103
  "noCurrentAppointments": "Không có cuộc hẹn nào được lên lịch cho hôm nay để hiển thị cho bệnh nhân này",
108
- "noEncountersFound": "Không tìm thấy cuộc gặp gỡ nào",
109
104
  "noMatchingAppointments": "No matching appointments found",
110
105
  "noPastAppointments": "Không có cuộc hẹn nào trước đây để hiển thị cho bệnh nhân này",
111
- "noPreviousVisitFound": "Không tìm thấy lần ghé thăm trước",
112
106
  "notArrived": "Không đến",
113
107
  "note": "Ghi chú",
114
108
  "notes": "Ghi chú",
@@ -160,7 +154,6 @@
160
154
  "upcoming": "Sắp tới",
161
155
  "upcomingAppointments": "Cuộc hẹn sắp tới",
162
156
  "updateError": "Error updating upcoming appointment",
163
- "vitals": "Các yếu tố quan trọng",
164
157
  "WED": "WED",
165
158
  "week": "Tuần",
166
159
  "yes": "Có"
@@ -58,7 +58,6 @@
58
58
  "countMore_other": "{{count}} more",
59
59
  "createNewAppointment": "创建新预约",
60
60
  "date": "日期",
61
- "date&Time": "日期&时间",
62
61
  "dateAppointmentIssued": "Date appointment issued",
63
62
  "dateAppointmentIssuedCannotBeAfterAppointmentDate": "Date appointment issued cannot be after the appointment date",
64
63
  "dateAppointmentScheduled": "Date appointment scheduled",
@@ -74,8 +73,6 @@
74
73
  "edit": "编辑",
75
74
  "editAppointment": "Edit appointment",
76
75
  "emptyStateText": "没有<1>{{displayText}}</1>可显示",
77
- "encounters": "问诊",
78
- "encounterType": "问诊类型",
79
76
  "endAppointmentAndVisitConfirmationMessage": "Checking the patient out will mark the appointment as complete, and close out the active visit for this patient.",
80
77
  "endAppointmentConfirmation": "Are you sure you want to check the patient out for this appointment?",
81
78
  "endAppointmentConfirmationMessage": "Checking the patient out will mark the appointment as complete.",
@@ -94,7 +91,6 @@
94
91
  "itemsPerPage": "每页条目数",
95
92
  "loading": "加载中",
96
93
  "location": "地点",
97
- "medications": "药物",
98
94
  "metricLoadErrorMessage": "Please contact your system administrator if the problem persists.",
99
95
  "missed": "未就诊",
100
96
  "MON": "MON",
@@ -105,10 +101,8 @@
105
101
  "noAppointmentsToDisplay": "没有预约可显示",
106
102
  "noContent": "没有内容",
107
103
  "noCurrentAppointments": "该患者没有安排在今日的预约",
108
- "noEncountersFound": "未找到问诊记录",
109
104
  "noMatchingAppointments": "No matching appointments found",
110
105
  "noPastAppointments": "该患者没有历史预约",
111
- "noPreviousVisitFound": "未找到先前的就诊",
112
106
  "notArrived": "未到达",
113
107
  "note": "备注",
114
108
  "notes": "备注",
@@ -160,7 +154,6 @@
160
154
  "upcoming": "即将到来",
161
155
  "upcomingAppointments": "即将到来的预约",
162
156
  "updateError": "Error updating upcoming appointment",
163
- "vitals": "生命体征",
164
157
  "WED": "WED",
165
158
  "week": "周",
166
159
  "yes": "是"
@@ -58,7 +58,6 @@
58
58
  "countMore_other": "{{count}} 更多",
59
59
  "createNewAppointment": "创建新预约",
60
60
  "date": "日期",
61
- "date&Time": "日期&时间",
62
61
  "dateAppointmentIssued": "Date appointment issued",
63
62
  "dateAppointmentIssuedCannotBeAfterAppointmentDate": "发出预约的日期不能晚于预约日期",
64
63
  "dateAppointmentScheduled": "Date appointment scheduled",
@@ -74,8 +73,6 @@
74
73
  "edit": "编辑",
75
74
  "editAppointment": "编辑预约",
76
75
  "emptyStateText": "没有<1>{{displayText}}</1>可显示",
77
- "encounters": "问诊",
78
- "encounterType": "问诊类型",
79
76
  "endAppointmentAndVisitConfirmationMessage": "检出患者将预约标记为已完成,并结束该患者的活动就诊。",
80
77
  "endAppointmentConfirmation": "您确定要为患者预约检出吗?",
81
78
  "endAppointmentConfirmationMessage": "检出患者将标志着预约已完成。",
@@ -94,7 +91,6 @@
94
91
  "itemsPerPage": "每页条目数",
95
92
  "loading": "加载中",
96
93
  "location": "地点",
97
- "medications": "药物",
98
94
  "metricLoadErrorMessage": "如果问题仍然存在,请与系统管理员联系。",
99
95
  "missed": "未就诊",
100
96
  "MON": "周一",
@@ -105,10 +101,8 @@
105
101
  "noAppointmentsToDisplay": "没有预约可显示",
106
102
  "noContent": "没有内容",
107
103
  "noCurrentAppointments": "该患者没有安排在今日的预约",
108
- "noEncountersFound": "未找到问诊记录",
109
104
  "noMatchingAppointments": "没有发现匹配的预约",
110
105
  "noPastAppointments": "该患者没有历史预约",
111
- "noPreviousVisitFound": "未找到先前的就诊",
112
106
  "notArrived": "未到达",
113
107
  "note": "备注",
114
108
  "notes": "备注",
@@ -160,7 +154,6 @@
160
154
  "upcoming": "即将到来",
161
155
  "upcomingAppointments": "即将到来的预约",
162
156
  "updateError": "更新即将到来的预约时出现错误",
163
- "vitals": "生命体征",
164
157
  "WED": "周三",
165
158
  "week": "周",
166
159
  "yes": "是"
@@ -58,7 +58,6 @@
58
58
  "countMore_other": "{{count}} more",
59
59
  "createNewAppointment": "Create new appointment",
60
60
  "date": "Date",
61
- "date&Time": "Date & time",
62
61
  "dateAppointmentIssued": "Date appointment issued",
63
62
  "dateAppointmentIssuedCannotBeAfterAppointmentDate": "Date appointment issued cannot be after the appointment date",
64
63
  "dateAppointmentScheduled": "Date appointment scheduled",
@@ -74,8 +73,6 @@
74
73
  "edit": "Edit",
75
74
  "editAppointment": "Edit appointment",
76
75
  "emptyStateText": "There are no <1>{{displayText}}</1> to display",
77
- "encounters": "Encounters",
78
- "encounterType": "Encounter type",
79
76
  "endAppointmentAndVisitConfirmationMessage": "Checking the patient out will mark the appointment as complete, and close out the active visit for this patient.",
80
77
  "endAppointmentConfirmation": "Are you sure you want to check the patient out for this appointment?",
81
78
  "endAppointmentConfirmationMessage": "Checking the patient out will mark the appointment as complete.",
@@ -94,7 +91,6 @@
94
91
  "itemsPerPage": "Items per page",
95
92
  "loading": "Loading",
96
93
  "location": "Location",
97
- "medications": "Medications",
98
94
  "metricLoadErrorMessage": "Please contact your system administrator if the problem persists.",
99
95
  "missed": "Missed",
100
96
  "MON": "MON",
@@ -105,10 +101,8 @@
105
101
  "noAppointmentsToDisplay": "No appointments to display",
106
102
  "noContent": "No Content",
107
103
  "noCurrentAppointments": "There are no appointments scheduled for today to display for this patient",
108
- "noEncountersFound": "No encounters found",
109
104
  "noMatchingAppointments": "No matching appointments found",
110
105
  "noPastAppointments": "There are no past appointments to display for this patient",
111
- "noPreviousVisitFound": "No previous visit found",
112
106
  "notArrived": "Not arrived",
113
107
  "note": "Note",
114
108
  "notes": "Notes",
@@ -160,7 +154,6 @@
160
154
  "upcoming": "Upcoming",
161
155
  "upcomingAppointments": "Upcoming appointments",
162
156
  "updateError": "Error updating upcoming appointment",
163
- "vitals": "Vitals",
164
157
  "WED": "WED",
165
158
  "week": "Week",
166
159
  "yes": "Yes"
@@ -1,54 +0,0 @@
1
- import React from 'react';
2
- import classNames from 'classnames';
3
- import {
4
- StructuredListHead,
5
- StructuredListCell,
6
- StructuredListRow,
7
- StructuredListBody,
8
- StructuredListWrapper,
9
- } from '@carbon/react';
10
- import { useTranslation } from 'react-i18next';
11
- import { formatDatetime, parseDate } from '@openmrs/esm-framework';
12
- import { type FormattedEncounter } from './past-visit.component';
13
- import styles from './past-visit.scss';
14
-
15
- interface EncounterListProps {
16
- encounters: Array<FormattedEncounter>;
17
- }
18
-
19
- const EncounterList: React.FC<EncounterListProps> = ({ encounters }) => {
20
- const { t } = useTranslation();
21
-
22
- const structuredListBodyRowGenerator = () => {
23
- return encounters.map((encounter, i) => (
24
- <StructuredListRow label key={`row-${i}`}>
25
- <StructuredListCell>{formatDatetime(parseDate(encounter.datetime), { mode: 'wide' })}</StructuredListCell>
26
- <StructuredListCell className={styles.textColor}>{encounter.encounterType}</StructuredListCell>
27
- <StructuredListCell>{encounter.provider}</StructuredListCell>
28
- </StructuredListRow>
29
- ));
30
- };
31
-
32
- if (encounters?.length) {
33
- return (
34
- <div className={styles.encounterListContainer}>
35
- <StructuredListWrapper>
36
- <StructuredListHead>
37
- <StructuredListRow head>
38
- <StructuredListCell head>{t('date&Time', 'Date & time')}</StructuredListCell>
39
- <StructuredListCell head>{t('encounterType', 'Encounter type')}</StructuredListCell>
40
- <StructuredListCell head>{t('provider', 'Provider')}</StructuredListCell>
41
- </StructuredListRow>
42
- </StructuredListHead>
43
- <StructuredListBody>{structuredListBodyRowGenerator()}</StructuredListBody>
44
- </StructuredListWrapper>
45
- </div>
46
- );
47
- }
48
-
49
- return (
50
- <p className={classNames(styles.bodyLong01, styles.text02)}>{t('noEncountersFound', 'No encounters found')}</p>
51
- );
52
- };
53
-
54
- export default EncounterList;
@@ -1,106 +0,0 @@
1
- import React, { useState } from 'react';
2
- import classNames from 'classnames';
3
- import { useTranslation } from 'react-i18next';
4
- import { StructuredListSkeleton, Tab, Tabs } from '@carbon/react';
5
- import { formatDate, type OpenmrsResource, parseDate, useLayoutType } from '@openmrs/esm-framework';
6
- import { type Observation } from '../types';
7
- import { usePastVisits } from './past-visit.resource';
8
- import EncounterList from './encounter-list.component';
9
- import styles from './past-visit.scss';
10
-
11
- interface PastVisitProps {
12
- patientUuid: string;
13
- }
14
-
15
- export interface FormattedEncounter {
16
- id: string;
17
- datetime: string;
18
- encounterType: string;
19
- form: OpenmrsResource;
20
- obs: Array<Observation>;
21
- provider: string;
22
- visitType: string;
23
- visitUuid: string;
24
- }
25
-
26
- const PastVisit: React.FC<PastVisitProps> = ({ patientUuid }) => {
27
- const { t } = useTranslation();
28
- const { data: pastVisits, error, isLoading } = usePastVisits(patientUuid);
29
- const [selectedTabIndex, setSelectedTabIndex] = useState(0);
30
- const isTablet = useLayoutType() === 'tablet';
31
-
32
- if (isLoading) {
33
- return <StructuredListSkeleton role="progressbar" />;
34
- }
35
-
36
- if (pastVisits?.length) {
37
- const encounters = mapEncounters(pastVisits[0]);
38
-
39
- const tabsClasses = classNames(styles.verticalTabs, {
40
- [styles.tabletTabs]: isTablet,
41
- [styles.desktopTabs]: !isTablet,
42
- });
43
-
44
- const tabClass = (index) =>
45
- classNames(styles.tab, styles.bodyLong01, {
46
- [styles.selectedTab]: selectedTabIndex === index,
47
- });
48
-
49
- return (
50
- <div className={styles.wrapper}>
51
- <div className={styles.visitType}>
52
- <span> {pastVisits?.length ? pastVisits[0]?.visitType.display : '--'}</span>
53
- <p className={styles.date}>
54
- {pastVisits?.length ? formatDate(parseDate(pastVisits[0]?.startDatetime)) : '--'}
55
- </p>
56
- </div>
57
- <div className={styles.visitContainer}>
58
- <Tabs className={tabsClasses}>
59
- <Tab
60
- className={tabClass[0]}
61
- id="vitals-tab"
62
- onClick={() => setSelectedTabIndex(0)}
63
- label={t('vitals', 'Vitals')}></Tab>
64
-
65
- <Tab
66
- className={tabClass[1]}
67
- id="notes-tab"
68
- onClick={() => setSelectedTabIndex(1)}
69
- label={t('notes', 'Notes')}></Tab>
70
-
71
- <Tab
72
- className={tabClass[2]}
73
- id="medications-tab"
74
- onClick={() => setSelectedTabIndex(2)}
75
- label={t('medications', 'Medications')}></Tab>
76
-
77
- <Tab
78
- className={tabClass[3]}
79
- id="encounters-tab"
80
- onClick={() => setSelectedTabIndex(3)}
81
- label={t('encounters', 'Encounters')}>
82
- <EncounterList encounters={encounters} />
83
- </Tab>
84
- </Tabs>
85
- </div>
86
- </div>
87
- );
88
- }
89
- return <p className={styles.bodyLong01}>{t('noPreviousVisitFound', 'No previous visit found')}</p>;
90
- };
91
-
92
- export function mapEncounters(visit) {
93
- return visit?.encounters?.map((encounter) => ({
94
- id: encounter?.uuid,
95
- datetime: encounter?.encounterDatetime,
96
- encounterType: encounter?.encounterType?.display,
97
- form: encounter?.form,
98
- obs: encounter?.obs,
99
- provider:
100
- encounter?.encounterProviders?.length > 0 ? encounter.encounterProviders[0].provider?.person?.display : '--',
101
- visitUuid: visit?.visitType.uuid,
102
- visitType: visit?.visitType?.name,
103
- }));
104
- }
105
-
106
- export default PastVisit;
@@ -1,25 +0,0 @@
1
- import useSWR from 'swr';
2
- import { openmrsFetch, restBaseUrl, type Visit } from '@openmrs/esm-framework';
3
-
4
- export function usePastVisits(patientUuid: string) {
5
- const customRepresentation =
6
- 'custom:(uuid,encounters:(uuid,encounterDatetime,' +
7
- 'form:(uuid,name),location:ref,' +
8
- 'encounterType:ref,encounterProviders:(uuid,display,' +
9
- 'provider:(uuid,display))),patient:(uuid,uuid),' +
10
- 'visitType:(uuid,name,display),attributes:(uuid,display,value),location:(uuid,name,display),startDatetime,' +
11
- 'stopDatetime)';
12
-
13
- const apiUrl = `${restBaseUrl}/visit?patient=${patientUuid}&v=${customRepresentation}`;
14
- const { data, error, isLoading, isValidating } = useSWR<{ data: { results: Array<Visit> } }, Error>(
15
- patientUuid ? apiUrl : null,
16
- openmrsFetch,
17
- );
18
-
19
- return {
20
- data: data ? data.data.results : null,
21
- error,
22
- isLoading,
23
- isValidating,
24
- };
25
- }
@@ -1,111 +0,0 @@
1
- @use '@carbon/layout';
2
- @use '@carbon/type';
3
- @use '@openmrs/esm-styleguide/src/vars' as *;
4
-
5
- .wrapper {
6
- margin-top: layout.$spacing-03;
7
- }
8
-
9
- .bodyShort02 {
10
- @include type.type-style('body-compact-02');
11
- }
12
-
13
- .bodyLong01 {
14
- @include type.type-style('body-01');
15
- }
16
-
17
- .date {
18
- @include type.type-style('label-01');
19
- color: $text-02;
20
- margin: layout.$spacing-03 0 layout.$spacing-02;
21
- }
22
-
23
- .visitType {
24
- @include type.type-style('heading-compact-02');
25
- }
26
-
27
- .container {
28
- background-color: $ui-background;
29
- border: 1px solid $grey-2;
30
- padding: layout.$spacing-05;
31
- margin: layout.$spacing-05 0 layout.$spacing-05;
32
- width: 100%;
33
- }
34
-
35
- .tabs > :global(.cds--tab-content) {
36
- padding: layout.$spacing-05 0 !important;
37
- }
38
-
39
- .header::after {
40
- content: '';
41
- display: block;
42
- width: layout.$spacing-07;
43
- padding-top: 0.188rem;
44
- border-bottom: 0.375rem solid var(--brand-03);
45
- }
46
-
47
- .visitContainer {
48
- background-color: $ui-background;
49
- display: grid;
50
- grid-template-columns: max-content auto;
51
- }
52
-
53
- .flexSections {
54
- display: flex;
55
- }
56
-
57
- .verticalTabs {
58
- margin: layout.$spacing-04 0;
59
-
60
- &:global(.cds--tabs--scrollable .cds--tabs--scrollable__nav-item + .cds--tabs--scrollable__nav-item) {
61
- margin-left: 0;
62
- }
63
- }
64
-
65
- .verticalTabs > ul {
66
- flex-direction: column !important;
67
- }
68
-
69
- .desktopTabs {
70
- button {
71
- height: layout.$spacing-07;
72
- }
73
- }
74
-
75
- .tabletTabs {
76
- button {
77
- height: layout.$spacing-09;
78
- }
79
- }
80
-
81
- .tab > button {
82
- border-bottom: 0 !important;
83
- border-left: 3px solid $ui-03 !important;
84
- }
85
-
86
- .tab > button,
87
- .tab > button:focus,
88
- .tab > button:active {
89
- outline: 0 !important;
90
- outline-offset: 0 !important;
91
- }
92
-
93
- .selectedTab > button {
94
- border-left: 3px solid var(--brand-03) !important;
95
- border-bottom: 0 !important;
96
- font-weight: 600 !important;
97
- }
98
-
99
- .tabContent {
100
- border-top: 1px solid $ui-03;
101
- padding: layout.$spacing-05 0;
102
- width: 70%;
103
- }
104
-
105
- .textColor {
106
- color: $color-blue-60-2;
107
- }
108
-
109
- .text02 {
110
- color: $text-02;
111
- }