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