@metriport/shared 0.32.4 → 0.33.1-alpha.0

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 (214) hide show
  1. package/dist/common/__tests__/demographics.test.js +59 -3
  2. package/dist/common/__tests__/demographics.test.js.map +1 -1
  3. package/dist/common/__tests__/string.test.js +24 -0
  4. package/dist/common/__tests__/string.test.js.map +1 -1
  5. package/dist/common/demographics.d.ts +2 -2
  6. package/dist/common/demographics.d.ts.map +1 -1
  7. package/dist/common/demographics.js +19 -12
  8. package/dist/common/demographics.js.map +1 -1
  9. package/dist/common/general.d.ts +4 -0
  10. package/dist/common/general.d.ts.map +1 -1
  11. package/dist/common/general.js +8 -1
  12. package/dist/common/general.js.map +1 -1
  13. package/dist/common/purpose-of-use.d.ts +13 -0
  14. package/dist/common/purpose-of-use.d.ts.map +1 -1
  15. package/dist/common/purpose-of-use.js +17 -1
  16. package/dist/common/purpose-of-use.js.map +1 -1
  17. package/dist/common/string.d.ts +6 -0
  18. package/dist/common/string.d.ts.map +1 -1
  19. package/dist/common/string.js +10 -1
  20. package/dist/common/string.js.map +1 -1
  21. package/dist/domain/cohort.d.ts +14 -11
  22. package/dist/domain/cohort.d.ts.map +1 -1
  23. package/dist/domain/cohort.js +11 -8
  24. package/dist/domain/cohort.js.map +1 -1
  25. package/dist/domain/consolidated/recreate/event-type.d.ts +7 -0
  26. package/dist/domain/consolidated/recreate/event-type.d.ts.map +1 -0
  27. package/dist/domain/consolidated/recreate/event-type.js +11 -0
  28. package/dist/domain/consolidated/recreate/event-type.js.map +1 -0
  29. package/dist/domain/consolidated/recreate/index.d.ts +3 -0
  30. package/dist/domain/consolidated/recreate/index.d.ts.map +1 -0
  31. package/dist/domain/consolidated/recreate/index.js +19 -0
  32. package/dist/domain/consolidated/recreate/index.js.map +1 -0
  33. package/dist/domain/consolidated/recreate/supported-event-types.d.ts +7 -0
  34. package/dist/domain/consolidated/recreate/supported-event-types.d.ts.map +1 -0
  35. package/dist/domain/consolidated/recreate/supported-event-types.js +22 -0
  36. package/dist/domain/consolidated/recreate/supported-event-types.js.map +1 -0
  37. package/dist/domain/customer.d.ts +6 -0
  38. package/dist/domain/customer.d.ts.map +1 -1
  39. package/dist/domain/customer.js +6 -1
  40. package/dist/domain/customer.js.map +1 -1
  41. package/dist/domain/db.d.ts +5 -0
  42. package/dist/domain/db.d.ts.map +1 -1
  43. package/dist/domain/db.js +20 -1
  44. package/dist/domain/db.js.map +1 -1
  45. package/dist/domain/network-query/__tests__/source.test.js +13 -13
  46. package/dist/domain/network-query/__tests__/source.test.js.map +1 -1
  47. package/dist/domain/network-query/index.d.ts +1 -0
  48. package/dist/domain/network-query/index.d.ts.map +1 -1
  49. package/dist/domain/network-query/index.js +1 -0
  50. package/dist/domain/network-query/index.js.map +1 -1
  51. package/dist/domain/network-query/query.d.ts +306 -6
  52. package/dist/domain/network-query/query.d.ts.map +1 -1
  53. package/dist/domain/network-query/query.js +6 -2
  54. package/dist/domain/network-query/query.js.map +1 -1
  55. package/dist/domain/network-query/source.d.ts +413 -4
  56. package/dist/domain/network-query/source.d.ts.map +1 -1
  57. package/dist/domain/network-query/source.js +124 -10
  58. package/dist/domain/network-query/source.js.map +1 -1
  59. package/dist/domain/network-query/supported-event-types.d.ts +18 -0
  60. package/dist/domain/network-query/supported-event-types.d.ts.map +1 -0
  61. package/dist/domain/network-query/supported-event-types.js +60 -0
  62. package/dist/domain/network-query/supported-event-types.js.map +1 -0
  63. package/dist/domain/notification-webhooks/index.d.ts +2 -0
  64. package/dist/domain/notification-webhooks/index.d.ts.map +1 -0
  65. package/dist/domain/notification-webhooks/index.js +18 -0
  66. package/dist/domain/notification-webhooks/index.js.map +1 -0
  67. package/dist/domain/notification-webhooks/types.d.ts +29 -0
  68. package/dist/domain/notification-webhooks/types.d.ts.map +1 -0
  69. package/dist/domain/notification-webhooks/types.js +17 -0
  70. package/dist/domain/notification-webhooks/types.js.map +1 -0
  71. package/dist/domain/patient/patient-import/schemas.d.ts +2 -2
  72. package/dist/domain/patient/patient-monitoring/discharge-requery.d.ts +133 -0
  73. package/dist/domain/patient/patient-monitoring/discharge-requery.d.ts.map +1 -1
  74. package/dist/domain/patient/patient-monitoring/discharge-requery.js +10 -0
  75. package/dist/domain/patient/patient-monitoring/discharge-requery.js.map +1 -1
  76. package/dist/domain/patient/patient-monitoring/utils.d.ts +19 -2
  77. package/dist/domain/patient/patient-monitoring/utils.d.ts.map +1 -1
  78. package/dist/domain/patient/patient-monitoring/utils.js +20 -4
  79. package/dist/domain/patient/patient-monitoring/utils.js.map +1 -1
  80. package/dist/domain/rate-limiting/index.d.ts +1 -1
  81. package/dist/domain/rate-limiting/index.d.ts.map +1 -1
  82. package/dist/domain/rate-limiting/index.js +9 -0
  83. package/dist/domain/rate-limiting/index.js.map +1 -1
  84. package/dist/domain/roster/patient-roster-added-by.d.ts +6 -0
  85. package/dist/domain/roster/patient-roster-added-by.d.ts.map +1 -0
  86. package/dist/domain/roster/patient-roster-added-by.js +19 -0
  87. package/dist/domain/roster/patient-roster-added-by.js.map +1 -0
  88. package/dist/domain/roster/patient-roster.d.ts +5 -1
  89. package/dist/domain/roster/patient-roster.d.ts.map +1 -1
  90. package/dist/domain/tcm-encounter.d.ts +2 -2
  91. package/dist/external/hl7v2/constants.d.ts +8 -1
  92. package/dist/external/hl7v2/constants.d.ts.map +1 -1
  93. package/dist/external/hl7v2/constants.js +21 -1
  94. package/dist/external/hl7v2/constants.js.map +1 -1
  95. package/dist/index.d.ts +15 -12
  96. package/dist/index.d.ts.map +1 -1
  97. package/dist/index.js +18 -13
  98. package/dist/index.js.map +1 -1
  99. package/dist/interface/external/ehr/canvas/cx-mapping.d.ts +0 -3
  100. package/dist/interface/external/ehr/canvas/cx-mapping.d.ts.map +1 -1
  101. package/dist/interface/external/ehr/canvas/cx-mapping.js +0 -1
  102. package/dist/interface/external/ehr/canvas/cx-mapping.js.map +1 -1
  103. package/dist/interface/external/ehr/eclinicalworks/jwt-token.d.ts +2 -2
  104. package/dist/interface/external/ehr/elation/jwt-token.d.ts +2 -2
  105. package/dist/interface/external/ehr/healthie/cx-mapping.d.ts +432 -7
  106. package/dist/interface/external/ehr/healthie/cx-mapping.d.ts.map +1 -1
  107. package/dist/interface/external/ehr/healthie/cx-mapping.js +20 -4
  108. package/dist/interface/external/ehr/healthie/cx-mapping.js.map +1 -1
  109. package/dist/interface/external/ehr/healthie/event.d.ts +14 -0
  110. package/dist/interface/external/ehr/healthie/event.d.ts.map +1 -1
  111. package/dist/interface/external/ehr/healthie/event.js +6 -1
  112. package/dist/interface/external/ehr/healthie/event.js.map +1 -1
  113. package/dist/interface/external/ehr/healthie/form-answer-group.d.ts +605 -0
  114. package/dist/interface/external/ehr/healthie/form-answer-group.d.ts.map +1 -0
  115. package/dist/interface/external/ehr/healthie/form-answer-group.js +51 -0
  116. package/dist/interface/external/ehr/healthie/form-answer-group.js.map +1 -0
  117. package/dist/interface/external/ehr/healthie/index.d.ts +1 -0
  118. package/dist/interface/external/ehr/healthie/index.d.ts.map +1 -1
  119. package/dist/interface/external/ehr/healthie/index.js +1 -0
  120. package/dist/interface/external/ehr/healthie/index.js.map +1 -1
  121. package/dist/interface/external/ehr/healthie/jwt-token.d.ts +2 -2
  122. package/dist/interface/external/ehr/healthie/patient.d.ts +121 -82
  123. package/dist/interface/external/ehr/healthie/patient.d.ts.map +1 -1
  124. package/dist/interface/external/ehr/healthie/patient.js +9 -6
  125. package/dist/interface/external/ehr/healthie/patient.js.map +1 -1
  126. package/dist/interface/external/ehr/healthie/subscription.d.ts +12 -3
  127. package/dist/interface/external/ehr/healthie/subscription.d.ts.map +1 -1
  128. package/dist/interface/external/ehr/healthie/subscription.js +20 -3
  129. package/dist/interface/external/ehr/healthie/subscription.js.map +1 -1
  130. package/dist/interface/external/ehr/practicefusion/jwt-token.d.ts +2 -2
  131. package/dist/interface/external/ehr/salesforce/jwt-token.d.ts +2 -2
  132. package/dist/interface/external/ehr/shared.d.ts +1053 -0
  133. package/dist/interface/external/ehr/shared.d.ts.map +1 -1
  134. package/dist/interface/external/ehr/shared.js +64 -2
  135. package/dist/interface/external/ehr/shared.js.map +1 -1
  136. package/dist/interface/external/ehr/source.d.ts +1 -0
  137. package/dist/interface/external/ehr/source.d.ts.map +1 -1
  138. package/dist/interface/external/ehr/source.js +2 -1
  139. package/dist/interface/external/ehr/source.js.map +1 -1
  140. package/dist/interface/external/surescripts/added-by.d.ts +8 -0
  141. package/dist/interface/external/surescripts/added-by.d.ts.map +1 -0
  142. package/dist/interface/external/surescripts/added-by.js +23 -0
  143. package/dist/interface/external/surescripts/added-by.js.map +1 -0
  144. package/dist/interface/external/surescripts/index.d.ts +2 -0
  145. package/dist/interface/external/surescripts/index.d.ts.map +1 -1
  146. package/dist/interface/external/surescripts/index.js +2 -0
  147. package/dist/interface/external/surescripts/index.js.map +1 -1
  148. package/dist/interface/external/surescripts/realtime-pulls/file-name.d.ts +15 -0
  149. package/dist/interface/external/surescripts/realtime-pulls/file-name.d.ts.map +1 -0
  150. package/dist/interface/external/surescripts/realtime-pulls/file-name.js +19 -0
  151. package/dist/interface/external/surescripts/realtime-pulls/file-name.js.map +1 -0
  152. package/dist/interface/external/surescripts/realtime-pulls/index.d.ts +3 -0
  153. package/dist/interface/external/surescripts/realtime-pulls/index.d.ts.map +1 -0
  154. package/dist/interface/external/surescripts/realtime-pulls/index.js +19 -0
  155. package/dist/interface/external/surescripts/realtime-pulls/index.js.map +1 -0
  156. package/dist/interface/external/surescripts/realtime-pulls/status-codes.d.ts +91 -0
  157. package/dist/interface/external/surescripts/realtime-pulls/status-codes.d.ts.map +1 -0
  158. package/dist/interface/external/surescripts/realtime-pulls/status-codes.js +64 -0
  159. package/dist/interface/external/surescripts/realtime-pulls/status-codes.js.map +1 -0
  160. package/dist/interface/external/surescripts/roster.d.ts +2 -0
  161. package/dist/interface/external/surescripts/roster.d.ts.map +1 -1
  162. package/dist/interface/external/surescripts/roster.js +12 -1
  163. package/dist/interface/external/surescripts/roster.js.map +1 -1
  164. package/dist/interface/internal/cohort.d.ts +124 -124
  165. package/dist/interface/internal/cohort.d.ts.map +1 -1
  166. package/dist/interface/internal/cohort.js +10 -6
  167. package/dist/interface/internal/cohort.js.map +1 -1
  168. package/dist/interface/internal/consolidated.d.ts +349 -6
  169. package/dist/interface/internal/consolidated.d.ts.map +1 -1
  170. package/dist/interface/internal/consolidated.js +22 -3
  171. package/dist/interface/internal/consolidated.js.map +1 -1
  172. package/dist/interface/internal/customer.d.ts +14 -0
  173. package/dist/interface/internal/customer.d.ts.map +1 -0
  174. package/dist/interface/internal/customer.js +28 -0
  175. package/dist/interface/internal/customer.js.map +1 -0
  176. package/dist/interface/internal/document-query.d.ts +4 -4
  177. package/dist/interface/internal/index.d.ts +1 -0
  178. package/dist/interface/internal/index.d.ts.map +1 -1
  179. package/dist/interface/internal/index.js +1 -0
  180. package/dist/interface/internal/index.js.map +1 -1
  181. package/dist/medical/webhook/webhook-request.d.ts +1239 -199
  182. package/dist/medical/webhook/webhook-request.d.ts.map +1 -1
  183. package/dist/medical/webhook/webhook-request.js +79 -4
  184. package/dist/medical/webhook/webhook-request.js.map +1 -1
  185. package/dist/net/__tests__/axios.d.ts +4 -4
  186. package/dist/util/base64.d.ts +14 -0
  187. package/dist/util/base64.d.ts.map +1 -1
  188. package/dist/util/base64.js +26 -1
  189. package/dist/util/base64.js.map +1 -1
  190. package/dist/util/index.d.ts +0 -2
  191. package/dist/util/index.d.ts.map +1 -1
  192. package/dist/util/index.js +0 -2
  193. package/dist/util/index.js.map +1 -1
  194. package/dist/util/stack-trace.d.ts +17 -0
  195. package/dist/util/stack-trace.d.ts.map +1 -0
  196. package/dist/util/stack-trace.js +33 -0
  197. package/dist/util/stack-trace.js.map +1 -0
  198. package/package.json +17 -4
  199. package/dist/util/__tests__/concurrency.test.d.ts +0 -2
  200. package/dist/util/__tests__/concurrency.test.d.ts.map +0 -1
  201. package/dist/util/__tests__/concurrency.test.js +0 -162
  202. package/dist/util/__tests__/concurrency.test.js.map +0 -1
  203. package/dist/util/__tests__/null-to-undefined.test.d.ts +0 -2
  204. package/dist/util/__tests__/null-to-undefined.test.d.ts.map +0 -1
  205. package/dist/util/__tests__/null-to-undefined.test.js +0 -60
  206. package/dist/util/__tests__/null-to-undefined.test.js.map +0 -1
  207. package/dist/util/concurrency.d.ts +0 -72
  208. package/dist/util/concurrency.d.ts.map +0 -1
  209. package/dist/util/concurrency.js +0 -87
  210. package/dist/util/concurrency.js.map +0 -1
  211. package/dist/util/null-to-undefined.d.ts +0 -2
  212. package/dist/util/null-to-undefined.d.ts.map +0 -1
  213. package/dist/util/null-to-undefined.js +0 -31
  214. package/dist/util/null-to-undefined.js.map +0 -1
