@nsshunt/ststestrunner 1.1.66 → 1.1.69

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.
@@ -131,8 +131,25 @@ var TestCaseFhirBase = class {
131
131
  GetFhirSocketClient = async () => {
132
132
  try {
133
133
  this.#clientSocketFetchCount++;
134
+ const optionszz = this.runnerExecutionWorker.Options;
135
+ if (optionszz) {
136
+ console.log(`-----------------------------------------------------------------------------------------------------------------`);
137
+ console.log(`optionszz`);
138
+ console.log(optionszz);
139
+ console.log(this.runnerExecutionWorker.id);
140
+ console.log(`-----------------------------------------------------------------------------------------------------------------`);
141
+ } else {
142
+ console.log(`-----------------------------------------------------------------------------------------------------------------`);
143
+ console.log(`no optionszz`);
144
+ console.log(this.runnerExecutionWorker.id);
145
+ console.log(`-----------------------------------------------------------------------------------------------------------------`);
146
+ }
134
147
  let fhirClient = this.runnerExecutionWorker.GetFhirClient();
135
- if (fhirClient) return fhirClient;
148
+ if (fhirClient) {
149
+ console.log(chalk.green(`[${this.runnerExecutionWorker.id}] Getting existing fhir client`));
150
+ return fhirClient;
151
+ }
152
+ console.log(chalk.red(`[${this.runnerExecutionWorker.id}] fhir client does not exist - setting up new client`));
136
153
  const fhirOptions = this.#options.fhirOptions;
137
154
  const options = {
138
155
  fhirServerEndpoint: fhirOptions.stsfhirserverendpoint,
@@ -152,6 +169,7 @@ var TestCaseFhirBase = class {
152
169
  if (this.runner.options.fhirOptions.stsfhirsocketclientmode === "socket-client-all-in-one") fhirClient = new FhirSocketClientAllInOne("FhirSocketClient", options);
153
170
  else fhirClient = new FhirSocketClientIndividual("FhirSocketClient", options);
154
171
  await fhirClient.WaitForSocketConnected();
172
+ console.log(chalk.red(`[${this.runnerExecutionWorker.id}] setting fhir client into object`));
155
173
  this.runnerExecutionWorker.SetFhirClient(fhirClient);
156
174
  return fhirClient;
157
175
  } catch (error) {
@@ -35782,11 +35800,15 @@ var WorkerFhirTestCases = class extends AbstractRunnerExecutionWorker {
35782
35800
  _options;
35783
35801
  _resourceDataGenerator;
35784
35802
  fhirClient = void 0;
35803
+ _id = crypto.randomUUID();
35785
35804
  constructor(options) {
35786
35805
  super();
35787
35806
  this._options = options;
35788
35807
  this._resourceDataGenerator = new ResourceDataGenerator();
35789
35808
  }
35809
+ get id() {
35810
+ return this._id;
35811
+ }
35790
35812
  GetFhirClient = () => {
35791
35813
  return this.fhirClient;
35792
35814
  };