Skip to content

Commit

Permalink
fix parse rules for actions. (DE-59)
Browse files Browse the repository at this point in the history
  • Loading branch information
WoonchanCho committed Jan 27, 2022
1 parent 7a7667c commit 7631c5b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"cornerstone-wado-image-loader": "^3.3.1",
"dcmjs": "^0.17.0",
"dicom-parser": "^1.8.7",
"dicomedit": "^0.0.30",
"dicomedit": "^0.0.35",
"lodash": "^4.17.20",
"numeral": "^2.0.6",
"pondjs": "^0.9.0",
Expand Down
4 changes: 3 additions & 1 deletion src/dashboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ function Dashboard() {
const [outputBuffer, setOutputBuffer] = useState(undefined);
const [text, setText] = useState(
`version "6.3"
alterPixels["rectangle", "l=100, t=100, r=200, b=200", "solid", "v=100"]
// alterPixels["rectangle", "l=100, t=100, r=200, b=200", "solid", "v=100"]
(0008,0020) = "20020628" ? alterPixels["rectangle", "l=100, t=100, r=200, b=200", "solid", "v=100"]
(0008,0080) := "Washington University School of Medicine"
(0008,0018) := hashUID[(0008,0018)]
// Add 14 days to Study Date
Expand Down Expand Up @@ -154,6 +155,7 @@ alterPixels["rectangle", "l=100, t=100, r=200, b=200", "solid", "v=100"]
await anonymizer.applyRules();

const outputBuffer = anonymizer.write();
console.log(anonymizer.outputDict);
setOutputBuffer(outputBuffer);

const outputDiff = difference(anonymizer.outputDict, tempDict);
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4211,9 +4211,9 @@ dcmjs@^0.17.0:
loglevelnext "^3.0.1"
ndarray "^1.0.19"

"dcmjs@https://github.com/WoonchanCho/dcmjs.git#f846bd96a89b9cc69467ff75532083ea311e343a":
"dcmjs@git+https://github.com/WoonchanCho/dcmjs.git#f846bd96a89b9cc69467ff75532083ea311e343a":
version "0.11.0"
resolved "https://github.com/WoonchanCho/dcmjs.git#f846bd96a89b9cc69467ff75532083ea311e343a"
resolved "git+https://github.com/WoonchanCho/dcmjs.git#f846bd96a89b9cc69467ff75532083ea311e343a"
dependencies:
"@babel/polyfill" "^7.8.3"
"@babel/runtime" "^7.8.4"
Expand Down Expand Up @@ -4392,10 +4392,10 @@ dicomedit-uuid@^8.3.2:
resolved "https://registry.yarnpkg.com/dicomedit-uuid/-/dicomedit-uuid-8.3.2.tgz#5ccb340ddd1b6db37ae27caf635b3237f15d7bca"
integrity sha512-45aYYHOHY6gQEKrO/DnOgAWeo8Mvy1GdUO2DhHbBpA+Qm9WQ4wfqAxilIpSsgT5V3NbrVZwJ+nFWGtdehFFCJA==

dicomedit@^0.0.30:
version "0.0.30"
resolved "https://registry.yarnpkg.com/dicomedit/-/dicomedit-0.0.30.tgz#c3ec990e82857613291ad3a9e6f087a869771be4"
integrity sha512-xzo3v1wUg4JwfLZh+kuJUYGmhv0/8xTYV8zRZnrO0yMimtWCsW0E4TSJxXDkWqt8xHmVjCSL82FR+oX0jY/0tQ==
dicomedit@^0.0.35:
version "0.0.35"
resolved "https://registry.yarnpkg.com/dicomedit/-/dicomedit-0.0.35.tgz#e279d0b0c3a2029e7961ecb422c5438f82bc207d"
integrity sha512-08p6y8uFuzab3YbWxcMgyNrCjP71vsOhw3aqQYdEdEH7rm/syahLO9cMMeiYvbxSvMLGeMnh6k/fbuk9qY4Y7Q==
dependencies:
antlr4 "^4.9.1"
big-integer "^1.6.48"
Expand Down

0 comments on commit 7631c5b

Please sign in to comment.