@@ -6,12 +6,12 @@ export declare const healthieDashJwtTokenDataSchema: z.ZodObject<{
6
6
  patientId: z.ZodString;
7
7
  source: z.ZodLiteral<"healthie">;
8
8
  }, "strip", z.ZodTypeAny, {
9
- patientId: string;
10
9
  source: "healthie";
10
+ patientId: string;
11
11
  practiceId: string;
12
12
  }, {
13
- patientId: string;
14
13
  source: "healthie";
14
+ patientId: string;
15
15
  practiceId: string;
16
16
  }>;
17
17
  export type HealthieDashJwtTokenData = z.infer<typeof healthieDashJwtTokenDataSchema>;
@@ -3,32 +3,34 @@ export declare const patientSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  first_name: z.ZodNullable<z.ZodString>;
5
5
  last_name: z.ZodNullable<z.ZodString>;
6
+ is_patient: z.ZodNullable<z.ZodBoolean>;
6
7
  dob: z.ZodNullable<z.ZodString>;
7
8
  gender: z.ZodNullable<z.ZodString>;
9
+ sex: z.ZodNullable<z.ZodString>;
8
10
  email: z.ZodNullable<z.ZodString>;
9
11
  phone_number: z.ZodNullable<z.ZodString>;
10
- locations: z.ZodArray<z.ZodObject<{
11
- line1: z.ZodString;
12
+ locations: z.ZodNullable<z.ZodArray<z.ZodObject<{
13
+ line1: z.ZodNullable<z.ZodString>;
12
14
  line2: z.ZodNullable<z.ZodString>;
13
- city: z.ZodString;
14
- state: z.ZodString;
15
- zip: z.ZodString;
16
- country: z.ZodString;
15
+ city: z.ZodNullable<z.ZodString>;
16
+ state: z.ZodNullable<z.ZodString>;
17
+ zip: z.ZodNullable<z.ZodString>;
18
+ country: z.ZodNullable<z.ZodString>;
17
19
  }, "strip", z.ZodTypeAny, {
18
- country: string;
19
- state: string;
20
- city: string;
21
- zip: string;
22
- line1: string;
20
+ country: string | null;
21
+ state: string | null;
22
+ city: string | null;
23
+ zip: string | null;
24
+ line1: string | null;
23
25
  line2: string | null;
24
26
  }, {
25
- country: string;
26
- state: string;
27
- city: string;
28
- zip: string;
29
- line1: string;
27
+ country: string | null;
28
+ state: string | null;
29
+ city: string | null;
30
+ zip: string | null;
31
+ line1: string | null;
30
32
  line2: string | null;
31
- }>, "many">;
33
+ }>, "many">>;
32
34
  }, "strip", z.ZodTypeAny, {
33
35
  id: string;
34
36
  email: string | null;
@@ -36,15 +38,17 @@ export declare const patientSchema: z.ZodObject<{
36
38
  dob: string | null;
37
39
  first_name: string | null;
38
40
  last_name: string | null;
41
+ sex: string | null;
42
+ is_patient: boolean | null;
39
43
  phone_number: string | null;
40
44
  locations: {
41
- country: string;
42
- state: string;
43
- city: string;
44
- zip: string;
45
- line1: string;
45
+ country: string | null;
46
+ state: string | null;
47
+ city: string | null;
48
+ zip: string | null;
49
+ line1: string | null;
46
50
  line2: string | null;
47
- }[];
51
+ }[] | null;
48
52
  }, {
49
53
  id: string;
50
54
  email: string | null;
@@ -52,15 +56,17 @@ export declare const patientSchema: z.ZodObject<{
52
56
  dob: string | null;
53
57
  first_name: string | null;
54
58
  last_name: string | null;
59
+ sex: string | null;
60
+ is_patient: boolean | null;
55
61
  phone_number: string | null;
56
62
  locations: {
57
- country: string;
58
- state: string;
59
- city: string;
60
- zip: string;
61
- line1: string;
63
+ country: string | null;
64
+ state: string | null;
65
+ city: string | null;
66
+ zip: string | null;
67
+ line1: string | null;
62
68
  line2: string | null;
63
- }[];
69
+ }[] | null;
64
70
  }>;
