Dicom字典渲染更改
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
parent
b1d707a7dd
commit
3a20586609
|
@ -108,7 +108,7 @@ export default {
|
||||||
dumpDataSet(dataSet, output) {
|
dumpDataSet(dataSet, output) {
|
||||||
try {
|
try {
|
||||||
for (const propertyName in dataSet.elements) {
|
for (const propertyName in dataSet.elements) {
|
||||||
const elementObject = {}
|
const elementObject = {}
|
||||||
const element = dataSet.elements[propertyName]
|
const element = dataSet.elements[propertyName]
|
||||||
const tag = this.getTag(element.tag)
|
const tag = this.getTag(element.tag)
|
||||||
elementObject.id = `${this.idx++}${new Date().getTime()}`
|
elementObject.id = `${this.idx++}${new Date().getTime()}`
|
||||||
|
@ -119,6 +119,9 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
elementObject.tagCode = tag ? tag.tag : ''
|
elementObject.tagCode = tag ? tag.tag : ''
|
||||||
elementObject.tagName = tag ? tag.name : ''
|
elementObject.tagName = tag ? tag.name : ''
|
||||||
|
if (tag.name === 'PatientName') {
|
||||||
|
console.log(123)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
elementObject.tagLength = element.length
|
elementObject.tagLength = element.length
|
||||||
|
@ -174,6 +177,9 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
if (this.isStringVr(vr)) {
|
if (this.isStringVr(vr)) {
|
||||||
const str = dataSet.string(propertyName)
|
const str = dataSet.string(propertyName)
|
||||||
|
if (elementObject.tagName === 'PatientName') {
|
||||||
|
console.log(str)
|
||||||
|
}
|
||||||
const stringIsAscii = this.isASCII(str)
|
const stringIsAscii = this.isASCII(str)
|
||||||
|
|
||||||
if (stringIsAscii) {
|
if (stringIsAscii) {
|
||||||
|
@ -181,9 +187,10 @@ export default {
|
||||||
elementObject.value = str
|
elementObject.value = str
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (element.length !== 2 && element.length !== 4) {
|
elementObject.value = dataSet.string(propertyName)
|
||||||
// elementObject.value = 'binary data'
|
// if (element.length !== 2 && element.length !== 4) {
|
||||||
}
|
// // elementObject.value = 'binary data'
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
} else if (vr === 'US') {
|
} else if (vr === 'US') {
|
||||||
let text = dataSet.uint16(propertyName)
|
let text = dataSet.uint16(propertyName)
|
||||||
|
|
Loading…
Reference in New Issue