@metriport/shared 0.23.2 → 0.23.3

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.
@@ -0,0 +1,152 @@
1
+ import { z } from "zod";
2
+ export declare const patientImportPatientSchema: z.ZodObject<
3
+ {
4
+ dob: z.ZodEffects<z.ZodString, string, string>;
5
+ gender: z.ZodEffects<z.ZodString, string, string>;
6
+ firstname: z.ZodString;
7
+ lastname: z.ZodString;
8
+ zip: z.ZodEffects<z.ZodString, string, string>;
9
+ city: z.ZodString;
10
+ state: z.ZodEffects<z.ZodString, string, string>;
11
+ addressline1: z.ZodString;
12
+ addressline2: z.ZodOptional<z.ZodString>;
13
+ phone1: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
14
+ phone2: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
15
+ email1: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
16
+ email2: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
17
+ externalid: z.ZodOptional<z.ZodString>;
18
+ },
19
+ "strip",
20
+ z.ZodTypeAny,
21
+ {
22
+ state: string;
23
+ dob: string;
24
+ gender: string;
25
+ firstname: string;
26
+ lastname: string;
27
+ zip: string;
28
+ city: string;
29
+ addressline1: string;
30
+ addressline2?: string | undefined;
31
+ phone1?: string | undefined;
32
+ phone2?: string | undefined;
33
+ email1?: string | undefined;
34
+ email2?: string | undefined;
35
+ externalid?: string | undefined;
36
+ },
37
+ {
38
+ state: string;
39
+ dob: string;
40
+ gender: string;
41
+ firstname: string;
42
+ lastname: string;
43
+ zip: string;
44
+ city: string;
45
+ addressline1: string;
46
+ addressline2?: string | undefined;
47
+ phone1?: string | undefined;
48
+ phone2?: string | undefined;
49
+ email1?: string | undefined;
50
+ email2?: string | undefined;
51
+ externalid?: string | undefined;
52
+ }
53
+ >;
54
+ export type PatientImportPatient = z.infer<typeof patientImportPatientSchema>;
55
+ export declare const patientImportSchema: z.ZodObject<
56
+ {
57
+ patients: z.ZodArray<
58
+ z.ZodObject<
59
+ {
60
+ dob: z.ZodEffects<z.ZodString, string, string>;
61
+ gender: z.ZodEffects<z.ZodString, string, string>;
62
+ firstname: z.ZodString;
63
+ lastname: z.ZodString;
64
+ zip: z.ZodEffects<z.ZodString, string, string>;
65
+ city: z.ZodString;
66
+ state: z.ZodEffects<z.ZodString, string, string>;
67
+ addressline1: z.ZodString;
68
+ addressline2: z.ZodOptional<z.ZodString>;
69
+ phone1: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
70
+ phone2: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
71
+ email1: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
72
+ email2: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
73
+ externalid: z.ZodOptional<z.ZodString>;
74
+ },
75
+ "strip",
76
+ z.ZodTypeAny,
77
+ {
78
+ state: string;
79
+ dob: string;
80
+ gender: string;
81
+ firstname: string;
82
+ lastname: string;
83
+ zip: string;
84
+ city: string;
85
+ addressline1: string;
86
+ addressline2?: string | undefined;
87
+ phone1?: string | undefined;
88
+ phone2?: string | undefined;
89
+ email1?: string | undefined;
90
+ email2?: string | undefined;
91
+ externalid?: string | undefined;
92
+ },
93
+ {
94
+ state: string;
95
+ dob: string;
96
+ gender: string;
97
+ firstname: string;
98
+ lastname: string;
99
+ zip: string;
100
+ city: string;
101
+ addressline1: string;
102
+ addressline2?: string | undefined;
103
+ phone1?: string | undefined;
104
+ phone2?: string | undefined;
105
+ email1?: string | undefined;
106
+ email2?: string | undefined;
107
+ externalid?: string | undefined;
108
+ }
109
+ >,
110
+ "many"
111
+ >;
112
+ },
113
+ "strip",
114
+ z.ZodTypeAny,
115
+ {
116
+ patients: {
117
+ state: string;
118
+ dob: string;
119
+ gender: string;
120
+ firstname: string;
121
+ lastname: string;
122
+ zip: string;
123
+ city: string;
124
+ addressline1: string;
125
+ addressline2?: string | undefined;
126
+ phone1?: string | undefined;
127
+ phone2?: string | undefined;
128
+ email1?: string | undefined;
129
+ email2?: string | undefined;
130
+ externalid?: string | undefined;
131
+ }[];
132
+ },
133
+ {
134
+ patients: {
135
+ state: string;
136
+ dob: string;
137
+ gender: string;
138
+ firstname: string;
139
+ lastname: string;
140
+ zip: string;
141
+ city: string;
142
+ addressline1: string;
143
+ addressline2?: string | undefined;
144
+ phone1?: string | undefined;
145
+ phone2?: string | undefined;
146
+ email1?: string | undefined;
147
+ email2?: string | undefined;
148
+ externalid?: string | undefined;
149
+ }[];
150
+ }
151
+ >;
152
+ //# sourceMappingURL=patient-import.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patient-import.d.ts","sourceRoot":"","sources":["../../../src/domain/patient/patient-import.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE9B,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.patientImportSchema = exports.patientImportPatientSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const address_1 = require("../address");
6
+ const zip_1 = require("../address/zip");
7
+ const email_1 = require("../contact/email");
8
+ const phone_1 = require("../contact/phone");
9
+ const dob_1 = require("../dob");
10
+ const gender_1 = require("../gender");
11
+ exports.patientImportPatientSchema = zod_1.z.object({
12
+ dob: zod_1.z.string().refine(dob_1.normalizeDobSafe, { message: "Invalid dob" }),
13
+ gender: zod_1.z.string().refine(gender_1.normalizeGenderSafe, { message: "Invalid gender" }),
14
+ firstname: zod_1.z.string().min(1, { message: "First name must be defined" }),
15
+ lastname: zod_1.z.string().min(1, { message: "Last name must be defined" }),
16
+ zip: zod_1.z.string().refine(zip_1.normalizeZipCodeNewSafe, { message: "Invalid zip" }),
17
+ city: zod_1.z.string().min(1, { message: "City must be defined" }),
18
+ state: zod_1.z
19
+ .string()
20
+ .refine(address_1.normalizeUSStateForAddressSafe, { message: "Invalid state or territory" }),
21
+ addressline1: zod_1.z.string().min(1, { message: "Address line must be defined" }),
22
+ addressline2: zod_1.z.string().optional(),
23
+ phone1: zod_1.z.string().refine(phone_1.isPhoneValid, { message: "Invalid phone" }).optional(),
24
+ phone2: zod_1.z.string().refine(phone_1.isPhoneValid, { message: "Invalid phone" }).optional(),
25
+ email1: zod_1.z.string().refine(email_1.isEmailValid, { message: "Invalid email" }).optional(),
26
+ email2: zod_1.z.string().refine(email_1.isEmailValid, { message: "Invalid email" }).optional(),
27
+ externalid: zod_1.z.string().optional(),
28
+ });
29
+ exports.patientImportSchema = zod_1.z.object({
30
+ patients: exports.patientImportPatientSchema.array(),
31
+ });
32
+ //# sourceMappingURL=patient-import.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patient-import.js","sourceRoot":"","sources":["../../../src/domain/patient/patient-import.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAA4D;AAC5D,wCAAyD;AACzD,4CAAgD;AAChD,4CAAgD;AAChD,gCAA0C;AAC1C,sCAAgD;AAEnC,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,sBAAgB,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;IACpE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,4BAAmB,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC7E,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACvE,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IACrE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,6BAAuB,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;IAC3E,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAC5D,KAAK,EAAE,OAAC;SACL,MAAM,EAAE;SACR,MAAM,CAAC,wCAA8B,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACpF,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IAC5E,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,oBAAY,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChF,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,oBAAY,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChF,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,oBAAY,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChF,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,oBAAY,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChF,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAGU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,kCAA0B,CAAC,KAAK,EAAE;CAC7C,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from "./jwt-token";
2
2
  export * from "./appointment";
