@metriport/shared 0.23.8 → 0.23.10-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.
- package/dist/common/__tests__/date.test.js +42 -0
- package/dist/common/__tests__/date.test.js.map +1 -1
- package/dist/common/__tests__/demographics.test.d.ts +2 -0
- package/dist/common/__tests__/demographics.test.d.ts.map +1 -0
- package/dist/common/__tests__/demographics.test.js +131 -0
- package/dist/common/__tests__/demographics.test.js.map +1 -0
- package/dist/common/__tests__/html-encode.test.d.ts +2 -0
- package/dist/common/__tests__/html-encode.test.d.ts.map +1 -0
- package/dist/common/__tests__/html-encode.test.js +31 -0
- package/dist/common/__tests__/html-encode.test.js.map +1 -0
- package/dist/common/__tests__/retry.test.js +2 -2
- package/dist/common/__tests__/retry.test.js.map +1 -1
- package/dist/common/date.d.ts +23 -0
- package/dist/common/date.d.ts.map +1 -1
- package/dist/common/date.js +36 -1
- package/dist/common/date.js.map +1 -1
- package/dist/common/demographics.d.ts +24 -0
- package/dist/common/demographics.d.ts.map +1 -0
- package/dist/common/demographics.js +108 -0
- package/dist/common/demographics.js.map +1 -0
- package/dist/common/duration.d.ts +3 -0
- package/dist/common/duration.d.ts.map +1 -1
- package/dist/common/duration.js +3 -0
- package/dist/common/duration.js.map +1 -1
- package/dist/common/env-var.d.ts +4 -2
- package/dist/common/env-var.d.ts.map +1 -1
- package/dist/common/env-var.js +27 -6
- package/dist/common/env-var.js.map +1 -1
- package/dist/common/general.d.ts +1 -1
- package/dist/common/general.d.ts.map +1 -1
- package/dist/common/general.js +1 -1
- package/dist/common/general.js.map +1 -1
- package/dist/common/html.d.ts +2 -0
- package/dist/common/html.d.ts.map +1 -0
- package/dist/common/html.js +13 -0
- package/dist/common/html.js.map +1 -0
- package/dist/common/metriport-organization.d.ts +1 -1
- package/dist/common/metriport-organization.d.ts.map +1 -1
- package/dist/common/metriport-organization.js.map +1 -1
- package/dist/common/response.d.ts +5 -0
- package/dist/common/response.d.ts.map +1 -0
- package/dist/common/response.js +17 -0
- package/dist/common/response.js.map +1 -0
- package/dist/domain/__tests__/dob.test.js +1 -1
- package/dist/domain/__tests__/gender.test.d.ts +2 -0
- package/dist/domain/__tests__/gender.test.d.ts.map +1 -0
- package/dist/domain/__tests__/gender.test.js +64 -0
- package/dist/domain/__tests__/gender.test.js.map +1 -0
- package/dist/domain/customer.d.ts +39 -0
- package/dist/domain/customer.d.ts.map +1 -0
- package/dist/domain/customer.js +14 -0
- package/dist/domain/customer.js.map +1 -0
- package/dist/domain/gender.d.ts +6 -2
- package/dist/domain/gender.d.ts.map +1 -1
- package/dist/domain/gender.js +11 -6
- package/dist/domain/gender.js.map +1 -1
- package/dist/domain/job/job-status.d.ts +1 -1
- package/dist/domain/job/job-status.d.ts.map +1 -1
- package/dist/domain/job/job-status.js +9 -4
- package/dist/domain/job/job-status.js.map +1 -1
- package/dist/domain/job/patient-job.d.ts +32 -0
- package/dist/domain/job/patient-job.d.ts.map +1 -1
- package/dist/domain/job/patient-job.js +28 -0
- package/dist/domain/job/patient-job.js.map +1 -1
- package/dist/domain/job/types.d.ts +11 -0
- package/dist/domain/job/types.d.ts.map +1 -1
- package/dist/domain/job/types.js +6 -1
- package/dist/domain/job/types.js.map +1 -1
- package/dist/domain/organization.d.ts +2 -2
- package/dist/domain/patient/patient-import/types.d.ts +3 -1
- package/dist/domain/patient/patient-import/types.d.ts.map +1 -1
- package/dist/domain/patient/patient-import/types.js +6 -1
- package/dist/domain/patient/patient-import/types.js.map +1 -1
- package/dist/domain/patient.d.ts +72 -0
- package/dist/domain/patient.d.ts.map +1 -0
- package/dist/domain/patient.js +25 -0
- package/dist/domain/patient.js.map +1 -0
- package/dist/interface/external/ehr/canvas/allergen.d.ts +13 -0
- package/dist/interface/external/ehr/canvas/allergen.d.ts.map +1 -0
- package/dist/interface/external/ehr/canvas/allergen.js +9 -0
- package/dist/interface/external/ehr/canvas/allergen.js.map +1 -0
- package/dist/interface/external/ehr/canvas/appointment.d.ts +8 -8
- package/dist/interface/external/ehr/canvas/index.d.ts +1 -0
- package/dist/interface/external/ehr/canvas/index.d.ts.map +1 -1
- package/dist/interface/external/ehr/canvas/index.js +1 -0
- package/dist/interface/external/ehr/canvas/index.js.map +1 -1
- package/dist/interface/external/ehr/elation/ccda.d.ts +13 -0
- package/dist/interface/external/ehr/elation/ccda.d.ts.map +1 -0
- package/dist/interface/external/ehr/elation/ccda.js +9 -0
- package/dist/interface/external/ehr/elation/ccda.js.map +1 -0
- package/dist/interface/external/ehr/elation/event.d.ts +4 -4
- package/dist/interface/external/ehr/elation/index.d.ts +1 -0
- package/dist/interface/external/ehr/elation/index.d.ts.map +1 -1
- package/dist/interface/external/ehr/elation/index.js +1 -0
- package/dist/interface/external/ehr/elation/index.js.map +1 -1
- package/dist/interface/external/ehr/fhir-resource.d.ts +121 -36
- package/dist/interface/external/ehr/fhir-resource.d.ts.map +1 -1
- package/dist/interface/external/ehr/fhir-resource.js +21 -9
- package/dist/interface/external/ehr/fhir-resource.js.map +1 -1
- package/dist/interface/external/ehr/healthie/patient.d.ts +8 -8
- package/dist/interface/external/ehr/healthie/subscription.d.ts +18 -18
- package/dist/interface/external/surescripts/code-list-qualifier.d.ts +6 -0
- package/dist/interface/external/surescripts/code-list-qualifier.d.ts.map +1 -0
- package/dist/interface/external/surescripts/code-list-qualifier.js +17 -0
- package/dist/interface/external/surescripts/code-list-qualifier.js.map +1 -0
- package/dist/interface/external/surescripts/dea-schedule.d.ts +7 -0
- package/dist/interface/external/surescripts/dea-schedule.d.ts.map +1 -0
- package/dist/interface/external/surescripts/dea-schedule.js +32 -0
- package/dist/interface/external/surescripts/dea-schedule.js.map +1 -0
- package/dist/interface/external/surescripts/index.d.ts +2 -0
- package/dist/interface/external/surescripts/index.d.ts.map +1 -0
- package/dist/interface/external/surescripts/index.js +18 -0
- package/dist/interface/external/surescripts/index.js.map +1 -0
- package/dist/interface/external/surescripts/ncpdp.d.ts +12 -0
- package/dist/interface/external/surescripts/ncpdp.d.ts.map +1 -0
- package/dist/interface/external/surescripts/ncpdp.js +1472 -0
- package/dist/interface/external/surescripts/ncpdp.js.map +1 -0
- package/dist/interface/external/surescripts/payment-code.d.ts +6 -0
- package/dist/interface/external/surescripts/payment-code.d.ts.map +1 -0
- package/dist/interface/external/surescripts/payment-code.js +25 -0
- package/dist/interface/external/surescripts/payment-code.js.map +1 -0
- package/dist/interface/external/surescripts/plan-code.d.ts +7 -0
- package/dist/interface/external/surescripts/plan-code.d.ts.map +1 -0
- package/dist/interface/external/surescripts/plan-code.js +25 -0
- package/dist/interface/external/surescripts/plan-code.js.map +1 -0
- package/dist/medical/webhook/webhook-request.d.ts +60 -60
- package/dist/util/duration.d.ts +2 -0
- package/dist/util/duration.d.ts.map +1 -1
- package/dist/util/duration.js +2 -0
- package/dist/util/duration.js.map +1 -1
- package/dist/util/uuid-v7.d.ts +4 -4
- package/dist/util/uuid-v7.d.ts.map +1 -1
- package/dist/util/uuid-v7.js +12 -5
- package/dist/util/uuid-v7.js.map +1 -1
- package/package.json +3 -2
|
@@ -1,85 +1,170 @@
|
|
|
1
1
|
import { Bundle, Resource } from "@medplum/fhirtypes";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
export declare const ehrFhirResourceSchema: z.ZodIntersection<z.ZodObject<{
|
|
4
|
-
id: z.ZodString
|
|
5
|
-
resourceType: z.ZodString
|
|
4
|
+
id: z.ZodOptional<z.ZodString>;
|
|
5
|
+
resourceType: z.ZodOptional<z.ZodString>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
resourceType?: string | undefined;
|
|
8
|
+
id?: string | undefined;
|
|
9
9
|
}, {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
resourceType?: string | undefined;
|
|
11
|
+
id?: string | undefined;
|
|
12
12
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
13
13
|
export type EhrFhirResource = z.infer<typeof ehrFhirResourceSchema>;
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const ehrFhirResourceWrapperSchema: z.ZodObject<{
|
|
15
|
+
resource: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
16
|
+
id: z.ZodOptional<z.ZodString>;
|
|
17
|
+
resourceType: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
resourceType?: string | undefined;
|
|
20
|
+
id?: string | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
resourceType?: string | undefined;
|
|
23
|
+
id?: string | undefined;
|
|
24
|
+
}>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
resource?: ({
|
|
27
|
+
resourceType?: string | undefined;
|
|
28
|
+
id?: string | undefined;
|
|
29
|
+
} & Record<string, any>) | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
resource?: ({
|
|
32
|
+
resourceType?: string | undefined;
|
|
33
|
+
id?: string | undefined;
|
|
34
|
+
} & Record<string, any>) | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
export type EhrFhirResourceWrapper = z.infer<typeof ehrFhirResourceWrapperSchema>;
|
|
37
|
+
export declare const ehrFhirResourceBundleSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
38
|
+
resourceType: z.ZodLiteral<"Bundle">;
|
|
39
|
+
link: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
40
|
+
relation: z.ZodString;
|
|
41
|
+
url: z.ZodString;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
url: string;
|
|
44
|
+
relation: string;
|
|
45
|
+
}, {
|
|
46
|
+
url: string;
|
|
47
|
+
relation: string;
|
|
48
|
+
}>, "many">>;
|
|
49
|
+
}, {
|
|
50
|
+
entry: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51
|
+
resource: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
52
|
+
id: z.ZodOptional<z.ZodString>;
|
|
53
|
+
resourceType: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
resourceType?: string | undefined;
|
|
56
|
+
id?: string | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
resourceType?: string | undefined;
|
|
59
|
+
id?: string | undefined;
|
|
60
|
+
}>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
resource?: ({
|
|
63
|
+
resourceType?: string | undefined;
|
|
64
|
+
id?: string | undefined;
|
|
65
|
+
} & Record<string, any>) | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
resource?: ({
|
|
68
|
+
resourceType?: string | undefined;
|
|
69
|
+
id?: string | undefined;
|
|
70
|
+
} & Record<string, any>) | undefined;
|
|
71
|
+
}>, "many">>;
|
|
72
|
+
}>, "strip", z.ZodTypeAny, {
|
|
73
|
+
resourceType: "Bundle";
|
|
74
|
+
link?: {
|
|
75
|
+
url: string;
|
|
76
|
+
relation: string;
|
|
77
|
+
}[] | undefined;
|
|
78
|
+
entry?: {
|
|
79
|
+
resource?: ({
|
|
80
|
+
resourceType?: string | undefined;
|
|
81
|
+
id?: string | undefined;
|
|
82
|
+
} & Record<string, any>) | undefined;
|
|
83
|
+
}[] | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
resourceType: "Bundle";
|
|
86
|
+
link?: {
|
|
87
|
+
url: string;
|
|
88
|
+
relation: string;
|
|
89
|
+
}[] | undefined;
|
|
90
|
+
entry?: {
|
|
91
|
+
resource?: ({
|
|
92
|
+
resourceType?: string | undefined;
|
|
93
|
+
id?: string | undefined;
|
|
94
|
+
} & Record<string, any>) | undefined;
|
|
95
|
+
}[] | undefined;
|
|
96
|
+
}>;
|
|
97
|
+
export type EhrFhirResourceBundle = z.infer<typeof ehrFhirResourceBundleSchema>;
|
|
98
|
+
export declare const ehrStrictFhirResourceSchema: z.ZodIntersection<z.ZodObject<{
|
|
15
99
|
id: z.ZodString;
|
|
16
100
|
resourceType: z.ZodString;
|
|
17
101
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
id: string;
|
|
19
102
|
resourceType: string;
|
|
20
|
-
}, {
|
|
21
103
|
id: string;
|
|
104
|
+
}, {
|
|
22
105
|
resourceType: string;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export
|
|
106
|
+
id: string;
|
|
107
|
+
}>, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
108
|
+
export type EhrStrictFhirResource = z.infer<typeof ehrStrictFhirResourceSchema>;
|
|
109
|
+
export declare const ehrStrictFhirResourceWrapperSchema: z.ZodObject<{
|
|
26
110
|
resource: z.ZodIntersection<z.ZodObject<{
|
|
27
111
|
id: z.ZodString;
|
|
28
112
|
resourceType: z.ZodString;
|
|
29
113
|
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
id: string;
|
|
31
114
|
resourceType: string;
|
|
32
|
-
}, {
|
|
33
115
|
id: string;
|
|
116
|
+
}, {
|
|
34
117
|
resourceType: string;
|
|
118
|
+
id: string;
|
|
35
119
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
36
120
|
}, "strip", z.ZodTypeAny, {
|
|
37
121
|
resource: {
|
|
38
|
-
id: string;
|
|
39
122
|
resourceType: string;
|
|
123
|
+
id: string;
|
|
40
124
|
} & Record<string, any>;
|
|
41
125
|
}, {
|
|
42
126
|
resource: {
|
|
43
|
-
id: string;
|
|
44
127
|
resourceType: string;
|
|
128
|
+
id: string;
|
|
45
129
|
} & Record<string, any>;
|
|
46
130
|
}>;
|
|
47
|
-
export type
|
|
48
|
-
export declare const
|
|
131
|
+
export type EhrStrictFhirResourceWrapper = z.infer<typeof ehrStrictFhirResourceWrapperSchema>;
|
|
132
|
+
export declare const ehrStrictFhirResourceBundleSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
49
133
|
resourceType: z.ZodLiteral<"Bundle">;
|
|
134
|
+
link: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
135
|
+
relation: z.ZodString;
|
|
136
|
+
url: z.ZodString;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
url: string;
|
|
139
|
+
relation: string;
|
|
140
|
+
}, {
|
|
141
|
+
url: string;
|
|
142
|
+
relation: string;
|
|
143
|
+
}>, "many">>;
|
|
144
|
+
}, {
|
|
50
145
|
entry: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51
146
|
resource: z.ZodIntersection<z.ZodObject<{
|
|
52
147
|
id: z.ZodString;
|
|
53
148
|
resourceType: z.ZodString;
|
|
54
149
|
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
id: string;
|
|
56
150
|
resourceType: string;
|
|
57
|
-
}, {
|
|
58
151
|
id: string;
|
|
152
|
+
}, {
|
|
59
153
|
resourceType: string;
|
|
154
|
+
id: string;
|
|
60
155
|
}>, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
61
156
|
}, "strip", z.ZodTypeAny, {
|
|
62
157
|
resource: {
|
|
63
|
-
id: string;
|
|
64
158
|
resourceType: string;
|
|
159
|
+
id: string;
|
|
65
160
|
} & Record<string, any>;
|
|
66
161
|
}, {
|
|
67
162
|
resource: {
|
|
68
|
-
id: string;
|
|
69
163
|
resourceType: string;
|
|
164
|
+
id: string;
|
|
70
165
|
} & Record<string, any>;
|
|
71
166
|
}>, "many">>;
|
|
72
|
-
|
|
73
|
-
relation: z.ZodString;
|
|
74
|
-
url: z.ZodString;
|
|
75
|
-
}, "strip", z.ZodTypeAny, {
|
|
76
|
-
url: string;
|
|
77
|
-
relation: string;
|
|
78
|
-
}, {
|
|
79
|
-
url: string;
|
|
80
|
-
relation: string;
|
|
81
|
-
}>, "many">>;
|
|
82
|
-
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
}>, "strip", z.ZodTypeAny, {
|
|
83
168
|
resourceType: "Bundle";
|
|
84
169
|
link?: {
|
|
85
170
|
url: string;
|
|
@@ -87,8 +172,8 @@ export declare const ehrFhirResourceBundleSchema: z.ZodObject<{
|
|
|
87
172
|
}[] | undefined;
|
|
88
173
|
entry?: {
|
|
89
174
|
resource: {
|
|
90
|
-
id: string;
|
|
91
175
|
resourceType: string;
|
|
176
|
+
id: string;
|
|
92
177
|
} & Record<string, any>;
|
|
93
178
|
}[] | undefined;
|
|
94
179
|
}, {
|
|
@@ -99,12 +184,12 @@ export declare const ehrFhirResourceBundleSchema: z.ZodObject<{
|
|
|
99
184
|
}[] | undefined;
|
|
100
185
|
entry?: {
|
|
101
186
|
resource: {
|
|
102
|
-
id: string;
|
|
103
187
|
resourceType: string;
|
|
188
|
+
id: string;
|
|
104
189
|
} & Record<string, any>;
|
|
105
190
|
}[] | undefined;
|
|
106
191
|
}>;
|
|
107
|
-
export type
|
|
192
|
+
export type EhrStrictFhirResourceBundle = z.infer<typeof ehrStrictFhirResourceBundleSchema>;
|
|
108
193
|
export type BundleWithLastModified = {
|
|
109
194
|
bundle: Bundle;
|
|
110
195
|
lastModified: Date | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhir-resource.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/ehr/fhir-resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"fhir-resource.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/ehr/fhir-resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,qBAAqB;;;;;;;;;uCAMjC,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;EAEvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,2BAA2B;;;;;;;;;uCAMvC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;EAE7C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE5C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,IAAI,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,wBAAgB,4BAA4B,CAAC,YAAY,EAAE,QAAQ,EAAE,GAAG,MAAM,CAK7E;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAKzC;AAED,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;EAM1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -1,19 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fhirOperationOutcomeSchema = exports.fhirOperationOutcomeIssueSchema = exports.getDefaultBundle = exports.createBundleFromResourceList = exports.
|
|
3
|
+
exports.fhirOperationOutcomeSchema = exports.fhirOperationOutcomeIssueSchema = exports.getDefaultBundle = exports.createBundleFromResourceList = exports.ehrStrictFhirResourceBundleSchema = exports.ehrStrictFhirResourceWrapperSchema = exports.ehrStrictFhirResourceSchema = exports.ehrFhirResourceBundleSchema = exports.ehrFhirResourceWrapperSchema = exports.ehrFhirResourceSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const ehrFhirResourceSharedFieldsSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.any());
|
|
6
|
+
const ehrFhirBundleSharedFieldsSchema = zod_1.z.object({
|
|
7
|
+
resourceType: zod_1.z.literal("Bundle"),
|
|
8
|
+
link: zod_1.z.object({ relation: zod_1.z.string(), url: zod_1.z.string() }).array().optional(),
|
|
9
|
+
});
|
|
5
10
|
exports.ehrFhirResourceSchema = zod_1.z.intersection(zod_1.z.object({
|
|
6
|
-
id: zod_1.z.string(),
|
|
7
|
-
resourceType: zod_1.z.string(),
|
|
8
|
-
}),
|
|
9
|
-
exports.ehrFhirResourcesSchema = exports.ehrFhirResourceSchema.array();
|
|
11
|
+
id: zod_1.z.string().optional(),
|
|
12
|
+
resourceType: zod_1.z.string().optional(),
|
|
13
|
+
}), ehrFhirResourceSharedFieldsSchema);
|
|
10
14
|
exports.ehrFhirResourceWrapperSchema = zod_1.z.object({
|
|
11
|
-
resource: exports.ehrFhirResourceSchema,
|
|
15
|
+
resource: exports.ehrFhirResourceSchema.optional(),
|
|
12
16
|
});
|
|
13
|
-
exports.ehrFhirResourceBundleSchema =
|
|
14
|
-
resourceType: zod_1.z.literal("Bundle"),
|
|
17
|
+
exports.ehrFhirResourceBundleSchema = ehrFhirBundleSharedFieldsSchema.extend({
|
|
15
18
|
entry: exports.ehrFhirResourceWrapperSchema.array().optional(),
|
|
16
|
-
|
|
19
|
+
});
|
|
20
|
+
exports.ehrStrictFhirResourceSchema = zod_1.z.intersection(zod_1.z.object({
|
|
21
|
+
id: zod_1.z.string(),
|
|
22
|
+
resourceType: zod_1.z.string(),
|
|
23
|
+
}), ehrFhirResourceSharedFieldsSchema);
|
|
24
|
+
exports.ehrStrictFhirResourceWrapperSchema = zod_1.z.object({
|
|
25
|
+
resource: exports.ehrStrictFhirResourceSchema,
|
|
26
|
+
});
|
|
27
|
+
exports.ehrStrictFhirResourceBundleSchema = ehrFhirBundleSharedFieldsSchema.extend({
|
|
28
|
+
entry: exports.ehrStrictFhirResourceWrapperSchema.array().optional(),
|
|
17
29
|
});
|
|
18
30
|
function createBundleFromResourceList(resourceList) {
|
|
19
31
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhir-resource.js","sourceRoot":"","sources":["../../../../src/interface/external/ehr/fhir-resource.ts"],"names":[],"mappings":";;;AACA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"fhir-resource.js","sourceRoot":"","sources":["../../../../src/interface/external/ehr/fhir-resource.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AAExB,MAAM,iCAAiC,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC;AAExE,MAAM,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,YAAY,EAAE,OAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IACjC,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CAC7E,CAAC,CAAC;AAEU,QAAA,qBAAqB,GAAG,OAAC,CAAC,YAAY,CACjD,OAAC,CAAC,MAAM,CAAC;IACP,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,EACF,iCAAiC,CAClC,CAAC;AAGW,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,QAAQ,EAAE,6BAAqB,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAGU,QAAA,2BAA2B,GAAG,+BAA+B,CAAC,MAAM,CAAC;IAChF,KAAK,EAAE,oCAA4B,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CACvD,CAAC,CAAC;AAGU,QAAA,2BAA2B,GAAG,OAAC,CAAC,YAAY,CACvD,OAAC,CAAC,MAAM,CAAC;IACP,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;CACzB,CAAC,EACF,iCAAiC,CAClC,CAAC;AAGW,QAAA,kCAAkC,GAAG,OAAC,CAAC,MAAM,CAAC;IACzD,QAAQ,EAAE,mCAA2B;CACtC,CAAC,CAAC;AAGU,QAAA,iCAAiC,GAAG,+BAA+B,CAAC,MAAM,CAAC;IACtF,KAAK,EAAE,0CAAkC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CAC7D,CAAC,CAAC;AAQH,SAAgB,4BAA4B,CAAC,YAAwB;IACnE,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,KAAK,EAAE,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;KACpD,CAAC;AACJ,CAAC;AALD,oEAKC;AAED,SAAgB,gBAAgB;IAC9B,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,KAAK,EAAE,EAAE;KACV,CAAC;AACJ,CAAC;AALD,4CAKC;AAEY,QAAA,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;IACtD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;KACjB,CAAC;CACH,CAAC,CAAC;AAEU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,YAAY,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IAC3C,KAAK,EAAE,uCAA+B,CAAC,KAAK,EAAE;CAC/C,CAAC,CAAC"}
|
|
@@ -30,8 +30,8 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
30
30
|
line2: string;
|
|
31
31
|
}>, "many">;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
email: string | null;
|
|
34
33
|
id: string;
|
|
34
|
+
email: string | null;
|
|
35
35
|
gender: string | null;
|
|
36
36
|
dob: string | null;
|
|
37
37
|
first_name: string | null;
|
|
@@ -46,8 +46,8 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
46
46
|
line2: string;
|
|
47
47
|
}[];
|
|
48
48
|
}, {
|
|
49
|
-
email: string | null;
|
|
50
49
|
id: string;
|
|
50
|
+
email: string | null;
|
|
51
51
|
gender: string | null;
|
|
52
52
|
dob: string | null;
|
|
53
53
|
first_name: string | null;
|
|
@@ -96,8 +96,8 @@ export declare const patientGraphqlSchema: z.ZodObject<{
|
|
|
96
96
|
line2: string;
|
|
97
97
|
}>, "many">;
|
|
98
98
|
}, "strip", z.ZodTypeAny, {
|
|
99
|
-
email: string | null;
|
|
100
99
|
id: string;
|
|
100
|
+
email: string | null;
|
|
101
101
|
gender: string | null;
|
|
102
102
|
dob: string | null;
|
|
103
103
|
first_name: string | null;
|
|
@@ -112,8 +112,8 @@ export declare const patientGraphqlSchema: z.ZodObject<{
|
|
|
112
112
|
line2: string;
|
|
113
113
|
}[];
|
|
114
114
|
}, {
|
|
115
|
-
email: string | null;
|
|
116
115
|
id: string;
|
|
116
|
+
email: string | null;
|
|
117
117
|
gender: string | null;
|
|
118
118
|
dob: string | null;
|
|
119
119
|
first_name: string | null;
|
|
@@ -130,8 +130,8 @@ export declare const patientGraphqlSchema: z.ZodObject<{
|
|
|
130
130
|
}>>;
|
|
131
131
|
}, "strip", z.ZodTypeAny, {
|
|
132
132
|
user: {
|
|
133
|
-
email: string | null;
|
|
134
133
|
id: string;
|
|
134
|
+
email: string | null;
|
|
135
135
|
gender: string | null;
|
|
136
136
|
dob: string | null;
|
|
137
137
|
first_name: string | null;
|
|
@@ -148,8 +148,8 @@ export declare const patientGraphqlSchema: z.ZodObject<{
|
|
|
148
148
|
} | null;
|
|
149
149
|
}, {
|
|
150
150
|
user: {
|
|
151
|
-
email: string | null;
|
|
152
151
|
id: string;
|
|
152
|
+
email: string | null;
|
|
153
153
|
gender: string | null;
|
|
154
154
|
dob: string | null;
|
|
155
155
|
first_name: string | null;
|
|
@@ -168,8 +168,8 @@ export declare const patientGraphqlSchema: z.ZodObject<{
|
|
|
168
168
|
}, "strip", z.ZodTypeAny, {
|
|
169
169
|
data: {
|
|
170
170
|
user: {
|
|
171
|
-
email: string | null;
|
|
172
171
|
id: string;
|
|
172
|
+
email: string | null;
|
|
173
173
|
gender: string | null;
|
|
174
174
|
dob: string | null;
|
|
175
175
|
first_name: string | null;
|
|
@@ -188,8 +188,8 @@ export declare const patientGraphqlSchema: z.ZodObject<{
|
|
|
188
188
|
}, {
|
|
189
189
|
data: {
|
|
190
190
|
user: {
|
|
191
|
-
email: string | null;
|
|
192
191
|
id: string;
|
|
192
|
+
email: string | null;
|
|
193
193
|
gender: string | null;
|
|
194
194
|
dob: string | null;
|
|
195
195
|
first_name: string | null;
|
|
@@ -19,8 +19,8 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
19
19
|
event_type: string | null;
|
|
20
20
|
}>, "many">;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
url: string | null;
|
|
23
22
|
id: string;
|
|
23
|
+
url: string | null;
|
|
24
24
|
event_type: string | null;
|
|
25
25
|
is_enabled: boolean;
|
|
26
26
|
should_retry: boolean;
|
|
@@ -29,8 +29,8 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
29
29
|
event_type: string | null;
|
|
30
30
|
}[];
|
|
31
31
|
}, {
|
|
32
|
-
url: string | null;
|
|
33
32
|
id: string;
|
|
33
|
+
url: string | null;
|
|
34
34
|
event_type: string | null;
|
|
35
35
|
is_enabled: boolean;
|
|
36
36
|
should_retry: boolean;
|
|
@@ -59,8 +59,8 @@ export declare const subscriptionWithSignatureSecretSchema: z.ZodObject<z.object
|
|
|
59
59
|
}, {
|
|
60
60
|
signature_secret: z.ZodNullable<z.ZodString>;
|
|
61
61
|
}>, "strip", z.ZodTypeAny, {
|
|
62
|
-
url: string | null;
|
|
63
62
|
id: string;
|
|
63
|
+
url: string | null;
|
|
64
64
|
event_type: string | null;
|
|
65
65
|
is_enabled: boolean;
|
|
66
66
|
should_retry: boolean;
|
|
@@ -70,8 +70,8 @@ export declare const subscriptionWithSignatureSecretSchema: z.ZodObject<z.object
|
|
|
70
70
|
}[];
|
|
71
71
|
signature_secret: string | null;
|
|
72
72
|
}, {
|
|
73
|
-
url: string | null;
|
|
74
73
|
id: string;
|
|
74
|
+
url: string | null;
|
|
75
75
|
event_type: string | null;
|
|
76
76
|
is_enabled: boolean;
|
|
77
77
|
should_retry: boolean;
|
|
@@ -104,8 +104,8 @@ export declare const subscriptionWithSignatureSecretGraphqlSchema: z.ZodObject<{
|
|
|
104
104
|
}, {
|
|
105
105
|
signature_secret: z.ZodNullable<z.ZodString>;
|
|
106
106
|
}>, "strip", z.ZodTypeAny, {
|
|
107
|
-
url: string | null;
|
|
108
107
|
id: string;
|
|
108
|
+
url: string | null;
|
|
109
109
|
event_type: string | null;
|
|
110
110
|
is_enabled: boolean;
|
|
111
111
|
should_retry: boolean;
|
|
@@ -115,8 +115,8 @@ export declare const subscriptionWithSignatureSecretGraphqlSchema: z.ZodObject<{
|
|
|
115
115
|
}[];
|
|
116
116
|
signature_secret: string | null;
|
|
117
117
|
}, {
|
|
118
|
-
url: string | null;
|
|
119
118
|
id: string;
|
|
119
|
+
url: string | null;
|
|
120
120
|
event_type: string | null;
|
|
121
121
|
is_enabled: boolean;
|
|
122
122
|
should_retry: boolean;
|
|
@@ -128,8 +128,8 @@ export declare const subscriptionWithSignatureSecretGraphqlSchema: z.ZodObject<{
|
|
|
128
128
|
}>>;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
130
|
webhook: {
|
|
131
|
-
url: string | null;
|
|
132
131
|
id: string;
|
|
132
|
+
url: string | null;
|
|
133
133
|
event_type: string | null;
|
|
134
134
|
is_enabled: boolean;
|
|
135
135
|
should_retry: boolean;
|
|
@@ -141,8 +141,8 @@ export declare const subscriptionWithSignatureSecretGraphqlSchema: z.ZodObject<{
|
|
|
141
141
|
} | null;
|
|
142
142
|
}, {
|
|
143
143
|
webhook: {
|
|
144
|
-
url: string | null;
|
|
145
144
|
id: string;
|
|
145
|
+
url: string | null;
|
|
146
146
|
event_type: string | null;
|
|
147
147
|
is_enabled: boolean;
|
|
148
148
|
should_retry: boolean;
|
|
@@ -156,8 +156,8 @@ export declare const subscriptionWithSignatureSecretGraphqlSchema: z.ZodObject<{
|
|
|
156
156
|
}, "strip", z.ZodTypeAny, {
|
|
157
157
|
createWebhook: {
|
|
158
158
|
webhook: {
|
|
159
|
-
url: string | null;
|
|
160
159
|
id: string;
|
|
160
|
+
url: string | null;
|
|
161
161
|
event_type: string | null;
|
|
162
162
|
is_enabled: boolean;
|
|
163
163
|
should_retry: boolean;
|
|
@@ -171,8 +171,8 @@ export declare const subscriptionWithSignatureSecretGraphqlSchema: z.ZodObject<{
|
|
|
171
171
|
}, {
|
|
172
172
|
createWebhook: {
|
|
173
173
|
webhook: {
|
|
174
|
-
url: string | null;
|
|
175
174
|
id: string;
|
|
175
|
+
url: string | null;
|
|
176
176
|
event_type: string | null;
|
|
177
177
|
is_enabled: boolean;
|
|
178
178
|
should_retry: boolean;
|
|
@@ -188,8 +188,8 @@ export declare const subscriptionWithSignatureSecretGraphqlSchema: z.ZodObject<{
|
|
|
188
188
|
data: {
|
|
189
189
|
createWebhook: {
|
|
190
190
|
webhook: {
|
|
191
|
-
url: string | null;
|
|
192
191
|
id: string;
|
|
192
|
+
url: string | null;
|
|
193
193
|
event_type: string | null;
|
|
194
194
|
is_enabled: boolean;
|
|
195
195
|
should_retry: boolean;
|
|
@@ -205,8 +205,8 @@ export declare const subscriptionWithSignatureSecretGraphqlSchema: z.ZodObject<{
|
|
|
205
205
|
data: {
|
|
206
206
|
createWebhook: {
|
|
207
207
|
webhook: {
|
|
208
|
-
url: string | null;
|
|
209
208
|
id: string;
|
|
209
|
+
url: string | null;
|
|
210
210
|
event_type: string | null;
|
|
211
211
|
is_enabled: boolean;
|
|
212
212
|
should_retry: boolean;
|
|
@@ -239,8 +239,8 @@ export declare const subscriptionListResponseGraphqlSchema: z.ZodObject<{
|
|
|
239
239
|
event_type: string | null;
|
|
240
240
|
}>, "many">;
|
|
241
241
|
}, "strip", z.ZodTypeAny, {
|
|
242
|
-
url: string | null;
|
|
243
242
|
id: string;
|
|
243
|
+
url: string | null;
|
|
244
244
|
event_type: string | null;
|
|
245
245
|
is_enabled: boolean;
|
|
246
246
|
should_retry: boolean;
|
|
@@ -249,8 +249,8 @@ export declare const subscriptionListResponseGraphqlSchema: z.ZodObject<{
|
|
|
249
249
|
event_type: string | null;
|
|
250
250
|
}[];
|
|
251
251
|
}, {
|
|
252
|
-
url: string | null;
|
|
253
252
|
id: string;
|
|
253
|
+
url: string | null;
|
|
254
254
|
event_type: string | null;
|
|
255
255
|
is_enabled: boolean;
|
|
256
256
|
should_retry: boolean;
|
|
@@ -261,8 +261,8 @@ export declare const subscriptionListResponseGraphqlSchema: z.ZodObject<{
|
|
|
261
261
|
}>, "many">;
|
|
262
262
|
}, "strip", z.ZodTypeAny, {
|
|
263
263
|
webhooks: {
|
|
264
|
-
url: string | null;
|
|
265
264
|
id: string;
|
|
265
|
+
url: string | null;
|
|
266
266
|
event_type: string | null;
|
|
267
267
|
is_enabled: boolean;
|
|
268
268
|
should_retry: boolean;
|
|
@@ -273,8 +273,8 @@ export declare const subscriptionListResponseGraphqlSchema: z.ZodObject<{
|
|
|
273
273
|
}[];
|
|
274
274
|
}, {
|
|
275
275
|
webhooks: {
|
|
276
|
-
url: string | null;
|
|
277
276
|
id: string;
|
|
277
|
+
url: string | null;
|
|
278
278
|
event_type: string | null;
|
|
279
279
|
is_enabled: boolean;
|
|
280
280
|
should_retry: boolean;
|
|
@@ -287,8 +287,8 @@ export declare const subscriptionListResponseGraphqlSchema: z.ZodObject<{
|
|
|
287
287
|
}, "strip", z.ZodTypeAny, {
|
|
288
288
|
data: {
|
|
289
289
|
webhooks: {
|
|
290
|
-
url: string | null;
|
|
291
290
|
id: string;
|
|
291
|
+
url: string | null;
|
|
292
292
|
event_type: string | null;
|
|
293
293
|
is_enabled: boolean;
|
|
294
294
|
should_retry: boolean;
|
|
@@ -301,8 +301,8 @@ export declare const subscriptionListResponseGraphqlSchema: z.ZodObject<{
|
|
|
301
301
|
}, {
|
|
302
302
|
data: {
|
|
303
303
|
webhooks: {
|
|
304
|
-
url: string | null;
|
|
305
304
|
id: string;
|
|
305
|
+
url: string | null;
|
|
306
306
|
event_type: string | null;
|
|
307
307
|
is_enabled: boolean;
|
|
308
308
|
should_retry: boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const CodeListQualifiers: readonly ["38", "40", "87", "QS"];
|
|
2
|
+
export declare const CodeListQualifierNames: readonly ["Original Quantity", "Remaining Quantity", "Quantity Received", "Quantity Sufficient"];
|
|
3
|
+
export type CodeListQualifier = (typeof CodeListQualifiers)[number];
|
|
4
|
+
export type CodeListQualifierName = (typeof CodeListQualifierNames)[number];
|
|
5
|
+
export declare const CodeListQualifierName: Record<CodeListQualifier, CodeListQualifierName>;
|
|
6
|
+
//# sourceMappingURL=code-list-qualifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-list-qualifier.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/code-list-qualifier.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,mCAAoC,CAAC;AACpE,eAAO,MAAM,sBAAsB,kGAKzB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AACpE,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,iBAAiB,EAAE,qBAAqB,CAKlF,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CodeListQualifierName = exports.CodeListQualifierNames = exports.CodeListQualifiers = void 0;
|
|
4
|
+
exports.CodeListQualifiers = ["38", "40", "87", "QS"];
|
|
5
|
+
exports.CodeListQualifierNames = [
|
|
6
|
+
"Original Quantity",
|
|
7
|
+
"Remaining Quantity",
|
|
8
|
+
"Quantity Received",
|
|
9
|
+
"Quantity Sufficient",
|
|
10
|
+
];
|
|
11
|
+
exports.CodeListQualifierName = {
|
|
12
|
+
"38": "Original Quantity",
|
|
13
|
+
"40": "Remaining Quantity",
|
|
14
|
+
"87": "Quantity Received",
|
|
15
|
+
QS: "Quantity Sufficient",
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=code-list-qualifier.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-list-qualifier.js","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/code-list-qualifier.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AACvD,QAAA,sBAAsB,GAAG;IACpC,mBAAmB;IACnB,oBAAoB;IACpB,mBAAmB;IACnB,qBAAqB;CACb,CAAC;AAIE,QAAA,qBAAqB,GAAqD;IACrF,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,mBAAmB;IACzB,EAAE,EAAE,qBAAqB;CAC1B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function getDeaScheduleName(code: string): string | undefined;
|
|
2
|
+
export declare const DeaScheduleCodes: readonly ["C38046", "C48672", "C48675", "C48676", "C48677", "C48679"];
|
|
3
|
+
export declare const DeaSchedules: readonly ["Unspecified", "Schedule I", "Schedule II", "Schedule III", "Schedule IV", "Schedule V"];
|
|
4
|
+
export type DEAScheduleCode = (typeof DeaScheduleCodes)[number];
|
|
5
|
+
export type DEASchedule = (typeof DeaSchedules)[number];
|
|
6
|
+
export declare const DeaScheduleName: Record<DEAScheduleCode, DEASchedule>;
|
|
7
|
+
//# sourceMappingURL=dea-schedule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dea-schedule.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/dea-schedule.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEnE;AAED,eAAO,MAAM,gBAAgB,uEAOnB,CAAC;AACX,eAAO,MAAM,YAAY,oGAOf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAChE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AACxD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,eAAe,EAAE,WAAW,CAOhE,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeaScheduleName = exports.DeaSchedules = exports.DeaScheduleCodes = exports.getDeaScheduleName = void 0;
|
|
4
|
+
function getDeaScheduleName(code) {
|
|
5
|
+
return exports.DeaScheduleName[code];
|
|
6
|
+
}
|
|
7
|
+
exports.getDeaScheduleName = getDeaScheduleName;
|
|
8
|
+
exports.DeaScheduleCodes = [
|
|
9
|
+
"C38046",
|
|
10
|
+
"C48672",
|
|
11
|
+
"C48675",
|
|
12
|
+
"C48676",
|
|
13
|
+
"C48677",
|
|
14
|
+
"C48679",
|
|
15
|
+
];
|
|
16
|
+
exports.DeaSchedules = [
|
|
17
|
+
"Unspecified",
|
|
18
|
+
"Schedule I",
|
|
19
|
+
"Schedule II",
|
|
20
|
+
"Schedule III",
|
|
21
|
+
"Schedule IV",
|
|
22
|
+
"Schedule V",
|
|
23
|
+
];
|
|
24
|
+
exports.DeaScheduleName = {
|
|
25
|
+
C38046: "Unspecified",
|
|
26
|
+
C48672: "Schedule I",
|
|
27
|
+
C48675: "Schedule II",
|
|
28
|
+
C48676: "Schedule III",
|
|
29
|
+
C48677: "Schedule IV",
|
|
30
|
+
C48679: "Schedule V",
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=dea-schedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dea-schedule.js","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/dea-schedule.ts"],"names":[],"mappings":";;;AAAA,SAAgB,kBAAkB,CAAC,IAAY;IAC7C,OAAO,uBAAe,CAAC,IAAuB,CAAC,CAAC;AAClD,CAAC;AAFD,gDAEC;AAEY,QAAA,gBAAgB,GAAG;IAC9B,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;CACA,CAAC;AACE,QAAA,YAAY,GAAG;IAC1B,aAAa;IACb,YAAY;IACZ,aAAa;IACb,cAAc;IACd,aAAa;IACb,YAAY;CACJ,CAAC;AAIE,QAAA,eAAe,GAAyC;IACnE,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,cAAc;IACtB,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,YAAY;CACrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./dea-schedule"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
|