65
71
  export type Patient = z.infer<typeof patientSchema>;
66
72
  export declare const patientGraphqlSchema: z.ZodObject<{
@@ -69,32 +75,34 @@ export declare const patientGraphqlSchema: z.ZodObject<{
69
75
  id: z.ZodString;
70
76
  first_name: z.ZodNullable<z.ZodString>;
71
77
  last_name: z.ZodNullable<z.ZodString>;
78
+ is_patient: z.ZodNullable<z.ZodBoolean>;
72
79
  dob: z.ZodNullable<z.ZodString>;
73
80
  gender: z.ZodNullable<z.ZodString>;
81
+ sex: z.ZodNullable<z.ZodString>;
74
82
  email: z.ZodNullable<z.ZodString>;
75
83
  phone_number: z.ZodNullable<z.ZodString>;
76
- locations: z.ZodArray<z.ZodObject<{
77
- line1: z.ZodString;
84
+ locations: z.ZodNullable<z.ZodArray<z.ZodObject<{
85
+ line1: z.ZodNullable<z.ZodString>;
78
86
  line2: z.ZodNullable<z.ZodString>;
79
- city: z.ZodString;
80
- state: z.ZodString;
81
- zip: z.ZodString;
82
- country: z.ZodString;
87
+ city: z.ZodNullable<z.ZodString>;
88
+ state: z.ZodNullable<z.ZodString>;
89
+ zip: z.ZodNullable<z.ZodString>;
90
+ country: z.ZodNullable<z.ZodString>;
83
91
  }, "strip", z.ZodTypeAny, {
84
- country: string;
85
- state: string;
86
- city: string;
87
- zip: string;
88
- line1: string;
92
+ country: string | null;
93
+ state: string | null;
94
+ city: string | null;
95
+ zip: string | null;
96
+ line1: string | null;
89
97
  line2: string | null;
90
98
  }, {
91
- country: string;
92
- state: string;
93
- city: string;
94
- zip: string;
95
- line1: string;
99
+ country: string | null;
100
+ state: string | null;
101
+ city: string | null;
102
+ zip: string | null;
103
+ line1: string | null;
96
104
  line2: string | null;
97
- }>, "many">;
105
+ }>, "many">>;
98
106
  }, "strip", z.ZodTypeAny, {
99
107
  id: string;
100
108
  email: string | null;
@@ -102,15 +110,17 @@ export declare const patientGraphqlSchema: z.ZodObject<{
102
110
  dob: string | null;
103
111
  first_name: string | null;
104
112
  last_name: string | null;
113
+ sex: string | null;
114
+ is_patient: boolean | null;
105
115
  phone_number: string | null;
106
116
  locations: {
107
- country: string;
108
- state: string;
109
- city: string;
110
- zip: string;
111
- line1: string;
117
+ country: string | null;
118
+ state: string | null;
119
+ city: string | null;
120
+ zip: string | null;
121
+ line1: string | null;
112
122
  line2: string | null;
113
- }[];
123
+ }[] | null;
114
124
  }, {
115
125
  id: string;
116
126
  email: string | null;
@@ -118,15 +128,17 @@ export declare const patientGraphqlSchema: z.ZodObject<{
118
128
  dob: string | null;
119
129
  first_name: string | null;
120
130
  last_name: string | null;
131
+ sex: string | null;
132
+ is_patient: boolean | null;
121
133
  phone_number: string | null;
122
134
  locations: {
123
- country: string;
124
- state: string;
125
- city: string;
126
- zip: string;
127
- line1: string;
135
+ country: string | null;
136
+ state: string | null;
137
+ city: string | null;
138
+ zip: string | null;
139
+ line1: string | null;
128
140
  line2: string | null;
129
- }[];
141
+ }[] | null;
130
142
  }>>;
131
143
  }, "strip", z.ZodTypeAny, {
132
144
  user: {
@@ -136,15 +148,17 @@ export declare const patientGraphqlSchema: z.ZodObject<{
136
148
  dob: string | null;
137
149
  first_name: string | null;
138
150
  last_name: string | null;
151
+ sex: string | null;
152
+ is_patient: boolean | null;
139
153
  phone_number: string | null;
140
154
  locations: {
141
- country: string;
142
- state: string;
143
- city: string;
144
- zip: string;
145
- line1: string;
155
+ country: string | null;
156
+ state: string | null;
157
+ city: string | null;
158
+ zip: string | null;
159
+ line1: string | null;
146
160
  line2: string | null;
147
- }[];
161
+ }[] | null;
148
162
  } | null;
149
163
  }, {
150
164
  user: {
@@ -154,15 +168,17 @@ export declare const patientGraphqlSchema: z.ZodObject<{
154
168
  dob: string | null;
155
169
  first_name: string | null;
156
170
  last_name: string | null;
171
+ sex: string | null;
172
+ is_patient: boolean | null;
157
173
  phone_number: string | null;
158
174
  locations: {
159
- country: string;
160
- state: string;
161
- city: string;
162
- zip: string;
163
- line1: string;
175
+ country: string | null;
176
+ state: string | null;
177
+ city: string | null;
178
+ zip: string | null;
179
+ line1: string | null;
164
180
  line2: string | null;
165
- }[];
181
+ }[] | null;
166
182
  } | null;
167
183
  }>;
