ndhm-hrp 2.1.4 → 2.1.5
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../src/classes/discovery.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../src/classes/discovery.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,OAAO,SAAS;IAM5B,WAAW,WAAY;QACrB,aAAa,EAAE,MAAM,CAAC;QACtB,sBAAsB,EAAE,MAAM,CAAC;QAC/B,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE;YAAE,eAAe,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QAC7D,SAAS,EAAE,MAAM,EAAE,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;KACnB;;;;;;;;iCALkC,MAAM;yBAAW,MAAM;;;;;;;;;;;MA2BxD;CACH"}
|
package/lib/classes/discovery.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const header_1 = __importDefault(require("./header"));
|
|
7
3
|
const uuid_1 = require("uuid");
|
|
8
|
-
class Discovery
|
|
9
|
-
constructor(
|
|
10
|
-
|
|
4
|
+
class Discovery {
|
|
5
|
+
constructor() {
|
|
6
|
+
// private baseUrl: string;
|
|
7
|
+
// constructor(_baseUrl: string) {
|
|
8
|
+
// this.baseUrl = _baseUrl;
|
|
9
|
+
// }
|
|
11
10
|
this.onDiscovery = (config) => {
|
|
12
|
-
const url = `${this.baseUrl}gateway/v0.5/care-contexts/on-discover`;
|
|
11
|
+
// const url = `${this.baseUrl}gateway/v0.5/care-contexts/on-discover`;
|
|
13
12
|
const body = {
|
|
14
13
|
requestId: (0, uuid_1.v4)(),
|
|
15
14
|
timestamp: new Date().toISOString(),
|
|
@@ -28,9 +27,6 @@ class Discovery extends header_1.default {
|
|
|
28
27
|
requestId: config.requestId,
|
|
29
28
|
},
|
|
30
29
|
};
|
|
31
|
-
// await new Request().request({
|
|
32
|
-
// "headers": this.headers(config.patientReferenceNumber), "method": "POST", "requestBody": body, "url": url
|
|
33
|
-
// })
|
|
34
30
|
return body;
|
|
35
31
|
};
|
|
36
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.js","sourceRoot":"","sources":["../../src/classes/discovery.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"discovery.js","sourceRoot":"","sources":["../../src/classes/discovery.ts"],"names":[],"mappings":";;AACA,+BAAoC;AAGpC,MAAqB,SAAS;IAA9B;QACE,2BAA2B;QAC3B,kCAAkC;QAClC,6BAA6B;QAC7B,IAAI;QAEJ,gBAAW,GAAG,CAAC,MASd,EAAE,EAAE;YACH,uEAAuE;YACvE,MAAM,IAAI,GAAG;gBACX,SAAS,EAAE,IAAA,SAAM,GAAE;gBACnB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACnC,aAAa,EAAE,MAAM,CAAC,aAAa;gBACnC,OAAO,EAAE;oBACP,eAAe,EAAE,MAAM,CAAC,sBAAsB;oBAC9C,OAAO,EAAE,MAAM,CAAC,cAAc;oBAC9B,YAAY,EAAE,MAAM,CAAC,YAAY;oBACjC,SAAS,EAAE,MAAM,CAAC,SAAS;iBAC5B;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,MAAM,CAAC,OAAO;oBACpB,OAAO,EAAE,MAAM,CAAC,UAAU;iBAC3B;gBACD,IAAI,EAAE;oBACJ,SAAS,EAAE,MAAM,CAAC,SAAS;iBAC5B;aACF,CAAC;YAEF,OAAO,IAAI,CAAC;QACd,CAAC,CAAC;IACJ,CAAC;CAAA;AAtCD,4BAsCC"}
|