@metriport/shared 0.27.0 → 0.27.2-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 (153) hide show
  1. package/dist/domain/patient/patient-import.d.ts +131 -0
  2. package/dist/domain/patient/patient-import.d.ts.map +1 -0
  3. package/dist/domain/patient/patient-import.js +32 -0
  4. package/dist/domain/patient/patient-import.js.map +1 -0
  5. package/dist/external/hl7v2/constants.d.ts +9 -0
  6. package/dist/external/hl7v2/constants.d.ts.map +1 -0
  7. package/dist/external/hl7v2/constants.js +12 -0
  8. package/dist/external/hl7v2/constants.js.map +1 -0
  9. package/dist/external/index.d.ts +1 -0
  10. package/dist/external/index.d.ts.map +1 -1
  11. package/dist/external/index.js +1 -0
  12. package/dist/external/index.js.map +1 -1
  13. package/dist/interface/external/athenahealth/appointment.d.ts +63 -0
  14. package/dist/interface/external/athenahealth/appointment.d.ts.map +1 -0
  15. package/dist/interface/external/athenahealth/appointment.js +18 -0
  16. package/dist/interface/external/athenahealth/appointment.js.map +1 -0
  17. package/dist/interface/external/athenahealth/cx-mapping.d.ts +10 -0
  18. package/dist/interface/external/athenahealth/cx-mapping.d.ts.map +1 -0
  19. package/dist/interface/external/athenahealth/cx-mapping.js +8 -0
  20. package/dist/interface/external/athenahealth/cx-mapping.js.map +1 -0
  21. package/dist/interface/external/athenahealth/department.d.ts +28 -0
  22. package/dist/interface/external/athenahealth/department.d.ts.map +1 -0
  23. package/dist/interface/external/athenahealth/department.js +11 -0
  24. package/dist/interface/external/athenahealth/department.js.map +1 -0
  25. package/dist/interface/external/athenahealth/index.d.ts +9 -0
  26. package/dist/interface/external/athenahealth/index.d.ts.map +1 -0
  27. package/dist/interface/external/athenahealth/index.js +25 -0
  28. package/dist/interface/external/athenahealth/index.js.map +1 -0
  29. package/dist/interface/external/athenahealth/jwt-token.d.ts +34 -0
  30. package/dist/interface/external/athenahealth/jwt-token.d.ts.map +1 -0
  31. package/dist/interface/external/athenahealth/jwt-token.js +18 -0
  32. package/dist/interface/external/athenahealth/jwt-token.js.map +1 -0
  33. package/dist/interface/external/athenahealth/medication.d.ts +50 -0
  34. package/dist/interface/external/athenahealth/medication.d.ts.map +1 -0
  35. package/dist/interface/external/athenahealth/medication.js +19 -0
  36. package/dist/interface/external/athenahealth/medication.js.map +1 -0
  37. package/dist/interface/external/athenahealth/problem.d.ts +27 -0
  38. package/dist/interface/external/athenahealth/problem.d.ts.map +1 -0
  39. package/dist/interface/external/athenahealth/problem.js +14 -0
  40. package/dist/interface/external/athenahealth/problem.js.map +1 -0
  41. package/dist/interface/external/athenahealth/subscription.d.ts +20 -0
  42. package/dist/interface/external/athenahealth/subscription.d.ts.map +1 -0
  43. package/dist/interface/external/athenahealth/subscription.js +11 -0
  44. package/dist/interface/external/athenahealth/subscription.js.map +1 -0
  45. package/dist/interface/external/athenahealth/vitals.d.ts +82 -0
  46. package/dist/interface/external/athenahealth/vitals.d.ts.map +1 -0
  47. package/dist/interface/external/athenahealth/vitals.js +15 -0
  48. package/dist/interface/external/athenahealth/vitals.js.map +1 -0
  49. package/dist/interface/external/canvas/appointment.d.ts +68 -0
  50. package/dist/interface/external/canvas/appointment.d.ts.map +1 -0
  51. package/dist/interface/external/canvas/appointment.js +15 -0
  52. package/dist/interface/external/canvas/appointment.js.map +1 -0
  53. package/dist/interface/external/canvas/index.d.ts +3 -0
  54. package/dist/interface/external/canvas/index.d.ts.map +1 -0
  55. package/dist/interface/external/canvas/index.js +19 -0
  56. package/dist/interface/external/canvas/index.js.map +1 -0
  57. package/dist/interface/external/canvas/jwt-token.d.ts +31 -0
  58. package/dist/interface/external/canvas/jwt-token.d.ts.map +1 -0
  59. package/dist/interface/external/canvas/jwt-token.js +17 -0
  60. package/dist/interface/external/canvas/jwt-token.js.map +1 -0
  61. package/dist/interface/external/ehr/athenahealth/family-history.d.ts +302 -0
  62. package/dist/interface/external/ehr/athenahealth/family-history.d.ts.map +1 -0
  63. package/dist/interface/external/ehr/athenahealth/family-history.js +46 -0
  64. package/dist/interface/external/ehr/athenahealth/family-history.js.map +1 -0
  65. package/dist/interface/external/ehr/athenahealth/index.d.ts +1 -0
  66. package/dist/interface/external/ehr/athenahealth/index.d.ts.map +1 -1
  67. package/dist/interface/external/ehr/athenahealth/index.js +1 -0
  68. package/dist/interface/external/ehr/athenahealth/index.js.map +1 -1
  69. package/dist/interface/external/elation/appointment.d.ts +68 -0
  70. package/dist/interface/external/elation/appointment.d.ts.map +1 -0
  71. package/dist/interface/external/elation/appointment.js +15 -0
  72. package/dist/interface/external/elation/appointment.js.map +1 -0
  73. package/dist/interface/external/elation/index.d.ts +4 -0
  74. package/dist/interface/external/elation/index.d.ts.map +1 -0
  75. package/dist/interface/external/elation/index.js +20 -0
  76. package/dist/interface/external/elation/index.js.map +1 -0
  77. package/dist/interface/external/elation/jwt-token.d.ts +20 -0
  78. package/dist/interface/external/elation/jwt-token.d.ts.map +1 -0
  79. package/dist/interface/external/elation/jwt-token.js +13 -0
  80. package/dist/interface/external/elation/jwt-token.js.map +1 -0
  81. package/dist/interface/external/elation/patient.d.ts +96 -0
  82. package/dist/interface/external/elation/patient.d.ts.map +1 -0
  83. package/dist/interface/external/elation/patient.js +33 -0
  84. package/dist/interface/external/elation/patient.js.map +1 -0
  85. package/dist/interface/external/shared/ehr/patient.d.ts +250 -0
  86. package/dist/interface/external/shared/ehr/patient.d.ts.map +1 -0
  87. package/dist/interface/external/shared/ehr/patient.js +35 -0
  88. package/dist/interface/external/shared/ehr/patient.js.map +1 -0
  89. package/package.json +10 -2
  90. package/dist/core/src/domain/document-query.d.ts +0 -25
  91. package/dist/core/src/domain/document-query.d.ts.map +0 -1
  92. package/dist/core/src/domain/document-query.js +0 -27
  93. package/dist/core/src/domain/document-query.js.map +0 -1
  94. package/dist/domain/network/network-query.d.ts +0 -30
  95. package/dist/domain/network/network-query.d.ts.map +0 -1
  96. package/dist/domain/network/network-query.js +0 -8
  97. package/dist/domain/network/network-query.js.map +0 -1
  98. package/dist/domain/network-query/network-query.d.ts +0 -31
  99. package/dist/domain/network-query/network-query.d.ts.map +0 -1
  100. package/dist/domain/network-query/network-query.js +0 -9
  101. package/dist/domain/network-query/network-query.js.map +0 -1
  102. package/dist/domain/network-query/source.d.ts +0 -31
  103. package/dist/domain/network-query/source.d.ts.map +0 -1
  104. package/dist/domain/network-query/source.js +0 -9
  105. package/dist/domain/network-query/source.js.map +0 -1
  106. package/dist/domain/network-qyert/network-query.d.ts +0 -31
  107. package/dist/domain/network-qyert/network-query.d.ts.map +0 -1
  108. package/dist/domain/network-qyert/network-query.js +0 -9
  109. package/dist/domain/network-qyert/network-query.js.map +0 -1
  110. package/dist/domain/roster/patient-roster.d.ts +0 -27
  111. package/dist/domain/roster/patient-roster.d.ts.map +0 -1
  112. package/dist/domain/roster/patient-roster.js +0 -3
  113. package/dist/domain/roster/patient-roster.js.map +0 -1
  114. package/dist/domain/roster/roster-status.d.ts +0 -16
  115. package/dist/domain/roster/roster-status.d.ts.map +0 -1
  116. package/dist/domain/roster/roster-status.js +0 -46
  117. package/dist/domain/roster/roster-status.js.map +0 -1
  118. package/dist/domain/roster/roster.d.ts +0 -32
  119. package/dist/domain/roster/roster.d.ts.map +0 -1
  120. package/dist/domain/roster/roster.js +0 -3
  121. package/dist/domain/roster/roster.js.map +0 -1
  122. package/dist/interface/external/quest/fhir.d.ts +0 -22
  123. package/dist/interface/external/quest/fhir.d.ts.map +0 -1
  124. package/dist/interface/external/quest/fhir.js +0 -9
  125. package/dist/interface/external/quest/fhir.js.map +0 -1
  126. package/dist/interface/external/quest/file.d.ts +0 -15
  127. package/dist/interface/external/quest/file.d.ts.map +0 -1
  128. package/dist/interface/external/quest/file.js +0 -3
  129. package/dist/interface/external/quest/file.js.map +0 -1
  130. package/dist/interface/external/quest/roster.d.ts +0 -167
  131. package/dist/interface/external/quest/roster.d.ts.map +0 -1
  132. package/dist/interface/external/quest/roster.js +0 -40
  133. package/dist/interface/external/quest/roster.js.map +0 -1
  134. package/dist/interface/external/surescripts/roster.d.ts +0 -12
  135. package/dist/interface/external/surescripts/roster.d.ts.map +0 -1
  136. package/dist/interface/external/surescripts/roster.js +0 -29
  137. package/dist/interface/external/surescripts/roster.js.map +0 -1
  138. package/dist/interface/external/surescripts/source.d.ts +0 -2
  139. package/dist/interface/external/surescripts/source.d.ts.map +0 -1
  140. package/dist/interface/external/surescripts/source.js +0 -5
  141. package/dist/interface/external/surescripts/source.js.map +0 -1
  142. package/dist/shared/src/domain/network/network-query.d.ts +0 -30
  143. package/dist/shared/src/domain/network/network-query.d.ts.map +0 -1
  144. package/dist/shared/src/domain/network/network-query.js +0 -8
  145. package/dist/shared/src/domain/network/network-query.js.map +0 -1
  146. package/dist/shared/src/domain/network-query/network-query.d.ts +0 -30
  147. package/dist/shared/src/domain/network-query/network-query.d.ts.map +0 -1
  148. package/dist/shared/src/domain/network-query/network-query.js +0 -8
  149. package/dist/shared/src/domain/network-query/network-query.js.map +0 -1
  150. package/dist/shared/src/domain/network-qyert/network-query.d.ts +0 -30
  151. package/dist/shared/src/domain/network-qyert/network-query.d.ts.map +0 -1
  152. package/dist/shared/src/domain/network-qyert/network-query.js +0 -8
  153. package/dist/shared/src/domain/network-qyert/network-query.js.map +0 -1
