@metriport/shared 0.20.0 → 0.20.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 (134) hide show
  1. package/dist/common/string.d.ts +1 -0
  2. package/dist/common/string.d.ts.map +1 -1
  3. package/dist/common/string.js +5 -1
  4. package/dist/common/string.js.map +1 -1
  5. package/dist/domain/address/__tests__/country.test.d.ts +2 -0
  6. package/dist/domain/address/__tests__/country.test.d.ts.map +1 -0
  7. package/dist/domain/address/__tests__/country.test.js +51 -0
  8. package/dist/domain/address/__tests__/country.test.js.map +1 -0
  9. package/dist/domain/address/country.d.ts +4 -0
  10. package/dist/domain/address/country.d.ts.map +1 -0
  11. package/dist/domain/address/country.js +31 -0
  12. package/dist/domain/address/country.js.map +1 -0
  13. package/dist/index.d.ts +1 -0
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +1 -0
  16. package/dist/index.js.map +1 -1
  17. package/dist/interface/external/athenahealth/index.d.ts +1 -0
  18. package/dist/interface/external/athenahealth/index.d.ts.map +1 -1
  19. package/dist/interface/external/athenahealth/index.js +1 -0
  20. package/dist/interface/external/athenahealth/index.js.map +1 -1
  21. package/dist/interface/external/athenahealth/patient.d.ts +41 -388
  22. package/dist/interface/external/athenahealth/patient.d.ts.map +1 -1
  23. package/dist/interface/external/athenahealth/patient.js +11 -30
  24. package/dist/interface/external/athenahealth/patient.js.map +1 -1
  25. package/dist/interface/external/canvas/appointment.d.ts +132 -48
  26. package/dist/interface/external/canvas/appointment.d.ts.map +1 -1
  27. package/dist/interface/external/canvas/appointment.js +16 -8
  28. package/dist/interface/external/canvas/appointment.js.map +1 -1
  29. package/dist/interface/external/canvas/jwt-token.d.ts +14 -0
  30. package/dist/interface/external/canvas/jwt-token.d.ts.map +1 -1
  31. package/dist/interface/external/canvas/jwt-token.js +6 -1
  32. package/dist/interface/external/canvas/jwt-token.js.map +1 -1
  33. package/dist/interface/external/ehr/athenahealth/appointment.d.ts +79 -0
  34. package/dist/interface/external/ehr/athenahealth/appointment.d.ts.map +1 -0
  35. package/dist/interface/external/ehr/athenahealth/appointment.js +20 -0
  36. package/dist/interface/external/ehr/athenahealth/appointment.js.map +1 -0
  37. package/dist/interface/external/ehr/athenahealth/cx-mapping.d.ts +13 -0
  38. package/dist/interface/external/ehr/athenahealth/cx-mapping.d.ts.map +1 -0
  39. package/dist/interface/external/ehr/athenahealth/cx-mapping.js +9 -0
  40. package/dist/interface/external/ehr/athenahealth/cx-mapping.js.map +1 -0
  41. package/dist/interface/external/ehr/athenahealth/department.d.ts +28 -0
  42. package/dist/interface/external/ehr/athenahealth/department.d.ts.map +1 -0
  43. package/dist/interface/external/ehr/athenahealth/department.js +11 -0
  44. package/dist/interface/external/ehr/athenahealth/department.js.map +1 -0
  45. package/dist/interface/external/ehr/athenahealth/index.d.ts +10 -0
  46. package/dist/interface/external/ehr/athenahealth/index.d.ts.map +1 -0
  47. package/dist/interface/external/ehr/athenahealth/index.js +26 -0
  48. package/dist/interface/external/ehr/athenahealth/index.js.map +1 -0
  49. package/dist/interface/external/ehr/athenahealth/jwt-token.d.ts +46 -0
  50. package/dist/interface/external/ehr/athenahealth/jwt-token.d.ts.map +1 -0
  51. package/dist/interface/external/ehr/athenahealth/jwt-token.js +26 -0
  52. package/dist/interface/external/ehr/athenahealth/jwt-token.js.map +1 -0
  53. package/dist/interface/external/ehr/athenahealth/medication.d.ts +50 -0
  54. package/dist/interface/external/ehr/athenahealth/medication.d.ts.map +1 -0
  55. package/dist/interface/external/ehr/athenahealth/medication.js +19 -0
  56. package/dist/interface/external/ehr/athenahealth/medication.js.map +1 -0
  57. package/dist/interface/external/ehr/athenahealth/patient.d.ts +44 -0
  58. package/dist/interface/external/ehr/athenahealth/patient.d.ts.map +1 -0
  59. package/dist/interface/external/ehr/athenahealth/patient.js +15 -0
  60. package/dist/interface/external/ehr/athenahealth/patient.js.map +1 -0
  61. package/dist/interface/external/ehr/athenahealth/problem.d.ts +27 -0
  62. package/dist/interface/external/ehr/athenahealth/problem.d.ts.map +1 -0
  63. package/dist/interface/external/ehr/athenahealth/problem.js +14 -0
  64. package/dist/interface/external/ehr/athenahealth/problem.js.map +1 -0
  65. package/dist/interface/external/ehr/athenahealth/subscription.d.ts +20 -0
  66. package/dist/interface/external/ehr/athenahealth/subscription.d.ts.map +1 -0
  67. package/dist/interface/external/ehr/athenahealth/subscription.js +11 -0
  68. package/dist/interface/external/ehr/athenahealth/subscription.js.map +1 -0
  69. package/dist/interface/external/ehr/athenahealth/vitals.d.ts +82 -0
  70. package/dist/interface/external/ehr/athenahealth/vitals.d.ts.map +1 -0
  71. package/dist/interface/external/ehr/athenahealth/vitals.js +15 -0
  72. package/dist/interface/external/ehr/athenahealth/vitals.js.map +1 -0
  73. package/dist/interface/external/ehr/canvas/appointment.d.ts +152 -0
  74. package/dist/interface/external/ehr/canvas/appointment.d.ts.map +1 -0
  75. package/dist/interface/external/ehr/canvas/appointment.js +23 -0
  76. package/dist/interface/external/ehr/canvas/appointment.js.map +1 -0
  77. package/dist/interface/external/ehr/canvas/index.d.ts +3 -0
  78. package/dist/interface/external/ehr/canvas/index.d.ts.map +1 -0
  79. package/dist/interface/external/ehr/canvas/index.js +19 -0
  80. package/dist/interface/external/ehr/canvas/index.js.map +1 -0
  81. package/dist/interface/external/ehr/canvas/jwt-token.d.ts +58 -0
  82. package/dist/interface/external/ehr/canvas/jwt-token.d.ts.map +1 -0
  83. package/dist/interface/external/ehr/canvas/jwt-token.js +31 -0
  84. package/dist/interface/external/ehr/canvas/jwt-token.js.map +1 -0
  85. package/dist/interface/external/ehr/elation/appointment.d.ts +68 -0
  86. package/dist/interface/external/ehr/elation/appointment.d.ts.map +1 -0
  87. package/dist/interface/external/ehr/elation/appointment.js +15 -0
  88. package/dist/interface/external/ehr/elation/appointment.js.map +1 -0
  89. package/dist/interface/external/ehr/elation/index.d.ts +4 -0
  90. package/dist/interface/external/ehr/elation/index.d.ts.map +1 -0
  91. package/dist/interface/external/ehr/elation/index.js +20 -0
  92. package/dist/interface/external/ehr/elation/index.js.map +1 -0
  93. package/dist/interface/external/ehr/elation/jwt-token.d.ts +45 -0
  94. package/dist/interface/external/ehr/elation/jwt-token.d.ts.map +1 -0
  95. package/dist/interface/external/ehr/elation/jwt-token.js +26 -0
  96. package/dist/interface/external/ehr/elation/jwt-token.js.map +1 -0
  97. package/dist/interface/external/ehr/elation/patient.d.ts +96 -0
  98. package/dist/interface/external/ehr/elation/patient.d.ts.map +1 -0
  99. package/dist/interface/external/ehr/elation/patient.js +33 -0
  100. package/dist/interface/external/ehr/elation/patient.js.map +1 -0
  101. package/dist/interface/external/ehr/index.d.ts +3 -0
  102. package/dist/interface/external/ehr/index.d.ts.map +1 -0
  103. package/dist/interface/external/ehr/index.js +19 -0
  104. package/dist/interface/external/ehr/index.js.map +1 -0
  105. package/dist/interface/external/ehr/patient.d.ts +250 -0
  106. package/dist/interface/external/ehr/patient.d.ts.map +1 -0
  107. package/dist/interface/external/ehr/patient.js +35 -0
  108. package/dist/interface/external/ehr/patient.js.map +1 -0
  109. package/dist/interface/external/ehr/source.d.ts +13 -0
  110. package/dist/interface/external/ehr/source.d.ts.map +1 -0
  111. package/dist/interface/external/ehr/source.js +25 -0
  112. package/dist/interface/external/ehr/source.js.map +1 -0
  113. package/dist/interface/external/elation/jwt-token.d.ts +14 -0
  114. package/dist/interface/external/elation/jwt-token.d.ts.map +1 -1
  115. package/dist/interface/external/elation/jwt-token.js +6 -1
  116. package/dist/interface/external/elation/jwt-token.js.map +1 -1
  117. package/dist/interface/external/index.d.ts +2 -0
  118. package/dist/interface/external/index.d.ts.map +1 -0
  119. package/dist/interface/external/index.js +18 -0
  120. package/dist/interface/external/index.js.map +1 -0
  121. package/dist/interface/external/shared/ehr/patient.d.ts +12 -12
  122. package/dist/interface/index.d.ts +1 -0
  123. package/dist/interface/index.d.ts.map +1 -1
  124. package/dist/interface/index.js +1 -0
  125. package/dist/interface/index.js.map +1 -1
  126. package/package.json +2 -2
  127. package/dist/domain/address/__tests__/normalize-zip.test.d.ts +0 -2
  128. package/dist/domain/address/__tests__/normalize-zip.test.d.ts.map +0 -1
  129. package/dist/domain/address/__tests__/normalize-zip.test.js +0 -83
  130. package/dist/domain/address/__tests__/normalize-zip.test.js.map +0 -1
  131. package/dist/interface/external/elation/subscription.d.ts +0 -2
  132. package/dist/interface/external/elation/subscription.d.ts.map +0 -1
  133. package/dist/interface/external/elation/subscription.js +0 -3
  134. package/dist/interface/external/elation/subscription.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jwt-token.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/jwt-token.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,UAAU,EAA2C,MAAM,WAAW,CAAC;AAEhF,eAAO,MAAM,gBAAgB,mBAA6B,CAAC;AAC3D,eAAO,MAAM,4BAA4B;;;;;;;;;EAGvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,kBAAkB,iBAAuD,CAAC;AACvF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;EAIzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,mBAAmB,kBAAwD,CAAC;AACzF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;EAI1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;EAI7C,CAAC"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.canvasClientJwtTokenResponseSchema = exports.canvasWebhookJwtTokenDataSchema = exports.canvasWebhookSource = exports.canvasClientJwtTokenDataSchema = exports.canvasClientSource = exports.canvasDashJwtTokenDataSchema = exports.canvasDashSource = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const source_1 = require("../source");