168
184
  }, "strip", z.ZodTypeAny, {
@@ -174,15 +190,17 @@ export declare const patientGraphqlSchema: z.ZodObject<{
174
190
  dob: string | null;
175
191
  first_name: string | null;
176
192
  last_name: string | null;
193
+ sex: string | null;
194
+ is_patient: boolean | null;
177
195
  phone_number: string | null;
178
196
  locations: {
179
- country: string;
180
- state: string;
181
- city: string;
182
- zip: string;
183
- line1: string;
197
+ country: string | null;
198
+ state: string | null;
199
+ city: string | null;
200
+ zip: string | null;
201
+ line1: string | null;
184
202
  line2: string | null;
185
- }[];
203
+ }[] | null;
186
204
  } | null;
187
205
  };
188
206
  }, {
@@ -194,27 +212,32 @@ export declare const patientGraphqlSchema: z.ZodObject<{
194
212
  dob: string | null;
195
213
  first_name: string | null;
196
214
  last_name: string | null;
215
+ sex: string | null;
216
+ is_patient: boolean | null;
197
217
  phone_number: string | null;
198
218
  locations: {
199
- country: string;
200
- state: string;
201
- city: string;
202
- zip: string;
203
- line1: string;
219
+ country: string | null;
220
+ state: string | null;
221
+ city: string | null;
222
+ zip: string | null;
223
+ line1: string | null;
204
224
  line2: string | null;
205
- }[];
225
+ }[] | null;
206
226
  } | null;
