Skip to content

Commit

Permalink
Update FHIRUtils.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kanikasharma97 authored Apr 25, 2024
1 parent 0a9cbb1 commit 9588a89
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/sap/fhir/model/r4/FHIRUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -717,11 +717,11 @@ sap.ui.define([
return sFullUrl;
};

/**
* Extracts resource IDs from the error description in FHIR OperationOutcome.
* @param {Array<object>} operationOutcomes - The array of FHIR OperationOutcome objects.
* @returns {Array<string>} - An array containing the extracted resource IDs.
*/
/**

Check failure on line 720 in src/sap/fhir/model/r4/FHIRUtils.js

View workflow job for this annotation

GitHub Actions / Build, Lint Checks and Tests

Expected indentation of 1 tab but found 8 spaces
* Extracts resource IDs from the error description in FHIR OperationOutcome.
* @param {Array<object>} operationOutcomes - The array of FHIR OperationOutcome objects.
* @returns {Array<string>} - An array containing the extracted resource IDs.
*/
FHIRUtils.getsIdFromOperationOutcome = function(operationOutcomes){
var sIds = [];
for (var key in operationOutcomes) {
Expand All @@ -737,11 +737,11 @@ sap.ui.define([
};

/**
* Filters an array of FHIR resources by their IDs, removing those that match the provided IDs.
* @param {Array<object>} resources - The array of FHIR resources to filter.
* @param {Array<string>} sIds - The array of resource IDs to exclude from the filtered result.
* @returns {Array<object>} - The filtered array of FHIR resources.
*/
* Filters an array of FHIR resources by their IDs, removing those that match the provided IDs.
* @param {Array<object>} resources - The array of FHIR resources to filter.
* @param {Array<string>} sIds - The array of resource IDs to exclude from the filtered result.
* @returns {Array<object>} - The filtered array of FHIR resources.
*/
FHIRUtils.filterResourcesByIds = function(resources, sIds) {
function isIdNotIncluded(obj) {
return !sIds.includes(obj.id);
Expand All @@ -751,4 +751,4 @@ sap.ui.define([

return FHIRUtils;

});
});

0 comments on commit 9588a89

Please sign in to comment.