@nsshunt/ststestrunner 1.1.141 → 1.1.143
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/ststestrunner.cjs
CHANGED
|
@@ -1455,14 +1455,29 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
|
|
|
1455
1455
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
1456
1456
|
const prefix = this.runner.options.personPrefix;
|
|
1457
1457
|
const personRecord = await this.GetPersonRecord(prefix, this.runner.iteration, "1");
|
|
1458
|
+
const bundleBatch = {
|
|
1459
|
+
"resourceType": "Bundle",
|
|
1460
|
+
"type": "transaction",
|
|
1461
|
+
"entry": []
|
|
1462
|
+
};
|
|
1463
|
+
bundleBatch.entry.push({
|
|
1464
|
+
fullUrl: personRecord.id,
|
|
1465
|
+
resource: personRecord,
|
|
1466
|
+
request: {
|
|
1467
|
+
method: "POST",
|
|
1468
|
+
url: "Person"
|
|
1469
|
+
}
|
|
1470
|
+
});
|
|
1458
1471
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1472
|
+
try {
|
|
1473
|
+
const retVal = await client.ProcessBatchOrTransactionResources(bundleBatch);
|
|
1474
|
+
this._CheckOutputLongDurationError(__snapshot3, "await this.PostResource()");
|
|
1475
|
+
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
1476
|
+
console.log(JSON.stringify(retVal, null, 2));
|
|
1477
|
+
} catch (error) {
|
|
1478
|
+
console.error(error);
|
|
1479
|
+
}
|
|
1480
|
+
process.exit(1);
|
|
1466
1481
|
};
|
|
1467
1482
|
};
|
|
1468
1483
|
//#endregion
|
|
@@ -37213,6 +37228,7 @@ var ClientHelper = class extends import_tiny_emitter.TinyEmitter {
|
|
|
37213
37228
|
stsfhirapiroot: fhirOptions.stsfhirapiroot,
|
|
37214
37229
|
stsfhirport: fhirOptions.stsfhirport,
|
|
37215
37230
|
logger: this._options.logger,
|
|
37231
|
+
agentManager: this.GetFhirAgentManager(),
|
|
37216
37232
|
onRetryAttempt
|
|
37217
37233
|
});
|
|
37218
37234
|
this.restFhirClient = fhirRESTClient;
|