@kenyaemr/esm-express-workflow-app 5.4.4-pre.96 → 5.4.5-pre.16

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 (368) hide show
  1. package/package.json +3 -3
  2. package/src/components/admissions/admissions-dashboard.component.tsx +2 -2
  3. package/src/components/anaesthetic/anaesthetic-dashboard.meta.ts +8 -0
  4. package/src/components/anaesthetic/anaesthetic-data-form.component.tsx +442 -0
  5. package/src/components/anaesthetic/anaesthetic-data-form.scss +278 -0
  6. package/src/components/anaesthetic/anaesthetic-link.component.tsx +21 -0
  7. package/src/components/anaesthetic/anaesthetic.component.tsx +618 -0
  8. package/src/components/anaesthetic/anaesthetic.resource.ts +1503 -0
  9. package/src/components/anaesthetic/anaesthetic.scss +1885 -0
  10. package/src/components/anaesthetic/forms/anaesthetic-form.component.tsx +304 -0
  11. package/src/components/anaesthetic/forms/anaesthetic-record-form.component.tsx +707 -0
  12. package/src/components/anaesthetic/forms/icd11-diagnosis-search.component.tsx +178 -0
  13. package/src/components/anaesthetic/forms/icd11-diagnosis-search.scss +126 -0
  14. package/src/components/anaesthetic/forms/index.ts +2 -0
  15. package/src/components/anaesthetic/forms/interoperative-record-drug-given-form.component.tsx +231 -0
  16. package/src/components/anaesthetic/forms/post-operative-summary-form.component.tsx +171 -0
  17. package/src/components/anaesthetic/forms/time-picker-dropdown.component.tsx +202 -0
  18. package/src/components/anaesthetic/forms/time-picker-dropdown.scss +107 -0
  19. package/src/components/anaesthetic/forms/time-picker-with-clock.component.tsx +174 -0
  20. package/src/components/anaesthetic/forms/time-picker-with-clock.scss +178 -0
  21. package/src/components/anaesthetic/forms/useAnaestheticData.ts +16 -0
  22. package/src/components/anaesthetic/graphs/anaesthetic-graph-wrapper.component.tsx +266 -0
  23. package/src/components/anaesthetic/graphs/anaesthetic-graph.component.tsx +185 -0
  24. package/src/components/anaesthetic/graphs/index.ts +2 -0
  25. package/src/components/anaesthetic/graphs/interoperative-record-drug-given-graph-wrapper.component.tsx +197 -0
  26. package/src/components/anaesthetic/graphs/interoperative-record-drug-given-graph.component.tsx +93 -0
  27. package/src/components/anaesthetic/resources/anaesthetic-amniotic-fluid.resource.ts +277 -0
  28. package/src/components/anaesthetic/resources/anaesthetic-form.resource.ts +716 -0
  29. package/src/components/anaesthetic/resources/anaesthetic.resource.ts +378 -0
  30. package/src/components/anaesthetic/types/index.ts +1349 -0
  31. package/src/components/consultation/clinical-encounter/clinical-encounter.component.tsx +4 -20
  32. package/src/components/consultation/index.ts +1 -1
  33. package/src/components/consultation/tabs/index.ts +67 -0
  34. package/src/components/facility-dashboard/components/header/home-header.component.tsx +8 -13
  35. package/src/components/laboratory/index.ts +11 -0
  36. package/src/components/laboratory/lab-table.component.tsx +32 -12
  37. package/src/components/laboratory/laboratory-tabs.component.tsx +3 -17
  38. package/src/components/mch/mch.component.tsx +1 -3
  39. package/src/components/pharmacy/index.ts +1 -1
  40. package/src/components/pharmacy/orders/pharmacy-orders.component.tsx +13 -2
  41. package/src/components/pharmacy/pharmacy-tabs.component.tsx +4 -20
  42. package/src/components/pharmacy/tabs/index.ts +21 -0
  43. package/src/components/preauth/index.ts +22 -0
  44. package/src/components/preauth/preauth-dashboard.component.tsx +20 -0
  45. package/src/components/procedures/index.ts +16 -0
  46. package/src/components/procedures/procedure-queues/index.ts +13 -0
  47. package/src/components/procedures/procedure-queues/procedure-form-extras.component.tsx +33 -0
  48. package/src/components/procedures/procedure-queues/procedure-form-extras.scss +5 -0
  49. package/src/components/procedures/procedure-queues/procedure-queues.component.tsx +35 -0
  50. package/src/components/procedures/procedure-queues/procedure-queues.resources.ts +37 -0
  51. package/src/components/procedures/procedure-queues/procedure-room-tabs.component.tsx +80 -0
  52. package/src/components/procedures/procedure-queues/procedure-rooms.scss +13 -0
  53. package/src/components/procedures/procedure-queues/queue-procedure-tabs.component.tsx +34 -0
  54. package/src/components/procedures/procedure-queues/summary-cards.component.tsx +81 -0
  55. package/src/components/procedures/procedure-queues/summary-cards.scss +35 -0
  56. package/src/components/procedures/procedures-table.component.tsx +42 -15
  57. package/src/components/procedures/procedures-tabs.component.test.tsx +57 -0
  58. package/src/components/procedures/procedures-tabs.component.tsx +3 -18
  59. package/src/components/radiology-and-imaging/index.ts +11 -0
  60. package/src/components/radiology-and-imaging/radiology-and-imaging-table.component.tsx +46 -14
  61. package/src/components/radiology-and-imaging/radiology-and-imaging.component.tsx +3 -19
  62. package/src/components/registration/card/Local-card/local-card.component.tsx +3 -3
  63. package/src/components/registration/checkin-form-extra/checkin-form-extra.extension.tsx +8 -2
  64. package/src/components/registration/checkin-form-extra/queue-fields.component.tsx +18 -19
  65. package/src/components/registration/checkin-form-extra/queue-fields.scss +0 -3
  66. package/src/components/registration/constant/index.ts +0 -9
  67. package/src/components/registration/dependants/dependants.component.tsx +43 -8
  68. package/src/components/registration/dependants/dependants.resource.ts +161 -15
  69. package/src/components/registration/end-visit-modal/end-visit-dialog.modal.tsx +320 -0
  70. package/src/components/registration/end-visit-modal/end-visit-dialog.scss +12 -0
  71. package/src/components/registration/end-visit-modal/end-visit.resource.tsx +59 -0
  72. package/src/components/registration/end-visit-modal/sha-end-visit.resource.ts +285 -0
  73. package/src/components/registration/helper/index.ts +27 -21
  74. package/src/components/registration/search-bar/search-bar.resource.ts +13 -5
  75. package/src/components/registration/start-visit-form/overflow-menu-extension/custom-end-active-visit.extension.tsx +44 -0
  76. package/src/components/registration/start-visit-form/overflow-menu-extension/overflow-menu-item.extension.tsx +32 -20
  77. package/src/components/registration/start-visit-form/start-visit-workspace/exported-visit-form.workspace.tsx +91 -26
  78. package/src/components/registration/start-visit-form/start-visit-workspace/visit-form.resource.ts +18 -0
  79. package/src/components/registration/start-visit-form/start-visit-workspace/visit-form.scss +2 -26
  80. package/src/components/registration/start-visit-form/visit-form-workspace/visit-form.workspace.tsx +1 -8
  81. package/src/components/registration/type/index.ts +102 -0
  82. package/src/components/reports/index.ts +1 -0
  83. package/src/config-schema.ts +433 -16
  84. package/src/hooks/useOrders.tsx +2 -2
  85. package/src/hooks/useServiceQueues.tsx +1 -1
  86. package/src/index.ts +69 -16
  87. package/src/routes.json +512 -45
  88. package/src/shared/dashboard-link/dashboard-link.component.tsx +11 -8
  89. package/src/shared/orders/OrderTable.scss +7 -0
  90. package/src/shared/orders/OrderTable.tsx +68 -8
  91. package/src/shared/orders/print-order/print-order.component.tsx +158 -0
  92. package/src/shared/orders/print-order/print-order.scss +225 -0
  93. package/src/shared/orders/print-prescription/print-prescription.component.tsx +65 -0
  94. package/src/shared/orders/print-prescription/print-prescription.resource.ts +45 -0
  95. package/src/shared/orders/print-prescription/print-prescription.scss +25 -0
  96. package/src/shared/otp-verification/index.ts +112 -29
  97. package/src/shared/otp-verification/otp-verification.modal.tsx +1110 -122
  98. package/src/shared/otp-verification/otp-verification.scss +374 -0
  99. package/src/shared/patient-chart/patient-summary-dashboard/patient-summary-dashboard.component.tsx +5 -84
  100. package/src/shared/tabs/create-tab-extension.tsx +33 -0
  101. package/src/shared/tabs/extension-tabs.component.tsx +51 -33
  102. package/src/shared/utils/index.ts +139 -3
  103. package/src/types/index.ts +12 -0
  104. package/translations/am.json +386 -123
  105. package/translations/en.json +276 -13
  106. package/translations/fr.json +372 -63
  107. package/translations/sw.json +295 -32
  108. package/tsconfig.json +1 -0
  109. package/.turbo/turbo-build.log +0 -8
  110. package/dist/1074.js +0 -1
  111. package/dist/1074.js.map +0 -1
  112. package/dist/12.js +0 -17
  113. package/dist/12.js.map +0 -1
  114. package/dist/1311.js +0 -1
  115. package/dist/1311.js.map +0 -1
  116. package/dist/1323.js +0 -1
  117. package/dist/1323.js.map +0 -1
  118. package/dist/1469.js +0 -1
  119. package/dist/1469.js.map +0 -1
  120. package/dist/1506.js +0 -13
  121. package/dist/1506.js.map +0 -1
  122. package/dist/1562.js +0 -1
  123. package/dist/1562.js.map +0 -1
  124. package/dist/1760.js +0 -1
  125. package/dist/1760.js.map +0 -1
  126. package/dist/1780.js +0 -1
  127. package/dist/1780.js.map +0 -1
  128. package/dist/1804.js +0 -1
  129. package/dist/1804.js.map +0 -1
  130. package/dist/1884.js +0 -1
  131. package/dist/1884.js.map +0 -1
  132. package/dist/1972.js +0 -1
  133. package/dist/1972.js.map +0 -1
  134. package/dist/1990.js +0 -1
  135. package/dist/1990.js.map +0 -1
  136. package/dist/2016.js +0 -1
  137. package/dist/2016.js.map +0 -1
  138. package/dist/2024.js +0 -1
  139. package/dist/2024.js.map +0 -1
  140. package/dist/2153.js +0 -1
  141. package/dist/2153.js.map +0 -1
  142. package/dist/216.js +0 -1
  143. package/dist/216.js.map +0 -1
  144. package/dist/2225.js +0 -1
  145. package/dist/2225.js.map +0 -1
  146. package/dist/2294.js +0 -1
  147. package/dist/2294.js.map +0 -1
  148. package/dist/2345.js +0 -1
  149. package/dist/2345.js.map +0 -1
  150. package/dist/2499.js +0 -1
  151. package/dist/2499.js.map +0 -1
  152. package/dist/2500.js +0 -1
  153. package/dist/2500.js.map +0 -1
  154. package/dist/2586.js +0 -1
  155. package/dist/2586.js.map +0 -1
  156. package/dist/2625.js +0 -1
  157. package/dist/2625.js.map +0 -1
  158. package/dist/2685.js +0 -1
  159. package/dist/2685.js.map +0 -1
  160. package/dist/2809.js +0 -1
  161. package/dist/2809.js.map +0 -1
  162. package/dist/2851.js +0 -1
  163. package/dist/2851.js.map +0 -1
  164. package/dist/2881.js +0 -1
  165. package/dist/2881.js.map +0 -1
  166. package/dist/2948.js +0 -1
  167. package/dist/2948.js.map +0 -1
  168. package/dist/2968.js +0 -1
  169. package/dist/2968.js.map +0 -1
  170. package/dist/2978.js +0 -1
  171. package/dist/2978.js.map +0 -1
  172. package/dist/2998.js +0 -1
  173. package/dist/2998.js.map +0 -1
  174. package/dist/3089.js +0 -1
  175. package/dist/3089.js.map +0 -1
  176. package/dist/3548.js +0 -1
  177. package/dist/3548.js.map +0 -1
  178. package/dist/3567.js +0 -1
  179. package/dist/3567.js.map +0 -1
  180. package/dist/3569.js +0 -1
  181. package/dist/3569.js.map +0 -1
  182. package/dist/3571.js +0 -1
  183. package/dist/3571.js.map +0 -1
  184. package/dist/3691.js +0 -1
  185. package/dist/3691.js.map +0 -1
  186. package/dist/3730.js +0 -1
  187. package/dist/3730.js.map +0 -1
  188. package/dist/3923.js +0 -1
  189. package/dist/3923.js.map +0 -1
  190. package/dist/3963.js +0 -1
  191. package/dist/3963.js.map +0 -1
  192. package/dist/4024.js +0 -1
  193. package/dist/4024.js.map +0 -1
  194. package/dist/405.js +0 -1
  195. package/dist/405.js.map +0 -1
  196. package/dist/4071.js +0 -1
  197. package/dist/4071.js.map +0 -1
  198. package/dist/4271.js +0 -1
  199. package/dist/4271.js.map +0 -1
  200. package/dist/4296.js +0 -1
  201. package/dist/4296.js.map +0 -1
  202. package/dist/4337.js +0 -1
  203. package/dist/4337.js.map +0 -1
  204. package/dist/4432.js +0 -1
  205. package/dist/4432.js.map +0 -1
  206. package/dist/4581.js +0 -1
  207. package/dist/4581.js.map +0 -1
  208. package/dist/4637.js +0 -11
  209. package/dist/4637.js.map +0 -1
  210. package/dist/4666.js +0 -1
  211. package/dist/4666.js.map +0 -1
  212. package/dist/4680.js +0 -1
  213. package/dist/4680.js.map +0 -1
  214. package/dist/4735.js +0 -1
  215. package/dist/4735.js.map +0 -1
  216. package/dist/4737.js +0 -1
  217. package/dist/4737.js.map +0 -1
  218. package/dist/4744.js +0 -1
  219. package/dist/4744.js.map +0 -1
  220. package/dist/4795.js +0 -1
  221. package/dist/4795.js.map +0 -1
  222. package/dist/4813.js +0 -2
  223. package/dist/4813.js.map +0 -1
  224. package/dist/4818.js +0 -1
  225. package/dist/4818.js.map +0 -1
  226. package/dist/4858.js +0 -1
  227. package/dist/4858.js.map +0 -1
  228. package/dist/487.js +0 -1
  229. package/dist/487.js.map +0 -1
  230. package/dist/4970.js +0 -1
  231. package/dist/4970.js.map +0 -1
  232. package/dist/5038.js +0 -1
  233. package/dist/5038.js.map +0 -1
  234. package/dist/5202.js +0 -1
  235. package/dist/5202.js.map +0 -1
  236. package/dist/5491.js +0 -1
  237. package/dist/5491.js.map +0 -1
  238. package/dist/5592.js +0 -1
  239. package/dist/5592.js.map +0 -1
  240. package/dist/5669.js +0 -1
  241. package/dist/5669.js.map +0 -1
  242. package/dist/586.js +0 -1
  243. package/dist/586.js.map +0 -1
  244. package/dist/5932.js +0 -1
  245. package/dist/5932.js.map +0 -1
  246. package/dist/5995.js +0 -1
  247. package/dist/5995.js.map +0 -1
  248. package/dist/6258.js +0 -1
  249. package/dist/6258.js.map +0 -1
  250. package/dist/629.js +0 -1
  251. package/dist/629.js.map +0 -1
  252. package/dist/6328.js +0 -1
  253. package/dist/6328.js.map +0 -1
  254. package/dist/6355.js +0 -1
  255. package/dist/6355.js.map +0 -1
  256. package/dist/6419.js +0 -1
  257. package/dist/6419.js.map +0 -1
  258. package/dist/644.js +0 -1
  259. package/dist/644.js.map +0 -1
  260. package/dist/6456.js +0 -1
  261. package/dist/6466.js +0 -3
  262. package/dist/6466.js.map +0 -1
  263. package/dist/655.js +0 -1
  264. package/dist/655.js.map +0 -1
  265. package/dist/6798.js +0 -66
  266. package/dist/6798.js.map +0 -1
  267. package/dist/6910.js +0 -1
  268. package/dist/6910.js.map +0 -1
  269. package/dist/6925.js +0 -1
  270. package/dist/6925.js.map +0 -1
  271. package/dist/70.js +0 -1
  272. package/dist/70.js.map +0 -1
  273. package/dist/7201.js +0 -1
  274. package/dist/7201.js.map +0 -1
  275. package/dist/7234.js +0 -1
  276. package/dist/7234.js.map +0 -1
  277. package/dist/7261.js +0 -1
  278. package/dist/7261.js.map +0 -1
  279. package/dist/7326.js +0 -1
  280. package/dist/7359.js +0 -1
  281. package/dist/7487.js +0 -1
  282. package/dist/7487.js.map +0 -1
  283. package/dist/7591.js +0 -1
  284. package/dist/7591.js.map +0 -1
  285. package/dist/7607.js +0 -1
  286. package/dist/7701.js +0 -1
  287. package/dist/7701.js.map +0 -1
  288. package/dist/7717.js +0 -1
  289. package/dist/7717.js.map +0 -1
  290. package/dist/7739.js +0 -1
  291. package/dist/7739.js.map +0 -1
  292. package/dist/7788.js +0 -1
  293. package/dist/7788.js.map +0 -1
  294. package/dist/7819.js +0 -1
  295. package/dist/7819.js.map +0 -1
  296. package/dist/7971.js +0 -1
  297. package/dist/7971.js.map +0 -1
  298. package/dist/7983.js +0 -1
  299. package/dist/7983.js.map +0 -1
  300. package/dist/807.js +0 -1
  301. package/dist/807.js.map +0 -1
  302. package/dist/8159.js +0 -7
  303. package/dist/8159.js.map +0 -1
  304. package/dist/8338.js +0 -1
  305. package/dist/8338.js.map +0 -1
  306. package/dist/845.js +0 -1
  307. package/dist/845.js.map +0 -1
  308. package/dist/8570.js +0 -1
  309. package/dist/8570.js.map +0 -1
  310. package/dist/8661.js +0 -1
  311. package/dist/8661.js.map +0 -1
  312. package/dist/87.js +0 -1
  313. package/dist/87.js.map +0 -1
  314. package/dist/8727.js +0 -1
  315. package/dist/8766.js +0 -1
  316. package/dist/8766.js.map +0 -1
  317. package/dist/8828.js +0 -1
  318. package/dist/8828.js.map +0 -1
  319. package/dist/8860.js +0 -1
  320. package/dist/8860.js.map +0 -1
  321. package/dist/8911.js +0 -1
  322. package/dist/8911.js.map +0 -1
  323. package/dist/8930.js +0 -1
  324. package/dist/8930.js.map +0 -1
  325. package/dist/8971.js +0 -1
  326. package/dist/8971.js.map +0 -1
  327. package/dist/9124.js +0 -1
  328. package/dist/9124.js.map +0 -1
  329. package/dist/9157.js +0 -1
  330. package/dist/9157.js.map +0 -1
  331. package/dist/9182.js +0 -1
  332. package/dist/921.js +0 -1
  333. package/dist/921.js.map +0 -1
  334. package/dist/9212.js +0 -1
  335. package/dist/9212.js.map +0 -1
  336. package/dist/9255.js +0 -1
  337. package/dist/9255.js.map +0 -1
  338. package/dist/9257.js +0 -1
  339. package/dist/9257.js.map +0 -1
  340. package/dist/9316.js +0 -1
  341. package/dist/9316.js.map +0 -1
  342. package/dist/9333.js +0 -1
  343. package/dist/9333.js.map +0 -1
  344. package/dist/9404.js +0 -1
  345. package/dist/9404.js.map +0 -1
  346. package/dist/9446.js +0 -1
  347. package/dist/9446.js.map +0 -1
  348. package/dist/9447.js +0 -1
  349. package/dist/9447.js.map +0 -1
  350. package/dist/9449.js +0 -1
  351. package/dist/9449.js.map +0 -1
  352. package/dist/9535.js +0 -1
  353. package/dist/9535.js.map +0 -1
  354. package/dist/9606.js +0 -1
  355. package/dist/9606.js.map +0 -1
  356. package/dist/973.js +0 -1
  357. package/dist/973.js.map +0 -1
  358. package/dist/9845.js +0 -1
  359. package/dist/9845.js.map +0 -1
  360. package/dist/kenyaemr-esm-express-workflow-app.js +0 -5
  361. package/dist/kenyaemr-esm-express-workflow-app.js.buildmanifest.json +0 -3521
  362. package/dist/kenyaemr-esm-express-workflow-app.js.map +0 -1
  363. package/dist/main.js +0 -5
  364. package/dist/main.js.map +0 -1
  365. package/dist/routes.json +0 -1
  366. package/src/shared/orders/OrdersTabs.tsx +0 -63
  367. package/src/shared/patient-chart/patient-chart.resources.ts +0 -180
  368. /package/src/shared/{patient-chart/patient-summary-dashboard → tabs}/patient-summary-dashboard.scss +0 -0
