@metriport/commonwell-sdk 3.1.1 → 3.1.2
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/lib/models/address.d.ts +6 -6
- package/lib/models/certificates.d.ts +13 -13
- package/lib/models/contact.d.ts +4 -4
- package/lib/models/demographics.d.ts +48 -49
- package/lib/models/document.d.ts +723 -723
- package/lib/models/facility.d.ts +16 -16
- package/lib/models/human-name.d.ts +8 -8
- package/lib/models/identifier.d.ts +2 -3
- package/lib/models/link.d.ts +116 -117
- package/lib/models/organization.d.ts +140 -140
- package/lib/models/patient.d.ts +954 -959
- package/lib/models/person.d.ts +593 -595
- package/package.json +2 -2
- package/lib/models/commonwell.d.ts +0 -49
- package/lib/models/commonwell.js +0 -3
- package/lib/models/commonwell.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metriport/commonwell-sdk",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
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/",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"@types/jsonwebtoken": "^9.0.0",
|
|
44
44
|
"@types/node": "^18.11.18"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "ba1235137ba6f8cda2b6e32a9423347bb11ee9cd"
|
|
47
47
|
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import * as fs from "fs";
|
|
3
|
-
import { RequestMetadata } from "../client/commonwell";
|
|
4
|
-
import { CertificateParam, CertificateResp } from "./certificates";
|
|
5
|
-
import { DocumentQueryResponse } from "./document";
|
|
6
|
-
import { Identifier, StrongId } from "./identifier";
|
|
7
|
-
import { NetworkLink, PatientLinkProxy } from "./link";
|
|
8
|
-
import { Organization, OrganizationList } from "./organization";
|
|
9
|
-
import { Patient, PatientNetworkLinkResp, PatientSearchResp, PatientLinkResp } from "./patient";
|
|
10
|
-
import { PatientLink, PatientLinkSearchResp, Person, PersonSearchResp } from "./person";
|
|
11
|
-
export interface CommonWellType {
|
|
12
|
-
get oid(): string;
|
|
13
|
-
createOrg(meta: RequestMetadata, organization: Organization): Promise<Organization>;
|
|
14
|
-
updateOrg(meta: RequestMetadata, organization: Organization, id: string): Promise<Organization>;
|
|
15
|
-
getAllOrgs(meta: RequestMetadata, summary?: boolean, offset?: number, limit?: number, sort?: string): Promise<OrganizationList>;
|
|
16
|
-
getOneOrg(meta: RequestMetadata, id: string): Promise<Organization | undefined>;
|
|
17
|
-
addCertificateToOrg(meta: RequestMetadata, certificate: CertificateParam, id: string): Promise<CertificateResp>;
|
|
18
|
-
replaceCertificateForOrg(meta: RequestMetadata, certificate: CertificateParam, id: string): Promise<CertificateResp>;
|
|
19
|
-
deleteCertificateFromOrg(meta: RequestMetadata, id: string, thumbprint: string, purpose: string): Promise<void>;
|
|
20
|
-
getCertificatesFromOrg(meta: RequestMetadata, id: string, thumbprint?: string, purpose?: string): Promise<CertificateResp>;
|
|
21
|
-
getCertificatesFromOrgByThumbprint(meta: RequestMetadata, id: string, thumbprint: string, purpose?: string): Promise<CertificateResp>;
|
|
22
|
-
getCertificatesFromOrgByThumbprintAndPurpose(meta: RequestMetadata, id: string, thumbprint: string, purpose: string): Promise<CertificateResp>;
|
|
23
|
-
enrollPerson(meta: RequestMetadata, person: Person): Promise<Person>;
|
|
24
|
-
searchPerson(meta: RequestMetadata, key: string, system: string): Promise<PersonSearchResp>;
|
|
25
|
-
searchPersonByPatientDemo(meta: RequestMetadata, patientId: string): Promise<PersonSearchResp>;
|
|
26
|
-
getPersonById(meta: RequestMetadata, personId: string): Promise<Person>;
|
|
27
|
-
updatePerson(meta: RequestMetadata, person: Person, id: string): Promise<Person>;
|
|
28
|
-
patientMatch(meta: RequestMetadata, id: string): Promise<PatientSearchResp>;
|
|
29
|
-
patientLink(meta: RequestMetadata, personId: string, patientUri: string, patientStrongId?: StrongId): Promise<PatientLink>;
|
|
30
|
-
addPatientLink(meta: RequestMetadata, personId: string, patientUri: string, patientStrongId?: StrongId): Promise<PatientLink>;
|
|
31
|
-
reenrollPerson(meta: RequestMetadata, id: string): Promise<Person>;
|
|
32
|
-
unenrollPerson(meta: RequestMetadata, id: string): Promise<Person>;
|
|
33
|
-
deletePerson(meta: RequestMetadata, id: string): Promise<void>;
|
|
34
|
-
registerPatient(meta: RequestMetadata, patient: Patient): Promise<Patient>;
|
|
35
|
-
getPatient(meta: RequestMetadata, id: string): Promise<Patient>;
|
|
36
|
-
searchPatient(meta: RequestMetadata, fname: string, lname: string, dob: string, gender?: string, zip?: string): Promise<PatientSearchResp>;
|
|
37
|
-
updatePatient(meta: RequestMetadata, patient: Patient, id: string): Promise<Patient>;
|
|
38
|
-
mergePatients(meta: RequestMetadata, nonSurvivingPatientId: string, referencePatientLink: string): Promise<void>;
|
|
39
|
-
getNetworkLinks(meta: RequestMetadata, patientId: string): Promise<PatientNetworkLinkResp>;
|
|
40
|
-
deletePatient(meta: RequestMetadata, id: string): Promise<void>;
|
|
41
|
-
queryDocuments(meta: RequestMetadata, patientId: string): Promise<DocumentQueryResponse>;
|
|
42
|
-
retrieveDocument(meta: RequestMetadata, inputUrl: string, outputStream: fs.WriteStream): Promise<void>;
|
|
43
|
-
upgradeOrDowngradeNetworkLink(meta: RequestMetadata, href: string, proxy?: PatientLinkProxy): Promise<NetworkLink>;
|
|
44
|
-
updatePatientLink(meta: RequestMetadata, patientLinkUri: string, patientUri?: string, identifier?: Identifier): Promise<PatientLink>;
|
|
45
|
-
getPatientLinks(meta: RequestMetadata, personId: string, limitToOrg?: boolean): Promise<PatientLinkSearchResp>;
|
|
46
|
-
getPatientLink(meta: RequestMetadata, personId: string, patientId: string): Promise<PatientLinkResp>;
|
|
47
|
-
deletePatientLink(meta: RequestMetadata, patientLinkUri: string): Promise<void>;
|
|
48
|
-
resetPatientLink(meta: RequestMetadata, personId: string, patientId: string): Promise<void>;
|
|
49
|
-
}
|
package/lib/models/commonwell.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commonwell.js","sourceRoot":"","sources":["../../src/models/commonwell.ts"],"names":[],"mappings":""}
|