@metriport/shared 0.23.10-alpha.0 → 0.23.11

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 (126) hide show
  1. package/dist/domain/job/types.d.ts +1 -1
  2. package/dist/domain/job/types.d.ts.map +1 -1
  3. package/dist/domain/organization.d.ts.map +1 -1
  4. package/dist/domain/organization.js +2 -0
  5. package/dist/domain/organization.js.map +1 -1
  6. package/dist/domain/patient/patient-import.d.ts +131 -0
  7. package/dist/domain/patient/patient-import.d.ts.map +1 -0
  8. package/dist/domain/patient/patient-import.js +32 -0
  9. package/dist/domain/patient/patient-import.js.map +1 -0
  10. package/dist/domain/patient/patient-monitoring/__tests__/utils.test.d.ts +2 -0
  11. package/dist/domain/patient/patient-monitoring/__tests__/utils.test.d.ts.map +1 -0
  12. package/dist/domain/patient/patient-monitoring/__tests__/utils.test.js +66 -0
  13. package/dist/domain/patient/patient-monitoring/__tests__/utils.test.js.map +1 -0
  14. package/dist/domain/patient/patient-monitoring/discharge-requery.d.ts +47 -0
  15. package/dist/domain/patient/patient-monitoring/discharge-requery.d.ts.map +1 -0
  16. package/dist/domain/patient/patient-monitoring/discharge-requery.js +32 -0
  17. package/dist/domain/patient/patient-monitoring/discharge-requery.js.map +1 -0
  18. package/dist/domain/patient/patient-monitoring/utils.d.ts +11 -0
  19. package/dist/domain/patient/patient-monitoring/utils.d.ts.map +1 -0
  20. package/dist/domain/patient/patient-monitoring/utils.js +43 -0
  21. package/dist/domain/patient/patient-monitoring/utils.js.map +1 -0
  22. package/dist/interface/external/athenahealth/appointment.d.ts +63 -0
  23. package/dist/interface/external/athenahealth/appointment.d.ts.map +1 -0
  24. package/dist/interface/external/athenahealth/appointment.js +18 -0
  25. package/dist/interface/external/athenahealth/appointment.js.map +1 -0
  26. package/dist/interface/external/athenahealth/cx-mapping.d.ts +10 -0
  27. package/dist/interface/external/athenahealth/cx-mapping.d.ts.map +1 -0
  28. package/dist/interface/external/athenahealth/cx-mapping.js +8 -0
  29. package/dist/interface/external/athenahealth/cx-mapping.js.map +1 -0
  30. package/dist/interface/external/athenahealth/department.d.ts +28 -0
  31. package/dist/interface/external/athenahealth/department.d.ts.map +1 -0
  32. package/dist/interface/external/athenahealth/department.js +11 -0
  33. package/dist/interface/external/athenahealth/department.js.map +1 -0
  34. package/dist/interface/external/athenahealth/index.d.ts +10 -0
  35. package/dist/interface/external/athenahealth/index.d.ts.map +1 -0
  36. package/dist/interface/external/athenahealth/index.js +26 -0
  37. package/dist/interface/external/athenahealth/index.js.map +1 -0
  38. package/dist/interface/external/athenahealth/jwt-token.d.ts +25 -0
  39. package/dist/interface/external/athenahealth/jwt-token.d.ts.map +1 -0
  40. package/dist/interface/external/athenahealth/jwt-token.js +13 -0
  41. package/dist/interface/external/athenahealth/jwt-token.js.map +1 -0
  42. package/dist/interface/external/athenahealth/medication.d.ts +50 -0
  43. package/dist/interface/external/athenahealth/medication.d.ts.map +1 -0
  44. package/dist/interface/external/athenahealth/medication.js +19 -0
  45. package/dist/interface/external/athenahealth/medication.js.map +1 -0
  46. package/dist/interface/external/athenahealth/patient.d.ts +250 -0
  47. package/dist/interface/external/athenahealth/patient.d.ts.map +1 -0
  48. package/dist/interface/external/athenahealth/patient.js +34 -0
  49. package/dist/interface/external/athenahealth/patient.js.map +1 -0
  50. package/dist/interface/external/athenahealth/problem.d.ts +27 -0
  51. package/dist/interface/external/athenahealth/problem.d.ts.map +1 -0
  52. package/dist/interface/external/athenahealth/problem.js +14 -0
  53. package/dist/interface/external/athenahealth/problem.js.map +1 -0
  54. package/dist/interface/external/athenahealth/subscription.d.ts +20 -0
  55. package/dist/interface/external/athenahealth/subscription.d.ts.map +1 -0
  56. package/dist/interface/external/athenahealth/subscription.js +11 -0
  57. package/dist/interface/external/athenahealth/subscription.js.map +1 -0
  58. package/dist/interface/external/athenahealth/vitals.d.ts +82 -0
  59. package/dist/interface/external/athenahealth/vitals.d.ts.map +1 -0
  60. package/dist/interface/external/athenahealth/vitals.js +15 -0
  61. package/dist/interface/external/athenahealth/vitals.js.map +1 -0
  62. package/dist/interface/external/canvas/appointment.d.ts +68 -0
  63. package/dist/interface/external/canvas/appointment.d.ts.map +1 -0
  64. package/dist/interface/external/canvas/appointment.js +15 -0
  65. package/dist/interface/external/canvas/appointment.js.map +1 -0
  66. package/dist/interface/external/canvas/index.d.ts +3 -0
  67. package/dist/interface/external/canvas/index.d.ts.map +1 -0
  68. package/dist/interface/external/canvas/index.js +19 -0
  69. package/dist/interface/external/canvas/index.js.map +1 -0
  70. package/dist/interface/external/canvas/jwt-token.d.ts +31 -0
  71. package/dist/interface/external/canvas/jwt-token.d.ts.map +1 -0
  72. package/dist/interface/external/canvas/jwt-token.js +17 -0
  73. package/dist/interface/external/canvas/jwt-token.js.map +1 -0
  74. package/dist/interface/external/ehr/healthie/allergy.d.ts +144 -0
  75. package/dist/interface/external/ehr/healthie/allergy.d.ts.map +1 -0
  76. package/dist/interface/external/ehr/healthie/allergy.js +24 -0
  77. package/dist/interface/external/ehr/healthie/allergy.js.map +1 -0
  78. package/dist/interface/external/ehr/healthie/condition.d.ts +140 -0
  79. package/dist/interface/external/ehr/healthie/condition.d.ts.map +1 -0
  80. package/dist/interface/external/ehr/healthie/condition.js +19 -0
  81. package/dist/interface/external/ehr/healthie/condition.js.map +1 -0
  82. package/dist/interface/external/ehr/healthie/immunization.d.ts +108 -0
  83. package/dist/interface/external/ehr/healthie/immunization.d.ts.map +1 -0
  84. package/dist/interface/external/ehr/healthie/immunization.js +19 -0
  85. package/dist/interface/external/ehr/healthie/immunization.js.map +1 -0
  86. package/dist/interface/external/ehr/healthie/index.d.ts +5 -0
  87. package/dist/interface/external/ehr/healthie/index.d.ts.map +1 -1
  88. package/dist/interface/external/ehr/healthie/index.js +5 -0
  89. package/dist/interface/external/ehr/healthie/index.js.map +1 -1
  90. package/dist/interface/external/ehr/healthie/lab.d.ts +492 -0
  91. package/dist/interface/external/ehr/healthie/lab.d.ts.map +1 -0
  92. package/dist/interface/external/ehr/healthie/lab.js +33 -0
  93. package/dist/interface/external/ehr/healthie/lab.js.map +1 -0
  94. package/dist/interface/external/ehr/healthie/medication.d.ts +132 -0
  95. package/dist/interface/external/ehr/healthie/medication.d.ts.map +1 -0
  96. package/dist/interface/external/ehr/healthie/medication.js +22 -0
  97. package/dist/interface/external/ehr/healthie/medication.js.map +1 -0
  98. package/dist/interface/external/ehr/resource-diff.d.ts +7 -0
  99. package/dist/interface/external/ehr/resource-diff.d.ts.map +1 -0
  100. package/dist/interface/external/ehr/resource-diff.js +12 -0
  101. package/dist/interface/external/ehr/resource-diff.js.map +1 -0
  102. package/dist/interface/external/elation/appointment.d.ts +68 -0
  103. package/dist/interface/external/elation/appointment.d.ts.map +1 -0
  104. package/dist/interface/external/elation/appointment.js +15 -0
  105. package/dist/interface/external/elation/appointment.js.map +1 -0
  106. package/dist/interface/external/elation/index.d.ts +4 -0
  107. package/dist/interface/external/elation/index.d.ts.map +1 -0
  108. package/dist/interface/external/elation/index.js +20 -0
  109. package/dist/interface/external/elation/index.js.map +1 -0
  110. package/dist/interface/external/elation/jwt-token.d.ts +20 -0
  111. package/dist/interface/external/elation/jwt-token.d.ts.map +1 -0
  112. package/dist/interface/external/elation/jwt-token.js +13 -0
  113. package/dist/interface/external/elation/jwt-token.js.map +1 -0
  114. package/dist/interface/external/elation/patient.d.ts +96 -0
  115. package/dist/interface/external/elation/patient.d.ts.map +1 -0
  116. package/dist/interface/external/elation/patient.js +33 -0
  117. package/dist/interface/external/elation/patient.js.map +1 -0
  118. package/dist/interface/external/shared/ehr/patient.d.ts +250 -0
  119. package/dist/interface/external/shared/ehr/patient.d.ts.map +1 -0
  120. package/dist/interface/external/shared/ehr/patient.js +35 -0
  121. package/dist/interface/external/shared/ehr/patient.js.map +1 -0
  122. package/dist/interface/external/surescripts/payment-code.d.ts +8 -0
  123. package/dist/interface/external/surescripts/payment-code.d.ts.map +1 -1
  124. package/dist/interface/external/surescripts/payment-code.js +54 -1
  125. package/dist/interface/external/surescripts/payment-code.js.map +1 -1
  126. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vitals.js","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/vitals.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAEjF,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,QAAQ,EAAE,aAAa,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAGU,QAAA,0BAA0B,GAAG,2BAAmB,CAAC,MAAM,CAAC;IACnE,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,QAAQ,EAAE,aAAa,CAAC,KAAK,EAAE;CAChC,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/canvas/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/canvas/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,3 @@
