@nsshunt/ststestrunner 1.1.147 → 1.1.149
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 +14 -9
- package/dist/ststestrunner.cjs.map +1 -1
- package/dist/ststestrunner.mjs +14 -9
- package/dist/ststestrunner.mjs.map +1 -1
- package/package.json +1 -1
- package/types/libmodule/testCaseFhir02.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir02bundle.d.ts +2 -0
- package/types/libmodule/testCaseFhir02bundle.d.ts.map +1 -1
package/dist/ststestrunner.cjs
CHANGED
|
@@ -1464,15 +1464,20 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
|
|
|
1464
1464
|
};
|
|
1465
1465
|
const personRecord = await this.GetPersonRecord(prefix, this.runner.iteration, "1");
|
|
1466
1466
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1467
|
-
this.personRecords.
|
|
1468
|
-
this.bundleBatch.entry.
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1467
|
+
const foundIndexPersonRecords = this.personRecords.findIndex((p) => p.id?.localeCompare(personRecord.id) === 0);
|
|
1468
|
+
const foundIndexBindlePersonRecords = this.bundleBatch.entry.findIndex((p) => p.resource.id?.localeCompare(personRecord.id) === 0);
|
|
1469
|
+
if (foundIndexPersonRecords === -1) {
|
|
1470
|
+
if (foundIndexBindlePersonRecords !== -1) throw new Error(`TestCaseFhir02:PerformExecuteQuery(): Invalid record state for batch transaction, foundIndexPersonRecords: [${foundIndexPersonRecords}], foundIndexBindlePersonRecords: [${foundIndexBindlePersonRecords}], personRecord.id: [${personRecord.id}]`);
|
|
1471
|
+
this.personRecords.push(personRecord);
|
|
1472
|
+
this.bundleBatch.entry.push({
|
|
1473
|
+
fullUrl: personRecord.id,
|
|
1474
|
+
resource: personRecord,
|
|
1475
|
+
request: {
|
|
1476
|
+
method: "POST",
|
|
1477
|
+
url: "Person"
|
|
1478
|
+
}
|
|
1479
|
+
});
|
|
1480
|
+
}
|
|
1476
1481
|
let retVal = void 0;
|
|
1477
1482
|
if (this.runner.iteration % bundleSize === bundleSize - 1) {
|
|
1478
1483
|
retVal = await client.ProcessBatchOrTransactionResources(this.bundleBatch);
|