@nsshunt/ststestrunner 1.1.142 → 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
|