@metriport/shared 0.23.10 → 0.24.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 (45) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/interface/external/ehr/healthie/allergy.d.ts +144 -0
  6. package/dist/interface/external/ehr/healthie/allergy.d.ts.map +1 -0
  7. package/dist/interface/external/ehr/healthie/allergy.js +24 -0
  8. package/dist/interface/external/ehr/healthie/allergy.js.map +1 -0
  9. package/dist/interface/external/ehr/healthie/condition.d.ts +140 -0
  10. package/dist/interface/external/ehr/healthie/condition.d.ts.map +1 -0
  11. package/dist/interface/external/ehr/healthie/condition.js +19 -0
  12. package/dist/interface/external/ehr/healthie/condition.js.map +1 -0
  13. package/dist/interface/external/ehr/healthie/immunization.d.ts +108 -0
  14. package/dist/interface/external/ehr/healthie/immunization.d.ts.map +1 -0
  15. package/dist/interface/external/ehr/healthie/immunization.js +19 -0
  16. package/dist/interface/external/ehr/healthie/immunization.js.map +1 -0
  17. package/dist/interface/external/ehr/healthie/index.d.ts +5 -0
  18. package/dist/interface/external/ehr/healthie/index.d.ts.map +1 -1
  19. package/dist/interface/external/ehr/healthie/index.js +5 -0
  20. package/dist/interface/external/ehr/healthie/index.js.map +1 -1
  21. package/dist/interface/external/ehr/healthie/lab.d.ts +492 -0
  22. package/dist/interface/external/ehr/healthie/lab.d.ts.map +1 -0
  23. package/dist/interface/external/ehr/healthie/lab.js +33 -0
  24. package/dist/interface/external/ehr/healthie/lab.js.map +1 -0
  25. package/dist/interface/external/ehr/healthie/medication.d.ts +132 -0
  26. package/dist/interface/external/ehr/healthie/medication.d.ts.map +1 -0
  27. package/dist/interface/external/ehr/healthie/medication.js +22 -0
  28. package/dist/interface/external/ehr/healthie/medication.js.map +1 -0
  29. package/dist/util/__tests__/base64.test.d.ts +2 -0
  30. package/dist/util/__tests__/base64.test.d.ts.map +1 -0
  31. package/dist/util/__tests__/base64.test.js +66 -0
  32. package/dist/util/__tests__/base64.test.js.map +1 -0
  33. package/dist/util/base64.d.ts +13 -0
  34. package/dist/util/base64.d.ts.map +1 -0
  35. package/dist/util/base64.js +27 -0
  36. package/dist/util/base64.js.map +1 -0
  37. package/dist/util/index.d.ts +5 -0
  38. package/dist/util/index.d.ts.map +1 -0
  39. package/dist/util/index.js +21 -0
  40. package/dist/util/index.js.map +1 -0
  41. package/dist/util/zod.d.ts +14 -0
  42. package/dist/util/zod.d.ts.map +1 -0
  43. package/dist/util/zod.js +52 -0
  44. package/dist/util/zod.js.map +1 -0
  45. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -47,4 +47,5 @@ export * as medical from "./medical";
47
47
  export * from "./net/error";
48
48
  export * from "./net/retry";
49
49
  export * from "./net/url";
50
+ export * from "./util";
50
51
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxF,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAC9D,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,cAAc,gBAAg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C,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,cAAc,0BAA0B,CAAC;AACzC,cAAc,yCAAyC,CAAC;AACxD,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
package/dist/index.js CHANGED
@@ -98,4 +98,5 @@ exports.medical = __importStar(require("./medical"));
98
98
  __exportStar(require("./net/error"), exports);
99
99
  __exportStar(require("./net/retry"), exports);
100
100
  __exportStar(require("./net/url"), exports);
101
+ __exportStar(require("./util"), exports);
101
102
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,wCAAyC;AAAhC,gGAAA,OAAO,OAAA;AAChB,4CAA0C;AAAjC,iGAAA,MAAM,OAAA;AACf,sCAAwF;AAA/E,kGAAA,UAAU,OAAA;AAAE,0GAAA,kBAAk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HAAA,oBAAoB,OAAA;AAC7B,8CAA4B;AAC5B,qDAAqC;AACrC,8CAA4B;AAC5B,8CAA4B;AAC5B,4CAA0B;AAC1B,yCAAuB"}
@@ -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"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.immunizationsGraphqlSchema = exports.immunizationSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.immunizationSchema = zod_1.z.object({
6
+ id: zod_1.z.string(),
7
+ status: zod_1.z.string(),
8
+ cvx_code: zod_1.z.coerce.string(),
9
+ received_at: zod_1.z.string(),
10
+ additional_notes: zod_1.z.string().nullable(),
11
+ });
12
+ exports.immunizationsGraphqlSchema = zod_1.z.object({
13
+ data: zod_1.z.object({
14
+ user: zod_1.z.object({
15
+ immunizations: exports.immunizationSchema.array(),
16
+ }),
17
+ }),
18
+ });
19
+ //# sourceMappingURL=immunization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"immunization.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/immunization.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC3B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAGU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;YACb,aAAa,EAAE,0BAAkB,CAAC,KAAK,EAAE;SAC1C,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -4,4 +4,9 @@ export * from "./appointment";
4
4
  export * from "./patient";
5
5
  export * from "./subscription";
6
6
  export * from "./event";
7
+ export * from "./medication";
8
+ export * from "./immunization";
9
+ export * from "./lab";
10
+ export * from "./allergy";
11
+ export * from "./condition";
7
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
@@ -20,4 +20,9 @@ __exportStar(require("./appointment"), exports);
20
20
  __exportStar(require("./patient"), exports);
21
21
  __exportStar(require("./subscription"), exports);
22
22
  __exportStar(require("./event"), exports);
23
+ __exportStar(require("./medication"), exports);
24
+ __exportStar(require("./immunization"), exports);
25
+ __exportStar(require("./lab"), exports);
26
+ __exportStar(require("./allergy"), exports);
27
+ __exportStar(require("./condition"), exports);
23
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,8CAA4B;AAC5B,gDAA8B;AAC9B,4CAA0B;AAC1B,iDAA+B;AAC/B,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,8CAA4B;AAC5B,gDAA8B;AAC9B,4CAA0B;AAC1B,iDAA+B;AAC/B,0CAAwB;AACxB,+CAA6B;AAC7B,iDAA+B;AAC/B,wCAAsB;AACtB,4CAA0B;AAC1B,8CAA4B"}