@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.
package/dist/stsfhirclient.mjs
CHANGED
|
@@ -9823,14 +9823,8 @@ var FhirRESTClient = class {
|
|
|
9823
9823
|
};
|
|
9824
9824
|
else throw new Error(`FhirRESTClient:GetResource(): No response from #InvokeResourceAPI`);
|
|
9825
9825
|
} catch (error) {
|
|
9826
|
-
|
|
9827
|
-
|
|
9828
|
-
return {
|
|
9829
|
-
status: axiosError.response.status,
|
|
9830
|
-
body: axiosError.response.data,
|
|
9831
|
-
headers: { ETag: axiosError.response.headers["etag"] }
|
|
9832
|
-
};
|
|
9833
|
-
} else throw error;
|
|
9826
|
+
this.LogError("GetResource", error);
|
|
9827
|
+
throw error;
|
|
9834
9828
|
}
|
|
9835
9829
|
};
|
|
9836
9830
|
PutResource = async (resourceType, domainResource, versionIdETag) => {
|
|
@@ -9885,14 +9879,8 @@ var FhirRESTClient = class {
|
|
|
9885
9879
|
};
|
|
9886
9880
|
else throw new Error(`FhirRESTClient:GetHistoryInstanceFhirResource(): No response from #InvokeResourceAPI`);
|
|
9887
9881
|
} catch (error) {
|
|
9888
|
-
|
|
9889
|
-
|
|
9890
|
-
return {
|
|
9891
|
-
status: axiosError.response.status,
|
|
9892
|
-
body: axiosError.response.data,
|
|
9893
|
-
headers: { ETag: axiosError.response.headers["etag"] }
|
|
9894
|
-
};
|
|
9895
|
-
} else throw error;
|
|
9882
|
+
this.LogError("GetHistoryInstanceFhirResource", error);
|
|
9883
|
+
throw error;
|
|
9896
9884
|
}
|
|
9897
9885
|
};
|
|
9898
9886
|
ExtractNumber(str) {
|
|
@@ -9910,15 +9898,8 @@ var FhirRESTClient = class {
|
|
|
9910
9898
|
};
|
|
9911
9899
|
else throw new Error(`FhirRESTClient:DeleteResource(): No response from #InvokeResourceAPI`);
|
|
9912
9900
|
} catch (error) {
|
|
9913
|
-
|
|
9914
|
-
|
|
9915
|
-
const versionNumber = this.ExtractNumber(versionIdETag) + 1;
|
|
9916
|
-
return {
|
|
9917
|
-
status: axiosError.response.status,
|
|
9918
|
-
body: axiosError.response.data,
|
|
9919
|
-
headers: { ETag: `W/"${versionNumber}"` }
|
|
9920
|
-
};
|
|
9921
|
-
} else throw error;
|
|
9901
|
+
this.LogError("DeleteResource", error);
|
|
9902
|
+
throw error;
|
|
9922
9903
|
}
|
|
9923
9904
|
};
|
|
9924
9905
|
GetMetadata = async () => {
|