9
+ exports.canvasDashSource = source_1.EhrSources.canvas;
10
+ exports.canvasDashJwtTokenDataSchema = zod_1.default.object({
11
+ practiceId: zod_1.default.string(),
12
+ source: zod_1.default.literal(`${exports.canvasDashSource}`),
13
+ });
14
+ exports.canvasClientSource = `${source_1.EhrSources.canvas}${source_1.clientSourceSuffix}`;
15
+ exports.canvasClientJwtTokenDataSchema = zod_1.default.object({
16
+ practiceId: zod_1.default.string(),
17
+ cxId: zod_1.default.string(),
18
+ source: zod_1.default.literal(`${exports.canvasClientSource}`),
19
+ });
20
+ exports.canvasWebhookSource = `${source_1.EhrSources.canvas}${source_1.webhookSourceSuffix}`;
21
+ exports.canvasWebhookJwtTokenDataSchema = zod_1.default.object({
22
+ practiceId: zod_1.default.string(),
23
+ cxId: zod_1.default.string(),
24
+ source: zod_1.default.literal(`${exports.canvasWebhookSource}`),
25
+ });
26
+ exports.canvasClientJwtTokenResponseSchema = zod_1.default.object({
27
+ scope: zod_1.default.string(),
28
+ access_token: zod_1.default.string(),
29
+ expires_in: zod_1.default.coerce.string(),
30
+ });
31
+ //# sourceMappingURL=jwt-token.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/jwt-token.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,sCAAgF;AAEnE,QAAA,gBAAgB,GAAG,mBAAU,CAAC,MAAe,CAAC;AAC9C,QAAA,4BAA4B,GAAG,aAAC,CAAC,MAAM,CAAC;IACnD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,GAAG,wBAAgB,EAAE,CAAC;CACzC,CAAC,CAAC;AAGU,QAAA,kBAAkB,GAAG,GAAG,mBAAU,CAAC,MAAM,GAAG,2BAAkB,EAAW,CAAC;AAC1E,QAAA,8BAA8B,GAAG,aAAC,CAAC,MAAM,CAAC;IACrD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,GAAG,0BAAkB,EAAE,CAAC;CAC3C,CAAC,CAAC;AAGU,QAAA,mBAAmB,GAAG,GAAG,mBAAU,CAAC,MAAM,GAAG,4BAAmB,EAAW,CAAC;AAC5E,QAAA,+BAA+B,GAAG,aAAC,CAAC,MAAM,CAAC;IACtD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,GAAG,2BAAmB,EAAE,CAAC;CAC5C,CAAC,CAAC;AAGU,QAAA,kCAAkC,GAAG,aAAC,CAAC,MAAM,CAAC;IACzD,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC"}
@@ -0,0 +1,68 @@
1
+ import { z } from "zod";
2
+ export declare const bookedAppointmentSchema: z.ZodObject<{
3
+ patient: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ patient: string;
6
+ }, {
7
+ patient: string;
8
+ }>;
9
+ export type BookedAppointment = z.infer<typeof bookedAppointmentSchema>;
10
+ export declare const appointmentSchema: z.ZodObject<{
11
+ patient: z.ZodNullable<z.ZodString>;
12
+ status: z.ZodNullable<z.ZodObject<{
13
+ status: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ status: string;
16
+ }, {
17
+ status: string;
18
+ }>>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ status: {
21
+ status: string;
22
+ } | null;
23
+ patient: string | null;
24
+ }, {
25
+ status: {
26
+ status: string;
27
+ } | null;
28
+ patient: string | null;
29
+ }>;
30
+ export type Appointment = z.infer<typeof appointmentSchema>;
31
+ export declare const appointmentsSchema: z.ZodObject<{
32
+ results: z.ZodArray<z.ZodObject<{
33
+ patient: z.ZodNullable<z.ZodString>;
34
+ status: z.ZodNullable<z.ZodObject<{
35
+ status: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ status: string;
38
+ }, {
39
+ status: string;
40
+ }>>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ status: {
43
+ status: string;
44
+ } | null;
45
+ patient: string | null;
46
+ }, {
47
+ status: {
48
+ status: string;
49
+ } | null;
50
+ patient: string | null;
51
+ }>, "many">;
52
+ }, "strip", z.ZodTypeAny, {
53
+ results: {
54
+ status: {
55
+ status: string;
56
+ } | null;
57
+ patient: string | null;
58
+ }[];
59
+ }, {
60
+ results: {
61
+ status: {
62
+ status: string;
63
+ } | null;
64
+ patient: string | null;
65
+ }[];
66
+ }>;
67
+ export type Appointments = z.infer<typeof appointmentsSchema>;
68
+ //# sourceMappingURL=appointment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;EAElC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.appointmentsSchema = exports.appointmentSchema = exports.bookedAppointmentSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.bookedAppointmentSchema = zod_1.z.object({
6
+ patient: zod_1.z.coerce.string(),
7
+ });
8
+ exports.appointmentSchema = zod_1.z.object({
9
+ patient: zod_1.z.coerce.string().nullable(),
10
+ status: zod_1.z.object({ status: zod_1.z.string() }).nullable(),
11
+ });
12
+ exports.appointmentsSchema = zod_1.z.object({
13
+ results: exports.appointmentSchema.array(),
14
+ });
15
+ //# sourceMappingURL=appointment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointment.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/appointment.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAGU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAEU,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,OAAO,EAAE,yBAAiB,CAAC,KAAK,EAAE;CACnC,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./appointment";
2
+ export * from "./patient";
3
+ export * from "./jwt-token";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./appointment"), exports);
18
+ __exportStar(require("./patient"), exports);
19
+ __exportStar(require("./jwt-token"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,4CAA0B;AAC1B,8CAA4B"}
@@ -0,0 +1,45 @@
1
+ import z from "zod";
2
+ export declare const elationClientSource: "elation-client";
3
+ export declare const elationClientJwtTokenDataSchema: z.ZodObject<{
4
+ practiceId: z.ZodString;
5
+ cxId: z.ZodString;
6
+ source: z.ZodLiteral<"elation-client">;
7
+ }, "strip", z.ZodTypeAny, {
8
+ cxId: string;
9
+ source: "elation-client";
10
+ practiceId: string;
11
+ }, {
12
+ cxId: string;
13
+ source: "elation-client";
14
+ practiceId: string;
15
+ }>;
16
+ export type ElationClientJwtTokenData = z.infer<typeof elationClientJwtTokenDataSchema>;
17
+ export declare const elationWebhookSource: "elation-webhook";
18
+ export declare const elationWebhookJwtTokenDataSchema: z.ZodObject<{
19
+ practiceId: z.ZodString;
20
+ cxId: z.ZodString;
21
+ source: z.ZodLiteral<"elation-webhook">;
22
+ }, "strip", z.ZodTypeAny, {
23
+ cxId: string;
24
+ source: "elation-webhook";
25
+ practiceId: string;
26
+ }, {
27
+ cxId: string;
28
+ source: "elation-webhook";
29
+ practiceId: string;
30
+ }>;
31
+ export type ElationWebhookJwtTokenData = z.infer<typeof elationWebhookJwtTokenDataSchema>;
32
+ export declare const elationClientJwtTokenResponseSchema: z.ZodObject<{
33
+ scope: z.ZodString;
34
+ access_token: z.ZodString;
35
+ expires_in: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ scope: string;
38
+ access_token: string;
39
+ expires_in: string;
40
+ }, {
41
+ scope: string;
42
+ access_token: string;
43
+ expires_in: string;
44
+ }>;
45
+ //# sourceMappingURL=jwt-token.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jwt-token.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/jwt-token.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,mBAAmB,kBAAwD,CAAC;AACzF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;EAI1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,eAAO,MAAM,oBAAoB,mBAAyD,CAAC;AAC3F,eAAO,MAAM,gCAAgC;;;;;;;;;;;;EAI3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,eAAO,MAAM,mCAAmC;;;;;;;;;;;;EAI9C,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.elationClientJwtTokenResponseSchema = exports.elationWebhookJwtTokenDataSchema = exports.elationWebhookSource = exports.elationClientJwtTokenDataSchema = exports.elationClientSource = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const source_1 = require("../source");
9
+ exports.elationClientSource = `${source_1.EhrSources.elation}${source_1.clientSourceSuffix}`;
10
+ exports.elationClientJwtTokenDataSchema = zod_1.default.object({
11
+ practiceId: zod_1.default.string(),
12
+ cxId: zod_1.default.string(),
13
+ source: zod_1.default.literal(`${exports.elationClientSource}`),
14
+ });
15
+ exports.elationWebhookSource = `${source_1.EhrSources.elation}${source_1.webhookSourceSuffix}`;
16
+ exports.elationWebhookJwtTokenDataSchema = zod_1.default.object({
17
+ practiceId: zod_1.default.string(),
18
+ cxId: zod_1.default.string(),
19
+ source: zod_1.default.literal(`${exports.elationWebhookSource}`),
20
+ });
21
+ exports.elationClientJwtTokenResponseSchema = zod_1.default.object({
22
+ scope: zod_1.default.string(),
23
+ access_token: zod_1.default.string(),
24
+ expires_in: zod_1.default.coerce.string(),
25
+ });
26
+ //# sourceMappingURL=jwt-token.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/jwt-token.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,sCAAgF;AAEnE,QAAA,mBAAmB,GAAG,GAAG,mBAAU,CAAC,OAAO,GAAG,2BAAkB,EAAW,CAAC;AAC5E,QAAA,+BAA+B,GAAG,aAAC,CAAC,MAAM,CAAC;IACtD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,GAAG,2BAAmB,EAAE,CAAC;CAC5C,CAAC,CAAC;AAGU,QAAA,oBAAoB,GAAG,GAAG,mBAAU,CAAC,OAAO,GAAG,4BAAmB,EAAW,CAAC;AAC9E,QAAA,gCAAgC,GAAG,aAAC,CAAC,MAAM,CAAC;IACvD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,GAAG,4BAAoB,EAAE,CAAC;CAC7C,CAAC,CAAC;AAGU,QAAA,mCAAmC,GAAG,aAAC,CAAC,MAAM,CAAC;IAC1D,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC"}
@@ -0,0 +1,96 @@
1
+ import { z } from "zod";
2
+ export declare const patientSchema: z.ZodObject<{
3
+ first_name: z.ZodNullable<z.ZodString>;
4
+ last_name: z.ZodNullable<z.ZodString>;
5
+ middle_name: z.ZodNullable<z.ZodString>;
6
+ sex: z.ZodString;
7
+ address: z.ZodNullable<z.ZodObject<{
8
+ state: z.ZodNullable<z.ZodString>;
9
+ address_line1: z.ZodNullable<z.ZodString>;
10
+ address_line2: z.ZodNullable<z.ZodString>;
11
+ city: z.ZodNullable<z.ZodString>;
12
+ zip: z.ZodNullable<z.ZodString>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ state: string | null;
15
+ zip: string | null;
16
+ city: string | null;
17
+ address_line1: string | null;
18
+ address_line2: string | null;
19
+ }, {
20
+ state: string | null;
21
+ zip: string | null;
22
+ city: string | null;
23
+ address_line1: string | null;
24
+ address_line2: string | null;
25
+ }>>;
26
+ dob: z.ZodString;
27
+ phones: z.ZodNullable<z.ZodArray<z.ZodObject<{
28
+ phone: z.ZodString;
29
+ }, "strip", z.ZodTypeAny, {
30
+ phone: string;
31
+ }, {
32
+ phone: string;
33
+ }>, "many">>;
34
+ emails: z.ZodNullable<z.ZodArray<z.ZodObject<{
35
+ email: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ email: string;
38
+ }, {
39
+ email: string;
40
+ }>, "many">>;
41
+ ssn: z.ZodNullable<z.ZodString>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ dob: string;
44
+ address: {
45
+ state: string | null;
46
+ zip: string | null;
47
+ city: string | null;
48
+ address_line1: string | null;
49
+ address_line2: string | null;
50
+ } | null;
51
+ ssn: string | null;
52
+ first_name: string | null;
53
+ last_name: string | null;
54
+ middle_name: string | null;
55
+ sex: string;
56
+ phones: {
57
+ phone: string;
58
+ }[] | null;
59
+ emails: {
60
+ email: string;
61
+ }[] | null;
62
+ }, {
63
+ dob: string;
64
+ address: {
65
+ state: string | null;
66
+ zip: string | null;
67
+ city: string | null;
68
+ address_line1: string | null;
69
+ address_line2: string | null;
70
+ } | null;
71
+ ssn: string | null;
72
+ first_name: string | null;
73
+ last_name: string | null;
74
+ middle_name: string | null;
75
+ sex: string;
76
+ phones: {
77
+ phone: string;
78
+ }[] | null;
79
+ emails: {
80
+ email: string;
81
+ }[] | null;
82
+ }>;
83
+ export type Patient = z.infer<typeof patientSchema>;
84
+ declare const metadata: z.ZodObject<{
85
+ object_id: z.ZodString;
86
+ object_web_link: z.ZodString;
87
+ }, "strip", z.ZodTypeAny, {
88
+ object_id: string;
89
+ object_web_link: string;
90
+ }, {
91
+ object_id: string;
92
+ object_web_link: string;
93
+ }>;
94
+ export type Metadata = z.infer<typeof metadata>;
95
+ export {};
96
+ //# sourceMappingURL=patient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patient.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/patient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUxB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,QAAA,MAAM,QAAQ;;;;;;;;;EAGZ,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.patientSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const address = zod_1.z.object({
6
+ state: zod_1.z.string().nullable(),
7
+ address_line1: zod_1.z.string().nullable(),
8
+ address_line2: zod_1.z.string().nullable(),
9
+ city: zod_1.z.string().nullable(),
10
+ zip: zod_1.z.string().nullable(),
11
+ });
12
+ const phone = zod_1.z.object({
13
+ phone: zod_1.z.string(),
14
+ });
15
+ const email = zod_1.z.object({
16
+ email: zod_1.z.string(),
17
+ });
18
+ exports.patientSchema = zod_1.z.object({
19
+ first_name: zod_1.z.string().nullable(),
20
+ last_name: zod_1.z.string().nullable(),
21
+ middle_name: zod_1.z.string().nullable(),
22
+ sex: zod_1.z.string(),
23
+ address: address.nullable(),
24
+ dob: zod_1.z.string(),
25
+ phones: phone.array().nullable(),
26
+ emails: email.array().nullable(),
27
+ ssn: zod_1.z.string().nullable(),
28
+ });
29
+ const metadata = zod_1.z.object({
30
+ object_id: zod_1.z.string(),
31
+ object_web_link: zod_1.z.string(),
32
+ });
33
+ //# sourceMappingURL=patient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,OAAO,GAAG,OAAC,CAAC,MAAM,CAAC;IACvB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAC;AAEH,MAAM,KAAK,GAAG,OAAC,CAAC,MAAM,CAAC;IACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH,MAAM,KAAK,GAAG,OAAC,CAAC,MAAM,CAAC;IACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEU,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,OAAO,EAAE,OAAO,CAAC,QAAQ,EAAE;IAC3B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAChC,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAChC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAC;AAIH,MAAM,QAAQ,GAAG,OAAC,CAAC,MAAM,CAAC;IACxB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./source";
2
+ export * from "./patient";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/ehr/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./source"), exports);
18
+ __exportStar(require("./patient"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/external/ehr/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,4CAA0B"}