@metriport/shared 0.29.0 → 0.30.0-alpha.1

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 (207) hide show
  1. package/dist/common/sql.d.ts +17 -0
  2. package/dist/common/sql.d.ts.map +1 -0
  3. package/dist/common/sql.js +3 -0
  4. package/dist/common/sql.js.map +1 -0
  5. package/dist/domain/cohort.d.ts +4 -4
  6. package/dist/domain/cohort.d.ts.map +1 -1
  7. package/dist/domain/cohort.js +7 -3
  8. package/dist/domain/cohort.js.map +1 -1
  9. package/dist/domain/contact/__tests__/phone.test.js +4 -0
  10. package/dist/domain/contact/__tests__/phone.test.js.map +1 -1
  11. package/dist/domain/cql-engine/transform.d.ts +2 -2
  12. package/dist/domain/db.d.ts +8 -0
  13. package/dist/domain/db.d.ts.map +1 -1
  14. package/dist/domain/db.js +1 -0
  15. package/dist/domain/db.js.map +1 -1
  16. package/dist/domain/network-query/__tests__/source.test.d.ts +2 -0
  17. package/dist/domain/network-query/__tests__/source.test.d.ts.map +1 -0
  18. package/dist/domain/network-query/__tests__/source.test.js +450 -0
  19. package/dist/domain/network-query/__tests__/source.test.js.map +1 -0
  20. package/dist/domain/network-query/index.d.ts +3 -0
  21. package/dist/domain/network-query/index.d.ts.map +1 -0
  22. package/dist/domain/network-query/index.js +19 -0
  23. package/dist/domain/network-query/index.js.map +1 -0
  24. package/dist/domain/network-query/query.d.ts +18 -3
  25. package/dist/domain/network-query/query.d.ts.map +1 -1
  26. package/dist/domain/network-query/source.d.ts +309 -19
  27. package/dist/domain/network-query/source.d.ts.map +1 -1
  28. package/dist/domain/network-query/source.js +257 -4
  29. package/dist/domain/network-query/source.js.map +1 -1
  30. package/dist/domain/organization.d.ts +3 -3
  31. package/dist/domain/organization.js +1 -1
  32. package/dist/domain/organization.js.map +1 -1
  33. package/dist/domain/patient/patient-monitoring/discharge-requery.d.ts +132 -0
  34. package/dist/domain/patient/patient-monitoring/discharge-requery.d.ts.map +1 -1
  35. package/dist/domain/patient/patient-monitoring/discharge-requery.js +10 -1
  36. package/dist/domain/patient/patient-monitoring/discharge-requery.js.map +1 -1
  37. package/dist/domain/patient/patient-monitoring/utils.d.ts +31 -0
  38. package/dist/domain/patient/patient-monitoring/utils.d.ts.map +1 -1
  39. package/dist/domain/patient/patient-monitoring/utils.js +68 -7
  40. package/dist/domain/patient/patient-monitoring/utils.js.map +1 -1
  41. package/dist/domain/roster/patient-roster.d.ts +5 -1
  42. package/dist/domain/roster/patient-roster.d.ts.map +1 -1
  43. package/dist/domain/tcm-encounter.d.ts +5 -2
  44. package/dist/domain/tcm-encounter.d.ts.map +1 -1
  45. package/dist/domain/tcm-encounter.js +1 -0
  46. package/dist/domain/tcm-encounter.js.map +1 -1
  47. package/dist/error/shared.js +1 -1
  48. package/dist/error/shared.js.map +1 -1
  49. package/dist/external/ehr/practicefusion/allergy-data-map.d.ts +34 -0
  50. package/dist/external/ehr/practicefusion/allergy-data-map.d.ts.map +1 -0
  51. package/dist/external/ehr/practicefusion/allergy-data-map.js +2612 -0
  52. package/dist/external/ehr/practicefusion/allergy-data-map.js.map +1 -0
  53. package/dist/external/ehr/practicefusion/index.d.ts +3 -0
  54. package/dist/external/ehr/practicefusion/index.d.ts.map +1 -0
  55. package/dist/external/ehr/practicefusion/index.js +19 -0
  56. package/dist/external/ehr/practicefusion/index.js.map +1 -0
  57. package/dist/external/ehr/practicefusion/shared.d.ts +18 -0
  58. package/dist/external/ehr/practicefusion/shared.d.ts.map +1 -0
  59. package/dist/external/ehr/practicefusion/shared.js +66 -0
  60. package/dist/external/ehr/practicefusion/shared.js.map +1 -0
  61. package/dist/external/ihe/constants.d.ts +11 -0
  62. package/dist/external/ihe/constants.d.ts.map +1 -1
  63. package/dist/external/ihe/constants.js +65 -1
  64. package/dist/external/ihe/constants.js.map +1 -1
  65. package/dist/external/ihe/index.d.ts +3 -0
  66. package/dist/external/ihe/index.d.ts.map +1 -0
  67. package/dist/external/ihe/index.js +19 -0
  68. package/dist/external/ihe/index.js.map +1 -0
  69. package/dist/external/ihe/shared.d.ts +8 -0
  70. package/dist/external/ihe/shared.d.ts.map +1 -0
  71. package/dist/external/ihe/shared.js +25 -0
  72. package/dist/external/ihe/shared.js.map +1 -0
  73. package/dist/external/index.d.ts +1 -0
  74. package/dist/external/index.d.ts.map +1 -1
  75. package/dist/external/index.js +1 -0
  76. package/dist/external/index.js.map +1 -1
  77. package/dist/index.d.ts +3 -3
  78. package/dist/index.d.ts.map +1 -1
  79. package/dist/index.js +3 -3
  80. package/dist/index.js.map +1 -1
  81. package/dist/interface/external/ehr/athenahealth/cx-mapping.d.ts +5 -1
  82. package/dist/interface/external/ehr/athenahealth/cx-mapping.d.ts.map +1 -1
  83. package/dist/interface/external/ehr/athenahealth/cx-mapping.js +2 -1
  84. package/dist/interface/external/ehr/athenahealth/cx-mapping.js.map +1 -1
  85. package/dist/interface/external/ehr/canvas/cx-mapping.d.ts +6 -2
  86. package/dist/interface/external/ehr/canvas/cx-mapping.d.ts.map +1 -1
  87. package/dist/interface/external/ehr/canvas/cx-mapping.js +2 -1
  88. package/dist/interface/external/ehr/canvas/cx-mapping.js.map +1 -1
  89. package/dist/interface/external/ehr/eclinicalworks/cx-mapping.d.ts +465 -0
  90. package/dist/interface/external/ehr/eclinicalworks/cx-mapping.d.ts.map +1 -0
  91. package/dist/interface/external/ehr/eclinicalworks/cx-mapping.js +10 -0
  92. package/dist/interface/external/ehr/eclinicalworks/cx-mapping.js.map +1 -0
  93. package/dist/interface/external/ehr/elation/cx-mapping.d.ts +5 -1
  94. package/dist/interface/external/ehr/elation/cx-mapping.d.ts.map +1 -1
  95. package/dist/interface/external/ehr/elation/cx-mapping.js +2 -1
  96. package/dist/interface/external/ehr/elation/cx-mapping.js.map +1 -1
  97. package/dist/interface/external/ehr/embed/jwt-token.d.ts +2 -2
  98. package/dist/interface/external/ehr/healthie/cx-mapping.d.ts +5 -1
  99. package/dist/interface/external/ehr/healthie/cx-mapping.d.ts.map +1 -1
  100. package/dist/interface/external/ehr/healthie/cx-mapping.js +2 -1
  101. package/dist/interface/external/ehr/healthie/cx-mapping.js.map +1 -1
  102. package/dist/interface/external/ehr/healthie/medication.d.ts +8 -8
  103. package/dist/interface/external/ehr/practicefusion/allergy.d.ts +16 -0
  104. package/dist/interface/external/ehr/practicefusion/allergy.d.ts.map +1 -0
  105. package/dist/interface/external/ehr/practicefusion/allergy.js +39 -0
  106. package/dist/interface/external/ehr/practicefusion/allergy.js.map +1 -0
  107. package/dist/interface/external/ehr/practicefusion/appointment.d.ts +137 -0
  108. package/dist/interface/external/ehr/practicefusion/appointment.d.ts.map +1 -0
  109. package/dist/interface/external/ehr/practicefusion/appointment.js +29 -0
  110. package/dist/interface/external/ehr/practicefusion/appointment.js.map +1 -0
  111. package/dist/interface/external/ehr/practicefusion/condition.d.ts +17 -0
  112. package/dist/interface/external/ehr/practicefusion/condition.d.ts.map +1 -0
  113. package/dist/interface/external/ehr/practicefusion/condition.js +13 -0
  114. package/dist/interface/external/ehr/practicefusion/condition.js.map +1 -0
  115. package/dist/interface/external/ehr/practicefusion/cx-mapping.d.ts +472 -0
  116. package/dist/interface/external/ehr/practicefusion/cx-mapping.d.ts.map +1 -0
  117. package/dist/interface/external/ehr/practicefusion/cx-mapping.js +13 -0
  118. package/dist/interface/external/ehr/practicefusion/cx-mapping.js.map +1 -0
  119. package/dist/interface/external/ehr/practicefusion/fhir-resources.d.ts +8 -0
  120. package/dist/interface/external/ehr/practicefusion/fhir-resources.d.ts.map +1 -0
  121. package/dist/interface/external/ehr/practicefusion/fhir-resources.js +3 -0
  122. package/dist/interface/external/ehr/practicefusion/fhir-resources.js.map +1 -0
  123. package/dist/interface/external/ehr/practicefusion/index.d.ts +2 -0
  124. package/dist/interface/external/ehr/practicefusion/index.d.ts.map +1 -1
  125. package/dist/interface/external/ehr/practicefusion/index.js +2 -0
  126. package/dist/interface/external/ehr/practicefusion/index.js.map +1 -1
  127. package/dist/interface/external/ehr/practicefusion/jwt-token.d.ts +15 -3
  128. package/dist/interface/external/ehr/practicefusion/jwt-token.d.ts.map +1 -1
  129. package/dist/interface/external/ehr/practicefusion/jwt-token.js +8 -2
  130. package/dist/interface/external/ehr/practicefusion/jwt-token.js.map +1 -1
  131. package/dist/interface/external/ehr/practicefusion/medication.d.ts +17 -0
  132. package/dist/interface/external/ehr/practicefusion/medication.d.ts.map +1 -0
  133. package/dist/interface/external/ehr/practicefusion/medication.js +13 -0
  134. package/dist/interface/external/ehr/practicefusion/medication.js.map +1 -0
  135. package/dist/interface/external/ehr/practicefusion/refresh-token.d.ts +19 -0
  136. package/dist/interface/external/ehr/practicefusion/refresh-token.d.ts.map +1 -0
  137. package/dist/interface/external/ehr/practicefusion/refresh-token.js +11 -0
  138. package/dist/interface/external/ehr/practicefusion/refresh-token.js.map +1 -0
  139. package/dist/interface/external/ehr/practicefusion/write-back.d.ts +47 -0
  140. package/dist/interface/external/ehr/practicefusion/write-back.d.ts.map +1 -0
  141. package/dist/interface/external/ehr/practicefusion/write-back.js +29 -0
  142. package/dist/interface/external/ehr/practicefusion/write-back.js.map +1 -0
  143. package/dist/interface/external/ehr/salesforce/cx-mapping.d.ts +465 -0
  144. package/dist/interface/external/ehr/salesforce/cx-mapping.d.ts.map +1 -0
  145. package/dist/interface/external/ehr/salesforce/cx-mapping.js +10 -0
  146. package/dist/interface/external/ehr/salesforce/cx-mapping.js.map +1 -0
  147. package/dist/interface/external/ehr/shared.d.ts +8 -0
  148. package/dist/interface/external/ehr/shared.d.ts.map +1 -1
  149. package/dist/interface/external/ehr/shared.js +4 -1
  150. package/dist/interface/external/ehr/shared.js.map +1 -1
  151. package/dist/interface/external/ehr/source.d.ts +2 -0
  152. package/dist/interface/external/ehr/source.d.ts.map +1 -1
  153. package/dist/interface/external/ehr/source.js +6 -1
  154. package/dist/interface/external/ehr/source.js.map +1 -1
  155. package/dist/interface/external/index.d.ts +1 -0
  156. package/dist/interface/external/index.d.ts.map +1 -1
  157. package/dist/interface/external/index.js +1 -0
  158. package/dist/interface/external/index.js.map +1 -1
  159. package/dist/interface/external/surescripts/index.d.ts +2 -0
  160. package/dist/interface/external/surescripts/index.d.ts.map +1 -1
  161. package/dist/interface/external/surescripts/index.js +2 -0
  162. package/dist/interface/external/surescripts/index.js.map +1 -1
  163. package/dist/interface/internal/cohort.d.ts +1000 -0
  164. package/dist/interface/internal/cohort.d.ts.map +1 -0
  165. package/dist/interface/internal/cohort.js +62 -0
  166. package/dist/interface/internal/cohort.js.map +1 -0
  167. package/dist/interface/internal/document-query.d.ts +31 -0
  168. package/dist/interface/internal/document-query.d.ts.map +1 -0
  169. package/dist/interface/internal/document-query.js +21 -0
  170. package/dist/interface/internal/document-query.js.map +1 -0
  171. package/dist/interface/internal/index.d.ts +2 -0
  172. package/dist/interface/internal/index.d.ts.map +1 -1
  173. package/dist/interface/internal/index.js +2 -0
  174. package/dist/interface/internal/index.js.map +1 -1
  175. package/dist/medical/fhir/constants.d.ts +1 -0
  176. package/dist/medical/fhir/constants.d.ts.map +1 -1
  177. package/dist/medical/fhir/constants.js +2 -1
  178. package/dist/medical/fhir/constants.js.map +1 -1
  179. package/dist/medical/webhook/webhook-request.d.ts +683 -2
  180. package/dist/medical/webhook/webhook-request.d.ts.map +1 -1
  181. package/dist/medical/webhook/webhook-request.js +57 -2
  182. package/dist/medical/webhook/webhook-request.js.map +1 -1
  183. package/dist/net/axios.d.ts +3 -0
  184. package/dist/net/axios.d.ts.map +1 -0
  185. package/dist/net/axios.js +21 -0
  186. package/dist/net/axios.js.map +1 -0
  187. package/dist/net/http.d.ts +25 -0
  188. package/dist/net/http.d.ts.map +1 -0
  189. package/dist/net/http.js +76 -0
  190. package/dist/net/http.js.map +1 -0
  191. package/dist/net/index.d.ts +6 -0
  192. package/dist/net/index.d.ts.map +1 -0
  193. package/dist/net/index.js +22 -0
  194. package/dist/net/index.js.map +1 -0
  195. package/dist/net/retry.d.ts +1 -0
  196. package/dist/net/retry.d.ts.map +1 -1
  197. package/dist/net/retry.js +8 -1
  198. package/dist/net/retry.js.map +1 -1
  199. package/dist/util/duration.d.ts +1 -0
  200. package/dist/util/duration.d.ts.map +1 -1
  201. package/dist/util/duration.js +15 -1
  202. package/dist/util/duration.js.map +1 -1
  203. package/dist/util/zod.d.ts +2 -0
  204. package/dist/util/zod.d.ts.map +1 -1
  205. package/dist/util/zod.js +10 -1
  206. package/dist/util/zod.js.map +1 -1
  207. package/package.json +6 -2
