openui5-fhir
Advanced tools
Comparing version 2.3.7 to 2.4.0
{ | ||
"name": "openui5-fhir", | ||
"version": "2.3.7", | ||
"version": "2.4.0", | ||
"author": "SAP SE", | ||
@@ -28,8 +28,8 @@ "license": "Apache-2.0", | ||
"devDependencies": { | ||
"eslint": "^8.56.0", | ||
"eslint": "^8.57.0", | ||
"eslint-watch": "^8.0.0", | ||
"js-beautify": "^1.14.11", | ||
"jsdoc": "^4.0.2", | ||
"@jsdoc/salty": "^0.2.7", | ||
"karma": "^6.4.2", | ||
"js-beautify": "^1.15.1", | ||
"jsdoc": "^4.0.3", | ||
"@jsdoc/salty": "^0.2.8", | ||
"karma": "^6.4.3", | ||
"karma-chrome-launcher": "^3.2.0", | ||
@@ -39,3 +39,3 @@ "karma-coverage": "^2.2.1", | ||
"karma-ui5": "^3.0.4", | ||
"@ui5/cli": "^3.9.1", | ||
"@ui5/cli": "^3.10.0", | ||
"coveralls": "^3.1.1", | ||
@@ -42,0 +42,0 @@ "replace-in-file": "^7.1.0", |
@@ -11,3 +11,3 @@ sap.ui.define(function() { | ||
* @author SAP SE | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
* @public | ||
@@ -17,3 +17,3 @@ */ | ||
name : "sap.fhir", | ||
version : "2.3.7", | ||
version : "2.4.0", | ||
noLibraryCSS: true, | ||
@@ -20,0 +20,0 @@ dependencies : [ "sap.ui.core" ], |
@@ -8,3 +8,3 @@ { | ||
"applicationVersion": { | ||
"version": "2.3.7" | ||
"version": "2.4.0" | ||
}, | ||
@@ -11,0 +11,0 @@ "title": "The sap.fhir library provides a model to build state of the art UI5 applications in context of health industries.", |
@@ -34,3 +34,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
* | ||
@@ -37,0 +37,0 @@ * @see sap.fhir.model.r4.Context.create |
@@ -36,3 +36,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -39,0 +39,0 @@ var FHIRContextBinding = ContextBinding.extend("sap.fhir.model.r4.FHIRContextBinding", { |
@@ -25,3 +25,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -28,0 +28,0 @@ var FHIRFilterOperatorUtils = {}; |
@@ -25,3 +25,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -28,0 +28,0 @@ var FHIRFilterProcessor = {}; |
@@ -48,3 +48,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -51,0 +51,0 @@ var FHIRListBinding = ListBinding.extend("sap.fhir.model.r4.FHIRListBinding", { |
@@ -33,3 +33,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -36,0 +36,0 @@ var FHIRPropertyBinding = PropertyBinding.extend("sap.fhir.model.r4.FHIRPropertyBinding", { |
@@ -32,3 +32,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -723,4 +723,49 @@ var FHIRUtils = {}; | ||
/** | ||
* Extracts resource IDs from the error description in FHIR OperationOutcome. | ||
* @param {Array<object>} aOperationOutcome - The array of FHIR OperationOutcome objects. | ||
* @returns {Array<string>} - An array containing the extracted resource IDs. | ||
* @protected | ||
* @since 2.4.0 | ||
*/ | ||
FHIRUtils.getIdFromOperationOutcome = function (aOperationOutcome) { | ||
var aID = []; | ||
var aMatchedId; | ||
var sText; | ||
for (var key in aOperationOutcome) { | ||
if (aOperationOutcome.hasOwnProperty(key)) { | ||
var oOperationOutcome = aOperationOutcome[key]; | ||
var oIssue = oOperationOutcome._aIssue[0]; | ||
if (oIssue) { | ||
sText = oIssue.details.text; | ||
if (sText) { | ||
aMatchedId = sText.match(/[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}/); | ||
} | ||
if (aMatchedId && aMatchedId.length > 0){ | ||
aID.push(aMatchedId[0]); | ||
} | ||
} | ||
} | ||
} | ||
return aID; | ||
}; | ||
/** | ||
* Filters an array of FHIR resources by their IDs, removing those that match the provided IDs. | ||
* @param {Array<object>} aResource - The array of FHIR resources to filter. | ||
* @param {Array<string>} aID - The array of resource IDs to exclude from the filtered result. | ||
* @returns {Array<object>} - The filtered array of FHIR resources. | ||
* @protected | ||
* @since 2.4.0 | ||
*/ | ||
FHIRUtils.filterResourcesByIds = function (aResource, aID) { | ||
function isIdNotIncluded(obj) { | ||
return !aID.includes(obj.id); | ||
} | ||
return aResource.filter(isIdNotIncluded); | ||
}; | ||
return FHIRUtils; | ||
}); | ||
}); |
@@ -31,3 +31,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -34,0 +34,0 @@ var BindingInfo = function(sResourceId, sResourceType, sResourcePath, sRelativePath, sAbsolutePath, aBinding, sGroupId, sRequestPath, aResourcePath, sResourceServerPath, sETag) { |
@@ -21,3 +21,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -24,0 +24,0 @@ var FHIRBundle = function(sBundleType, sGroupId) { |
@@ -23,3 +23,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -26,0 +26,0 @@ var FHIRBundleEntry = function(sFullUrl, oResource, oRequest) { |
@@ -31,3 +31,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -34,0 +34,0 @@ var FHIRBundleRequest = function(oBinding, sMethod, sUrl, fnSuccess, fnError, sIfMatch, sIfNoneMatch, sIfNoneExist, sIfModifiedSince) { |
@@ -21,3 +21,3 @@ /*! | ||
* @since 2.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -24,0 +24,0 @@ var FHIROperationOutcome = function (oResource) { |
@@ -39,3 +39,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -42,0 +42,0 @@ var FHIRRequestor = function(sServiceUrl, oModel, bCSRF, sPrefer, oDefaultQueryParams) { |
@@ -22,3 +22,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -25,0 +25,0 @@ var FHIRUrl = function (sUrl, sServiceUrl) { |
@@ -20,3 +20,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -23,0 +23,0 @@ var HTTPMethod = { |
@@ -22,3 +22,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -25,0 +25,0 @@ var RequestHandle = function(oBinding) { |
@@ -24,3 +24,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -27,0 +27,0 @@ var Sliceable = {}; |
@@ -20,3 +20,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -23,0 +23,0 @@ var OperationMode = { |
@@ -19,3 +19,3 @@ /*! | ||
* @since 1.0.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -22,0 +22,0 @@ var SubmitMode = { |
@@ -18,3 +18,3 @@ /*! | ||
* @since 1.1.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -21,0 +21,0 @@ |
@@ -15,3 +15,3 @@ /*! | ||
* @since 1.1.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -18,0 +18,0 @@ |
@@ -15,3 +15,3 @@ /*! | ||
* @since 1.1.0 | ||
* @version 2.3.7 | ||
* @version 2.4.0 | ||
*/ | ||
@@ -18,0 +18,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
348131
8119