@@ -1,167 +0,0 @@
1
- import { z } from "zod";
2
- export declare const QuestRosterType: {
3
- readonly NOTIFICATIONS: "notifications";
4
- readonly BACKFILL: "backfill";
5
- };
6
- export type QuestRosterType = (typeof QuestRosterType)[keyof typeof QuestRosterType];
7
- export declare const questRosterTypeSchema: z.ZodEnum<["notifications", "backfill"]>;
8
- export declare function isValidQuestRosterType(value: string): value is QuestRosterType;
9
- export declare function validateQuestRosterType(value: string): QuestRosterType;
10
- export declare function isBackfillRosterType(rosterType: QuestRosterType): boolean;
11
- export declare function isNotificationRosterType(rosterType: QuestRosterType): boolean;
12
- export declare const questRosterResponseSchema: z.ZodObject<{
13
- patients: z.ZodArray<z.ZodObject<{
14
- id: z.ZodString;
15
- externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
- facilityIds: z.ZodArray<z.ZodString, "many">;
17
- firstName: z.ZodString;
18
- lastName: z.ZodString;
19
- dob: z.ZodString;
20
- genderAtBirth: z.ZodEnum<["M", "F", "O", "U"]>;
21
- dateCreated: z.ZodString;
22
- address: z.ZodArray<z.ZodObject<{
23
- addressLine1: z.ZodOptional<z.ZodString>;
24
- addressLine2: z.ZodOptional<z.ZodString>;
25
- city: z.ZodOptional<z.ZodString>;
26
- state: z.ZodOptional<z.ZodString>;
27
- zip: z.ZodString;
28
- }, "strip", z.ZodTypeAny, {
29
- zip: string;
30
- addressLine1?: string | undefined;
31
- addressLine2?: string | undefined;
32
- city?: string | undefined;
33
- state?: string | undefined;
34
- }, {
35
- zip: string;
36
- addressLine1?: string | undefined;
37
- addressLine2?: string | undefined;
38
- city?: string | undefined;
39
- state?: string | undefined;
40
- }>, "many">;
41
- phoneNumber: z.ZodOptional<z.ZodString>;
42
- }, "strip", z.ZodTypeAny, {
43
- id: string;
44
- facilityIds: string[];
45
- firstName: string;
46
- lastName: string;
47
- dob: string;
48
- genderAtBirth: "M" | "F" | "O" | "U";
49
- dateCreated: string;
50
- address: {
51
- zip: string;
52
- addressLine1?: string | undefined;
53
- addressLine2?: string | undefined;
54
- city?: string | undefined;
55
- state?: string | undefined;
56
- }[];
57
- externalId?: string | null | undefined;
58
- phoneNumber?: string | undefined;
59
- }, {
60
- id: string;
61
- facilityIds: string[];
62
- firstName: string;
63
- lastName: string;
64
- dob: string;
65
- genderAtBirth: "M" | "F" | "O" | "U";
66
- dateCreated: string;
67
- address: {
68
- zip: string;
69
- addressLine1?: string | undefined;
70
- addressLine2?: string | undefined;
71
- city?: string | undefined;
72
- state?: string | undefined;
73
- }[];
74
- externalId?: string | null | undefined;
75
- phoneNumber?: string | undefined;
76
- }>, "many">;
77
- meta: z.ZodObject<{
78
- itemsInTotal: z.ZodOptional<z.ZodNumber>;
79
- itemsOnPage: z.ZodNumber;
80
- nextPage: z.ZodOptional<z.ZodString>;
81
- prevPage: z.ZodOptional<z.ZodString>;
82
- }, "strip", z.ZodTypeAny, {
83
- itemsOnPage: number;
84
- itemsInTotal?: number | undefined;
85
- nextPage?: string | undefined;
86
- prevPage?: string | undefined;
87
- }, {
88
- itemsOnPage: number;
89
- itemsInTotal?: number | undefined;
90
- nextPage?: string | undefined;
91
- prevPage?: string | undefined;
92
- }>;
93
- }, "strip", z.ZodTypeAny, {
94
- patients: {
95
- id: string;
96
- facilityIds: string[];
97
- firstName: string;
98
- lastName: string;
99
- dob: string;
100
- genderAtBirth: "M" | "F" | "O" | "U";
101
- dateCreated: string;
102
- address: {
103
- zip: string;
104
- addressLine1?: string | undefined;
105
- addressLine2?: string | undefined;
106
- city?: string | undefined;
107
- state?: string | undefined;
108
- }[];
109
- externalId?: string | null | undefined;
110
- phoneNumber?: string | undefined;
111
- }[];
112
- meta: {
113
- itemsOnPage: number;
114
- itemsInTotal?: number | undefined;
115
- nextPage?: string | undefined;
116
- prevPage?: string | undefined;
117
- };
118
- }, {
119
- patients: {
120
- id: string;
121
- facilityIds: string[];
122
- firstName: string;
123
- lastName: string;
124
- dob: string;
125
- genderAtBirth: "M" | "F" | "O" | "U";
126
- dateCreated: string;
127
- address: {
128
- zip: string;
129
- addressLine1?: string | undefined;
130
- addressLine2?: string | undefined;
131
- city?: string | undefined;
132
- state?: string | undefined;
133
- }[];
134
- externalId?: string | null | undefined;
135
- phoneNumber?: string | undefined;
136
- }[];
137
- meta: {
138
- itemsOnPage: number;
139
- itemsInTotal?: number | undefined;
140
- nextPage?: string | undefined;
141
- prevPage?: string | undefined;
142
- };
143
- }>;
144
- export type QuestRosterResponse = z.infer<typeof questRosterResponseSchema>;
145
- export declare const questRosterRequestSchema: z.ZodObject<{
146
- rosterType: z.ZodEnum<["notifications", "backfill"]>;
147
- cxId: z.ZodOptional<z.ZodString>;
148
- rosterId: z.ZodOptional<z.ZodString>;
149
- }, "strip", z.ZodTypeAny, {
150
- rosterType: "notifications" | "backfill";
151
- cxId?: string | undefined;
152
- rosterId?: string | undefined;
153
- }, {
154
- rosterType: "notifications" | "backfill";
155
- cxId?: string | undefined;
156
- rosterId?: string | undefined;
157
- }>;
158
- export type QuestRosterRequest = z.infer<typeof questRosterRequestSchema>;
159
- export interface QuestPatientStatus {
160
- backfill: boolean;
161
- notifications: boolean;
162
- }
163
- export interface QuestPatientRequest extends QuestPatientStatus {
164
- cxId: string;
165
- patientId: string;
166
- }
167
- //# sourceMappingURL=roster.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"roster.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/quest/roster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAErF,eAAO,MAAM,qBAAqB,0CAGhC,CAAC;AAEH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAE9E;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAEtE;AAED,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,eAAe,GAAG,OAAO,CAEzE;AAED,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,eAAe,GAAG,OAAO,CAE7E;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.questRosterRequestSchema = exports.questRosterResponseSchema = exports.isNotificationRosterType = exports.isBackfillRosterType = exports.validateQuestRosterType = exports.isValidQuestRosterType = exports.questRosterTypeSchema = exports.QuestRosterType = void 0;
4
- const zod_1 = require("zod");
5
- const pagination_1 = require("../../../domain/pagination");
6
- const patient_1 = require("../../../domain/patient");
7
- exports.QuestRosterType = {
8
- NOTIFICATIONS: "notifications",
9
- BACKFILL: "backfill",
10
- };
11
- exports.questRosterTypeSchema = zod_1.z.enum([
12
- exports.QuestRosterType.NOTIFICATIONS,
13
- exports.QuestRosterType.BACKFILL,
14
- ]);
15
- function isValidQuestRosterType(value) {
16
- return exports.questRosterTypeSchema.safeParse(value).success;
17
- }
18
- exports.isValidQuestRosterType = isValidQuestRosterType;
19
- function validateQuestRosterType(value) {
20
- return exports.questRosterTypeSchema.parse(value);
21
- }
22
- exports.validateQuestRosterType = validateQuestRosterType;
23
- function isBackfillRosterType(rosterType) {
24
- return rosterType === exports.QuestRosterType.BACKFILL;
25
- }
26
- exports.isBackfillRosterType = isBackfillRosterType;
27
- function isNotificationRosterType(rosterType) {
28
- return rosterType === exports.QuestRosterType.NOTIFICATIONS;
29
- }
30
- exports.isNotificationRosterType = isNotificationRosterType;
31
- exports.questRosterResponseSchema = zod_1.z.object({
32
- patients: zod_1.z.array(patient_1.patientSchema),
33
- meta: pagination_1.paginationMetaSchema,
34
- });
35
- exports.questRosterRequestSchema = zod_1.z.object({
36
- rosterType: exports.questRosterTypeSchema,
37
- cxId: zod_1.z.string().optional(),
38
- rosterId: zod_1.z.string().optional(),
39
- });
40
- //# sourceMappingURL=roster.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"roster.js","sourceRoot":"","sources":["../../../../src/interface/external/quest/roster.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2DAAkE;AAClE,qDAAwD;AAE3C,QAAA,eAAe,GAAG;IAC7B,aAAa,EAAE,eAAe;IAC9B,QAAQ,EAAE,UAAU;CACZ,CAAC;AAIE,QAAA,qBAAqB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC1C,uBAAe,CAAC,aAAa;IAC7B,uBAAe,CAAC,QAAQ;CACzB,CAAC,CAAC;AAEH,SAAgB,sBAAsB,CAAC,KAAa;IAClD,OAAO,6BAAqB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACxD,CAAC;AAFD,wDAEC;AAED,SAAgB,uBAAuB,CAAC,KAAa;IACnD,OAAO,6BAAqB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC;AAFD,0DAEC;AAED,SAAgB,oBAAoB,CAAC,UAA2B;IAC9D,OAAO,UAAU,KAAK,uBAAe,CAAC,QAAQ,CAAC;AACjD,CAAC;AAFD,oDAEC;AAED,SAAgB,wBAAwB,CAAC,UAA2B;IAClE,OAAO,UAAU,KAAK,uBAAe,CAAC,aAAa,CAAC;AACtD,CAAC;AAFD,4DAEC;AAEY,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,uBAAa,CAAC;IAChC,IAAI,EAAE,iCAAoB;CAC3B,CAAC,CAAC;AAIU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,UAAU,EAAE,6BAAqB;IACjC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- import { z } from "zod";
2
- export declare const SurescriptsRosterType: {
3
- readonly NOTIFICATIONS: "notifications";
4
- readonly BACKFILL: "backfill";
5
- };
6
- export type SurescriptsRosterType = (typeof SurescriptsRosterType)[keyof typeof SurescriptsRosterType];
7
- export declare const surescriptsRosterTypeSchema: z.ZodEnum<["notifications", "backfill"]>;
8
- export declare function isValidSurescriptsRosterType(value: string): value is SurescriptsRosterType;
9
- export declare function validateSurescriptsRosterType(value: string): SurescriptsRosterType;
10
- export declare function isSurescriptsNotificationRosterType(rosterType: SurescriptsRosterType): boolean;
11
- export declare function isSurescriptsBackfillRosterType(rosterType: SurescriptsRosterType): boolean;
12
- //# sourceMappingURL=roster.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"roster.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/roster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;CAGxB,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAC/B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAErE,eAAO,MAAM,2BAA2B,0CAGtC,CAAC;AAEH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAE1F;AAED,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,qBAAqB,CAElF;AAED,wBAAgB,mCAAmC,CAAC,UAAU,EAAE,qBAAqB,GAAG,OAAO,CAE9F;AAED,wBAAgB,+BAA+B,CAAC,UAAU,EAAE,qBAAqB,GAAG,OAAO,CAE1F"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSurescriptsBackfillRosterType = exports.isSurescriptsNotificationRosterType = exports.validateSurescriptsRosterType = exports.isValidSurescriptsRosterType = exports.surescriptsRosterTypeSchema = exports.SurescriptsRosterType = void 0;
4
- const zod_1 = require("zod");
5
- exports.SurescriptsRosterType = {
6
- NOTIFICATIONS: "notifications",
7
- BACKFILL: "backfill",
8
- };
9
- exports.surescriptsRosterTypeSchema = zod_1.z.enum([
10
- exports.SurescriptsRosterType.NOTIFICATIONS,
11
- exports.SurescriptsRosterType.BACKFILL,
12
- ]);
13
- function isValidSurescriptsRosterType(value) {
14
- return exports.surescriptsRosterTypeSchema.safeParse(value).success;
15
- }
16
- exports.isValidSurescriptsRosterType = isValidSurescriptsRosterType;
17
- function validateSurescriptsRosterType(value) {
18
- return exports.surescriptsRosterTypeSchema.parse(value);
19
- }
20
- exports.validateSurescriptsRosterType = validateSurescriptsRosterType;
21
- function isSurescriptsNotificationRosterType(rosterType) {
22
- return rosterType === exports.SurescriptsRosterType.NOTIFICATIONS;
23
- }
24
- exports.isSurescriptsNotificationRosterType = isSurescriptsNotificationRosterType;
25
- function isSurescriptsBackfillRosterType(rosterType) {
26
- return rosterType === exports.SurescriptsRosterType.BACKFILL;
27
- }
28
- exports.isSurescriptsBackfillRosterType = isSurescriptsBackfillRosterType;
29
- //# sourceMappingURL=roster.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"roster.js","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/roster.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,qBAAqB,GAAG;IACnC,aAAa,EAAE,eAAe;IAC9B,QAAQ,EAAE,UAAU;CACZ,CAAC;AAKE,QAAA,2BAA2B,GAAG,OAAC,CAAC,IAAI,CAAC;IAChD,6BAAqB,CAAC,aAAa;IACnC,6BAAqB,CAAC,QAAQ;CAC/B,CAAC,CAAC;AAEH,SAAgB,4BAA4B,CAAC,KAAa;IACxD,OAAO,mCAA2B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC9D,CAAC;AAFD,oEAEC;AAED,SAAgB,6BAA6B,CAAC,KAAa;IACzD,OAAO,mCAA2B,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAClD,CAAC;AAFD,sEAEC;AAED,SAAgB,mCAAmC,CAAC,UAAiC;IACnF,OAAO,UAAU,KAAK,6BAAqB,CAAC,aAAa,CAAC;AAC5D,CAAC;AAFD,kFAEC;AAED,SAAgB,+BAA+B,CAAC,UAAiC;IAC/E,OAAO,UAAU,KAAK,6BAAqB,CAAC,QAAQ,CAAC;AACvD,CAAC;AAFD,0EAEC"}
@@ -1,2 +0,0 @@
1
- export declare const surescriptsSource = "surescripts";
2
- //# sourceMappingURL=source.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/source.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,gBAAgB,CAAC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.surescriptsSource = void 0;
4
- exports.surescriptsSource = "surescripts";
5
- //# sourceMappingURL=source.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"source.js","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/source.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,aAAa,CAAC"}
@@ -1,30 +0,0 @@
1
- import { DocumentQueryStatus } from "../../../../core/src/domain/document-query";
2
- export type NetworkQueryParams = {
3
- cxId: string;
4
- facilityId: string;
5
- patientId: string;
6
- requestId?: string;
7
- };
8
- export type NetworkQueryProgress = {
9
- networks: SourceQueryProgress[];
10
- };
11
- export declare const hieSource = "hie";
12
- export declare const pharmacySource = "pharmacy";
13
- export declare const laboratorySource = "laboratory";
14
- export declare const networkSources: readonly ["hie", "pharmacy", "laboratory"];
15
- export type NetworkSource = (typeof networkSources)[number];
16
- export type SourceQueryProgress = {
17
- type: NetworkSource;
18
- source?: string;
19
- status: DocumentQueryStatus;
20
- startedAt?: Date;
21
- requestId?: string;
22
- documents?: {
23
- downloadInProgress: number;
24
- downloaded: number;
25
- converted: number;
26
- failed: number;
27
- total: number;
28
- };
29
- };
30
- //# sourceMappingURL=network-query.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"network-query.d.ts","sourceRoot":"","sources":["../../../../../src/domain/network/network-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AAEjF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,mBAAmB,EAAE,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,SAAS,QAAQ,CAAC;AAC/B,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,cAAc,4CAAyD,CAAC;AACrF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE;QACV,kBAAkB,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.networkSources = exports.laboratorySource = exports.pharmacySource = exports.hieSource = void 0;
4
- exports.hieSource = "hie";
5
- exports.pharmacySource = "pharmacy";
6
- exports.laboratorySource = "laboratory";
7
- exports.networkSources = [exports.hieSource, exports.pharmacySource, exports.laboratorySource];
8
- //# sourceMappingURL=network-query.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"network-query.js","sourceRoot":"","sources":["../../../../../src/domain/network/network-query.ts"],"names":[],"mappings":";;;AAaa,QAAA,SAAS,GAAG,KAAK,CAAC;AAClB,QAAA,cAAc,GAAG,UAAU,CAAC;AAC5B,QAAA,gBAAgB,GAAG,YAAY,CAAC;AAChC,QAAA,cAAc,GAAG,CAAC,iBAAS,EAAE,sBAAc,EAAE,wBAAgB,CAAU,CAAC"}
@@ -1,30 +0,0 @@
1
- import { DocumentQueryStatus } from "../../../../core/src/domain/document-query";
2
- export type NetworkQueryParams = {
3
- cxId: string;
4
- facilityId: string;
5
- patientId: string;
6
- requestId?: string;
7
- };
8
- export type NetworkQueryProgress = {
9
- networks: SourceQueryProgress[];
10
- };
11
- export declare const hieSource = "hie";
12
- export declare const pharmacySource = "pharmacy";
13
- export declare const laboratorySource = "laboratory";
14
- export declare const networkSources: readonly ["hie", "pharmacy", "laboratory"];
15
- export type NetworkSource = (typeof networkSources)[number];
16
- export type SourceQueryProgress = {
17
- type: NetworkSource;
18
- source?: string;
19
- status: DocumentQueryStatus;
20
- startedAt?: Date;
21
- requestId?: string;
22
- documents?: {
23
- downloadInProgress: number;
24
- downloaded: number;
25
- converted: number;
26
- failed: number;
27
- total: number;
28
- };
29
- };
30
- //# sourceMappingURL=network-query.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"network-query.d.ts","sourceRoot":"","sources":["../../../../../src/domain/network-query/network-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AAEjF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,mBAAmB,EAAE,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,SAAS,QAAQ,CAAC;AAC/B,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,cAAc,4CAAyD,CAAC;AACrF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE;QACV,kBAAkB,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.networkSources = exports.laboratorySource = exports.pharmacySource = exports.hieSource = void 0;
4
- exports.hieSource = "hie";
5
- exports.pharmacySource = "pharmacy";
6
- exports.laboratorySource = "laboratory";
7
- exports.networkSources = [exports.hieSource, exports.pharmacySource, exports.laboratorySource];
8
- //# sourceMappingURL=network-query.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"network-query.js","sourceRoot":"","sources":["../../../../../src/domain/network-query/network-query.ts"],"names":[],"mappings":";;;AAaa,QAAA,SAAS,GAAG,KAAK,CAAC;AAClB,QAAA,cAAc,GAAG,UAAU,CAAC;AAC5B,QAAA,gBAAgB,GAAG,YAAY,CAAC;AAChC,QAAA,cAAc,GAAG,CAAC,iBAAS,EAAE,sBAAc,EAAE,wBAAgB,CAAU,CAAC"}
@@ -1,30 +0,0 @@
1
- import { DocumentQueryStatus } from "../../../../core/src/domain/document-query";
2
- export type NetworkQueryParams = {
3
- cxId: string;
4
- facilityId: string;
5
- patientId: string;
6
- requestId?: string;
7
- };
8
- export type NetworkQueryProgress = {
9
- networks: SourceQueryProgress[];
10
- };
11
- export declare const hieSource = "hie";
12
- export declare const pharmacySource = "pharmacy";
13
- export declare const laboratorySource = "laboratory";
14
- export declare const networkSources: readonly ["hie", "pharmacy", "laboratory"];
15
- export type NetworkSource = (typeof networkSources)[number];
16
- export type SourceQueryProgress = {
17
- type: NetworkSource;
18
- source?: string;
19
- status: DocumentQueryStatus;
20
- startedAt?: Date;
21
- requestId?: string;
22
- documents?: {
23
- downloadInProgress: number;
24
- downloaded: number;
25
- converted: number;
26
- failed: number;
27
- total: number;
28
- };
29
- };
30
- //# sourceMappingURL=network-query.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"network-query.d.ts","sourceRoot":"","sources":["../../../../../src/domain/network-qyert/network-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AAEjF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,mBAAmB,EAAE,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,SAAS,QAAQ,CAAC;AAC/B,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,cAAc,4CAAyD,CAAC;AACrF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE;QACV,kBAAkB,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.networkSources = exports.laboratorySource = exports.pharmacySource = exports.hieSource = void 0;
4
- exports.hieSource = "hie";
5
- exports.pharmacySource = "pharmacy";
6
- exports.laboratorySource = "laboratory";
7
- exports.networkSources = [exports.hieSource, exports.pharmacySource, exports.laboratorySource];
8
- //# sourceMappingURL=network-query.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"network-query.js","sourceRoot":"","sources":["../../../../../src/domain/network-qyert/network-query.ts"],"names":[],"mappings":";;;AAaa,QAAA,SAAS,GAAG,KAAK,CAAC;AAClB,QAAA,cAAc,GAAG,UAAU,CAAC;AAC5B,QAAA,gBAAgB,GAAG,YAAY,CAAC;AAChC,QAAA,cAAc,GAAG,CAAC,iBAAS,EAAE,sBAAc,EAAE,wBAAgB,CAAU,CAAC"}