@nsshunt/ststestrunner 1.1.143 → 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.
@@ -1469,15 +1469,14 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
1469
1469
  }
1470
1470
  });
1471
1471
  const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
1472
- try {
1473
- const retVal = await client.ProcessBatchOrTransactionResources(bundleBatch);
1474
- this._CheckOutputLongDurationError(__snapshot3, "await this.PostResource()");
1475
- if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
1476
- console.log(JSON.stringify(retVal, null, 2));
1477
- } catch (error) {
1478
- console.error(error);
1479
- }
1480
- process.exit(1);
1472
+ const retVal = await client.ProcessBatchOrTransactionResources(bundleBatch);
1473
+ this._CheckOutputLongDurationError(__snapshot3, "await this.PostResource()");
1474
+ if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
1475
+ const retPersonData = { ...retVal.body.entry[0].resource };
1476
+ delete personRecord.meta;
1477
+ delete retPersonData.meta;
1478
+ this.CheckReturnData(personRecord, retPersonData);
1479
+ return retVal.body.entry[0].resource;
1481
1480
  };
1482
1481
  };
1483
1482
  //#endregion