@nsshunt/ststestrunner 1.1.10 → 1.1.11
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
CHANGED
|
@@ -1299,13 +1299,18 @@ Object.assign({}, core_exports, duplex_exports, {
|
|
|
1299
1299
|
//#region src/libmodule/testCaseFhir07.ts
|
|
1300
1300
|
var TestCaseFhir07 = class extends TestCaseFhirQueryBase {
|
|
1301
1301
|
ExecuteQuery = async () => {
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1302
|
+
try {
|
|
1303
|
+
const client = await this.GetClient();
|
|
1304
|
+
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.runner.iteration, "3");
|
|
1305
|
+
const resource = (await client.GetResource("Person", personRecord.id)).body;
|
|
1306
|
+
const observer = observe(resource);
|
|
1307
|
+
resource.text.div = `Json Patched record TestCaseFhir07 ${this.runner.iteration}`;
|
|
1308
|
+
const patchRecord = generate(observer);
|
|
1309
|
+
return (await client.PatchResource("Person", personRecord.id, patchRecord, `application/json-patch+json`, `W/"3"`)).body;
|
|
1310
|
+
} catch (error) {
|
|
1311
|
+
console.error(error);
|
|
1312
|
+
throw error;
|
|
1313
|
+
}
|
|
1309
1314
|
};
|
|
1310
1315
|
};
|
|
1311
1316
|
//#endregion
|