@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.mjs
CHANGED
|
@@ -1450,14 +1450,29 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
|
|
|
1450
1450
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
1451
1451
|
const prefix = this.runner.options.personPrefix;
|
|
1452
1452
|
const personRecord = await this.GetPersonRecord(prefix, this.runner.iteration, "1");
|
|
1453
|
+
const bundleBatch = {
|
|
1454
|
+
"resourceType": "Bundle",
|
|
1455
|
+
"type": "transaction",
|
|
1456
|
+
"entry": []
|
|
1457
|
+
};
|
|
1458
|
+
bundleBatch.entry.push({
|
|
1459
|
+
fullUrl: personRecord.id,
|
|
1460
|
+
resource: personRecord,
|
|
1461
|
+
request: {
|
|
1462
|
+
method: "POST",
|
|
1463
|
+
url: "Person"
|
|
1464
|
+
}
|
|
1465
|
+
});
|
|
1453
1466
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1467
|
+
try {
|
|
1468
|
+
const retVal = await client.ProcessBatchOrTransactionResources(bundleBatch);
|
|
1469
|
+
this._CheckOutputLongDurationError(__snapshot3, "await this.PostResource()");
|
|
1470
|
+
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
1471
|
+
console.log(JSON.stringify(retVal, null, 2));
|
|
1472
|
+
} catch (error) {
|
|
1473
|
+
console.error(error);
|
|
1474
|
+
}
|
|
1475
|
+
process.exit(1);
|
|
1461
1476
|
};
|
|
1462
1477
|
};
|
|
1463
1478
|
//#endregion
|
|
@@ -37208,6 +37223,7 @@ var ClientHelper = class extends import_tiny_emitter.TinyEmitter {
|
|
|
37208
37223
|
stsfhirapiroot: fhirOptions.stsfhirapiroot,
|
|
37209
37224
|
stsfhirport: fhirOptions.stsfhirport,
|
|
37210
37225
|
logger: this._options.logger,
|
|
37226
|
+
agentManager: this.GetFhirAgentManager(),
|
|
37211
37227
|
onRetryAttempt
|
|
37212
37228
|
});
|
|
37213
37229
|
this.restFhirClient = fhirRESTClient;
|