@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.mjs
CHANGED
|
@@ -1459,15 +1459,20 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
|
|
|
1459
1459
|
};
|
|
1460
1460
|
const personRecord = await this.GetPersonRecord(prefix, this.runner.iteration, "1");
|
|
1461
1461
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1462
|
-
this.personRecords.
|
|
1463
|
-
this.bundleBatch.entry.
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1462
|
+
const foundIndexPersonRecords = this.personRecords.findIndex((p) => p.id?.localeCompare(personRecord.id) === 0);
|
|
1463
|
+
const foundIndexBindlePersonRecords = this.bundleBatch.entry.findIndex((p) => p.resource.id?.localeCompare(personRecord.id) === 0);
|
|
1464
|
+
if (foundIndexPersonRecords === -1) {
|
|
1465
|
+
if (foundIndexBindlePersonRecords !== -1) throw new Error(`TestCaseFhir02:PerformExecuteQuery(): Invalid record state for batch transaction, foundIndexPersonRecords: [${foundIndexPersonRecords}], foundIndexBindlePersonRecords: [${foundIndexBindlePersonRecords}], personRecord.id: [${personRecord.id}]`);
|
|
1466
|
+
this.personRecords.push(personRecord);
|
|
1467
|
+
this.bundleBatch.entry.push({
|
|
1468
|
+
fullUrl: personRecord.id,
|
|
1469
|
+
resource: personRecord,
|
|
1470
|
+
request: {
|
|
1471
|
+
method: "POST",
|
|
1472
|
+
url: "Person"
|
|
1473
|
+
}
|
|
1474
|
+
});
|
|
1475
|
+
}
|
|
1471
1476
|
let retVal = void 0;
|
|
1472
1477
|
if (this.runner.iteration % bundleSize === bundleSize - 1) {
|
|
1473
1478
|
retVal = await client.ProcessBatchOrTransactionResources(this.bundleBatch);
|