3
+ export * from "./note";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./jwt-token"), exports);
18
18
  __exportStar(require("./appointment"), exports);
19
+ __exportStar(require("./note"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,gDAA8B;AAC9B,yCAAuB"}
@@ -0,0 +1,119 @@
1
+ import z from "zod";
2
+ export declare const noteSchema: z.ZodObject<{
3
+ permalink: z.ZodString;
4
+ noteKey: z.ZodString;
5
+ title: z.ZodString;
6
+ datetimeOfService: z.ZodString;
7
+ titleDisplay: z.ZodString;
8
+ currentState: z.ZodString;
9
+ patientKey: z.ZodString;
10
+ providerKey: z.ZodString;
11
+ practiceLocationKey: z.ZodString;
12
+ noteTypeName: z.ZodString;
13
+ noteTypeSystem: z.ZodString;
14
+ noteTypeCoding: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ permalink: string;
17
+ noteKey: string;
18
+ title: string;
19
+ datetimeOfService: string;
20
+ titleDisplay: string;
21
+ currentState: string;
22
+ patientKey: string;
23
+ providerKey: string;
24
+ practiceLocationKey: string;
25
+ noteTypeName: string;
26
+ noteTypeSystem: string;
27
+ noteTypeCoding: string;
28
+ }, {
29
+ permalink: string;
30
+ noteKey: string;
31
+ title: string;
32
+ datetimeOfService: string;
33
+ titleDisplay: string;
34
+ currentState: string;
35
+ patientKey: string;
36
+ providerKey: string;
37
+ practiceLocationKey: string;
38
+ noteTypeName: string;
39
+ noteTypeSystem: string;
40
+ noteTypeCoding: string;
41
+ }>;
42
+ export type Note = z.infer<typeof noteSchema>;
43
+ export declare const noteListResponseSchema: z.ZodObject<{
44
+ results: z.ZodArray<z.ZodObject<{
45
+ permalink: z.ZodString;
46
+ noteKey: z.ZodString;
47
+ title: z.ZodString;
48
+ datetimeOfService: z.ZodString;
49
+ titleDisplay: z.ZodString;
50
+ currentState: z.ZodString;
51
+ patientKey: z.ZodString;
52
+ providerKey: z.ZodString;
53
+ practiceLocationKey: z.ZodString;
54
+ noteTypeName: z.ZodString;
55
+ noteTypeSystem: z.ZodString;
56
+ noteTypeCoding: z.ZodString;
57
+ }, "strip", z.ZodTypeAny, {
58
+ permalink: string;
59
+ noteKey: string;
60
+ title: string;
61
+ datetimeOfService: string;
62
+ titleDisplay: string;
63
+ currentState: string;
64
+ patientKey: string;
65
+ providerKey: string;
66
+ practiceLocationKey: string;
67
+ noteTypeName: string;
68
+ noteTypeSystem: string;
69
+ noteTypeCoding: string;
70
+ }, {
71
+ permalink: string;
72
+ noteKey: string;
73
+ title: string;
74
+ datetimeOfService: string;
75
+ titleDisplay: string;
76
+ currentState: string;
77
+ patientKey: string;
78
+ providerKey: string;
79
+ practiceLocationKey: string;
80
+ noteTypeName: string;
81
+ noteTypeSystem: string;
82
+ noteTypeCoding: string;
83
+ }>, "many">;
84
+ next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ results: {
87
+ permalink: string;
88
+ noteKey: string;
89
+ title: string;
90
+ datetimeOfService: string;
91
+ titleDisplay: string;
92
+ currentState: string;
93
+ patientKey: string;
94
+ providerKey: string;
95
+ practiceLocationKey: string;
96
+ noteTypeName: string;
97
+ noteTypeSystem: string;
98
+ noteTypeCoding: string;
99
+ }[];
100
+ next?: string | null | undefined;
101
+ }, {
102
+ results: {
103
+ permalink: string;
104
+ noteKey: string;
105
+ title: string;
106
+ datetimeOfService: string;
107
+ titleDisplay: string;
108
+ currentState: string;
109
+ patientKey: string;
110
+ providerKey: string;
111
+ practiceLocationKey: string;
112
+ noteTypeName: string;
113
+ noteTypeSystem: string;
114
+ noteTypeCoding: string;
115
+ }[];
116
+ next?: string | null | undefined;
117
+ }>;
118
+ export type NoteListResponse = z.infer<typeof noteListResponseSchema>;
119
+ //# sourceMappingURL=note.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"note.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/note.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAarB,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.noteListResponseSchema = exports.noteSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ exports.noteSchema = zod_1.default.object({
9
+ permalink: zod_1.default.string(),
10
+ noteKey: zod_1.default.string(),
11
+ title: zod_1.default.string(),
12
+ datetimeOfService: zod_1.default.string(),
13
+ titleDisplay: zod_1.default.string(),
14
+ currentState: zod_1.default.string(),
15
+ patientKey: zod_1.default.string(),
16
+ providerKey: zod_1.default.string(),
17
+ practiceLocationKey: zod_1.default.string(),
18
+ noteTypeName: zod_1.default.string(),
19
+ noteTypeSystem: zod_1.default.string(),
20
+ noteTypeCoding: zod_1.default.string(),
21
+ });
22
+ exports.noteListResponseSchema = zod_1.default.object({
23
+ results: exports.noteSchema.array(),
24
+ next: zod_1.default.string().nullable().optional(),
25
+ });
26
+ //# sourceMappingURL=note.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"note.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/note.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAEP,QAAA,UAAU,GAAG,aAAC,CAAC,MAAM,CAAC;IACjC,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;IACnB,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,iBAAiB,EAAE,aAAC,CAAC,MAAM,EAAE;IAC7B,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;IACxB,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE;IACvB,mBAAmB,EAAE,aAAC,CAAC,MAAM,EAAE;IAC/B,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;IACxB,cAAc,EAAE,aAAC,CAAC,MAAM,EAAE;IAC1B,cAAc,EAAE,aAAC,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAGU,QAAA,sBAAsB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC7C,OAAO,EAAE,kBAAU,CAAC,KAAK,EAAE;IAC3B,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from "./source";
2
2
  export * from "./patient";
