@metriport/shared 0.23.3-alpha.0 → 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.
@@ -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.3-alpha.0",
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": "3da002849605bff8dac49660965b449a173f045c"
113
+ "gitHead": "4069ba2dd4d04f64b68ce85d44219c9aa9d6ebda"
114
114
  }