@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
@@ -4,7 +4,7 @@ export declare const globalWindow: duration.Duration;
4
4
  export declare const rateLimitPartitionKey = "cxIdAndOperationAndWindow";
5
5
  export declare const rateLimitThresholdKey = "limitThreshold";
6
6
  export type RateLimitWindow = typeof globalWindow;
7
- export type RateLimitOperation = "patientCreateOrUpdate" | "documentQuery" | "consolidatedDataQuery";
7
+ export type RateLimitOperation = "patientCreateOrUpdate" | "patientDataContribution" | "documentQuery" | "consolidatedDataQuery" | "careGapsQuery" | "suspectsQuery";
8
8
  export declare const rateLimitOperations: RateLimitOperation[];
9
9
  export declare const rateLimitThresholdSchema: z.ZodObject<{
10
10
  cxIdAndOperationAndWindow: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domain/rate-limiting/index.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,YAAY,mBAA8B,CAAC;AACxD,eAAO,MAAM,qBAAqB,8BAA8B,CAAC;AACjE,eAAO,MAAM,qBAAqB,mBAAmB,CAAC;AAEtD,MAAM,MAAM,eAAe,GAAG,OAAO,YAAY,CAAC;AAClD,MAAM,MAAM,kBAAkB,GAC1B,uBAAuB,GACvB,eAAe,GACf,uBAAuB,CAAC;AAE5B,eAAO,MAAM,mBAAmB,sBAIP,CAAC;AAE1B,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAEH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAItE,CAAC;AAEF,wBAAgB,eAAe,CAAC,SAAS,EAAE,kBAAkB,GAAG,MAAM,CAIrE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domain/rate-limiting/index.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,YAAY,mBAA8B,CAAC;AACxD,eAAO,MAAM,qBAAqB,8BAA8B,CAAC;AACjE,eAAO,MAAM,qBAAqB,mBAAmB,CAAC;AAEtD,MAAM,MAAM,eAAe,GAAG,OAAO,YAAY,CAAC;AAClD,MAAM,MAAM,kBAAkB,GAC1B,uBAAuB,GACvB,yBAAyB,GACzB,eAAe,GACf,uBAAuB,GACvB,eAAe,GACf,eAAe,CAAC;AAEpB,eAAO,MAAM,mBAAmB,sBAOP,CAAC;AAE1B,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAEH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAOtE,CAAC;AAEF,wBAAgB,eAAe,CAAC,SAAS,EAAE,kBAAkB,GAAG,MAAM,CAIrE"}
@@ -14,8 +14,11 @@ exports.rateLimitPartitionKey = "cxIdAndOperationAndWindow";
14
14
  exports.rateLimitThresholdKey = "limitThreshold";
15
15
  exports.rateLimitOperations = [
16
16
  "patientCreateOrUpdate",
17
+ "patientDataContribution",
17
18
  "documentQuery",
18
19
  "consolidatedDataQuery",
20
+ "careGapsQuery",
21
+ "suspectsQuery",
19
22
  ];
20
23
  exports.rateLimitThresholdSchema = zod_1.z.object({
21
24
  [exports.rateLimitPartitionKey]: zod_1.z.string(),
@@ -28,8 +31,11 @@ exports.rateLimitCountSchema = zod_1.z.object({
28
31
  });
29
32
  exports.errorMessageByOperation = {
30
33
  patientCreateOrUpdate: "Too many patient creates or updates, please try again later.",
34
+ patientDataContribution: "Too many patient data contributions, please try again later.",
31
35
  documentQuery: "Too many patient document query starts, please try again later.",
32
36
  consolidatedDataQuery: "Too many patient consolidated data query starts, please try again later.",
37
+ careGapsQuery: "Too many care gaps queries, please try again later.",
38
+ suspectsQuery: "Too many suspects queries, please try again later.",
33
39
  };
34
40
  function getDefaultLimit(operation) {
35
41
  const limit = defaultOperationLimits[operation];
@@ -40,7 +46,10 @@ function getDefaultLimit(operation) {
40
46
  exports.getDefaultLimit = getDefaultLimit;
41
47
  const defaultOperationLimits = {
42
48
  patientCreateOrUpdate: 15,
49
+ patientDataContribution: 10000,
43
50
  documentQuery: 20,
44
51
  consolidatedDataQuery: 120,
52
+ careGapsQuery: 120,
53
+ suspectsQuery: 120,
45
54
  };
46
55
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/rate-limiting/index.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,qEAA6C;AAC7C,6BAAwB;AACxB,iEAA6D;AAE7D,eAAK,CAAC,MAAM,CAAC,kBAAQ,CAAC,CAAC;AAEV,QAAA,YAAY,GAAG,eAAK,CAAC,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;AAC3C,QAAA,qBAAqB,GAAG,2BAA2B,CAAC;AACpD,QAAA,qBAAqB,GAAG,gBAAgB,CAAC;AAQzC,QAAA,mBAAmB,GAAG;IACjC,uBAAuB;IACvB,eAAe;IACf,uBAAuB;CACA,C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CAAC"}
@@ -0,0 +1,6 @@
1
+ import { z } from "zod";
2
+ export declare const patientRosterAddedBySchema: z.ZodString;
3
+ export declare const patientRosterAddedByListSchema: z.ZodArray<z.ZodString, "many">;
4
+ export declare function getPatientRosterAddedBy(addedBy: unknown): string[];
5
+ export declare function normalizePatientRosterAddedBy(addedBy?: string[]): string[];
6
+ //# sourceMappingURL=patient-roster-added-by.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patient-roster-added-by.d.ts","sourceRoot":"","sources":["../../../src/domain/roster/patient-roster-added-by.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,eAAO,MAAM,0BAA0B,aAAa,CAAC;AAErD,eAAO,MAAM,8BAA8B,iCAAsC,CAAC;AAElF,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAGlE;AAED,wBAAgB,6BAA6B,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAG1E"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.normalizePatientRosterAddedBy = exports.getPatientRosterAddedBy = exports.patientRosterAddedByListSchema = exports.patientRosterAddedBySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.patientRosterAddedBySchema = zod_1.z.string();
6
+ exports.patientRosterAddedByListSchema = zod_1.z.array(exports.patientRosterAddedBySchema);
7
+ function getPatientRosterAddedBy(addedBy) {
8
+ if (!Array.isArray(addedBy))
9
+ return [];
10
+ return addedBy.filter((value) => typeof value === "string");
11
+ }
12
+ exports.getPatientRosterAddedBy = getPatientRosterAddedBy;
13
+ function normalizePatientRosterAddedBy(addedBy) {
14
+ if (!addedBy)
15
+ return [];
16
+ return [...addedBy].sort();
17
+ }
18
+ exports.normalizePatientRosterAddedBy = normalizePatientRosterAddedBy;
19
+ //# sourceMappingURL=patient-roster-added-by.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patient-roster-added-by.js","sourceRoot":"","sources":["../../../src/domain/roster/patient-roster-added-by.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACX,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC;AAExC,QAAA,8BAA8B,GAAG,OAAC,CAAC,KAAK,CAAC,kCAA0B,CAAC,CAAC;AAElF,SAAgB,uBAAuB,CAAC,OAAgB;IACtD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;QAAE,OAAO,EAAE,CAAC;IACvC,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,EAAmB,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC;AAC/E,CAAC;AAHD,0DAGC;AAED,SAAgB,6BAA6B,CAAC,OAAkB;IAC9D,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IACxB,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;AAC7B,CAAC;AAHD,sEAGC"}
@@ -3,13 +3,17 @@ export type PatientRoster = {
3
3
  id: string;
4
4
  patientId: string;
5
5
  rosterId: string;
6
+ addedBy?: string[];
6
7
  };
7
8
  export type AssignOrRemovePatientsToRosterCmd = Pick<GetRosterCmd, "rosterId" | "cxId"> & {
8
9
  patientIds?: string[];
9
10
  allPatients?: boolean;
10
11
  overrideClose?: boolean;
11
12
  };
12
- export type AssignPatientsAndCreateRosterCmd = Omit<AssignOrRemovePatientsToRosterCmd, "rosterId"> & Omit<CreateRosterCmd, "cxId" | "status">;
13
+ export type AssignPatientsToRosterCmd = AssignOrRemovePatientsToRosterCmd & {
14
+ addedBy?: string[];
15
+ };
16
+ export type AssignPatientsAndCreateRosterCmd = Omit<AssignPatientsToRosterCmd, "rosterId"> & Omit<CreateRosterCmd, "cxId" | "status">;
13
17
  export type ListRostersForPatientCmd = ListRostersCmd & {
14
18
  patientId: string;
15
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"patient-roster.d.ts","sourceRoot":"","sources":["../../../src/domain/roster/patient-roster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEjF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,MAAM,CAAC,GAAG;IACxF,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,IAAI,CAAC,iCAAiC,EAAE,UAAU,CAAC,GAChG,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC;AAE3C,MAAM,MAAM,wBAAwB,GAAG,cAAc,GAAG;IACtD,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"patient-roster.d.ts","sourceRoot":"","sources":["../../../src/domain/roster/patient-roster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEjF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,MAAM,CAAC,GAAG;IACxF,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,iCAAiC,GAAG;IAC1E,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,IAAI,CAAC,yBAAyB,EAAE,UAAU,CAAC,GACxF,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC;AAE3C,MAAM,MAAM,wBAAwB,GAAG,cAAc,GAAG;IACtD,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -332,20 +332,20 @@ export declare const tcmEncounterListQuerySchema: z.ZodIntersection<z.ZodObject<
332
332
  search?: string | undefined;
333
333
  coding?: "cardiac" | undefined;
334
334
  facilityId?: string | undefined;
335
+ eventType?: "Admitted" | "Discharged" | undefined;
335
336
  after?: string | undefined;
336
337
  cohortId?: string | undefined;
337
338
  daysLookback?: "2" | "7" | "14" | "28" | undefined;
338
- eventType?: "Admitted" | "Discharged" | undefined;
339
339
  encounterClass?: ("ambulatory" | "inpatient encounter" | "emergency" | "short stay" | "pre-admission")[] | undefined;
340
340
  }, {
341
341
  status?: "Not Started" | "Attempted" | "Completed" | undefined;
342
342
  search?: string | undefined;
343
343
  coding?: "cardiac" | undefined;
344
344
  facilityId?: string | undefined;
345
+ eventType?: "Admitted" | "Discharged" | undefined;
345
346
  after?: string | undefined;
346
347
  cohortId?: string | undefined;
347
348
  daysLookback?: "2" | "7" | "14" | "28" | undefined;
348
- eventType?: "Admitted" | "Discharged" | undefined;
349
349
  encounterClass?: string | ("ambulatory" | "inpatient encounter" | "emergency" | "short stay" | "pre-admission")[] | undefined;
350
350
  }>, z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
351
351
  fromItem: z.ZodOptional<z.ZodEffects<z.ZodString, Record<string, string | null>, string>>;
@@ -1,4 +1,6 @@
1
+ import { z } from "zod";
1
2
  export declare enum HieName {
3
+ MyTestHIE = "MyTestHIE",
2
4
  Bamboo = "Bamboo",
3
5
  Konza = "Konza",
4
6
  HealthConnectTexas = "HealthConnectTexas",
@@ -7,10 +9,15 @@ export declare enum HieName {
7
9
  Alohr = "Alohr",
8
10
  Lahie = "Lahie",
9
11
  Flhie = "Flhie",
10
- Riqi = "Riqi"
12
+ Riqi = "Riqi",
13
+ Contexture = "Contexture",
14
+ Pcc = "Pcc"
11
15
  }
12
16
  export declare const ALL_HIES: HieName[];
13
17
  export declare const NUMBER_OF_HIEs: number;
18
+ export declare const hieNameSchema: z.ZodNativeEnum<typeof HieName>;
19
+ export declare function isValidHieName(value: string): value is HieName;
20
+ export declare function parseHieName(value: string): HieName;
14
21
  /** @deprecated Use HieName.Bamboo */
15
22
  export declare const BAMBOO_HIE_NAME = HieName.Bamboo;
16
23
  /** @deprecated Use HieName.Konza */
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/external/hl7v2/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,OAAO;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,kBAAkB,uBAAuB;IACzC,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,eAAO,MAAM,QAAQ,WAAyB,CAAC;AAC/C,eAAO,MAAM,cAAc,QAAkB,CAAC;AAE9C,qCAAqC;AACrC,eAAO,MAAM,eAAe,iBAAiB,CAAC;AAC9C,oCAAoC;AACpC,eAAO,MAAM,cAAc,gBAAgB,CAAC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AA0C;AAC1C,eAAO,MAAM,aAAa,sBAAsB,CAAC;AACjD,oCAAoC;AACpC,eAAO,MAAM,cAAc,gBAAgB,CAAC;AAC5C,oCAAoC;AACpC,eAAO,MAAM,cAAc,gBAAgB,CAAC;AAC5C,oCAAoC;AACpC,eAAO,MAAM,cAAc,gBAAgB,CAAC;AAC5C,mCAAmC;AACnC,eAAO,MAAM,aAAa,eAAe,CAAC"}
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RIQI_HIE_NAME = exports.FLHIE_HIE_NAME = exports.LAHIE_HIE_NAME = exports.ALOHR_HIE_NAME = exports.HIE_TEXAS_PCC = exports.HIXNY_HIE_NAME = exports.HEALTH_CONNECT_TEXAS_HIE_NAME = exports.KONZA_HIE_NAME = exports.BAMBOO_HIE_NAME = exports.NUMBER_OF_HIEs = exports.ALL_HIES = exports.HieName = void 0;
3
+ exports.RIQI_HIE_NAME = exports.FLHIE_HIE_NAME = exports.LAHIE_HIE_NAME = exports.ALOHR_HIE_NAME = exports.HIE_TEXAS_PCC = exports.HIXNY_HIE_NAME = exports.HEALTH_CONNECT_TEXAS_HIE_NAME = exports.KONZA_HIE_NAME = exports.BAMBOO_HIE_NAME = exports.parseHieName = exports.isValidHieName = exports.hieNameSchema = exports.NUMBER_OF_HIEs = exports.ALL_HIES = exports.HieName = void 0;
4
+ const metriport_error_1 = require("../../error/metriport-error");
5
+ const zod_1 = require("zod");
4
6
  var HieName;
5
7
  (function (HieName) {
8
+ HieName["MyTestHIE"] = "MyTestHIE";
6
9
  HieName["Bamboo"] = "Bamboo";
7
10
  HieName["Konza"] = "Konza";
8
11
  HieName["HealthConnectTexas"] = "HealthConnectTexas";
@@ -12,9 +15,26 @@ var HieName;
12
15
  HieName["Lahie"] = "Lahie";
13
16
  HieName["Flhie"] = "Flhie";
14
17
  HieName["Riqi"] = "Riqi";
18
+ HieName["Contexture"] = "Contexture";
19
+ HieName["Pcc"] = "Pcc";
15
20
  })(HieName = exports.HieName || (exports.HieName = {}));
16
21
  exports.ALL_HIES = Object.values(HieName);
17
22
  exports.NUMBER_OF_HIEs = exports.ALL_HIES.length;
23
+ exports.hieNameSchema = zod_1.z.nativeEnum(HieName);
24
+ function isValidHieName(value) {
25
+ return exports.hieNameSchema.safeParse(value).success;
26
+ }
27
+ exports.isValidHieName = isValidHieName;
28
+ function parseHieName(value) {
29
+ if (!isValidHieName(value)) {
30
+ throw new metriport_error_1.MetriportError(`Invalid HIE name.`, undefined, {
31
+ hieNameGiven: value,
32
+ validHieNames: exports.ALL_HIES.join(" | "),
33
+ });
34
+ }
35
+ return value;
36
+ }
37
+ exports.parseHieName = parseHieName;
18
38
  /** @deprecated Use HieName.Bamboo */
19
39
  exports.BAMBOO_HIE_NAME = HieName.Bamboo;
20
40
  /** @deprecated Use HieName.Konza */
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/external/hl7v2/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAUX;AAVD,WAAY,OAAO;IACjB,4BAAiB,CAAA;IACjB,0BAAe,CAAA;IACf,oDAAyC,CAAA;IACzC,0BAAe,CAAA;IACf,sCAA2B,CAAA;IAC3B,0BAAe,CAAA;IACf,0BAAe,CAAA;IACf,0BAAe,CAAA;IACf,wBAAa,CAAA;AACf,CAAC,EAVW,OAAO,GAAP,eAAO,KAAP,eAAO,QAUlB;AAEY,QAAA,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAClC,QAAA,cAAc,GAAG,gBAAQ,CAAC,MAAM,CAAC;AAE9C,qCAAqC;AACxB,QAAA,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;AAC9C,oCAAoC;AACvB,QAAA,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC;AAC5C,iDAAiD;AACpC,QAAA,6BAA6B,GAAG,OAAO,CAAC,kBAAkB,CAAC;AACxE,oCAAoC;AACvB,QAAA,cA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ACvD,YAAY,EAAE,KAAK;YACnB,aAAa,EAAE,gBAAQ,CAAC,IAAI,CAAC,KAAK,CAAC;SACpC,CAAC,CAAC;KACJ;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AARD,oCAQC;AAED,qCAAqC;AACxB,QAAA,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;AAC9C,oCAAoC;AACvB,QAAA,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC;AAC5C,iDAAiD;AACpC,QAAA,6BAA6B,GAAG,OAAO,CAAC,kBAAkB,CAAC;AACxE,oCAAoC;AACvB,QAAA,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC;AAC5C,0CAA0C;AAC7B,QAAA,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC;AACjD,oCAAoC;AACvB,QAAA,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC;AAC5C,oCAAoC;AACvB,QAAA,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC;AAC5C,oCAAoC;AACvB,QAAA,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC;AAC5C,mCAAmC;AACtB,QAAA,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC"}
package/dist/index.d.ts CHANGED
@@ -8,53 +8,56 @@ export { emptyFunction } from "./common/general";
8
8
  export { metriportOrganization } from "./common/metriport-organization";
9
9
  export { isValidUrl } from "./common/net";
10
10
  export { normalizeOid } from "./common/normalize-oid";
11
- export { PurposeOfUse } from "./common/purpose-of-use";
11
+ export { isAcceptedPurposeOfUse, NO_POU_SPECIFIED, PurposeOfUse } from "./common/purpose-of-use";
12
12
  export * from "./common/retry";
13
13
  export { sleep, sleepRandom } from "./common/sleep";
14
+ export * from "./common/sql";
14
15
  export * from "./common/string";
15
16
  export { toTitleCase } from "./common/title-case";
16
17
  export { AtLeastOne, stringToBoolean } from "./common/types";
17
18
  export { validateNPI } from "./common/validate-npi";
18
- export * from "./common/sql";
19
19
  export * from "./domain/address/city";
20
- export * from "./domain/address/zip";
21
20
  export * from "./domain/address/country";
22
21
  export * from "./domain/address/index";
23
22
  export * from "./domain/address/state";
24
23
  export * from "./domain/address/territory";
25
24
  export * from "./domain/address/zip";
25
+ export * from "./domain/cohort";
26
26
  export * from "./domain/contact/email";
27
27
  export * from "./domain/contact/phone";
28
28
  export * from "./domain/db";
29
29
  export * from "./domain/dob";
30
30
  export * from "./domain/externalId";
31
31
  export * from "./domain/gender";
32
- export * from "./domain/cohort";
33
- export * from "./domain/jwt-token";
34
- export { metriportCompanyDetails } from "./domain/metriport";
35
- export * from "./domain/patient/patient";
36
- export * from "./domain/patient/patient-settings";
37
- export * from "./domain/patient/patient-import/schemas";
38
- export * from "./domain/rate-limiting";
39
- export * from "./domain/secrets";
40
32
  export * from "./domain/job/job-status";
41
33
  export * from "./domain/job/patient-job";
42
34
  export * from "./domain/job/types";
35
+ export * from "./domain/jwt-token";
36
+ export { metriportCompanyDetails } from "./domain/metriport";
43
37
  export * from "./domain/organization";
44
38
  export * from "./domain/roster/roster";
45
39
  export * from "./domain/roster/roster-status";
46
40
  export * from "./domain/roster/patient-roster";
41
+ export * from "./domain/roster/patient-roster-added-by";
47
42
  export * from "./domain/pagination";
48
43
  export * from "./domain/pagination-v2";
44
+ export * from "./domain/patient/patient";
45
+ export * from "./domain/patient/patient-import/schemas";
46
+ export * from "./domain/patient/patient-settings";
47
+ export * from "./domain/rate-limiting";
48
+ export * from "./domain/roster/patient-roster";
49
+ export * from "./domain/roster/roster";
50
+ export * from "./domain/roster/roster-status";
51
+ export * from "./domain/secrets";
49
52
  export { BadRequestError } from "./error/bad-request";
50
53
  export { AdditionalInfo, MetriportError } from "./error/metriport-error";
51
54
  export { NotFoundError } from "./error/not-found";
52
55
  export * from "./error/shared";
53
56
  export { TooManyRequestsError } from "./error/too-many-requests";
54
57
  export * from "./external";
58
+ export * from "./external/ihe";
55
59
  export * from "./interface";
56
60
  export * as medical from "./medical";
57
61
  export * from "./net";
58
62
  export * from "./util";
59
- export * from "./external/ihe";
60
63
  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AA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yCAAyC,CAAC;AACxD,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC"}
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.medical = exports.TooManyRequestsError = exports.NotFoundError = exports.MetriportError = exports.BadRequestError = exports.metriportCompanyDetails = exports.validateNPI = exports.stringToBoolean = exports.toTitleCase = exports.sleepRandom = exports.sleep = exports.PurposeOfUse = exports.normalizeOid = exports.isValidUrl = exports.metriportOrganization = exports.emptyFunction = exports.getDomainFromEmailWithoutTld = exports.validateDateIsAfter1900 = exports.optionalDateSchema = exports.dateSchema = exports.isTrue = exports.toArray = void 0;
29
+ exports.medical = exports.TooManyRequestsError = exports.NotFoundError = exports.MetriportError = exports.BadRequestError = exports.metriportCompanyDetails = exports.validateNPI = exports.stringToBoolean = exports.toTitleCase = exports.sleepRandom = exports.sleep = exports.PurposeOfUse = exports.NO_POU_SPECIFIED = exports.isAcceptedPurposeOfUse = exports.normalizeOid = exports.isValidUrl = exports.metriportOrganization = exports.emptyFunction = exports.getDomainFromEmailWithoutTld = exports.validateDateIsAfter1900 = exports.optionalDateSchema = exports.dateSchema = exports.isTrue = exports.toArray = void 0;
30
30
  __exportStar(require("./api/index"), exports);
31
31
  var array_1 = require("./common/array");
32
32
  Object.defineProperty(exports, "toArray", { enumerable: true, get: function () { return array_1.toArray; } });
@@ -48,11 +48,14 @@ Object.defineProperty(exports, "isValidUrl", { enumerable: true, get: function (
48
48
  var normalize_oid_1 = require("./common/normalize-oid");
49
49
  Object.defineProperty(exports, "normalizeOid", { enumerable: true, get: function () { return normalize_oid_1.normalizeOid; } });
50
50
  var purpose_of_use_1 = require("./common/purpose-of-use");
51
+ Object.defineProperty(exports, "isAcceptedPurposeOfUse", { enumerable: true, get: function () { return purpose_of_use_1.isAcceptedPurposeOfUse; } });
52
+ Object.defineProperty(exports, "NO_POU_SPECIFIED", { enumerable: true, get: function () { return purpose_of_use_1.NO_POU_SPECIFIED; } });
51
53
  Object.defineProperty(exports, "PurposeOfUse", { enumerable: true, get: function () { return purpose_of_use_1.PurposeOfUse; } });
52
54
  __exportStar(require("./common/retry"), exports);
53
55
  var sleep_1 = require("./common/sleep");
54
56
  Object.defineProperty(exports, "sleep", { enumerable: true, get: function () { return sleep_1.sleep; } });
55
57
  Object.defineProperty(exports, "sleepRandom", { enumerable: true, get: function () { return sleep_1.sleepRandom; } });
58
+ __exportStar(require("./common/sql"), exports);
56
59
  __exportStar(require("./common/string"), exports);
57
60
  var title_case_1 = require("./common/title-case");
58
61
  Object.defineProperty(exports, "toTitleCase", { enumerable: true, get: function () { return title_case_1.toTitleCase; } });
@@ -60,38 +63,40 @@ var types_1 = require("./common/types");
60
63
  Object.defineProperty(exports, "stringToBoolean", { enumerable: true, get: function () { return types_1.stringToBoolean; } });
61
64
  var validate_npi_1 = require("./common/validate-npi");
62
65
  Object.defineProperty(exports, "validateNPI", { enumerable: true, get: function () { return validate_npi_1.validateNPI; } });
63
- __exportStar(require("./common/sql"), exports);
64
66
  __exportStar(require("./domain/address/city"), exports);
65
- __exportStar(require("./domain/address/zip"), exports);
66
67
  __exportStar(require("./domain/address/country"), exports);
67
68
  __exportStar(require("./domain/address/index"), exports);
68
69
  __exportStar(require("./domain/address/state"), exports);
69
70
  __exportStar(require("./domain/address/territory"), exports);
70
71
  __exportStar(require("./domain/address/zip"), exports);
72
+ __exportStar(require("./domain/cohort"), exports);
71
73
  __exportStar(require("./domain/contact/email"), exports);
72
74
  __exportStar(require("./domain/contact/phone"), exports);
73
75
  __exportStar(require("./domain/db"), exports);
74
76
  __exportStar(require("./domain/dob"), exports);
75
77
  __exportStar(require("./domain/externalId"), exports);
76
78
  __exportStar(require("./domain/gender"), exports);
77
- __exportStar(require("./domain/cohort"), exports);
78
- __exportStar(require("./domain/jwt-token"), exports);
79
- var metriport_1 = require("./domain/metriport");
80
- Object.defineProperty(exports, "metriportCompanyDetails", { enumerable: true, get: function () { return metriport_1.metriportCompanyDetails; } });
81
- __exportStar(require("./domain/patient/patient"), exports);
82
- __exportStar(require("./domain/patient/patient-settings"), exports);
83
- __exportStar(require("./domain/patient/patient-import/schemas"), exports);
84
- __exportStar(require("./domain/rate-limiting"), exports);
85
- __exportStar(require("./domain/secrets"), exports);
86
79
  __exportStar(require("./domain/job/job-status"), exports);
87
80
  __exportStar(require("./domain/job/patient-job"), exports);
88
81
  __exportStar(require("./domain/job/types"), exports);
82
+ __exportStar(require("./domain/jwt-token"), exports);
83
+ var metriport_1 = require("./domain/metriport");
84
+ Object.defineProperty(exports, "metriportCompanyDetails", { enumerable: true, get: function () { return metriport_1.metriportCompanyDetails; } });
89
85
  __exportStar(require("./domain/organization"), exports);
90
86
  __exportStar(require("./domain/roster/roster"), exports);
91
87
  __exportStar(require("./domain/roster/roster-status"), exports);
92
88
  __exportStar(require("./domain/roster/patient-roster"), exports);
89
+ __exportStar(require("./domain/roster/patient-roster-added-by"), exports);
93
90
  __exportStar(require("./domain/pagination"), exports);
94
91
  __exportStar(require("./domain/pagination-v2"), exports);
92
+ __exportStar(require("./domain/patient/patient"), exports);
93
+ __exportStar(require("./domain/patient/patient-import/schemas"), exports);
94
+ __exportStar(require("./domain/patient/patient-settings"), exports);
95
+ __exportStar(require("./domain/rate-limiting"), exports);
96
+ __exportStar(require("./domain/roster/patient-roster"), exports);
97
+ __exportStar(require("./domain/roster/roster"), exports);
98
+ __exportStar(require("./domain/roster/roster-status"), exports);
99
+ __exportStar(require("./domain/secrets"), exports);
95
100
  var bad_request_1 = require("./error/bad-request");
96
101
  Object.defineProperty(exports, "BadRequestError", { enumerable: true, get: function () { return bad_request_1.BadRequestError; } });
97
102
  var metriport_error_1 = require("./error/metriport-error");
@@ -102,9 +107,9 @@ __exportStar(require("./error/shared"), exports);
102
107
  var too_many_requests_1 = require("./error/too-many-requests");
103
108
  Object.defineProperty(exports, "TooManyRequestsError", { enumerable: true, get: function () { return too_many_requests_1.TooManyRequestsError; } });
104
109
  __exportStar(require("./external"), exports);
110
+ __exportStar(require("./external/ihe"), exports);
105
111
  __exportStar(require("./interface"), exports);
106
112
  exports.medical = __importStar(require("./medical"));
107
113
  __exportStar(require("./net"), exports);
108
114
  __exportStar(require("./util"), exports);
109
- __exportStar(require("./external/ihe"), exports);
110
115
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,wCAAyC;AAAhC,gGAAA,OAAO,OAAA;AAChB,4CAA0C;AAAjC,iGAAA,MAAM,OAAA;AACf,sCAAwF;AAA/E,kGAAA,UAAU,OAAA;AAAE,0GAAA,kBAAkB,OAAA;AAAE,+GA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AAwD;AACxD,sDAAoC;AACpC,yDAAuC;AACvC,2DAAyC;AACzC,0EAAwD;AACxD,oEAAkD;AAClD,yDAAuC;AACvC,iEAA+C;AAC/C,yDAAuC;AACvC,gEAA8C;AAC9C,mDAAiC;AACjC,mDAAsD;AAA7C,8GAAA,eAAe,OAAA;AACxB,2DAAyE;AAAhD,iHAAA,cAAc,OAAA;AACvC,+CAAkD;AAAzC,0GAAA,aAAa,OAAA;AACtB,iDAA+B;AAC/B,+DAAiE;AAAxD,yHAAA,oBAAoB,OAAA;AAC7B,6CAA2B;AAC3B,iDAA+B;AAC/B,8CAA4B;AAC5B,qDAAqC;AACrC,wCAAsB;AACtB,yCAAuB"}
@@ -1,7 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export declare const canvasSecondaryMappingsSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3
3
  webhookPatientPatientProcessingEnabled: z.ZodOptional<z.ZodBoolean>;
4
- adtProcessingEnabled: z.ZodOptional<z.ZodBoolean>;
5
4
  }, {
6
5
  writeBackEnabled: z.ZodOptional<z.ZodBoolean>;
7
6
  writeBackFilters: z.ZodOptional<z.ZodObject<{
@@ -398,7 +397,6 @@ export declare const canvasSecondaryMappingsSchema: z.ZodObject<z.objectUtil.ext
398
397
  } | undefined;
399
398
  sendDocumentQueryWebhookEnabled?: boolean | undefined;
400
399
  webhookPatientPatientProcessingEnabled?: boolean | undefined;
401
- adtProcessingEnabled?: boolean | undefined;
402
400
  }, {
403
401
  writeBackEnabled?: boolean | undefined;
404
402
  writeBackFilters?: {
@@ -466,7 +464,6 @@ export declare const canvasSecondaryMappingsSchema: z.ZodObject<z.objectUtil.ext
466
464
  } | undefined;
467
465
  sendDocumentQueryWebhookEnabled?: boolean | undefined;
468
466
  webhookPatientPatientProcessingEnabled?: boolean | undefined;
469
- adtProcessingEnabled?: boolean | undefined;
470
467
  }>;
471
468
  export type CanvasSecondaryMappings = z.infer<typeof canvasSecondaryMappingsSchema>;
472
469
  //# sourceMappingURL=cx-mapping.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cx-mapping.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/cx-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMC,CAAC;AAC5C,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
1
+ {"version":3,"file":"cx-mapping.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/cx-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKC,CAAC;AAC5C,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
@@ -6,7 +6,6 @@ const shared_1 = require("../shared");
6
6
  exports.canvasSecondaryMappingsSchema = zod_1.z
7
7
  .object({
8
8
  webhookPatientPatientProcessingEnabled: zod_1.z.boolean().optional(),
9
- adtProcessingEnabled: zod_1.z.boolean().optional(),
10
9
  })
11
10
  .merge(shared_1.writeBackFiltersSchema)
12
11
  .merge(shared_1.documentQueryWebhookFiltersSchema);
@@ -1 +1 @@
1
- {"version":3,"file":"cx-mapping.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/cx-mapping.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sCAAsF;AAEzE,QAAA,6BAA6B,GAAG,OAAC;KAC3C,MAAM,CAAC;IACN,sCAAsC,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9D,oBAAoB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC7C,CAAC;KACD,KAAK,CAAC,+BAAsB,CAAC;KAC7B,KAAK,CAAC,0CAAiC,CAAC,CAAC"}
1
+ {"version":3,"file":"cx-mapping.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/cx-mapping.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sCAAsF;AAEzE,QAAA,6BAA6B,GAAG,OAAC;KAC3C,MAAM,CAAC;IACN,sCAAsC,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC/D,CAAC;KACD,KAAK,CAAC,+BAAsB,CAAC;KAC7B,KAAK,CAAC,0CAAiC,CAAC,CAAC"}
@@ -6,12 +6,12 @@ export declare const eclinicalworksDashJwtTokenDataSchema: z.ZodObject<{
6
6
  patientId: z.ZodString;
7
7
  source: z.ZodLiteral<"eclinicalworks">;
8
8
  }, "strip", z.ZodTypeAny, {
9
- patientId: string;
10
9
  source: "eclinicalworks";
10
+ patientId: string;
11
11
  practiceId: string;
12
12
  }, {
13
- patientId: string;
14
13
  source: "eclinicalworks";
14
+ patientId: string;
15
15
  practiceId: string;
16
16
  }>;
17
17
  export type EClinicalWorksDashJwtTokenData = z.infer<typeof eclinicalworksDashJwtTokenDataSchema>;
@@ -6,12 +6,12 @@ export declare const elationDashJwtTokenDataSchema: z.ZodObject<{
6
6
  patientId: z.ZodString;
7
7
  source: z.ZodLiteral<"elation">;
8
8
  }, "strip", z.ZodTypeAny, {
9
- patientId: string;
10
9
  source: "elation";
10
+ patientId: string;
11
11
  practiceId: string;
12
12
  }, {
13
- patientId: string;
14
13
  source: "elation";
14
+ patientId: string;
15
15
  practiceId: string;
16
16
  }>;
17
17
  export type ElationDashJwtTokenData = z.infer<typeof elationDashJwtTokenDataSchema>;