@@ -0,0 +1,1000 @@
1
+ import z from "zod";
2
+ declare const cohortSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ eTag: z.ZodString;
5
+ name: z.ZodString;
6
+ color: z.ZodEnum<["red", "green", "blue", "yellow", "purple", "orange", "pink", "brown", "gray", "black", "white"]>;
7
+ description: z.ZodString;
8
+ settings: z.ZodObject<{
9
+ monitoring: z.ZodObject<{
10
+ adt: z.ZodObject<{
11
+ enabled: z.ZodBoolean;
12
+ }, "strip", z.ZodTypeAny, {
13
+ enabled: boolean;
14
+ }, {
15
+ enabled: boolean;
16
+ }>;
17
+ hie: z.ZodObject<{
18
+ enabled: z.ZodBoolean;
19
+ frequency: z.ZodEnum<["weekly", "biweekly", "monthly"]>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ enabled: boolean;
22
+ frequency: "weekly" | "biweekly" | "monthly";
23
+ }, {
24
+ enabled: boolean;
25
+ frequency: "weekly" | "biweekly" | "monthly";
26
+ }>;
27
+ pharmacy: z.ZodObject<{
28
+ notifications: z.ZodBoolean;
29
+ schedule: z.ZodObject<{
30
+ enabled: z.ZodBoolean;
31
+ frequency: z.ZodEnum<["weekly", "biweekly", "monthly"]>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ enabled: boolean;
34
+ frequency: "weekly" | "biweekly" | "monthly";
35
+ }, {
36
+ enabled: boolean;
37
+ frequency: "weekly" | "biweekly" | "monthly";
38
+ }>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ notifications: boolean;
41
+ schedule: {
42
+ enabled: boolean;
43
+ frequency: "weekly" | "biweekly" | "monthly";
44
+ };
45
+ }, {
46
+ notifications: boolean;
47
+ schedule: {
48
+ enabled: boolean;
49
+ frequency: "weekly" | "biweekly" | "monthly";
50
+ };
51
+ }>;
52
+ laboratory: z.ZodObject<{
53
+ notifications: z.ZodBoolean;
54
+ }, "strip", z.ZodTypeAny, {
55
+ notifications: boolean;
56
+ }, {
57
+ notifications: boolean;
58
+ }>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ adt: {
61
+ enabled: boolean;
62
+ };
63
+ pharmacy: {
64
+ notifications: boolean;
65
+ schedule: {
66
+ enabled: boolean;
67
+ frequency: "weekly" | "biweekly" | "monthly";
68
+ };
69
+ };
70
+ hie: {
71
+ enabled: boolean;
72
+ frequency: "weekly" | "biweekly" | "monthly";
73
+ };
74
+ laboratory: {
75
+ notifications: boolean;
76
+ };
77
+ }, {
78
+ adt: {
79
+ enabled: boolean;
80
+ };
81
+ pharmacy: {
82
+ notifications: boolean;
83
+ schedule: {
84
+ enabled: boolean;
85
+ frequency: "weekly" | "biweekly" | "monthly";
86
+ };
87
+ };
88
+ hie: {
89
+ enabled: boolean;
90
+ frequency: "weekly" | "biweekly" | "monthly";
91
+ };
92
+ laboratory: {
93
+ notifications: boolean;
94
+ };
95
+ }>;
96
+ overrides: z.ZodRecord<z.ZodString, z.ZodBoolean>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ overrides: Record<string, boolean>;
99
+ monitoring: {
100
+ adt: {
101
+ enabled: boolean;
102
+ };
103
+ pharmacy: {
104
+ notifications: boolean;
105
+ schedule: {
106
+ enabled: boolean;
107
+ frequency: "weekly" | "biweekly" | "monthly";
108
+ };
109
+ };
110
+ hie: {
111
+ enabled: boolean;
112
+ frequency: "weekly" | "biweekly" | "monthly";
113
+ };
114
+ laboratory: {
115
+ notifications: boolean;
116
+ };
117
+ };
118
+ }, {
119
+ overrides: Record<string, boolean>;
120
+ monitoring: {
121
+ adt: {
122
+ enabled: boolean;
123
+ };
124
+ pharmacy: {
125
+ notifications: boolean;
126
+ schedule: {
127
+ enabled: boolean;
128
+ frequency: "weekly" | "biweekly" | "monthly";
129
+ };
130
+ };
131
+ hie: {
132
+ enabled: boolean;
133
+ frequency: "weekly" | "biweekly" | "monthly";
134
+ };
135
+ laboratory: {
136
+ notifications: boolean;
137
+ };
138
+ };
139
+ }>;
140
+ cxId: z.ZodString;
141
+ createdAt: z.ZodDate;
142
+ updatedAt: z.ZodDate;
143
+ }, "strip", z.ZodTypeAny, {
144
+ name: string;
145
+ id: string;
146
+ eTag: string;
147
+ createdAt: Date;
148
+ updatedAt: Date;
149
+ color: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "pink" | "brown" | "gray" | "black" | "white";
150
+ description: string;
151
+ settings: {
152
+ overrides: Record<string, boolean>;
153
+ monitoring: {
154
+ adt: {
155
+ enabled: boolean;
156
+ };
157
+ pharmacy: {
158
+ notifications: boolean;
159
+ schedule: {
160
+ enabled: boolean;
161
+ frequency: "weekly" | "biweekly" | "monthly";
162
+ };
163
+ };
164
+ hie: {
165
+ enabled: boolean;
166
+ frequency: "weekly" | "biweekly" | "monthly";
167
+ };
168
+ laboratory: {
169
+ notifications: boolean;
170
+ };
171
+ };
172
+ };
173
+ cxId: string;
174
+ }, {
175
+ name: string;
176
+ id: string;
177
+ eTag: string;
178
+ createdAt: Date;
179
+ updatedAt: Date;
180
+ color: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "pink" | "brown" | "gray" | "black" | "white";
181
+ description: string;
182
+ settings: {
183
+ overrides: Record<string, boolean>;
184
+ monitoring: {
185
+ adt: {
186
+ enabled: boolean;
187
+ };
188
+ pharmacy: {
189
+ notifications: boolean;
190
+ schedule: {
191
+ enabled: boolean;
192
+ frequency: "weekly" | "biweekly" | "monthly";
193
+ };
194
+ };
195
+ hie: {
196
+ enabled: boolean;
197
+ frequency: "weekly" | "biweekly" | "monthly";
198
+ };
199
+ laboratory: {
200
+ notifications: boolean;
201
+ };
202
+ };
203
+ };
204
+ cxId: string;
205
+ }>;
206
+ export type InternalCohortResponse = z.infer<typeof cohortSchema>;
207
+ export declare const internalCohortsResponseSchema: z.ZodObject<{
208
+ cohorts: z.ZodArray<z.ZodObject<{
209
+ id: z.ZodString;
210
+ eTag: z.ZodString;
211
+ name: z.ZodString;
212
+ color: z.ZodEnum<["red", "green", "blue", "yellow", "purple", "orange", "pink", "brown", "gray", "black", "white"]>;
213
+ description: z.ZodString;
214
+ settings: z.ZodObject<{
215
+ monitoring: z.ZodObject<{
216
+ adt: z.ZodObject<{
217
+ enabled: z.ZodBoolean;
218
+ }, "strip", z.ZodTypeAny, {
219
+ enabled: boolean;
220
+ }, {
221
+ enabled: boolean;
222
+ }>;
223
+ hie: z.ZodObject<{
224
+ enabled: z.ZodBoolean;
225
+ frequency: z.ZodEnum<["weekly", "biweekly", "monthly"]>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ enabled: boolean;
228
+ frequency: "weekly" | "biweekly" | "monthly";
229
+ }, {
230
+ enabled: boolean;
231
+ frequency: "weekly" | "biweekly" | "monthly";
232
+ }>;
233
+ pharmacy: z.ZodObject<{
234
+ notifications: z.ZodBoolean;
235
+ schedule: z.ZodObject<{
236
+ enabled: z.ZodBoolean;
237
+ frequency: z.ZodEnum<["weekly", "biweekly", "monthly"]>;
238
+ }, "strip", z.ZodTypeAny, {
239
+ enabled: boolean;
240
+ frequency: "weekly" | "biweekly" | "monthly";
241
+ }, {
242
+ enabled: boolean;
243
+ frequency: "weekly" | "biweekly" | "monthly";
244
+ }>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ notifications: boolean;
247
+ schedule: {
248
+ enabled: boolean;
249
+ frequency: "weekly" | "biweekly" | "monthly";
250
+ };
251
+ }, {
252
+ notifications: boolean;
253
+ schedule: {
254
+ enabled: boolean;
255
+ frequency: "weekly" | "biweekly" | "monthly";
256
+ };
257
+ }>;
258
+ laboratory: z.ZodObject<{
259
+ notifications: z.ZodBoolean;
260
+ }, "strip", z.ZodTypeAny, {
261
+ notifications: boolean;
262
+ }, {
263
+ notifications: boolean;
264
+ }>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ adt: {
267
+ enabled: boolean;
268
+ };
269
+ pharmacy: {
270
+ notifications: boolean;
271
+ schedule: {
272
+ enabled: boolean;
273
+ frequency: "weekly" | "biweekly" | "monthly";
274
+ };
275
+ };
276
+ hie: {
277
+ enabled: boolean;
278
+ frequency: "weekly" | "biweekly" | "monthly";
279
+ };
280
+ laboratory: {
281
+ notifications: boolean;
282
+ };
283
+ }, {
284
+ adt: {
285
+ enabled: boolean;
286
+ };
287
+ pharmacy: {
288
+ notifications: boolean;
289
+ schedule: {
290
+ enabled: boolean;
291
+ frequency: "weekly" | "biweekly" | "monthly";
292
+ };
293
+ };
294
+ hie: {
295
+ enabled: boolean;
296
+ frequency: "weekly" | "biweekly" | "monthly";
297
+ };
298
+ laboratory: {
299
+ notifications: boolean;
300
+ };
301
+ }>;
302
+ overrides: z.ZodRecord<z.ZodString, z.ZodBoolean>;
303
+ }, "strip", z.ZodTypeAny, {
304
+ overrides: Record<string, boolean>;
305
+ monitoring: {
306
+ adt: {
307
+ enabled: boolean;
308
+ };
309
+ pharmacy: {
310
+ notifications: boolean;
311
+ schedule: {
312
+ enabled: boolean;
313
+ frequency: "weekly" | "biweekly" | "monthly";
314
+ };
315
+ };
316
+ hie: {
317
+ enabled: boolean;
318
+ frequency: "weekly" | "biweekly" | "monthly";
319
+ };
320
+ laboratory: {
321
+ notifications: boolean;
322
+ };
323
+ };
324
+ }, {
325
+ overrides: Record<string, boolean>;
326
+ monitoring: {
327
+ adt: {
328
+ enabled: boolean;
329
+ };
330
+ pharmacy: {
331
+ notifications: boolean;
332
+ schedule: {
333
+ enabled: boolean;
334
+ frequency: "weekly" | "biweekly" | "monthly";
335
+ };
336
+ };
337
+ hie: {
338
+ enabled: boolean;
339
+ frequency: "weekly" | "biweekly" | "monthly";
340
+ };
341
+ laboratory: {
342
+ notifications: boolean;
343
+ };
344
+ };
345
+ }>;
346
+ cxId: z.ZodString;
347
+ createdAt: z.ZodDate;
348
+ updatedAt: z.ZodDate;
349
+ }, "strip", z.ZodTypeAny, {
350
+ name: string;
351
+ id: string;
352
+ eTag: string;
353
+ createdAt: Date;
354
+ updatedAt: Date;
355
+ color: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "pink" | "brown" | "gray" | "black" | "white";
356
+ description: string;
357
+ settings: {
358
+ overrides: Record<string, boolean>;
359
+ monitoring: {
360
+ adt: {
361
+ enabled: boolean;
362
+ };
363
+ pharmacy: {
364
+ notifications: boolean;
365
+ schedule: {
366
+ enabled: boolean;
367
+ frequency: "weekly" | "biweekly" | "monthly";
368
+ };
369
+ };
370
+ hie: {
371
+ enabled: boolean;
372
+ frequency: "weekly" | "biweekly" | "monthly";
373
+ };
374
+ laboratory: {
375
+ notifications: boolean;
376
+ };
377
+ };
378
+ };
379
+ cxId: string;
380
+ }, {
381
+ name: string;
382
+ id: string;
383
+ eTag: string;
384
+ createdAt: Date;
385
+ updatedAt: Date;
386
+ color: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "pink" | "brown" | "gray" | "black" | "white";
387
+ description: string;
388
+ settings: {
389
+ overrides: Record<string, boolean>;
390
+ monitoring: {
391
+ adt: {
392
+ enabled: boolean;
393
+ };
394
+ pharmacy: {
395
+ notifications: boolean;
396
+ schedule: {
397
+ enabled: boolean;
398
+ frequency: "weekly" | "biweekly" | "monthly";
399
+ };
400
+ };
401
+ hie: {
402
+ enabled: boolean;
403
+ frequency: "weekly" | "biweekly" | "monthly";
404
+ };
405
+ laboratory: {
406
+ notifications: boolean;
407
+ };
408
+ };
409
+ };
410
+ cxId: string;
411
+ }>, "many">;
412
+ }, "strip", z.ZodTypeAny, {
413
+ cohorts: {
414
+ name: string;
415
+ id: string;
416
+ eTag: string;
417
+ createdAt: Date;
418
+ updatedAt: Date;
419
+ color: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "pink" | "brown" | "gray" | "black" | "white";
420
+ description: string;
421
+ settings: {
422
+ overrides: Record<string, boolean>;
423
+ monitoring: {
424
+ adt: {
425
+ enabled: boolean;
426
+ };
427
+ pharmacy: {
428
+ notifications: boolean;
429
+ schedule: {
430
+ enabled: boolean;
431
+ frequency: "weekly" | "biweekly" | "monthly";
432
+ };
433
+ };
434
+ hie: {
435
+ enabled: boolean;
436
+ frequency: "weekly" | "biweekly" | "monthly";
437
+ };
438
+ laboratory: {
439
+ notifications: boolean;
440
+ };
441
+ };
442
+ };
443
+ cxId: string;
444
+ }[];
445
+ }, {
446
+ cohorts: {
447
+ name: string;
448
+ id: string;
449
+ eTag: string;
450
+ createdAt: Date;
451
+ updatedAt: Date;
452
+ color: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "pink" | "brown" | "gray" | "black" | "white";
453
+ description: string;
454
+ settings: {
455
+ overrides: Record<string, boolean>;
456
+ monitoring: {
457
+ adt: {
458
+ enabled: boolean;
459
+ };
460
+ pharmacy: {
461
+ notifications: boolean;
462
+ schedule: {
463
+ enabled: boolean;
464
+ frequency: "weekly" | "biweekly" | "monthly";
465
+ };
466
+ };
467
+ hie: {
468
+ enabled: boolean;
469
+ frequency: "weekly" | "biweekly" | "monthly";
470
+ };
471
+ laboratory: {
472
+ notifications: boolean;
473
+ };
474
+ };
475
+ };
476
+ cxId: string;
477
+ }[];
478
+ }>;
479
+ export type InternalCohortsResponse = z.infer<typeof internalCohortsResponseSchema>;
480
+ export declare const internalCohortWithSizeResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
481
+ id: z.ZodString;
482
+ eTag: z.ZodString;
483
+ name: z.ZodString;
484
+ color: z.ZodEnum<["red", "green", "blue", "yellow", "purple", "orange", "pink", "brown", "gray", "black", "white"]>;
485
+ description: z.ZodString;
486
+ settings: z.ZodObject<{
487
+ monitoring: z.ZodObject<{
488
+ adt: z.ZodObject<{
489
+ enabled: z.ZodBoolean;
490
+ }, "strip", z.ZodTypeAny, {
491
+ enabled: boolean;
492
+ }, {
493
+ enabled: boolean;
494
+ }>;
495
+ hie: z.ZodObject<{
496
+ enabled: z.ZodBoolean;
497
+ frequency: z.ZodEnum<["weekly", "biweekly", "monthly"]>;
498
+ }, "strip", z.ZodTypeAny, {
499
+ enabled: boolean;
500
+ frequency: "weekly" | "biweekly" | "monthly";
501
+ }, {
502
+ enabled: boolean;
503
+ frequency: "weekly" | "biweekly" | "monthly";
504
+ }>;
505
+ pharmacy: z.ZodObject<{
506
+ notifications: z.ZodBoolean;
507
+ schedule: z.ZodObject<{
508
+ enabled: z.ZodBoolean;
509
+ frequency: z.ZodEnum<["weekly", "biweekly", "monthly"]>;
510
+ }, "strip", z.ZodTypeAny, {
511
+ enabled: boolean;
512
+ frequency: "weekly" | "biweekly" | "monthly";
513
+ }, {
514
+ enabled: boolean;
515
+ frequency: "weekly" | "biweekly" | "monthly";
516
+ }>;
517
+ }, "strip", z.ZodTypeAny, {
518
+ notifications: boolean;
519
+ schedule: {
520
+ enabled: boolean;
521
+ frequency: "weekly" | "biweekly" | "monthly";
522
+ };
523
+ }, {
524
+ notifications: boolean;
525
+ schedule: {
526
+ enabled: boolean;
527
+ frequency: "weekly" | "biweekly" | "monthly";
528
+ };
529
+ }>;
530
+ laboratory: z.ZodObject<{
531
+ notifications: z.ZodBoolean;
532
+ }, "strip", z.ZodTypeAny, {
533
+ notifications: boolean;
534
+ }, {
535
+ notifications: boolean;
536
+ }>;
537
+ }, "strip", z.ZodTypeAny, {
538
+ adt: {
539
+ enabled: boolean;
540
+ };
541
+ pharmacy: {
542
+ notifications: boolean;
543
+ schedule: {
544
+ enabled: boolean;
545
+ frequency: "weekly" | "biweekly" | "monthly";
546
+ };
547
+ };
548
+ hie: {
549
+ enabled: boolean;
550
+ frequency: "weekly" | "biweekly" | "monthly";
551
+ };
552
+ laboratory: {
553
+ notifications: boolean;
554
+ };
555
+ }, {
556
+ adt: {
557
+ enabled: boolean;
558
+ };
559
+ pharmacy: {
560
+ notifications: boolean;
561
+ schedule: {
562
+ enabled: boolean;
563
+ frequency: "weekly" | "biweekly" | "monthly";
564
+ };
565
+ };
566
+ hie: {
567
+ enabled: boolean;
568
+ frequency: "weekly" | "biweekly" | "monthly";
569
+ };
570
+ laboratory: {
571
+ notifications: boolean;
572
+ };
573
+ }>;
574
+ overrides: z.ZodRecord<z.ZodString, z.ZodBoolean>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ overrides: Record<string, boolean>;
577
+ monitoring: {
578
+ adt: {
579
+ enabled: boolean;
580
+ };
581
+ pharmacy: {
582
+ notifications: boolean;
583
+ schedule: {
584
+ enabled: boolean;
585
+ frequency: "weekly" | "biweekly" | "monthly";
586
+ };
587
+ };
588
+ hie: {
589
+ enabled: boolean;
590
+ frequency: "weekly" | "biweekly" | "monthly";
591
+ };
592
+ laboratory: {
593
+ notifications: boolean;
594
+ };
595
+ };
596
+ }, {
597
+ overrides: Record<string, boolean>;
598
+ monitoring: {
599
+ adt: {
600
+ enabled: boolean;
601
+ };
602
+ pharmacy: {
603
+ notifications: boolean;
604
+ schedule: {
605
+ enabled: boolean;
606
+ frequency: "weekly" | "biweekly" | "monthly";
607
+ };
608
+ };
609
+ hie: {
610
+ enabled: boolean;
611
+ frequency: "weekly" | "biweekly" | "monthly";
612
+ };
613
+ laboratory: {
614
+ notifications: boolean;
615
+ };
616
+ };
617
+ }>;
618
+ cxId: z.ZodString;
619
+ createdAt: z.ZodDate;
620
+ updatedAt: z.ZodDate;
621
+ }, {
622
+ size: z.ZodNumber;
623
+ }>, "strip", z.ZodTypeAny, {
624
+ name: string;
625
+ id: string;
626
+ eTag: string;
627
+ createdAt: Date;
628
+ updatedAt: Date;
629
+ color: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "pink" | "brown" | "gray" | "black" | "white";
630
+ description: string;
631
+ settings: {
632
+ overrides: Record<string, boolean>;
633
+ monitoring: {
634
+ adt: {
635
+ enabled: boolean;
636
+ };
637
+ pharmacy: {
638
+ notifications: boolean;
639
+ schedule: {
640
+ enabled: boolean;
641
+ frequency: "weekly" | "biweekly" | "monthly";
642
+ };
643
+ };
644
+ hie: {
645
+ enabled: boolean;
646
+ frequency: "weekly" | "biweekly" | "monthly";
647
+ };
648
+ laboratory: {
649
+ notifications: boolean;
650
+ };
651
+ };
652
+ };
653
+ cxId: string;
654
+ size: number;
655
+ }, {
656
+ name: string;
657
+ id: string;
658
+ eTag: string;
659
+ createdAt: Date;
660
+ updatedAt: Date;
661
+ color: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "pink" | "brown" | "gray" | "black" | "white";
662
+ description: string;
663
+ settings: {
664
+ overrides: Record<string, boolean>;
665
+ monitoring: {
666
+ adt: {
667
+ enabled: boolean;
668
+ };
669
+ pharmacy: {
670
+ notifications: boolean;
671
+ schedule: {
672
+ enabled: boolean;
673
+ frequency: "weekly" | "biweekly" | "monthly";
674
+ };
675
+ };
676
+ hie: {
677
+ enabled: boolean;
678
+ frequency: "weekly" | "biweekly" | "monthly";
679
+ };
680
+ laboratory: {
681
+ notifications: boolean;
682
+ };
683
+ };
684
+ };
685
+ cxId: string;
686
+ size: number;
687
+ }>;
688
+ export type InternalCohortWithSizeResponse = z.infer<typeof internalCohortWithSizeResponseSchema>;
689
+ export declare const internalCohortsWithSizeResponseSchema: z.ZodObject<{
690
+ cohorts: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
691
+ id: z.ZodString;
692
+ eTag: z.ZodString;
693
+ name: z.ZodString;
694
+ color: z.ZodEnum<["red", "green", "blue", "yellow", "purple", "orange", "pink", "brown", "gray", "black", "white"]>;
695
+ description: z.ZodString;
696
+ settings: z.ZodObject<{
697
+ monitoring: z.ZodObject<{
698
+ adt: z.ZodObject<{
699
+ enabled: z.ZodBoolean;
700
+ }, "strip", z.ZodTypeAny, {
701
+ enabled: boolean;
702
+ }, {
703
+ enabled: boolean;
704
+ }>;
705
+ hie: z.ZodObject<{
706
+ enabled: z.ZodBoolean;
707
+ frequency: z.ZodEnum<["weekly", "biweekly", "monthly"]>;
708
+ }, "strip", z.ZodTypeAny, {
709
+ enabled: boolean;
710
+ frequency: "weekly" | "biweekly" | "monthly";
711
+ }, {
712
+ enabled: boolean;
713
+ frequency: "weekly" | "biweekly" | "monthly";
714
+ }>;
715
+ pharmacy: z.ZodObject<{
716
+ notifications: z.ZodBoolean;
717
+ schedule: z.ZodObject<{
718
+ enabled: z.ZodBoolean;
719
+ frequency: z.ZodEnum<["weekly", "biweekly", "monthly"]>;
720
+ }, "strip", z.ZodTypeAny, {
721
+ enabled: boolean;
722
+ frequency: "weekly" | "biweekly" | "monthly";
723
+ }, {
724
+ enabled: boolean;
725
+ frequency: "weekly" | "biweekly" | "monthly";
726
+ }>;
727
+ }, "strip", z.ZodTypeAny, {
728
+ notifications: boolean;
729
+ schedule: {
730
+ enabled: boolean;
731
+ frequency: "weekly" | "biweekly" | "monthly";
732
+ };
733
+ }, {
734
+ notifications: boolean;
735
+ schedule: {
736
+ enabled: boolean;
737
+ frequency: "weekly" | "biweekly" | "monthly";
738
+ };
739
+ }>;
740
+ laboratory: z.ZodObject<{
741
+ notifications: z.ZodBoolean;
742
+ }, "strip", z.ZodTypeAny, {
743
+ notifications: boolean;
744
+ }, {
745
+ notifications: boolean;
746
+ }>;
747
+ }, "strip", z.ZodTypeAny, {
748
+ adt: {
749
+ enabled: boolean;
750
+ };
751
+ pharmacy: {
752
+ notifications: boolean;
753
+ schedule: {
754
+ enabled: boolean;
755
+ frequency: "weekly" | "biweekly" | "monthly";
756
+ };
757
+ };
758
+ hie: {
759
+ enabled: boolean;
760
+ frequency: "weekly" | "biweekly" | "monthly";
761
+ };
762
+ laboratory: {
763
+ notifications: boolean;
764
+ };
765
+ }, {
766
+ adt: {
767
+ enabled: boolean;
768
+ };
769
+ pharmacy: {
770
+ notifications: boolean;
771
+ schedule: {
772
+ enabled: boolean;
773
+ frequency: "weekly" | "biweekly" | "monthly";
774
+ };
775
+ };
776
+ hie: {
777
+ enabled: boolean;
778
+ frequency: "weekly" | "biweekly" | "monthly";
779
+ };
780
+ laboratory: {
781
+ notifications: boolean;
782
+ };
783
+ }>;
784
+ overrides: z.ZodRecord<z.ZodString, z.ZodBoolean>;
785
+ }, "strip", z.ZodTypeAny, {
786
+ overrides: Record<string, boolean>;
787
+ monitoring: {
788
+ adt: {
789
+ enabled: boolean;
790
+ };
791
+ pharmacy: {
792
+ notifications: boolean;
793
+ schedule: {
794
+ enabled: boolean;
795
+ frequency: "weekly" | "biweekly" | "monthly";
796
+ };
797
+ };
798
+ hie: {
799
+ enabled: boolean;
800
+ frequency: "weekly" | "biweekly" | "monthly";
801
+ };
802
+ laboratory: {
803
+ notifications: boolean;
804
+ };
805
+ };
806
+ }, {
807
+ overrides: Record<string, boolean>;
808
+ monitoring: {
809
+ adt: {
810
+ enabled: boolean;
811
+ };
812
+ pharmacy: {
813
+ notifications: boolean;
814
+ schedule: {
815
+ enabled: boolean;
816
+ frequency: "weekly" | "biweekly" | "monthly";
817
+ };
818
+ };
819
+ hie: {
820
+ enabled: boolean;
821
+ frequency: "weekly" | "biweekly" | "monthly";
822
+ };
823
+ laboratory: {
824
+ notifications: boolean;
825
+ };
826
+ };
827
+ }>;
828
+ cxId: z.ZodString;
829
+ createdAt: z.ZodDate;
830
+ updatedAt: z.ZodDate;
831
+ }, {
832
+ size: z.ZodNumber;
833
+ }>, "strip", z.ZodTypeAny, {
834
+ name: string;
835
+ id: string;
836
+ eTag: string;
837
+ createdAt: Date;
838
+ updatedAt: Date;
839
+ color: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "pink" | "brown" | "gray" | "black" | "white";
840
+ description: string;
841
+ settings: {
842
+ overrides: Record<string, boolean>;
843
+ monitoring: {
844
+ adt: {
845
+ enabled: boolean;
846
+ };
847
+ pharmacy: {
848
+ notifications: boolean;
849
+ schedule: {
850
+ enabled: boolean;
851
+ frequency: "weekly" | "biweekly" | "monthly";
852
+ };
853
+ };
854
+ hie: {
855
+ enabled: boolean;
856
+ frequency: "weekly" | "biweekly" | "monthly";
857
+ };
858
+ laboratory: {
859
+ notifications: boolean;
860
+ };
861
+ };
862
+ };
863
+ cxId: string;
864
+ size: number;
865
+ }, {
866
+ name: string;
867
+ id: string;
868
+ eTag: string;
869
+ createdAt: Date;
870
+ updatedAt: Date;
871
+ color: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "pink" | "brown" | "gray" | "black" | "white";
872
+ description: string;
873
+ settings: {
874
+ overrides: Record<string, boolean>;
875
+ monitoring: {
876
+ adt: {
877
+ enabled: boolean;
878
+ };
879
+ pharmacy: {
880
+ notifications: boolean;
881
+ schedule: {
882
+ enabled: boolean;
883
+ frequency: "weekly" | "biweekly" | "monthly";
884
+ };
885
+ };
886
+ hie: {
887
+ enabled: boolean;
888
+ frequency: "weekly" | "biweekly" | "monthly";
889
+ };
890
+ laboratory: {
891
+ notifications: boolean;
892
+ };
893
+ };
894
+ };
895
+ cxId: string;
896
+ size: number;
897
+ }>, "many">;
898
+ }, "strip", z.ZodTypeAny, {
899
+ cohorts: {
900
+ name: string;
901
+ id: string;
902
+ eTag: string;
903
+ createdAt: Date;
904
+ updatedAt: Date;
905
+ color: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "pink" | "brown" | "gray" | "black" | "white";
906
+ description: string;
907
+ settings: {
908
+ overrides: Record<string, boolean>;
909
+ monitoring: {
910
+ adt: {
911
+ enabled: boolean;
912
+ };
913
+ pharmacy: {
914
+ notifications: boolean;
915
+ schedule: {
916
+ enabled: boolean;
917
+ frequency: "weekly" | "biweekly" | "monthly";
918
+ };
919
+ };
920
+ hie: {
921
+ enabled: boolean;
922
+ frequency: "weekly" | "biweekly" | "monthly";
923
+ };
924
+ laboratory: {
925
+ notifications: boolean;
926
+ };
927
+ };
928
+ };
929
+ cxId: string;
930
+ size: number;
931
+ }[];
932
+ }, {
933
+ cohorts: {
934
+ name: string;
935
+ id: string;
936
+ eTag: string;
937
+ createdAt: Date;
938
+ updatedAt: Date;
939
+ color: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "pink" | "brown" | "gray" | "black" | "white";
940
+ description: string;
941
+ settings: {
942
+ overrides: Record<string, boolean>;
943
+ monitoring: {
944
+ adt: {
945
+ enabled: boolean;
946
+ };
947
+ pharmacy: {
948
+ notifications: boolean;
949
+ schedule: {
950
+ enabled: boolean;
951
+ frequency: "weekly" | "biweekly" | "monthly";
952
+ };
953
+ };
954
+ hie: {
955
+ enabled: boolean;
956
+ frequency: "weekly" | "biweekly" | "monthly";
957
+ };
958
+ laboratory: {
959
+ notifications: boolean;
960
+ };
961
+ };
962
+ };
963
+ cxId: string;
964
+ size: number;
965
+ }[];
966
+ }>;
967
+ export type InternalCohortsWithSizeResponse = z.infer<typeof internalCohortsWithSizeResponseSchema>;
968
+ export declare const internalCohortPatientsResponseSchema: z.ZodObject<{
969
+ patients: z.ZodArray<z.ZodObject<{
970
+ id: z.ZodString;
971
+ }, "strip", z.ZodTypeAny, {
972
+ id: string;
973
+ }, {
974
+ id: string;
975
+ }>, "many">;
976
+ meta: z.ZodObject<{
977
+ nextPage: z.ZodOptional<z.ZodString>;
978
+ }, "strip", z.ZodTypeAny, {
979
+ nextPage?: string | undefined;
980
+ }, {
981
+ nextPage?: string | undefined;
982
+ }>;
983
+ }, "strip", z.ZodTypeAny, {
984
+ meta: {
985
+ nextPage?: string | undefined;
986
+ };
987
+ patients: {
988
+ id: string;
989
+ }[];
990
+ }, {
991
+ meta: {
992
+ nextPage?: string | undefined;
993
+ };
994
+ patients: {
995
+ id: string;
996
+ }[];
997
+ }>;
998
+ export type InternalCohortPatientsResponse = z.infer<typeof internalCohortPatientsResponseSchema>;
999
+ export {};
1000
+ //# sourceMappingURL=cohort.d.ts.map