@@ -0,0 +1,278 @@
1
+ @use '@carbon/layout';
2
+ @use '@carbon/type';
3
+ @use '@carbon/colors';
4
+
5
+ .modalContent {
6
+ padding: layout.$spacing-05;
7
+ }
8
+
9
+ .normalRangeInfo {
10
+ margin-bottom: layout.$spacing-04;
11
+ padding: layout.$spacing-03;
12
+ background-color: colors.$gray-10;
13
+ border-radius: layout.$spacing-02;
14
+ border: 1px solid colors.$gray-20;
15
+ }
16
+
17
+ .dataEntryForm {
18
+ margin-bottom: layout.$spacing-05;
19
+ }
20
+
21
+ .measurementSection {
22
+ margin-top: layout.$spacing-05;
23
+ margin-bottom: layout.$spacing-05;
24
+ }
25
+
26
+ .timeInputContainer {
27
+ margin-bottom: layout.$spacing-04;
28
+
29
+ .timeLabel {
30
+ @include type.type-style('label-01');
31
+ color: colors.$gray-100;
32
+ margin-bottom: layout.$spacing-02;
33
+ display: block;
34
+ }
35
+
36
+ .timeInputGroup {
37
+ display: flex;
38
+ align-items: center;
39
+ gap: layout.$spacing-02;
40
+
41
+ .timeInput {
42
+ flex: 1;
43
+ min-width: layout.$spacing-10;
44
+ }
45
+
46
+ .timePeriodSelect {
47
+ min-width: layout.$spacing-10;
48
+ }
49
+ }
50
+ }
51
+
52
+ .formGrid {
53
+ gap: 1rem;
54
+ }
55
+
56
+ .fieldRow {
57
+ margin-bottom: 1rem;
58
+ }
59
+
60
+ .formField {
61
+ margin-bottom: 1rem;
62
+ }
63
+ // Ensure Carbon dropdown menus overlap modal buttons
64
+ // :global(.cds--list-box__menu) {
65
+ // z-index: 9999 !important;
66
+ // position: absolute !important;
67
+ // overflow: visible !important;
68
+ // }
69
+ // Prevent parent overflow from hiding dropdowns
70
+ .modalContent,
71
+ .cds--modal-content,
72
+ .cds--modal-container {
73
+ overflow: visible !important;
74
+ z-index: 1 !important;
75
+ }
76
+
77
+ .fieldLabel {
78
+ @include type.type-style('label-01');
79
+ color: colors.$gray-100;
80
+ margin-bottom: layout.$spacing-02;
81
+ display: block;
82
+ }
83
+
84
+ .cds--number input {
85
+ text-align: left;
86
+ }
87
+
88
+ .modal {
89
+ .cds--modal-content {
90
+ padding: 0;
91
+ }
92
+
93
+ .cds--modal-container {
94
+ max-width: 600px;
95
+ }
96
+ }
97
+
98
+ .workspaceForm {
99
+ display: flex;
100
+ flex-direction: column;
101
+ min-height: 100%;
102
+ }
103
+
104
+ .workspaceContent {
105
+ padding: layout.$spacing-05;
106
+ }
107
+
108
+ .workspaceButtonSet {
109
+ margin-top: auto;
110
+ padding: layout.$spacing-05;
111
+ border-top: 1px solid colors.$gray-20;
112
+ justify-content: flex-end;
113
+ }
114
+
115
+ .patientSummary {
116
+ @include type.type-style('body-01');
117
+ color: colors.$gray-70;
118
+ margin-bottom: layout.$spacing-05;
119
+ }
120
+
121
+ .cervixModal {
122
+ .cds--modal-content {
123
+ padding: 0;
124
+ }
125
+
126
+ .cds--modal-container {
127
+ max-width: 600px;
128
+ }
129
+ }
130
+
131
+ .cds--form-item {
132
+ margin-bottom: 1rem;
133
+ }
134
+
135
+ .cds--number__controls {
136
+ display: flex;
137
+ flex-direction: column;
138
+ }
139
+
140
+ .cds--number__control-btn {
141
+ height: 1.5rem;
142
+ width: 2rem;
143
+ display: flex;
144
+ align-items: center;
145
+ justify-content: center;
146
+ }
147
+
148
+ .validationHint {
149
+ font-size: 0.75rem;
150
+ color: #6f6f6f;
151
+ margin-top: 0.25rem;
152
+ font-style: italic;
153
+ background-color: #f4f4f4;
154
+ padding: 0.25rem 0.5rem;
155
+ border-radius: 4px;
156
+ border-left: 3px solid #0f62fe;
157
+ }
158
+
159
+ .requiredFieldsNote {
160
+ margin-bottom: 1rem;
161
+ padding: 0.5rem;
162
+ background-color: #e8f4fd;
163
+ border-left: 4px solid #0f62fe;
164
+ border-radius: 4px;
165
+
166
+ p {
167
+ margin: 0;
168
+ font-size: 0.875rem;
169
+ color: #161616;
170
+ font-weight: 500;
171
+ }
172
+ }
173
+
174
+ .workspaceLauncherSection {
175
+ margin-bottom: layout.$spacing-06;
176
+ padding: layout.$spacing-05;
177
+ background-color: colors.$blue-10;
178
+ border-radius: layout.$spacing-03;
179
+ border: 1px solid colors.$blue-20;
180
+
181
+ h4 {
182
+ @include type.type-style('heading-03');
183
+ color: colors.$gray-100;
184
+ margin-bottom: layout.$spacing-03;
185
+ }
186
+
187
+ .helperText {
188
+ @include type.type-style('body-01');
189
+ color: colors.$gray-70;
190
+ margin-bottom: layout.$spacing-04;
191
+ }
192
+
193
+ .workspaceLauncherButton {
194
+ min-height: layout.$spacing-09;
195
+ }
196
+ }
197
+
198
+ .manualEntrySection {
199
+ background-color: var(--cds-layer-01);
200
+ border: 1px solid var(--cds-border-subtle-01);
201
+ border-radius: 4px;
202
+ padding: 1rem;
203
+ margin-bottom: 1rem;
204
+
205
+ h4 {
206
+ margin-bottom: 0.5rem;
207
+ color: var(--cds-text-primary);
208
+ font-size: 1rem;
209
+ font-weight: 600;
210
+ }
211
+
212
+ .helperText {
213
+ color: var(--cds-text-secondary);
214
+ font-size: 0.875rem;
215
+ margin-bottom: 0.75rem;
216
+ line-height: 1.4;
217
+ }
218
+ }
219
+
220
+ .orderSource {
221
+ background-color: var(--cds-support-success);
222
+ color: var(--cds-text-on-color);
223
+ padding: 0.125rem 0.5rem;
224
+ border-radius: 12px;
225
+ font-size: 0.75rem;
226
+ font-weight: 500;
227
+ text-transform: uppercase;
228
+ }
229
+
230
+ .manualSource {
231
+ background-color: var(--cds-support-info);
232
+ color: var(--cds-text-on-color);
233
+ padding: 0.125rem 0.5rem;
234
+ border-radius: 12px;
235
+ font-size: 0.75rem;
236
+ font-weight: 500;
237
+ text-transform: uppercase;
238
+ }
239
+
240
+ .noValidation {
241
+ .cds--select__invalid-icon,
242
+ .cds--number__invalid-icon {
243
+ display: none !important;
244
+ }
245
+
246
+ .cds--select--invalid,
247
+ .cds--number--invalid {
248
+ border-bottom-color: var(--cds-border-strong-01) !important;
249
+ }
250
+
251
+ .cds--select--invalid .cds--select-input,
252
+ .cds--number--invalid .cds--number input {
253
+ border-bottom-color: var(--cds-border-strong-01) !important;
254
+ background-color: var(--cds-field-01) !important;
255
+ }
256
+
257
+ .cds--form-requirement {
258
+ display: none !important;
259
+ }
260
+ }
261
+
262
+ .disabledHourOption {
263
+ color: colors.$gray-40 !important;
264
+ background-color: colors.$gray-10 !important;
265
+ opacity: 0.6 !important;
266
+ font-style: italic;
267
+
268
+ &:hover {
269
+ background-color: colors.$gray-10 !important;
270
+ color: colors.$gray-40 !important;
271
+ }
272
+ }
273
+
274
+ .hourSelectionHelper {
275
+ @include type.type-style('helper-text-01');
276
+ color: colors.$blue-60;
277
+ margin-top: layout.$spacing-02;
278
+ }
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { useTranslation } from 'react-i18next';
3
+ import { ConfigurableLink } from '@openmrs/esm-framework';
4
+
5
+ export interface PartographLinkProps {
6
+ patientUuid: string;
7
+ }
8
+
9
+ const PartographLink: React.FC<PartographLinkProps> = ({ patientUuid }) => {
10
+ const { t } = useTranslation();
11
+
12
+ return (
13
+ <ConfigurableLink
14
+ to={`\${openmrsSpaBase}/patient/\${patientUuid}/chart/anaesthetic`}
15
+ templateParams={{ patientUuid }}>
16
+ {t('anaesthetic', 'Anaesthetic')}
17
+ </ConfigurableLink>
18
+ );
19
+ };
20
+
21
+ export default PartographLink;