@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.
@@ -1276,13 +1276,18 @@ Object.assign({}, core_exports, duplex_exports, {
1276
1276
  //#region src/libmodule/testCaseFhir07.ts
1277
1277
  var TestCaseFhir07 = class extends TestCaseFhirQueryBase {
1278
1278
  ExecuteQuery = async () => {
1279
- const client = await this.GetClient();
1280
- const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.runner.iteration, "3");
1281
- const resource = (await client.GetResource("Person", personRecord.id)).body;
1282
- const observer = observe(resource);
1283
- resource.text.div = `Json Patched record TestCaseFhir07 ${this.runner.iteration}`;
1284
- const patchRecord = generate(observer);
1285
- return (await client.PatchResource("Person", personRecord.id, patchRecord, `application/json-patch+json`, `W/"3"`)).body;
1279
+ try {
1280
+ const client = await this.GetClient();
1281
+ const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.runner.iteration, "3");
1282
+ const resource = (await client.GetResource("Person", personRecord.id)).body;
1283
+ const observer = observe(resource);
1284
+ resource.text.div = `Json Patched record TestCaseFhir07 ${this.runner.iteration}`;
1285
+ const patchRecord = generate(observer);
1286
+ return (await client.PatchResource("Person", personRecord.id, patchRecord, `application/json-patch+json`, `W/"3"`)).body;
1287
+ } catch (error) {
1288
+ console.error(error);
1289
+ throw error;
1290
+ }
1286
1291
  };
1287
1292
  };
1288
1293
  //#endregion