@nsshunt/ststestrunner 1.1.142 → 1.1.144
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 +18 -4
- package/dist/ststestrunner.cjs.map +1 -1
- package/dist/ststestrunner.mjs +18 -4
- 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 +7 -0
- package/types/libmodule/testCaseFhir02bundle.d.ts.map +1 -0
- package/types/libmodule/testCaseFhir02single.d.ts +7 -0
- package/types/libmodule/testCaseFhir02single.d.ts.map +1 -0
package/dist/ststestrunner.cjs
CHANGED
|
@@ -1455,14 +1455,28 @@ 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
|
-
const retVal = await client.
|
|
1472
|
+
const retVal = await client.ProcessBatchOrTransactionResources(bundleBatch);
|
|
1460
1473
|
this._CheckOutputLongDurationError(__snapshot3, "await this.PostResource()");
|
|
1461
1474
|
if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
|
|
1475
|
+
const retPersonData = { ...retVal.body.entry[0].resource };
|
|
1462
1476
|
delete personRecord.meta;
|
|
1463
|
-
delete
|
|
1464
|
-
this.CheckReturnData(personRecord,
|
|
1465
|
-
return retVal.body;
|
|
1477
|
+
delete retPersonData.meta;
|
|
1478
|
+
this.CheckReturnData(personRecord, retPersonData);
|
|
1479
|
+
return retVal.body.entry[0].resource;
|
|
1466
1480
|
};
|
|
1467
1481
|
};
|
|
1468
1482
|
//#endregion
|