@arkhn/fhir.ts
Advanced tools
Comparing version 3.4.4 to 3.4.5
@@ -158,3 +158,2 @@ "use strict"; | ||
}); | ||
serialized.items.forEach(function () { return attr.addItem(); }); | ||
return attr; | ||
@@ -161,0 +160,0 @@ }; |
{ | ||
"name": "@arkhn/fhir.ts", | ||
"private": false, | ||
"version": "3.4.4", | ||
"version": "3.4.5", | ||
"description": "Open source typescript library providing FHIR utilities", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -213,9 +213,20 @@ import { Attribute } from 'attribute' | ||
child3.addSlice(slice) | ||
child3.addItem() | ||
child3.addItem() | ||
const copied = Attribute.from(parent) | ||
expect(JSON.stringify(copied) === JSON.stringify(parent)) | ||
expect(JSON.stringify(copied)).toEqual(JSON.stringify(parent)) | ||
}) | ||
it('do not copy items', () => { | ||
const attr = new Attribute(observationIdentifierDefinition) | ||
attr.addItem() | ||
attr.addItem() | ||
expect(attr.items.length).toEqual(2) | ||
const copied = Attribute.from(attr) | ||
expect(copied.items.length).toEqual(0) | ||
}) | ||
it('specify the parent', () => { | ||
@@ -222,0 +233,0 @@ const parent = new Attribute(observationCodeDefinition) |
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
546694
6942