@dcmjs-org/schemas 1.0.0-beta.2 → 1.0.0-beta.4
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 +22 -0
- package/dist/index.cjs +8 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/types/dcmjs-schema.d.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -741,13 +741,14 @@ function getAllStandardTagEntries() {
|
|
|
741
741
|
}
|
|
742
742
|
|
|
743
743
|
/**
|
|
744
|
-
* The naturalized cardinality rule of 1.0
|
|
745
|
-
* it is exactly "1" or "0-1". Any other VM (1-n, 2, 2-n, 3, 6, ...)
|
|
746
|
-
* more than one value, so its naturalized value stays a list.
|
|
747
|
-
*
|
|
744
|
+
* The naturalized cardinality rule of 1.0 for a declared VM: the VM is scalar
|
|
745
|
+
* only when it is exactly "1" or "0-1". Any other VM (1-n, 2, 2-n, 3, 6, ...)
|
|
746
|
+
* allows more than one value, so its naturalized value stays a list. With no
|
|
747
|
+
* VM it returns false; the value of an element with no VM follows
|
|
748
|
+
* valueLength below (a list), and a sequence with one item is the item.
|
|
748
749
|
*
|
|
749
750
|
* @param {string} [vm] the VM from the dictionary entry
|
|
750
|
-
* @returns {boolean} true when the
|
|
751
|
+
* @returns {boolean} true when the declared VM allows more than one value
|
|
751
752
|
*/
|
|
752
753
|
function isMultiVM(vm) {
|
|
753
754
|
if (!vm) {
|
|
@@ -831,8 +832,8 @@ const envelope = {
|
|
|
831
832
|
values: "asReturned", // the schema describes what dcmjs returns; vrFormats documents Part 5 separately
|
|
832
833
|
personName: "componentObject", // {Alphabetic,Ideographic,Phonetic}
|
|
833
834
|
sequences: "datasetArrayOrItem", // SQ -> dataset[] | the single item
|
|
834
|
-
privateTags: "creatorGrouped", // '<
|
|
835
|
-
unknownTags: "preserved", //
|
|
835
|
+
privateTags: "creatorGrouped", // '<group>:<creator>' keys
|
|
836
|
+
unknownTags: "preserved", // hex-tag key, VR in _vrMap
|
|
836
837
|
rawRetention: "inexactOnly", // raw kept when round-trip inexact
|
|
837
838
|
bulk: "referenceOrBinary" // {BulkDataURI} | {InlineBinary} | frame list
|
|
838
839
|
};
|