1
+ export * from "./jwt-token";
2
+ export * from "./appointment";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/canvas/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,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("./jwt-token"), exports);
18
+ __exportStar(require("./appointment"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/external/canvas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,gDAA8B"}
@@ -0,0 +1,31 @@
1
+ import z from "zod";
2
+ export declare const canvasJwtTokenDataSchema: z.ZodObject<{
3
+ practiceId: z.ZodString;
4
+ source: z.ZodLiteral<"canvas">;
5
+ }, "strip", z.ZodTypeAny, {
6
+ source: "canvas";
7
+ practiceId: string;
8
+ }, {
9
+ source: "canvas";
10
+ practiceId: string;
11
+ }>;
12
+ export type CanvasJwtTokenData = z.infer<typeof canvasJwtTokenDataSchema>;
13
+ export type CanvasClientJwtTokenData = {
14
+ practiceId: string;
15
+ cxId: string;
16
+ source: "canvas-client";
17
+ };
18
+ export declare const canvasClientJwtTokenResponseSchema: z.ZodObject<{
19
+ scope: z.ZodString;
20
+ access_token: z.ZodString;
21
+ expires_in: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ scope: string;
24
+ access_token: string;
25
+ expires_in: string;
26
+ }, {
27
+ scope: string;
28
+ access_token: string;
29
+ expires_in: string;
30
+ }>;
31
+ //# sourceMappingURL=jwt-token.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jwt-token.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/canvas/jwt-token.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,eAAe,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;EAI7C,CAAC"}
@@ -0,0 +1,17 @@
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.canvasJwtTokenDataSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ exports.canvasJwtTokenDataSchema = zod_1.default.object({
9
+ practiceId: zod_1.default.string(),
10
+ source: zod_1.default.literal("canvas"),
11
+ });
12
+ exports.canvasClientJwtTokenResponseSchema = zod_1.default.object({
13
+ scope: zod_1.default.string(),
14
+ access_token: zod_1.default.string(),
15
+ expires_in: zod_1.default.coerce.string(),
16
+ });
17
+ //# sourceMappingURL=jwt-token.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../src/interface/external/canvas/jwt-token.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAEP,QAAA,wBAAwB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC/C,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;CAC5B,CAAC,CAAC;AAUU,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,144 @@
1
+ import { z } from "zod";
2
+ export declare const allergySchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ category: z.ZodEnum<["allergy", "sensitivity", "preference", "intolerance", "ccda"]>;
5
+ category_type: z.ZodNullable<z.ZodEnum<["drug", "food", "environmental", "pet", "latex", "like", "dislike"]>>;
6
+ name: z.ZodNullable<z.ZodString>;
7
+ status: z.ZodNullable<z.ZodEnum<["active", "inactive", "resolved"]>>;
8
+ onset_date: z.ZodNullable<z.ZodString>;
9
+ reaction: z.ZodNullable<z.ZodString>;
10
+ severity: z.ZodNullable<z.ZodEnum<["mild", "moderate", "severe", "unknown"]>>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ name: string | null;
13
+ id: string;
14
+ status: "active" | "inactive" | "resolved" | null;
15
+ severity: "unknown" | "mild" | "moderate" | "severe" | null;
16
+ category: "allergy" | "sensitivity" | "preference" | "intolerance" | "ccda";
17
+ category_type: "drug" | "food" | "environmental" | "pet" | "latex" | "like" | "dislike" | null;
18
+ onset_date: string | null;
19
+ reaction: string | null;
20
+ }, {
21
+ name: string | null;
22
+ id: string;
23
+ status: "active" | "inactive" | "resolved" | null;
24
+ severity: "unknown" | "mild" | "moderate" | "severe" | null;
25
+ category: "allergy" | "sensitivity" | "preference" | "intolerance" | "ccda";
26
+ category_type: "drug" | "food" | "environmental" | "pet" | "latex" | "like" | "dislike" | null;
27
+ onset_date: string | null;
28
+ reaction: string | null;
29
+ }>;
30
+ export type Allergy = z.infer<typeof allergySchema>;
31
+ export declare const allergiesGraphqlSchema: z.ZodObject<{
32
+ data: z.ZodObject<{
33
+ user: z.ZodObject<{
34
+ allergy_sensitivities: z.ZodArray<z.ZodObject<{
35
+ id: z.ZodString;
36
+ category: z.ZodEnum<["allergy", "sensitivity", "preference", "intolerance", "ccda"]>;
37
+ category_type: z.ZodNullable<z.ZodEnum<["drug", "food", "environmental", "pet", "latex", "like", "dislike"]>>;
38
+ name: z.ZodNullable<z.ZodString>;
39
+ status: z.ZodNullable<z.ZodEnum<["active", "inactive", "resolved"]>>;
40
+ onset_date: z.ZodNullable<z.ZodString>;
41
+ reaction: z.ZodNullable<z.ZodString>;
42
+ severity: z.ZodNullable<z.ZodEnum<["mild", "moderate", "severe", "unknown"]>>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ name: string | null;
45
+ id: string;
46
+ status: "active" | "inactive" | "resolved" | null;
47
+ severity: "unknown" | "mild" | "moderate" | "severe" | null;
48
+ category: "allergy" | "sensitivity" | "preference" | "intolerance" | "ccda";
49
+ category_type: "drug" | "food" | "environmental" | "pet" | "latex" | "like" | "dislike" | null;
50
+ onset_date: string | null;
51
+ reaction: string | null;
52
+ }, {
53
+ name: string | null;
54
+ id: string;
55
+ status: "active" | "inactive" | "resolved" | null;
56
+ severity: "unknown" | "mild" | "moderate" | "severe" | null;
57
+ category: "allergy" | "sensitivity" | "preference" | "intolerance" | "ccda";
58
+ category_type: "drug" | "food" | "environmental" | "pet" | "latex" | "like" | "dislike" | null;
59
+ onset_date: string | null;
60
+ reaction: string | null;
61
+ }>, "many">;
62
+ }, "strip", z.ZodTypeAny, {
63
+ allergy_sensitivities: {
64
+ name: string | null;
65
+ id: string;
66
+ status: "active" | "inactive" | "resolved" | null;
67
+ severity: "unknown" | "mild" | "moderate" | "severe" | null;
68
+ category: "allergy" | "sensitivity" | "preference" | "intolerance" | "ccda";
69
+ category_type: "drug" | "food" | "environmental" | "pet" | "latex" | "like" | "dislike" | null;
70
+ onset_date: string | null;
71
+ reaction: string | null;
72
+ }[];
73
+ }, {
74
+ allergy_sensitivities: {
75
+ name: string | null;
76
+ id: string;
77
+ status: "active" | "inactive" | "resolved" | null;
78
+ severity: "unknown" | "mild" | "moderate" | "severe" | null;
79
+ category: "allergy" | "sensitivity" | "preference" | "intolerance" | "ccda";
80
+ category_type: "drug" | "food" | "environmental" | "pet" | "latex" | "like" | "dislike" | null;
81
+ onset_date: string | null;
82
+ reaction: string | null;
83
+ }[];
84
+ }>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ user: {
87
+ allergy_sensitivities: {
88
+ name: string | null;
89
+ id: string;
90
+ status: "active" | "inactive" | "resolved" | null;
91
+ severity: "unknown" | "mild" | "moderate" | "severe" | null;
92
+ category: "allergy" | "sensitivity" | "preference" | "intolerance" | "ccda";
93
+ category_type: "drug" | "food" | "environmental" | "pet" | "latex" | "like" | "dislike" | null;
94
+ onset_date: string | null;
95
+ reaction: string | null;
96
+ }[];
97
+ };
98
+ }, {
99
+ user: {
100
+ allergy_sensitivities: {
101
+ name: string | null;
102
+ id: string;
103
+ status: "active" | "inactive" | "resolved" | null;
104
+ severity: "unknown" | "mild" | "moderate" | "severe" | null;
105
+ category: "allergy" | "sensitivity" | "preference" | "intolerance" | "ccda";
106
+ category_type: "drug" | "food" | "environmental" | "pet" | "latex" | "like" | "dislike" | null;
107
+ onset_date: string | null;
108
+ reaction: string | null;
109
+ }[];
110
+ };
111
+ }>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ data: {
114
+ user: {
115
+ allergy_sensitivities: {
116
+ name: string | null;
117
+ id: string;
118
+ status: "active" | "inactive" | "resolved" | null;
119
+ severity: "unknown" | "mild" | "moderate" | "severe" | null;
120
+ category: "allergy" | "sensitivity" | "preference" | "intolerance" | "ccda";
121
+ category_type: "drug" | "food" | "environmental" | "pet" | "latex" | "like" | "dislike" | null;
122
+ onset_date: string | null;
123
+ reaction: string | null;
124
+ }[];
125
+ };
126
+ };
127
+ }, {
128
+ data: {
129
+ user: {
130
+ allergy_sensitivities: {
131
+ name: string | null;
132
+ id: string;
133
+ status: "active" | "inactive" | "resolved" | null;
134
+ severity: "unknown" | "mild" | "moderate" | "severe" | null;
135
+ category: "allergy" | "sensitivity" | "preference" | "intolerance" | "ccda";
136
+ category_type: "drug" | "food" | "environmental" | "pet" | "latex" | "like" | "dislike" | null;
137
+ onset_date: string | null;
138
+ reaction: string | null;
139
+ }[];
140
+ };
141
+ };
142
+ }>;
143
+ export type AllergiesGraphql = z.infer<typeof allergiesGraphqlSchema>;
144
+ //# sourceMappingURL=allergy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allergy.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/allergy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.allergiesGraphqlSchema = exports.allergySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.allergySchema = zod_1.z.object({
6
+ id: zod_1.z.string(),
7
+ category: zod_1.z.enum(["allergy", "sensitivity", "preference", "intolerance", "ccda"]),
8
+ category_type: zod_1.z
9
+ .enum(["drug", "food", "environmental", "pet", "latex", "like", "dislike"])
10
+ .nullable(),
11
+ name: zod_1.z.string().nullable(),
12
+ status: zod_1.z.enum(["active", "inactive", "resolved"]).nullable(),
13
+ onset_date: zod_1.z.string().nullable(),
14
+ reaction: zod_1.z.string().nullable(),
15
+ severity: zod_1.z.enum(["mild", "moderate", "severe", "unknown"]).nullable(),
16
+ });
17
+ exports.allergiesGraphqlSchema = zod_1.z.object({
18
+ data: zod_1.z.object({
19
+ user: zod_1.z.object({
20
+ allergy_sensitivities: exports.allergySchema.array(),
21
+ }),
22
+ }),
23
+ });
24
+ //# sourceMappingURL=allergy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allergy.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/allergy.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC;IACjF,aAAa,EAAE,OAAC;SACb,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;SAC1E,QAAQ,EAAE;IACb,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC7D,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE;CACvE,CAAC,CAAC;AAGU,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;YACb,qBAAqB,EAAE,qBAAa,CAAC,KAAK,EAAE;SAC7C,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,140 @@
1
+ import { z } from "zod";
2
+ export declare const conditionSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ active: z.ZodNullable<z.ZodBoolean>;
5
+ icd_code: z.ZodNullable<z.ZodObject<{
6
+ code: z.ZodNullable<z.ZodString>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ code: string | null;
9
+ }, {
10
+ code: string | null;
11
+ }>>;
12
+ first_symptom_date: z.ZodNullable<z.ZodString>;
13
+ end_date: z.ZodNullable<z.ZodString>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ id: string;
16
+ active: boolean | null;
17
+ icd_code: {
18
+ code: string | null;
19
+ } | null;
20
+ first_symptom_date: string | null;
21
+ end_date: string | null;
22
+ }, {
23
+ id: string;
24
+ active: boolean | null;
25
+ icd_code: {
26
+ code: string | null;
27
+ } | null;
28
+ first_symptom_date: string | null;
29
+ end_date: string | null;
30
+ }>;
31
+ export type Condition = z.infer<typeof conditionSchema>;
32
+ export declare const conditionsGraphqlSchema: z.ZodObject<{
33
+ data: z.ZodObject<{
34
+ user: z.ZodObject<{
35
+ diagnoses: z.ZodArray<z.ZodObject<{
36
+ id: z.ZodString;
37
+ active: z.ZodNullable<z.ZodBoolean>;
38
+ icd_code: z.ZodNullable<z.ZodObject<{
39
+ code: z.ZodNullable<z.ZodString>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ code: string | null;
42
+ }, {
43
+ code: string | null;
44
+ }>>;
45
+ first_symptom_date: z.ZodNullable<z.ZodString>;
46
+ end_date: z.ZodNullable<z.ZodString>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ id: string;
49
+ active: boolean | null;
50
+ icd_code: {
51
+ code: string | null;
52
+ } | null;
53
+ first_symptom_date: string | null;
54
+ end_date: string | null;
55
+ }, {
56
+ id: string;
57
+ active: boolean | null;
58
+ icd_code: {
59
+ code: string | null;
60
+ } | null;
61
+ first_symptom_date: string | null;
62
+ end_date: string | null;
63
+ }>, "many">;
64
+ }, "strip", z.ZodTypeAny, {
65
+ diagnoses: {
66
+ id: string;
67
+ active: boolean | null;
68
+ icd_code: {
69
+ code: string | null;
70
+ } | null;
71
+ first_symptom_date: string | null;
72
+ end_date: string | null;
73
+ }[];
74
+ }, {
75
+ diagnoses: {
76
+ id: string;
77
+ active: boolean | null;
78
+ icd_code: {
79
+ code: string | null;
80
+ } | null;
81
+ first_symptom_date: string | null;
82
+ end_date: string | null;
83
+ }[];
84
+ }>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ user: {
87
+ diagnoses: {
88
+ id: string;
89
+ active: boolean | null;
90
+ icd_code: {
91
+ code: string | null;
92
+ } | null;
93
+ first_symptom_date: string | null;
94
+ end_date: string | null;
95
+ }[];
96
+ };
97
+ }, {
98
+ user: {
99
+ diagnoses: {
100
+ id: string;
101
+ active: boolean | null;
102
+ icd_code: {
103
+ code: string | null;
104
+ } | null;
105
+ first_symptom_date: string | null;
106
+ end_date: string | null;
107
+ }[];
108
+ };
109
+ }>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ data: {
112
+ user: {
113
+ diagnoses: {
114
+ id: string;
115
+ active: boolean | null;
116
+ icd_code: {
117
+ code: string | null;
118
+ } | null;
119
+ first_symptom_date: string | null;
120
+ end_date: string | null;
121
+ }[];
122
+ };
123
+ };
124
+ }, {
125
+ data: {
126
+ user: {
127
+ diagnoses: {
128
+ id: string;
129
+ active: boolean | null;
130
+ icd_code: {
131
+ code: string | null;
132
+ } | null;
133
+ first_symptom_date: string | null;
134
+ end_date: string | null;
135
+ }[];
136
+ };
137
+ };
138
+ }>;
139
+ export type ConditionsGraphql = z.infer<typeof conditionsGraphqlSchema>;
140
+ //# sourceMappingURL=condition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/condition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.conditionsGraphqlSchema = exports.conditionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.conditionSchema = zod_1.z.object({
6
+ id: zod_1.z.string(),
7
+ active: zod_1.z.boolean().nullable(),
8
+ icd_code: zod_1.z.object({ code: zod_1.z.string().nullable() }).nullable(),
9
+ first_symptom_date: zod_1.z.string().nullable(),
10
+ end_date: zod_1.z.string().nullable(),
11
+ });
12
+ exports.conditionsGraphqlSchema = zod_1.z.object({
13
+ data: zod_1.z.object({
14
+ user: zod_1.z.object({
15
+ diagnoses: exports.conditionSchema.array(),
16
+ }),
17
+ }),
18
+ });
19
+ //# sourceMappingURL=condition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"condition.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/condition.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9D,kBAAkB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAGU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;YACb,SAAS,EAAE,uBAAe,CAAC,KAAK,EAAE;SACnC,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,108 @@
1
+ import { z } from "zod";
2
+ export declare const immunizationSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ status: z.ZodString;
5
+ cvx_code: z.ZodString;
6
+ received_at: z.ZodString;
7
+ additional_notes: z.ZodNullable<z.ZodString>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ id: string;
10
+ status: string;
11
+ cvx_code: string;
12
+ received_at: string;
13
+ additional_notes: string | null;
14
+ }, {
15
+ id: string;
16
+ status: string;
17
+ cvx_code: string;
18
+ received_at: string;
19
+ additional_notes: string | null;
20
+ }>;
21
+ export type Immunization = z.infer<typeof immunizationSchema>;
22
+ export declare const immunizationsGraphqlSchema: z.ZodObject<{
23
+ data: z.ZodObject<{
24
+ user: z.ZodObject<{
25
+ immunizations: z.ZodArray<z.ZodObject<{
26
+ id: z.ZodString;
27
+ status: z.ZodString;
28
+ cvx_code: z.ZodString;
29
+ received_at: z.ZodString;
30
+ additional_notes: z.ZodNullable<z.ZodString>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ id: string;
33
+ status: string;
34
+ cvx_code: string;
35
+ received_at: string;
36
+ additional_notes: string | null;
37
+ }, {
38
+ id: string;
39
+ status: string;
40
+ cvx_code: string;
41
+ received_at: string;
42
+ additional_notes: string | null;
43
+ }>, "many">;
44
+ }, "strip", z.ZodTypeAny, {
45
+ immunizations: {
46
+ id: string;
47
+ status: string;
48
+ cvx_code: string;
49
+ received_at: string;
50
+ additional_notes: string | null;
51
+ }[];
52
+ }, {
53
+ immunizations: {
54
+ id: string;
55
+ status: string;
56
+ cvx_code: string;
57
+ received_at: string;
58
+ additional_notes: string | null;
59
+ }[];
60
+ }>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ user: {
63
+ immunizations: {
64
+ id: string;
65
+ status: string;
66
+ cvx_code: string;
67
+ received_at: string;
68
+ additional_notes: string | null;
69
+ }[];
70
+ };
71
+ }, {
72
+ user: {
73
+ immunizations: {
74
+ id: string;
75
+ status: string;
76
+ cvx_code: string;
77
+ received_at: string;
78
+ additional_notes: string | null;
79
+ }[];
80
+ };
81
+ }>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ data: {
84
+ user: {
85
+ immunizations: {
86
+ id: string;
87
+ status: string;
88
+ cvx_code: string;
89
+ received_at: string;
90
+ additional_notes: string | null;
91
+ }[];
92
+ };
93
+ };
94
+ }, {
95
+ data: {
96
+ user: {
97
+ immunizations: {
98
+ id: string;
99
+ status: string;
100
+ cvx_code: string;
101
+ received_at: string;
102
+ additional_notes: string | null;
103
+ }[];
104
+ };
105
+ };
106
+ }>;
107
+ export type ImmunizationsGraphql = z.infer<typeof immunizationsGraphqlSchema>;
108
+ //# sourceMappingURL=immunization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"immunization.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/immunization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;EAM7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}