@metriport/commonwell-sdk 4.1.4-alpha.0 → 4.1.4-alpha.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/README.md +22 -13
- package/lib/client/commonwell-api.d.ts +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,31 +1,40 @@
|
|
|
1
1
|
# `commonwell-sdk`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
SDK to simplify CommonWell API integration - by Metriport Inc.
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
|
|
8
|
+
import {
|
|
9
|
+
APIMode,
|
|
10
|
+
CommonWell
|
|
11
|
+
} from "@metriport/commonwell-sdk";
|
|
9
12
|
|
|
10
|
-
|
|
13
|
+
const commonWell = new CommonWell(
|
|
14
|
+
"CERTIFICATE",
|
|
15
|
+
"PRIVATE_KEY",
|
|
16
|
+
"Leopard Medical",
|
|
17
|
+
"2.16.840.1.113883.3.666.7.777",
|
|
18
|
+
APIMode.production
|
|
19
|
+
);
|
|
11
20
|
```
|
|
12
21
|
|
|
13
22
|
```
|
|
14
23
|
,▄,
|
|
15
24
|
▄▓███▌
|
|
16
25
|
▄▀╙ ▀▓▀ ²▄
|
|
17
|
-
▄└ ╙▌
|
|
18
|
-
,▀ ╨▄
|
|
19
|
-
▌ ║
|
|
20
|
-
▌
|
|
21
|
-
▌
|
|
22
|
-
,▓██▄ ╔███▄
|
|
23
|
-
╙███▌ ▀███▀
|
|
24
|
-
▀▄
|
|
26
|
+
▄└ ╙▌
|
|
27
|
+
,▀ ╨▄
|
|
28
|
+
▌ ║
|
|
29
|
+
▌
|
|
30
|
+
▌
|
|
31
|
+
,▓██▄ ╔███▄
|
|
32
|
+
╙███▌ ▀███▀
|
|
33
|
+
▀▄
|
|
25
34
|
▀╗▄ ,▄
|
|
26
35
|
'╙▀▀▀▀▀╙''
|
|
27
36
|
|
|
28
|
-
|
|
37
|
+
|
|
29
38
|
by Metriport Inc.
|
|
30
39
|
|
|
31
|
-
```
|
|
40
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as stream from "stream";
|
|
3
3
|
import { RequestMetadata } from "./commonwell";
|
|
4
4
|
import { CertificateParam, CertificateResp } from "../models/certificates";
|
|
5
|
-
import { DocumentQueryResponse } from "../models/document";
|
|
5
|
+
import { DocumentQueryResponse, DocumentQueryFullResponse } from "../models/document";
|
|
6
6
|
import { Identifier, StrongId } from "../models/identifier";
|
|
7
7
|
import { NetworkLink, PatientLinkProxy } from "../models/link";
|
|
8
8
|
import { Organization, OrganizationList } from "../models/organization";
|
|
@@ -38,6 +38,7 @@ export interface CommonWellAPI {
|
|
|
38
38
|
getNetworkLinks(meta: RequestMetadata, patientId: string): Promise<PatientNetworkLinkResp>;
|
|
39
39
|
deletePatient(meta: RequestMetadata, id: string): Promise<void>;
|
|
40
40
|
queryDocuments(meta: RequestMetadata, patientId: string): Promise<DocumentQueryResponse>;
|
|
41
|
+
queryDocumentsFull(meta: RequestMetadata, patientId: string): Promise<DocumentQueryFullResponse>;
|
|
41
42
|
retrieveDocument(meta: RequestMetadata, inputUrl: string, outputStream: stream.Writable): Promise<void>;
|
|
42
43
|
upgradeOrDowngradeNetworkLink(meta: RequestMetadata, href: string, proxy?: PatientLinkProxy): Promise<NetworkLink>;
|
|
43
44
|
updatePatientLink(meta: RequestMetadata, patientLinkUri: string, patientUri?: string, identifier?: Identifier): Promise<PatientLink>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metriport/commonwell-sdk",
|
|
3
|
-
"version": "4.1.4-alpha.
|
|
3
|
+
"version": "4.1.4-alpha.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/",
|