@metriport/commonwell-sdk 6.2.4 → 6.3.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/client/commonwell-api.d.ts +18 -7
- package/dist/client/commonwell-api.d.ts.map +1 -1
- package/dist/client/commonwell.d.ts +22 -13
- package/dist/client/commonwell.d.ts.map +1 -1
- package/dist/client/commonwell.js +48 -18
- package/dist/client/commonwell.js.map +1 -1
- package/dist/common/util.d.ts +39 -17
- package/dist/common/util.d.ts.map +1 -1
- package/dist/common/util.js +36 -39
- package/dist/common/util.js.map +1 -1
- package/dist/common/validate-npi.d.ts +1 -10
- package/dist/common/validate-npi.d.ts.map +1 -1
- package/dist/common/validate-npi.js +2 -38
- package/dist/common/validate-npi.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/models/address.d.ts +12 -9
- package/dist/models/address.d.ts.map +1 -1
- package/dist/models/address.js +3 -0
- package/dist/models/address.js.map +1 -1
- package/dist/models/contact.d.ts +2 -2
- package/dist/models/demographics.d.ts +34 -40
- package/dist/models/demographics.d.ts.map +1 -1
- package/dist/models/demographics.js +29 -47
- package/dist/models/demographics.js.map +1 -1
- package/dist/models/document.d.ts +1924 -1575
- package/dist/models/document.d.ts.map +1 -1
- package/dist/models/document.js +24 -22
- package/dist/models/document.js.map +1 -1
- package/dist/models/facility.d.ts +16 -16
- package/dist/models/identifier.d.ts +15 -73
- package/dist/models/identifier.d.ts.map +1 -1
- package/dist/models/identifier.js +3 -14
- package/dist/models/identifier.js.map +1 -1
- package/dist/models/patient.d.ts +2124 -787
- package/dist/models/patient.d.ts.map +1 -1
- package/dist/models/patient.js +38 -13
- package/dist/models/patient.js.map +1 -1
- package/dist/models/reference.d.ts +24 -24
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient.d.ts","sourceRoot":"","sources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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwEL,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAGlF,MAAM,MAAM,QAAQ,GAAG,CAAC,mBAAmB,GAAG,mBAAmB,CAAC,GAAG;IAAE,OAAO,EAAE,CAAC,CAAA;CAAE,CAAC"}
|
package/dist/models/patient.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.patientProbableLinksRespSchema = exports.patientProbableLinksItemRespSchema = exports.linksForPatientProbableLinksSchema = exports.patientExistingLinksSchema = exports.patientExistingLinksItemSchema = exports.linksForPatientExistingLinksSchema = exports.patientCreateOrUpdateRespSchema = exports.patientResponseSchema = exports.patientResponseItemSchema = exports.statusResponseSchema = exports.patientSchema = exports.patientLinksSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const demographics_1 = require("./demographics");
|
|
6
6
|
const facility_1 = require("./facility");
|
|
@@ -29,31 +29,56 @@ exports.patientLinksSchema = zod_1.z.object({
|
|
|
29
29
|
exports.patientSchema = demographics_1.demographicsSchema.merge(zod_1.z.object({
|
|
30
30
|
active: zod_1.z.boolean().nullish(),
|
|
31
31
|
managingOrganization: patient_organization_1.managingOrganizationSchema.nullish(),
|
|
32
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Links to a Patient or RelatedPerson resource that concerns the same actual individual.
|
|
34
|
+
* The patient resource containing this link is the non-surviving patient.
|
|
35
|
+
* Disabled because couldn't validatte this in pre-production.
|
|
36
|
+
*/
|
|
33
37
|
disclosure: zod_1.z.array(facility_1.facilitySchema).nullish(),
|
|
34
38
|
}));
|
|
35
|
-
|
|
39
|
+
// ================================ GENERIC STATUS ================================
|
|
40
|
+
exports.statusResponseSchema = zod_1.z.object({
|
|
41
|
+
status: statusSchema.nullish(),
|
|
42
|
+
});
|
|
43
|
+
// ================================ PATIENT RESPONSE ================================
|
|
44
|
+
exports.patientResponseItemSchema = zod_1.z.object({
|
|
36
45
|
Patient: exports.patientSchema.nullish(),
|
|
37
|
-
Links: exports.patientLinksSchema
|
|
46
|
+
Links: exports.patientLinksSchema,
|
|
38
47
|
});
|
|
39
|
-
exports.
|
|
40
|
-
Patients: zod_1.z.array(exports.
|
|
48
|
+
exports.patientResponseSchema = zod_1.z.object({
|
|
49
|
+
Patients: zod_1.z.array(exports.patientResponseItemSchema).nonempty(),
|
|
41
50
|
status: statusSchema.nullish(),
|
|
42
51
|
});
|
|
43
|
-
|
|
52
|
+
// ================================ CREATE/UPDATE PATIENT ================================
|
|
53
|
+
exports.patientCreateOrUpdateRespSchema = zod_1.z.object({
|
|
54
|
+
Links: exports.patientLinksSchema,
|
|
44
55
|
status: statusSchema.nullish(),
|
|
45
56
|
});
|
|
46
|
-
|
|
57
|
+
// ================================ GET EXISTING LINKS ================================
|
|
58
|
+
exports.linksForPatientExistingLinksSchema = zod_1.z.object({
|
|
59
|
+
Self: localLinkSchema,
|
|
60
|
+
Unlink: localLinkSchema,
|
|
61
|
+
});
|
|
62
|
+
exports.patientExistingLinksItemSchema = zod_1.z.object({
|
|
63
|
+
Patient: exports.patientSchema,
|
|
64
|
+
Links: exports.linksForPatientExistingLinksSchema,
|
|
65
|
+
});
|
|
66
|
+
exports.patientExistingLinksSchema = zod_1.z.object({
|
|
67
|
+
Patients: zod_1.z.array(exports.patientExistingLinksItemSchema),
|
|
68
|
+
status: statusSchema.nullish(),
|
|
69
|
+
});
|
|
70
|
+
// ================================ GET PROBABLE LINKS ================================
|
|
71
|
+
exports.linksForPatientProbableLinksSchema = zod_1.z.object({
|
|
47
72
|
Self: localLinkSchema,
|
|
48
73
|
Link: localLinkSchema,
|
|
49
74
|
Unlink: localLinkSchema,
|
|
50
75
|
});
|
|
51
|
-
exports.
|
|
52
|
-
Patient: exports.patientSchema
|
|
53
|
-
Links: exports.
|
|
76
|
+
exports.patientProbableLinksItemRespSchema = zod_1.z.object({
|
|
77
|
+
Patient: exports.patientSchema,
|
|
78
|
+
Links: exports.linksForPatientProbableLinksSchema,
|
|
54
79
|
});
|
|
55
|
-
exports.
|
|
56
|
-
Patients: zod_1.z.array(exports.
|
|
80
|
+
exports.patientProbableLinksRespSchema = zod_1.z.object({
|
|
81
|
+
Patients: zod_1.z.array(exports.patientProbableLinksItemRespSchema),
|
|
57
82
|
status: statusSchema.nullish(),
|
|
58
83
|
});
|
|
59
84
|
//# sourceMappingURL=patient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../src/models/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAoD;AACpD,yCAA4C;AAC5C,iEAAoE;AAEpE,MAAM,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC7B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;CAC3B,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC;AAEtB,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,eAAe;IACrB;;;;;;OAMG;IACH,WAAW,EAAE,eAAe,CAAC,OAAO,EAAE;IACtC,SAAS,EAAE,eAAe,CAAC,OAAO,EAAE;IACpC,MAAM,EAAE,eAAe,CAAC,OAAO,EAAE;IACjC,YAAY,EAAE,eAAe,CAAC,OAAO,EAAE;CACxC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../src/models/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAoD;AACpD,yCAA4C;AAC5C,iEAAo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
value: z.ZodString;
|
|
7
7
|
system: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
use: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown
|
|
9
|
-
type: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown
|
|
8
|
+
use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<["usual", "official", "temp", "secondary", "old"]>>>>;
|
|
9
|
+
type: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<["SS", "DL", "PPN", "BRN", "MR", "MCN", "EN", "TAX", "NIIP", "PRN", "MD", "DR", "ACSN", "UDI", "SNO", "SB", "PLAC", "FILL", "IAL2", "IAL3"]>>>>;
|
|
10
10
|
assigner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
11
|
reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -35,34 +35,34 @@ export declare const referenceSchema: z.ZodObject<{
|
|
|
35
35
|
}>>>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
37
|
value: string;
|
|
38
|
-
type?:
|
|
38
|
+
type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
|
|
39
|
+
use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
|
|
40
|
+
period?: {
|
|
41
|
+
start?: string | null | undefined;
|
|
42
|
+
end?: string | null | undefined;
|
|
43
|
+
} | null | undefined;
|
|
39
44
|
system?: string | null | undefined;
|
|
40
|
-
use?: string | null | undefined;
|
|
41
45
|
assigner?: {
|
|
42
46
|
type?: string | null | undefined;
|
|
43
47
|
reference?: string | null | undefined;
|
|
44
48
|
identifier?: any;
|
|
45
49
|
display?: string | null | undefined;
|
|
46
50
|
} | null | undefined;
|
|
47
|
-
period?: {
|
|
48
|
-
start?: string | null | undefined;
|
|
49
|
-
end?: string | null | undefined;
|
|
50
|
-
} | null | undefined;
|
|
51
51
|
}, {
|
|
52
52
|
value: string;
|
|
53
53
|
type?: unknown;
|
|
54
|
-
system?: string | null | undefined;
|
|
55
54
|
use?: unknown;
|
|
55
|
+
period?: {
|
|
56
|
+
start?: unknown;
|
|
57
|
+
end?: unknown;
|
|
58
|
+
} | null | undefined;
|
|
59
|
+
system?: string | null | undefined;
|
|
56
60
|
assigner?: {
|
|
57
61
|
type?: string | null | undefined;
|
|
58
62
|
reference?: string | null | undefined;
|
|
59
63
|
identifier?: any;
|
|
60
64
|
display?: string | null | undefined;
|
|
61
65
|
} | null | undefined;
|
|
62
|
-
period?: {
|
|
63
|
-
start?: unknown;
|
|
64
|
-
end?: unknown;
|
|
65
|
-
} | null | undefined;
|
|
66
66
|
}>>>;
|
|
67
67
|
display: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
68
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -70,19 +70,19 @@ export declare const referenceSchema: z.ZodObject<{
|
|
|
70
70
|
reference?: string | null | undefined;
|
|
71
71
|
identifier?: {
|
|
72
72
|
value: string;
|
|
73
|
-
type?:
|
|
73
|
+
type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
|
|
74
|
+
use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
|
|
75
|
+
period?: {
|
|
76
|
+
start?: string | null | undefined;
|
|
77
|
+
end?: string | null | undefined;
|
|
78
|
+
} | null | undefined;
|
|
74
79
|
system?: string | null | undefined;
|
|
75
|
-
use?: string | null | undefined;
|
|
76
80
|
assigner?: {
|
|
77
81
|
type?: string | null | undefined;
|
|
78
82
|
reference?: string | null | undefined;
|
|
79
83
|
identifier?: any;
|
|
80
84
|
display?: string | null | undefined;
|
|
81
85
|
} | null | undefined;
|
|
82
|
-
period?: {
|
|
83
|
-
start?: string | null | undefined;
|
|
84
|
-
end?: string | null | undefined;
|
|
85
|
-
} | null | undefined;
|
|
86
86
|
} | null | undefined;
|
|
87
87
|
display?: string | null | undefined;
|
|
88
88
|
}, {
|
|
@@ -91,18 +91,18 @@ export declare const referenceSchema: z.ZodObject<{
|
|
|
91
91
|
identifier?: {
|
|
92
92
|
value: string;
|
|
93
93
|
type?: unknown;
|
|
94
|
-
system?: string | null | undefined;
|
|
95
94
|
use?: unknown;
|
|
95
|
+
period?: {
|
|
96
|
+
start?: unknown;
|
|
97
|
+
end?: unknown;
|
|
98
|
+
} | null | undefined;
|
|
99
|
+
system?: string | null | undefined;
|
|
96
100
|
assigner?: {
|
|
97
101
|
type?: string | null | undefined;
|
|
98
102
|
reference?: string | null | undefined;
|
|
99
103
|
identifier?: any;
|
|
100
104
|
display?: string | null | undefined;
|
|
101
105
|
} | null | undefined;
|
|
102
|
-
period?: {
|
|
103
|
-
start?: unknown;
|
|
104
|
-
end?: unknown;
|
|
105
|
-
} | null | undefined;
|
|
106
106
|
} | null | undefined;
|
|
107
107
|
display?: string | null | undefined;
|
|
108
108
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metriport/commonwell-sdk",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"description": "SDK to simplify CommonWell API integration - by Metriport Inc.",
|
|
5
5
|
"author": "Metriport Inc. <contact@metriport.com>",
|
|
6
6
|
"homepage": "https://metriport.com/",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"prettier": "^2.8.3",
|
|
79
79
|
"typescript": "^4.9.5"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "27a24286dced98c9fb8c94bced2318c2861c04ce"
|
|
82
82
|
}
|