@nsshunt/stsfhirclient 2.0.43 → 2.0.44

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.
@@ -9831,14 +9831,8 @@ var FhirRESTClient = class {
9831
9831
  };
9832
9832
  else throw new Error(`FhirRESTClient:GetResource(): No response from #InvokeResourceAPI`);
9833
9833
  } catch (error) {
9834
- if (axios.default.isAxiosError(error)) {
9835
- const axiosError = error;
9836
- return {
9837
- status: axiosError.response.status,
9838
- body: axiosError.response.data,
9839
- headers: { ETag: axiosError.response.headers["etag"] }
9840
- };
9841
- } else throw error;
9834
+ this.LogError("GetResource", error);
9835
+ throw error;
9842
9836
  }
9843
9837
  };
9844
9838
  PutResource = async (resourceType, domainResource, versionIdETag) => {
@@ -9893,14 +9887,8 @@ var FhirRESTClient = class {
9893
9887
  };
9894
9888
  else throw new Error(`FhirRESTClient:GetHistoryInstanceFhirResource(): No response from #InvokeResourceAPI`);
9895
9889
  } catch (error) {
9896
- if (axios.default.isAxiosError(error)) {
9897
- const axiosError = error;
9898
- return {
9899
- status: axiosError.response.status,
9900
- body: axiosError.response.data,
9901
- headers: { ETag: axiosError.response.headers["etag"] }
9902
- };
9903
- } else throw error;
9890
+ this.LogError("GetHistoryInstanceFhirResource", error);
9891
+ throw error;
9904
9892
  }
9905
9893
  };
9906
9894
  ExtractNumber(str) {
@@ -9918,15 +9906,8 @@ var FhirRESTClient = class {
9918
9906
  };
9919
9907
  else throw new Error(`FhirRESTClient:DeleteResource(): No response from #InvokeResourceAPI`);
9920
9908
  } catch (error) {
9921
- if (axios.default.isAxiosError(error)) {
9922
- const axiosError = error;
9923
- const versionNumber = this.ExtractNumber(versionIdETag) + 1;
9924
- return {
9925
- status: axiosError.response.status,
9926
- body: axiosError.response.data,
9927
- headers: { ETag: `W/"${versionNumber}"` }
9928
- };
9929
- } else throw error;
9909
+ this.LogError("DeleteResource", error);
9910
+ throw error;
9930
9911
  }
9931
9912
  };
9932
9913
  GetMetadata = async () => {