@dcmjs-org/schemas 1.0.0-beta.3 → 1.0.0-beta.5

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/License.txt ADDED
@@ -0,0 +1,22 @@
1
+
2
+ The MIT License (MIT)
3
+
4
+ Copyright (c) 2017 Steve Pieper
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/dist/index.cjs CHANGED
@@ -743,13 +743,14 @@ function getAllStandardTagEntries() {
743
743
  }
744
744
 
745
745
  /**
746
- * The naturalized cardinality rule of 1.0: a declared VM is scalar only when
747
- * it is exactly "1" or "0-1". Any other VM (1-n, 2, 2-n, 3, 6, ...) allows
748
- * more than one value, so its naturalized value stays a list. An unknown tag
749
- * (no VM) is scalar.
746
+ * The naturalized cardinality rule of 1.0 for a declared VM: the VM is scalar
747
+ * only when it is exactly "1" or "0-1". Any other VM (1-n, 2, 2-n, 3, 6, ...)
748
+ * allows more than one value, so its naturalized value stays a list. With no
749
+ * VM it returns false; the value of an element with no VM follows
750
+ * valueLength below (a list), and a sequence with one item is the item.
750
751
  *
751
752
  * @param {string} [vm] the VM from the dictionary entry
752
- * @returns {boolean} true when the naturalized value stays a list
753
+ * @returns {boolean} true when the declared VM allows more than one value
753
754
  */
754
755
  function isMultiVM(vm) {
755
756
  if (!vm) {
@@ -833,8 +834,8 @@ const envelope = {
833
834
  values: "asReturned", // the schema describes what dcmjs returns; vrFormats documents Part 5 separately
834
835
  personName: "componentObject", // {Alphabetic,Ideographic,Phonetic}
835
836
  sequences: "datasetArrayOrItem", // SQ -> dataset[] | the single item
836
- privateTags: "creatorGrouped", // '<slot>:<creator>' keys
837
- unknownTags: "preserved", // { vr, Value, rawValue }
837
+ privateTags: "creatorGrouped", // '<group>:<creator>' keys
838
+ unknownTags: "preserved", // hex-tag key, VR in _vrMap
838
839
  rawRetention: "inexactOnly", // raw kept when round-trip inexact
839
840
  bulk: "referenceOrBinary" // {BulkDataURI} | {InlineBinary} | frame list
840
841
  };