207
227
  };
208
228
  }>;
209
229
  export type PatientGraphql = z.infer<typeof patientGraphqlSchema>;
210
230
  export declare const patientQuickNotesSchema: z.ZodObject<{
211
231
  id: z.ZodString;
232
+ is_patient: z.ZodNullable<z.ZodBoolean>;
212
233
  quick_notes: z.ZodNullable<z.ZodString>;
213
234
  }, "strip", z.ZodTypeAny, {
214
235
  id: string;
236
+ is_patient: boolean | null;
215
237
  quick_notes: string | null;
216
238
  }, {
217
239
  id: string;
240
+ is_patient: boolean | null;
218
241
  quick_notes: string | null;
219
242
  }>;
220
243
  export type PatientQuickNotes = z.infer<typeof patientQuickNotesSchema>;
@@ -222,22 +245,27 @@ export declare const patientQuickNotesGraphqlSchema: z.ZodObject<{
222
245
  data: z.ZodObject<{
223
246
  user: z.ZodNullable<z.ZodObject<{
224
247
  id: z.ZodString;
248
+ is_patient: z.ZodNullable<z.ZodBoolean>;
225
249
  quick_notes: z.ZodNullable<z.ZodString>;
226
250
  }, "strip", z.ZodTypeAny, {
227
251
  id: string;
252
+ is_patient: boolean | null;
228
253
  quick_notes: string | null;
229
254
  }, {
230
255
  id: string;
256
+ is_patient: boolean | null;
231
257
  quick_notes: string | null;
232
258
  }>>;
233
259
  }, "strip", z.ZodTypeAny, {
234
260
  user: {
235
261
  id: string;
262
+ is_patient: boolean | null;
236
263
  quick_notes: string | null;
237
264
  } | null;
238
265
  }, {
239
266
  user: {
240
267
  id: string;
268
+ is_patient: boolean | null;
241
269
  quick_notes: string | null;
242
270
  } | null;
243
271
  }>;
@@ -245,6 +273,7 @@ export declare const patientQuickNotesGraphqlSchema: z.ZodObject<{
245
273
  data: {
246
274
  user: {
247
275
  id: string;
276
+ is_patient: boolean | null;
248
277
  quick_notes: string | null;
249
278
  } | null;
250
279
  };
@@ -252,6 +281,7 @@ export declare const patientQuickNotesGraphqlSchema: z.ZodObject<{
252
281
  data: {
253
282
  user: {
254
283
  id: string;
284
+ is_patient: boolean | null;
255
285
  quick_notes: string | null;
256
286
  } | null;
257
287
  };
@@ -262,22 +292,27 @@ export declare const patientUpdateQuickNotesGraphqlSchema: z.ZodObject<{
262
292
  updateClient: z.ZodObject<{
263
293
  user: z.ZodNullable<z.ZodObject<{
264
294
  id: z.ZodString;
295
+ is_patient: z.ZodNullable<z.ZodBoolean>;
265
296
  quick_notes: z.ZodNullable<z.ZodString>;
266
297
  }, "strip", z.ZodTypeAny, {
267
298
  id: string;
299
+ is_patient: boolean | null;
268
300
  quick_notes: string | null;
269
301
  }, {
270
302
  id: string;
303
+ is_patient: boolean | null;
271
304
  quick_notes: string | null;
272
305
  }>>;
273
306
  }, "strip", z.ZodTypeAny, {
274
307
  user: {
275
308
  id: string;
309
+ is_patient: boolean | null;
276
310
  quick_notes: string | null;
277
311
  } | null;
278
312
  }, {
279
313
  user: {
280
314
  id: string;
315
+ is_patient: boolean | null;
281
316
  quick_notes: string | null;
282
317
  } | null;
283
318
  }>;
@@ -285,6 +320,7 @@ export declare const patientUpdateQuickNotesGraphqlSchema: z.ZodObject<{
285
320
  updateClient: {
286
321
  user: {
287
322
  id: string;
323
+ is_patient: boolean | null;
288
324
  quick_notes: string | null;
289
325
  } | null;
290
326
  };
@@ -292,6 +328,7 @@ export declare const patientUpdateQuickNotesGraphqlSchema: z.ZodObject<{
292
328
  updateClient: {
293
329
  user: {
294
330
  id: string;
331
+ is_patient: boolean | null;
295
332
  quick_notes: string | null;
296
333
  } | null;
297
334
  };
@@ -301,6 +338,7 @@ export declare const patientUpdateQuickNotesGraphqlSchema: z.ZodObject<{
301
338
  updateClient: {
302
339
  user: {
303
340
  id: string;
341
+ is_patient: boolean | null;
304
342
  quick_notes: string | null;
305
343
  } | null;
306
344
  };
@@ -310,6 +348,7 @@ export declare const patientUpdateQuickNotesGraphqlSchema: z.ZodObject<{
310
348
  updateClient: {
311
349
  user: {
312
350
  id: string;
351
+ is_patient: boolean | null;
313
352
  quick_notes: string | null;
314
353
  } | null;
315
354
  };
@@ -1 +1 @@
1
- {"version":3,"file":"patient.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/patient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EAIlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM/C,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC"}
@@ -3,22 +3,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.patientUpdateQuickNotesGraphqlSchema = exports.patientQuickNotesGraphqlSchema = exports.patientQuickNotesSchema = exports.patientGraphqlSchema = exports.patientSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const locationSchema = zod_1.z.object({
6
- line1: zod_1.z.string(),
6
+ line1: zod_1.z.string().nullable(),
7
7
  line2: zod_1.z.string().nullable(),
8
- city: zod_1.z.string(),
9
- state: zod_1.z.string(),
10
- zip: zod_1.z.string(),
11
- country: zod_1.z.string(),
8
+ city: zod_1.z.string().nullable(),
9
+ state: zod_1.z.string().nullable(),
10
+ zip: zod_1.z.string().nullable(),
11
+ country: zod_1.z.string().nullable(),
12
12
  });
13
13
  exports.patientSchema = zod_1.z.object({
14
14
  id: zod_1.z.string(),
15
15
  first_name: zod_1.z.string().nullable(),
16
16
  last_name: zod_1.z.string().nullable(),
17
+ is_patient: zod_1.z.boolean().nullable(),
17
18
  dob: zod_1.z.string().nullable(),
18
19
  gender: zod_1.z.string().nullable(),
20
+ sex: zod_1.z.string().nullable(),
19
21
  email: zod_1.z.string().nullable(),
20
22
  phone_number: zod_1.z.string().nullable(),
21
- locations: locationSchema.array(),
23
+ locations: locationSchema.array().nullable(),
22
24
  });
23
25
  exports.patientGraphqlSchema = zod_1.z.object({
24
26
  data: zod_1.z.object({
@@ -27,6 +29,7 @@ exports.patientGraphqlSchema = zod_1.z.object({
27
29
  });
28
30
  exports.patientQuickNotesSchema = zod_1.z.object({
29
31
  id: zod_1.z.string(),
32
+ is_patient: zod_1.z.boolean().nullable(),
30
33
  quick_notes: zod_1.z.string().nullable(),
31
34
  });
32
35
  exports.patientQuickNotesGraphqlSchema = zod_1.z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEU,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,KAAK,EAAE,OAAC,CAAC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AQ,EAAE;CACnC,CAAC,CAAC;AAGU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,IAAI,EAAE,+BAAuB,CAAC,QAAQ,EAAE;KACzC,CAAC;CACH,CAAC,CAAC;AAGU,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3D,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC;YACrB,IAAI,EAAE,+BAAuB,CAAC,QAAQ,EAAE;SACzC,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import { z } from "zod";
2
- export declare const subscriptionResources: readonly ["appointment.created", "patient.created"];
2
+ export declare const subscriptionResources: readonly ["appointment.created", "patient.created", "patient.updated", "form_answer_group.locked", "form_answer_group.signed", "goal.created", "diagnosis.created"];
3
3
  export type SubscriptionResource = (typeof subscriptionResources)[number];
4
4
  export declare function isSubscriptionResource(resource: string): resource is SubscriptionResource;
5
+ export declare const subscriptionResourcesToS3PathMap: Record<SubscriptionResource, string>;
5
6
  export declare const subscriptionSchema: z.ZodObject<{
6
7
  id: z.ZodString;
7
8
  event_type: z.ZodNullable<z.ZodString>;
@@ -222,7 +223,7 @@ export declare const subscriptionWithSignatureSecretGraphqlSchema: z.ZodObject<{
222
223
  export type SubscriptionWithSignatureSecretGraphql = z.infer<typeof subscriptionWithSignatureSecretGraphqlSchema>;
223
224
  export declare const subscriptionListResponseGraphqlSchema: z.ZodObject<{
224
225
  data: z.ZodObject<{
225
- webhooks: z.ZodArray<z.ZodObject<{
226
+ webhooks: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
226
227
  id: z.ZodString;
227
228
  event_type: z.ZodNullable<z.ZodString>;
228
229
  is_enabled: z.ZodBoolean;
@@ -238,7 +239,9 @@ export declare const subscriptionListResponseGraphqlSchema: z.ZodObject<{
238
239
  id: string;
239
240
  event_type: string | null;
240
241
  }>, "many">;
241
- }, "strip", z.ZodTypeAny, {
242
+ }, {
243
+ signature_secret: z.ZodNullable<z.ZodString>;
244
+ }>, "strip", z.ZodTypeAny, {
242
245
  id: string;
243
246
  url: string | null;
244
247
  event_type: string | null;
@@ -248,6 +251,7 @@ export declare const subscriptionListResponseGraphqlSchema: z.ZodObject<{
248
251
  id: string;
249
252
  event_type: string | null;
250
253
  }[];
254
+ signature_secret: string | null;
251
255
  }, {
252
256
  id: string;
253
257
  url: string | null;
@@ -258,6 +262,7 @@ export declare const subscriptionListResponseGraphqlSchema: z.ZodObject<{
258
262
  id: string;
259
263
  event_type: string | null;
260
264
  }[];
265
+ signature_secret: string | null;
261
266
  }>, "many">;
262
267
  }, "strip", z.ZodTypeAny, {
263
268
  webhooks: {
@@ -270,6 +275,7 @@ export declare const subscriptionListResponseGraphqlSchema: z.ZodObject<{
270
275
  id: string;
271
276
  event_type: string | null;
272
277
  }[];
278
+ signature_secret: string | null;
273
279
  }[];
274
280
  }, {
275
281
  webhooks: {
@@ -282,6 +288,7 @@ export declare const subscriptionListResponseGraphqlSchema: z.ZodObject<{
282
288
  id: string;
283
289
  event_type: string | null;
284
290
  }[];
291
+ signature_secret: string | null;
285
292
  }[];
286
293
  }>;
287
294
  }, "strip", z.ZodTypeAny, {
@@ -296,6 +303,7 @@ export declare const subscriptionListResponseGraphqlSchema: z.ZodObject<{
296
303
  id: string;
297
304
  event_type: string | null;
298
305
  }[];
306
+ signature_secret: string | null;
299
307
  }[];
300
308
  };
301
309
  }, {
@@ -310,6 +318,7 @@ export declare const subscriptionListResponseGraphqlSchema: z.ZodObject<{
310
318
  id: string;
311
319
  event_type: string | null;
312
320
  }[];
321
+ signature_secret: string | null;
313
322
  }[];
314
323
  };
315
324
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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lSchema = exports.subscriptionWithSignatureSecretGraphqlSchema = exports.subscriptionWithSignatureSecretSchema = exports.subscriptionSchema = exports.isSubscriptionResource = exports.subscriptionResources = void 0;
3
+ exports.subscriptionListResponseGraphqlSchema = exports.subscriptionWithSignatureSecretGraphqlSchema = exports.subscriptionWithSignatureSecretSchema = exports.subscriptionSchema = exports.subscriptionResourcesToS3PathMap = exports.isSubscriptionResource = exports.subscriptionResources = void 0;
4
4
  const zod_1 = require("zod");
5
- exports.subscriptionResources = ["appointment.created", "patient.created"];
5
+ exports.subscriptionResources = [
6
+ "appointment.created",
7
+ "patient.created",
8
+ "patient.updated",
9
+ "form_answer_group.locked",
10
+ "form_answer_group.signed",
11
+ "goal.created",
12
+ "diagnosis.created",
13
+ ];
6
14
  function isSubscriptionResource(resource) {
7
15
  return exports.subscriptionResources.includes(resource);
8
16
  }
9
17
  exports.isSubscriptionResource = isSubscriptionResource;
18
+ exports.subscriptionResourcesToS3PathMap = {
19
+ "appointment.created": "appointment-created",
20
+ "patient.created": "patient-created",
21
+ "patient.updated": "patient-updated",
22
+ "form_answer_group.locked": "form-answer-group-locked",
23
+ "form_answer_group.signed": "form-answer-group-signed",
24
+ "goal.created": "goal-created",
25
+ "diagnosis.created": "diagnosis-created",
26
+ };
10
27
  const webhookEventSchema = zod_1.z.object({
11
28
  id: zod_1.z.string(),
12
29
  event_type: zod_1.z.string().nullable(),
@@ -31,7 +48,7 @@ exports.subscriptionWithSignatureSecretGraphqlSchema = zod_1.z.object({
31
48
  });
32
49
  exports.subscriptionListResponseGraphqlSchema = zod_1.z.object({
33
50
  data: zod_1.z.object({
34
- webhooks: exports.subscriptionSchema.array(),
51
+ webhooks: exports.subscriptionWithSignatureSecretSchema.array(),
35
52
  }),
36
53
  });
37
54
  //# sourceMappingURL=subscription.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/subscription.ts"],"names":[],"mappings":";;;AAAA,6BAAwB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H,CAAC,CAAC"}
1
+ {"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/subscription.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,qBAAqB,GAAG;IACnC,qBAAqB;IACrB,iBAAiB;IACjB,iBAAiB;IACjB,0BAA0B;IAC1B,0BAA0B;IAC1B,cAAc;IACd,mBAAmB;CACX,CAAC;AAEX,SAAgB,sBAAsB,CAAC,QAAgB;IACrD,OAAO,6BAAqB,CAAC,QAAQ,CAAC,QAAgC,CAAC,CAAC;AAC1E,CAAC;AAFD,wDAEC;AAEY,QAAA,gCAAgC,GAAyC;IACpF,qBAAqB,EAAE,qBAAqB;IAC5C,iBAAiB,EAAE,iBAAiB;IACpC,iBAAiB,EAAE,iBAAiB;IACpC,0BAA0B,EAAE,0BAA0B;IACtD,0BAA0B,EAAE,0BAA0B;IACtD,cAAc,EAAE,cAAc;IAC9B,mBAAmB,EAAE,mBAAmB;CACzC,CAAC;AAEF,MAAM,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAEU,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE;IACvB,YAAY,EAAE,OAAC,CAAC,OAAO,EAAE;IACzB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,cAAc,EAAE,kBAAkB,CAAC,KAAK,EAAE;CAC3C,CAAC,CAAC;AAEU,QAAA,qCAAqC,GAAG,0BAAkB,CAAC,MAAM,CAAC;IAC7E,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAGU,QAAA,4CAA4C,GAAG,OAAC,CAAC,MAAM,CAAC;IACnE,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC;YACtB,OAAO,EAAE,6CAAqC,CAAC,QAAQ,EAAE;SAC1D,CAAC;KACH,CAAC;CACH,CAAC,CAAC;AAKU,QAAA,qCAAqC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5D,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,QAAQ,EAAE,6CAAqC,CAAC,KAAK,EAAE;KACxD,CAAC;CACH,CAAC,CAAC"}
@@ -6,12 +6,12 @@ export declare const practicefusionDashJwtTokenDataSchema: z.ZodObject<{
6
6
  patientId: z.ZodString;
7
7
  source: z.ZodLiteral<"practicefusion">;
8
8
  }, "strip", z.ZodTypeAny, {
9
- patientId: string;
10
9
  source: "practicefusion";
10
+ patientId: string;
11
11
  practiceId: string;
12
12
  }, {
13
- patientId: string;
14
13
  source: "practicefusion";
14
+ patientId: string;
15
15
  practiceId: string;
16
16
  }>;
17
17
  export type PracticeFusionDashJwtTokenData = z.infer<typeof practicefusionDashJwtTokenDataSchema>;
@@ -7,13 +7,13 @@ export declare const salesforceDashJwtTokenDataSchema: z.ZodObject<{
7
7
  patientId: z.ZodString;
8
8
  source: z.ZodLiteral<"salesforce">;
9
9
  }, "strip", z.ZodTypeAny, {
10
- patientId: string;
11
10
  source: "salesforce";
11
+ patientId: string;
12
12
  practiceId: string;
13
13
  instanceUrl: string;
14
14
  }, {
15
- patientId: string;
16
15
  source: "salesforce";
16
+ patientId: string;
17
17
  practiceId: string;
18
18
  instanceUrl: string;
19
19
  }>;