3
3
  export * from "./fhir-resource";
4
+ export * from "./practitioner";
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/ehr/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/ehr/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./source"), exports);
18
18
  __exportStar(require("./patient"), exports);
19
19
  __exportStar(require("./fhir-resource"), exports);
20
+ __exportStar(require("./practitioner"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/external/ehr/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,4CAA0B;AAC1B,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/external/ehr/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,4CAA0B;AAC1B,kDAAgC;AAChC,iDAA+B"}
@@ -0,0 +1,49 @@
1
+ import { z } from "zod";
2
+ export declare const practitionerSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ extension: z.ZodOptional<z.ZodArray<z.ZodObject<{
5
+ url: z.ZodString;
6
+ valueReference: z.ZodOptional<z.ZodObject<{
7
+ reference: z.ZodString;
8
+ type: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ type: string;
11
+ reference: string;
12
+ }, {
13
+ type: string;
14
+ reference: string;
15
+ }>>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ url: string;
18
+ valueReference?: {
19
+ type: string;
20
+ reference: string;
21
+ } | undefined;
22
+ }, {
23
+ url: string;
24
+ valueReference?: {
25
+ type: string;
26
+ reference: string;
27
+ } | undefined;
28
+ }>, "many">>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ id: string;
31
+ extension?: {
32
+ url: string;
33
+ valueReference?: {
34
+ type: string;
35
+ reference: string;
36
+ } | undefined;
37
+ }[] | undefined;
38
+ }, {
39
+ id: string;
40
+ extension?: {
41
+ url: string;
42
+ valueReference?: {
43
+ type: string;
44
+ reference: string;
45
+ } | undefined;
46
+ }[] | undefined;
47
+ }>;
48
+ export type Practitioner = z.infer<typeof practitionerSchema>;
49
+ //# sourceMappingURL=practitioner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"practitioner.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/ehr/practitioner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.practitionerSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.practitionerSchema = zod_1.z.object({
6
+ id: zod_1.z.string(),
7
+ extension: zod_1.z
8
+ .object({
9
+ url: zod_1.z.string(),
10
+ valueReference: zod_1.z
11
+ .object({
12
+ reference: zod_1.z.string(),
13
+ type: zod_1.z.string(),
14
+ })
15
+ .optional(),
16
+ })
17
+ .array()
18
+ .optional(),
19
+ });
20
+ //# sourceMappingURL=practitioner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"practitioner.js","sourceRoot":"","sources":["../../../../src/interface/external/ehr/practitioner.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,SAAS,EAAE,OAAC;SACT,MAAM,CAAC;QACN,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;QACf,cAAc,EAAE,OAAC;aACd,MAAM,CAAC;YACN,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;YACrB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;SACjB,CAAC;aACD,QAAQ,EAAE;KACd,CAAC;SACD,KAAK,EAAE;SACP,QAAQ,EAAE;CACd,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metriport/shared",
3
- "version": "0.23.2",
3
+ "version": "0.23.3",
4
4
  "description": "Common code shared across packages - by Metriport Inc.",
5
5
  "author": "Metriport Inc. <contact@metriport.com>",
6
6
  "homepage": "https://metriport.com/",
@@ -110,5 +110,5 @@
110
110
  "ts-jest": "29.1.1",
111
111
  "typescript": "^4.9.5"
112
112
  },
113
- "gitHead": "2e56a0ce50b7d81c5c792eea80d0317fcc61532a"
113
+ "gitHead": "4069ba2dd4d04f64b68ce85d44219c9aa9d6ebda"
114
114
  }