@nsshunt/ststestrunner 1.1.170 → 1.1.172

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.
@@ -2371,22 +2371,17 @@ var TestCaseFhir09 = class extends TestCaseFhirQueryBase {
2371
2371
  const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
2372
2372
  const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.GetRandomSequenceFromIteration(), "1");
2373
2373
  const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
2374
- const retVal = await client.GetHistoryInstanceFhirResource("Person", personRecord.id, "2");
2374
+ const retVal = await client.GetHistoryInstanceFhirResource("Person", personRecord.id, "1");
2375
2375
  this._CheckOutputLongDurationError(__snapshot3, "await this.GetHistoryInstanceFhirResource()");
2376
2376
  if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
2377
- try {
2377
+ if (retVal.status === StatusCodes.GONE) return null;
2378
+ else {
2378
2379
  delete personRecord.meta;
2379
2380
  delete retVal.body.meta;
2380
2381
  delete personRecord.text.div;
2381
2382
  delete retVal.body.text.div;
2382
2383
  this.CheckReturnData(personRecord, retVal.body);
2383
2384
  return retVal.body;
2384
- } catch (error) {
2385
- console.error(error);
2386
- console.log(personRecord);
2387
- console.log(retVal.status);
2388
- console.log(retVal.body);
2389
- process.exit(1);
2390
2385
  }
2391
2386
  };
2392
2387
  };