@metriport/commonwell-cert-runner 2.4.1-alpha.0 → 2.4.1
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/flows/contribution/binary.js +1 -2
- package/dist/flows/contribution/binary.js.map +1 -1
- package/dist/flows/contribution/contribution-server.js +18 -9
- package/dist/flows/contribution/contribution-server.js.map +1 -1
- package/dist/flows/contribution/document-reference.js +1 -2
- package/dist/flows/contribution/document-reference.js.map +1 -1
- package/dist/flows/contribution/token.js +19 -10
- package/dist/flows/contribution/token.js.map +1 -1
- package/dist/flows/directory-management.js +1 -2
- package/dist/flows/directory-management.js.map +1 -1
- package/dist/flows/document-consumption.js +3 -4
- package/dist/flows/document-consumption.js.map +1 -1
- package/dist/flows/document-contribution.js +1 -2
- package/dist/flows/document-contribution.js.map +1 -1
- package/dist/flows/link-management.js +1 -2
- package/dist/flows/link-management.js.map +1 -1
- package/dist/flows/org-management-initiator-only.js +1 -2
- package/dist/flows/org-management-initiator-only.js.map +1 -1
- package/dist/flows/org-management.js +3 -4
- package/dist/flows/org-management.js.map +1 -1
- package/dist/flows/patient-management.js +1 -2
- package/dist/flows/patient-management.js.map +1 -1
- package/dist/index.js +17 -7
- package/dist/index.js.map +1 -1
- package/dist/payloads/probable-patient-sina.js +1 -2
- package/dist/payloads/probable-patient-sina.js.map +1 -1
- package/dist/payloads.d.ts +1 -1
- package/dist/payloads.d.ts.map +1 -1
- package/dist/payloads.js +25 -15
- package/dist/payloads.js.map +1 -1
- package/dist/single-commands/document-parse.js +18 -9
- package/dist/single-commands/document-parse.js.map +1 -1
- package/dist/single-commands/init-contrib-server.js +18 -9
- package/dist/single-commands/init-contrib-server.js.map +1 -1
- package/dist/single-commands/org-get.js +18 -9
- package/dist/single-commands/org-get.js.map +1 -1
- package/dist/single-commands/patient-create.js +18 -9
- package/dist/single-commands/patient-create.js.map +1 -1
- package/dist/single-commands/patient-delete.js +18 -9
- package/dist/single-commands/patient-delete.js.map +1 -1
- package/dist/single-commands/patient-get-links.js +18 -9
- package/dist/single-commands/patient-get-links.js.map +1 -1
- package/dist/single-commands/patient-get-probable-links.js +18 -9
- package/dist/single-commands/patient-get-probable-links.js.map +1 -1
- package/dist/single-commands/patient-get.js +18 -9
- package/dist/single-commands/patient-get.js.map +1 -1
- package/dist/util.js +26 -17
- package/dist/util.js.map +1 -1
- package/package.json +8 -8
package/dist/payloads.js
CHANGED
|
@@ -15,18 +15,35 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.orgCertificate = exports.orgCertificateFingerprint = exports.memberCertificate = exports.memberCertificateFingerprint = exports.
|
|
39
|
+
exports.orgCertificate = exports.orgCertificateFingerprint = exports.memberCertificate = exports.memberCertificateFingerprint = exports.caDriversLicenseUri = exports.CW_ID_PREFIX = void 0;
|
|
40
|
+
exports.makeId = makeId;
|
|
41
|
+
exports.makeOrgId = makeOrgId;
|
|
42
|
+
exports.makeFacilityId = makeFacilityId;
|
|
43
|
+
exports.makePatientId = makePatientId;
|
|
44
|
+
exports.makeDemographics = makeDemographics;
|
|
45
|
+
exports.makePatient = makePatient;
|
|
46
|
+
exports.makeOrganization = makeOrganization;
|
|
30
47
|
const faker_1 = require("@faker-js/faker");
|
|
31
48
|
const commonwell_sdk_1 = require("@metriport/commonwell-sdk");
|
|
32
49
|
const shared_1 = require("@metriport/shared");
|
|
@@ -44,24 +61,20 @@ exports.CW_ID_PREFIX = "urn:oid:";
|
|
|
44
61
|
function makeId() {
|
|
45
62
|
return nanoid.customAlphabet(idAlphabet, 6)();
|
|
46
63
|
}
|
|
47
|
-
exports.makeId = makeId;
|
|
48
64
|
function makeOrgId(orgId) {
|
|
49
65
|
const org = orgId ?? makeId();
|
|
50
66
|
return `${env_1.rootOID}.${ORGANIZATION}.${org}`;
|
|
51
67
|
}
|
|
52
|
-
exports.makeOrgId = makeOrgId;
|
|
53
68
|
function makeFacilityId(orgId) {
|
|
54
69
|
const facility = makeId();
|
|
55
70
|
return orgId ? `${orgId}.${LOCATION}.${facility}` : `${makeOrgId()}.${LOCATION}.${facility}`;
|
|
56
71
|
}
|
|
57
|
-
exports.makeFacilityId = makeFacilityId;
|
|
58
72
|
function makePatientId({ orgId, facilityId, } = {}) {
|
|
59
73
|
const org = orgId ?? makeOrgId();
|
|
60
74
|
const facility = facilityId ?? makeFacilityId(org);
|
|
61
75
|
const patient = makeId();
|
|
62
76
|
return `${facility}.${PATIENT}.${patient}`;
|
|
63
77
|
}
|
|
64
|
-
exports.makePatientId = makePatientId;
|
|
65
78
|
exports.caDriversLicenseUri = `${exports.CW_ID_PREFIX}2.16.840.1.113883.4.3.6`;
|
|
66
79
|
function makeDemographics() {
|
|
67
80
|
const shouldAddDriversLicense = Math.random() < 0.5;
|
|
@@ -100,7 +113,6 @@ function makeDemographics() {
|
|
|
100
113
|
...(driversLicense ? { identifier: [driversLicense] } : {}),
|
|
101
114
|
};
|
|
102
115
|
}
|
|
103
|
-
exports.makeDemographics = makeDemographics;
|
|
104
116
|
function makePatient({ facilityId = makeFacilityId(), demographics = makeDemographics(), } = {}) {
|
|
105
117
|
return {
|
|
106
118
|
...demographics,
|
|
@@ -122,7 +134,6 @@ function makePatient({ facilityId = makeFacilityId(), demographics = makeDemogra
|
|
|
122
134
|
},
|
|
123
135
|
};
|
|
124
136
|
}
|
|
125
|
-
exports.makePatient = makePatient;
|
|
126
137
|
const shortName = "z_" + (0, util_1.makeShortName)();
|
|
127
138
|
function makeOrganization(suffixId) {
|
|
128
139
|
const orgId = makeOrgId(suffixId);
|
|
@@ -190,7 +201,6 @@ function makeOrganization(suffixId) {
|
|
|
190
201
|
],
|
|
191
202
|
};
|
|
192
203
|
}
|
|
193
|
-
exports.makeOrganization = makeOrganization;
|
|
194
204
|
function getCertificateAndFingerprint(certString) {
|
|
195
205
|
const x509 = new crypto_1.X509Certificate(certString);
|
|
196
206
|
const validFrom = (0, dayjs_1.default)(x509.validFrom).toString();
|
package/dist/payloads.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payloads.js","sourceRoot":"","sources":["../src/payloads.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"payloads.js","sourceRoot":"","sources":["../src/payloads.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAwC;AACxC,8DASmC;AACnC,8CAAkD;AAClD,gEAAiE;AACjE,mCAAyC;AACzC,kDAA0B;AAC1B,MAAY,MAAM,mCAAe;AACjC,+BASe;AACf,iCAA8D;AAE9D,MAAM,YAAY,GAAG,GAAG,CAAC;AACzB,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Ac,GAAG,4BAA4B,CAAC,6BAAuB,CAAC,CAAC;AAChE,QAAA,4BAA4B,GAAG,cAAc,CAAC,WAAW,CAAC;AAC1D,QAAA,iBAAiB,GAAG,cAAc,CAAC,WAAW,CAAC;AAE5D,MAAM,WAAW,GAAG,4BAA4B,CAAC,0BAAoB,CAAC,CAAC;AAC1D,QAAA,yBAAyB,GAAG,WAAW,CAAC,WAAW,CAAC;AACpD,QAAA,cAAc,GAAG,WAAW,CAAC,WAAW,CAAC;AAEtD,SAAS,oBAAoB,CAAC,WAAmB;IAC/C,OAAO,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -15,18 +15,28 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.parse =
|
|
39
|
+
exports.parse = parse;
|
|
30
40
|
const dotenv = __importStar(require("dotenv"));
|
|
31
41
|
dotenv.config();
|
|
32
42
|
// keep that ^ above all other imports
|
|
@@ -48,6 +58,5 @@ async function parse() {
|
|
|
48
58
|
const docRefs = document_1.documentQueryResponseSchema.parse(JSON.parse(fileContent));
|
|
49
59
|
console.log("DocRefs: " + JSON.stringify(docRefs, null, 2));
|
|
50
60
|
}
|
|
51
|
-
exports.parse = parse;
|
|
52
61
|
parse();
|
|
53
62
|
//# sourceMappingURL=document-parse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-parse.js","sourceRoot":"","sources":["../../src/single-commands/document-parse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"document-parse.js","sourceRoot":"","sources":["../../src/single-commands/document-parse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,MAAM,mCAAe;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAChB,sCAAsC;AACtC,wEAAwF;AACxF,4CAAoB;AAEpB;;;;;;GAMG;AACI,KAAK;IACV,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACjC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;IACjF,CAAC;IAED,MAAM,WAAW,GAAG,YAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACtD,MAAM,OAAO,GAAG,sCAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IAE3E,OAAO,CAAC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAC9D,CAAC;AAED,KAAK,EAAE,CAAC"}
|
|
@@ -15,15 +15,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.main =
|
|
36
|
+
exports.main = main;
|
|
27
37
|
const dotenv = __importStar(require("dotenv"));
|
|
28
38
|
dotenv.config();
|
|
29
39
|
// keep that ^ above all other imports
|
|
@@ -56,6 +66,5 @@ async function main() {
|
|
|
56
66
|
});
|
|
57
67
|
await (0, contribution_server_1.initContributionHttpServer)(commonWell);
|
|
58
68
|
}
|
|
59
|
-
exports.main = main;
|
|
60
69
|
main();
|
|
61
70
|
//# sourceMappingURL=init-contrib-server.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-contrib-server.js","sourceRoot":"","sources":["../../src/single-commands/init-contrib-server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init-contrib-server.js","sourceRoot":"","sources":["../../src/single-commands/init-contrib-server.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,MAAM,mCAAe;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAChB,sCAAsC;AACtC,8DAA8E;AAC9E,gEAAiE;AACjE,gCAAmF;AACnF,mFAAuF;AAEvF;;GAEG;AACI,KAAK;IACV,MAAM,cAAc,GAAG,oBAAc,CAAC;IACtC,IAAI,CAAC,cAAc;QAAE,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACpE,MAAM,GAAG,GAA+D;QACtE,IAAI,EAAE,mBAAmB;QACzB,cAAc;QACd,QAAQ,EAAE,IAAA,aAAO,GAAE;KACpB,CAAC;IACF,IAAI,CAAC,GAAG,CAAC,QAAQ;QAAE,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;IACzE,MAAM,UAAU,GAAG,IAAI,2BAAU,CAAC;QAChC,OAAO,EAAE,0BAAoB;QAC7B,aAAa,EAAE,yBAAmB;QAClC,OAAO,EAAE,GAAG,CAAC,IAAI;QACjB,GAAG,EAAE,GAAG,CAAC,cAAc;QACvB,eAAe,EAAE,GAAG,CAAC,cAAc;QACnC,GAAG,EAAE,GAAG,CAAC,QAAQ;QACjB,OAAO,EAAE,wBAAO,CAAC,WAAW;KAC7B,CAAC,CAAC;IACH,MAAM,IAAA,gDAA0B,EAAC,UAAU,CAAC,CAAC;AAC/C,CAAC;AAED,IAAI,EAAE,CAAC"}
|
|
@@ -15,15 +15,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.getOrg =
|
|
36
|
+
exports.getOrg = getOrg;
|
|
27
37
|
const dotenv = __importStar(require("dotenv"));
|
|
28
38
|
dotenv.config();
|
|
29
39
|
// keep that ^ above all other imports
|
|
@@ -54,6 +64,5 @@ async function getOrg() {
|
|
|
54
64
|
console.log("Transaction ID: " + commonWellMember.lastTransactionId);
|
|
55
65
|
console.log("Response: " + JSON.stringify(resp, null, 2));
|
|
56
66
|
}
|
|
57
|
-
exports.getOrg = getOrg;
|
|
58
67
|
getOrg();
|
|
59
68
|
//# sourceMappingURL=org-get.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"org-get.js","sourceRoot":"","sources":["../../src/single-commands/org-get.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"org-get.js","sourceRoot":"","sources":["../../src/single-commands/org-get.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,MAAM,mCAAe;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAChB,sCAAsC;AACtC,8DAAsE;AACtE,gCAA+F;AAE/F,MAAM,MAAM,GAAuB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,sCAAsC;AAE1F;;;;;;;GAOG;AACI,KAAK;IACV,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAC;IAC/E,CAAC;IACD,MAAM,gBAAgB,GAAG,IAAI,iCAAgB,CAAC;QAC5C,OAAO,EAAE,6BAAuB;QAChC,aAAa,EAAE,4BAAsB;QACrC,UAAU,EAAE,gBAAU;QACtB,QAAQ,EAAE,cAAQ;QAClB,OAAO,EAAE,wBAAO,CAAC,WAAW;KAC7B,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CAAC,WAAW,MAAM,EAAE,CAAC,CAAC;IACjC,MAAM,IAAI,GAAG,MAAM,gBAAgB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACtD,OAAO,CAAC,GAAG,CAAC,kBAAkB,GAAG,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;IACrE,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,EAAE,CAAC"}
|
|
@@ -15,15 +15,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.createPatient =
|
|
36
|
+
exports.createPatient = createPatient;
|
|
27
37
|
const dotenv = __importStar(require("dotenv"));
|
|
28
38
|
dotenv.config();
|
|
29
39
|
const org_management_1 = require("../flows/org-management");
|
|
@@ -56,6 +66,5 @@ async function createPatient() {
|
|
|
56
66
|
const patientId = (0, util_1.getMetriportPatientIdOrFail)(resp, "createPatient");
|
|
57
67
|
console.log("Patient ID: " + patientId);
|
|
58
68
|
}
|
|
59
|
-
exports.createPatient = createPatient;
|
|
60
69
|
createPatient();
|
|
61
70
|
//# sourceMappingURL=patient-create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient-create.js","sourceRoot":"","sources":["../../src/single-commands/patient-create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"patient-create.js","sourceRoot":"","sources":["../../src/single-commands/patient-create.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,MAAM,mCAAe;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAGhB,4DAAgE;AAChE,0CAA0C;AAC1C,6DAA8D;AAC9D,kCAAsD;AAEtD,8DAA8D;AAC9D,MAAM,WAAW,GAAqC,iCAAiB,CAAC;AAExE;;;;;;;GAOG;AACI,KAAK;IACV,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;IACnE,CAAC;IACD,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,IAAA,sCAAqB,GAAE,CAAC;IAErD,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAC9B,MAAM,aAAa,GAAY,IAAA,sBAAW,EAAC;QACzC,UAAU,EAAE,UAAU,CAAC,GAAG;QAC1B,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;IACH,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC;IACnE,OAAO,CAAC,GAAG,CAAC,kBAAkB,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC;IAC/D,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1D,MAAM,SAAS,GAAG,IAAA,kCAA2B,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IACrE,OAAO,CAAC,GAAG,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC;AAC1C,CAAC;AAED,aAAa,EAAE,CAAC"}
|
|
@@ -15,15 +15,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.deletePatient =
|
|
36
|
+
exports.deletePatient = deletePatient;
|
|
27
37
|
const dotenv = __importStar(require("dotenv"));
|
|
28
38
|
dotenv.config();
|
|
29
39
|
// keep that ^ above all other imports
|
|
@@ -53,6 +63,5 @@ async function deletePatient() {
|
|
|
53
63
|
await commonWell.deletePatient(encodedPatientId);
|
|
54
64
|
console.log(`Patient deleted successfully`);
|
|
55
65
|
}
|
|
56
|
-
exports.deletePatient = deletePatient;
|
|
57
66
|
deletePatient();
|
|
58
67
|
//# sourceMappingURL=patient-delete.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient-delete.js","sourceRoot":"","sources":["../../src/single-commands/patient-delete.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"patient-delete.js","sourceRoot":"","sources":["../../src/single-commands/patient-delete.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,MAAM,mCAAe;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAChB,sCAAsC;AACtC,gEAA0E;AAC1E,4DAAgE;AAEhE,MAAM,SAAS,GAAuB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,6CAA6C;AAEpG;;;;;;;;;GASG;AACI,KAAK;IACV,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;IACjF,CAAC;IACD,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,IAAA,sCAAqB,GAAE,CAAC;IAErD,MAAM,gBAAgB,GAAG,IAAA,wBAAiB,EAAC;QACzC,SAAS,EAAE,SAAS;QACpB,eAAe,EAAE,UAAU,CAAC,GAAG;KAChC,CAAC,CAAC;IACH,OAAO,CAAC,GAAG,CAAC,kBAAkB,SAAS,EAAE,CAAC,CAAC;IAC3C,MAAM,UAAU,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACjD,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;AAC9C,CAAC;AAED,aAAa,EAAE,CAAC"}
|
|
@@ -15,15 +15,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.getPatientLinks =
|
|
36
|
+
exports.getPatientLinks = getPatientLinks;
|
|
27
37
|
const dotenv = __importStar(require("dotenv"));
|
|
28
38
|
dotenv.config();
|
|
29
39
|
// keep that ^ above all other imports
|
|
@@ -63,6 +73,5 @@ async function getPatientLinks() {
|
|
|
63
73
|
process.exit(1);
|
|
64
74
|
}
|
|
65
75
|
}
|
|
66
|
-
exports.getPatientLinks = getPatientLinks;
|
|
67
76
|
getPatientLinks();
|
|
68
77
|
//# sourceMappingURL=patient-get-links.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient-get-links.js","sourceRoot":"","sources":["../../src/single-commands/patient-get-links.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"patient-get-links.js","sourceRoot":"","sources":["../../src/single-commands/patient-get-links.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,MAAM,mCAAe;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAChB,sCAAsC;AACtC,gEAA0E;AAC1E,4DAAgE;AAChE,8CAAkD;AAElD,MAAM,SAAS,GAAuB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,6CAA6C;AACpG,MAAM,OAAO,GAAY,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,6CAA6C;AAElG;;;;;;;GAOG;AACI,KAAK;IACV,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;IACjF,CAAC;IACD,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,IAAA,sCAAqB,GAAE,CAAC;IAErD,MAAM,gBAAgB,GAAG,IAAA,wBAAiB,EAAC;QACzC,SAAS,EAAE,SAAS;QACpB,eAAe,EAAE,UAAU,CAAC,GAAG;KAChC,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CAAC,yBAAyB,SAAS,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,CAAC;QAC3E,OAAO,CAAC,GAAG,CAAC,kBAAkB,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC;QAC/D,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC5D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,GAAG,CAAC,SAAS,GAAG,IAAA,sBAAa,EAAC,KAAK,CAAC,CAAC,CAAC;QAC9C,OAAO,CAAC,GAAG,CAAC,kBAAkB,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC;QAC/D,IAAI,OAAO;YAAE,MAAM,KAAK,CAAC;QACzB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,eAAe,EAAE,CAAC"}
|
|
@@ -15,15 +15,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.getPatientProbableLinks =
|
|
36
|
+
exports.getPatientProbableLinks = getPatientProbableLinks;
|
|
27
37
|
const dotenv = __importStar(require("dotenv"));
|
|
28
38
|
dotenv.config();
|
|
29
39
|
// keep that ^ above all other imports
|
|
@@ -52,6 +62,5 @@ async function getPatientProbableLinks() {
|
|
|
52
62
|
console.log("Transaction ID: " + commonWell.lastTransactionId);
|
|
53
63
|
console.log("Response: " + JSON.stringify(resp, null, 2));
|
|
54
64
|
}
|
|
55
|
-
exports.getPatientProbableLinks = getPatientProbableLinks;
|
|
56
65
|
getPatientProbableLinks();
|
|
57
66
|
//# sourceMappingURL=patient-get-probable-links.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient-get-probable-links.js","sourceRoot":"","sources":["../../src/single-commands/patient-get-probable-links.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"patient-get-probable-links.js","sourceRoot":"","sources":["../../src/single-commands/patient-get-probable-links.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,MAAM,mCAAe;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAChB,sCAAsC;AACtC,gEAA0E;AAC1E,4DAAgE;AAEhE,MAAM,SAAS,GAAuB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,6CAA6C;AAEpG;;;;;;;GAOG;AACI,KAAK;IACV,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;IACjF,CAAC;IACD,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,IAAA,sCAAqB,GAAE,CAAC;IAErD,MAAM,gBAAgB,GAAG,IAAA,wBAAiB,EAAC;QACzC,SAAS,EAAE,SAAS;QACpB,eAAe,EAAE,UAAU,CAAC,GAAG;KAChC,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CAAC,kCAAkC,SAAS,EAAE,CAAC,CAAC;IAC3D,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;IACrE,OAAO,CAAC,GAAG,CAAC,kBAAkB,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC;IAC/D,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED,uBAAuB,EAAE,CAAC"}
|
|
@@ -15,15 +15,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.getPatient =
|
|
36
|
+
exports.getPatient = getPatient;
|
|
27
37
|
const dotenv = __importStar(require("dotenv"));
|
|
28
38
|
dotenv.config();
|
|
29
39
|
// keep that ^ above all other imports
|
|
@@ -52,6 +62,5 @@ async function getPatient() {
|
|
|
52
62
|
console.log("Transaction ID: " + commonWell.lastTransactionId);
|
|
53
63
|
console.log("Response: " + JSON.stringify(resp, null, 2));
|
|
54
64
|
}
|
|
55
|
-
exports.getPatient = getPatient;
|
|
56
65
|
getPatient();
|
|
57
66
|
//# sourceMappingURL=patient-get.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient-get.js","sourceRoot":"","sources":["../../src/single-commands/patient-get.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"patient-get.js","sourceRoot":"","sources":["../../src/single-commands/patient-get.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,MAAM,mCAAe;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAChB,sCAAsC;AACtC,gEAA0E;AAC1E,4DAAgE;AAEhE,MAAM,SAAS,GAAuB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,6CAA6C;AAEpG;;;;;;;GAOG;AACI,KAAK;IACV,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;IACjF,CAAC;IACD,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,IAAA,sCAAqB,GAAE,CAAC;IAErD,MAAM,gBAAgB,GAAG,IAAA,wBAAiB,EAAC;QACzC,SAAS,EAAE,SAAS;QACpB,eAAe,EAAE,UAAU,CAAC,GAAG;KAChC,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CAAC,eAAe,SAAS,EAAE,CAAC,CAAC;IACxC,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAC3D,OAAO,CAAC,GAAG,CAAC,kBAAkB,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC;IAC/D,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED,UAAU,EAAE,CAAC"}
|
package/dist/util.js
CHANGED
|
@@ -15,15 +15,33 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
36
|
+
exports.getEnv = getEnv;
|
|
37
|
+
exports.getEnvOrFail = getEnvOrFail;
|
|
38
|
+
exports.getCertificateContent = getCertificateContent;
|
|
39
|
+
exports.filterTruthy = filterTruthy;
|
|
40
|
+
exports.firstElementOrFail = firstElementOrFail;
|
|
41
|
+
exports.makeShortName = makeShortName;
|
|
42
|
+
exports.getMetriportPatientIdOrFail = getMetriportPatientIdOrFail;
|
|
43
|
+
exports.logError = logError;
|
|
44
|
+
exports.waitSeconds = waitSeconds;
|
|
27
45
|
const dotenv = __importStar(require("dotenv"));
|
|
28
46
|
dotenv.config();
|
|
29
47
|
// keep that ^ above all other imports
|
|
@@ -33,14 +51,12 @@ const shared_1 = require("@metriport/shared");
|
|
|
33
51
|
function getEnv(name) {
|
|
34
52
|
return process.env[name];
|
|
35
53
|
}
|
|
36
|
-
exports.getEnv = getEnv;
|
|
37
54
|
function getEnvOrFail(name) {
|
|
38
55
|
const value = getEnv(name);
|
|
39
56
|
if (!value || value.trim().length < 1)
|
|
40
57
|
throw new Error(`Missing env var ${name}`);
|
|
41
58
|
return value;
|
|
42
59
|
}
|
|
43
|
-
exports.getEnvOrFail = getEnvOrFail;
|
|
44
60
|
function getCertificateContent(cert) {
|
|
45
61
|
const regex = /-+BEGIN CERTIFICATE-+([\s\S]+?)-+END CERTIFICATE-+/i;
|
|
46
62
|
const matches = cert.match(regex);
|
|
@@ -50,17 +66,14 @@ function getCertificateContent(cert) {
|
|
|
50
66
|
}
|
|
51
67
|
return undefined;
|
|
52
68
|
}
|
|
53
|
-
exports.getCertificateContent = getCertificateContent;
|
|
54
69
|
function filterTruthy(o) {
|
|
55
70
|
return o ? o : [];
|
|
56
71
|
}
|
|
57
|
-
exports.filterTruthy = filterTruthy;
|
|
58
72
|
function firstElementOrFail(arr, fieldName) {
|
|
59
73
|
if (arr && arr.length > 0)
|
|
60
74
|
return arr[0];
|
|
61
75
|
throw new Error(`No first ${fieldName ? fieldName : "element"} on array`);
|
|
62
76
|
}
|
|
63
|
-
exports.firstElementOrFail = firstElementOrFail;
|
|
64
77
|
function makeShortName() {
|
|
65
78
|
let shortName = " ";
|
|
66
79
|
while (shortName.includes(" ")) {
|
|
@@ -68,7 +81,6 @@ function makeShortName() {
|
|
|
68
81
|
}
|
|
69
82
|
return shortName;
|
|
70
83
|
}
|
|
71
|
-
exports.makeShortName = makeShortName;
|
|
72
84
|
function getMetriportPatientIdOrFail(patient, context) {
|
|
73
85
|
if (!patient)
|
|
74
86
|
throw new Error("Missing patient");
|
|
@@ -76,7 +88,6 @@ function getMetriportPatientIdOrFail(patient, context) {
|
|
|
76
88
|
console.log(`>>> [${context}] Patient ID: ${patientId}`);
|
|
77
89
|
return patientId;
|
|
78
90
|
}
|
|
79
|
-
exports.getMetriportPatientIdOrFail = getMetriportPatientIdOrFail;
|
|
80
91
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
81
92
|
function logError(error) {
|
|
82
93
|
console.error(`Error (${error.response?.status}): ${error.message}`);
|
|
@@ -84,10 +95,8 @@ function logError(error) {
|
|
|
84
95
|
console.error(JSON.stringify(error.response.data, null, 2));
|
|
85
96
|
}
|
|
86
97
|
}
|
|
87
|
-
exports.logError = logError;
|
|
88
98
|
function waitSeconds(seconds) {
|
|
89
99
|
console.log(`waiting ${seconds} seconds...`);
|
|
90
100
|
return (0, shared_1.sleep)(seconds * 1000);
|
|
91
101
|
}
|
|
92
|
-
exports.waitSeconds = waitSeconds;
|
|
93
102
|
//# sourceMappingURL=util.js.map
|
package/dist/util.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../src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