Skip to content

Commit

Permalink
feat: add getValue and getValues in base dicom json
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Nov 17, 2023
1 parent c4e766c commit 8fda280
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion models/DICOM/dicom-json-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,14 @@ class BaseDicomJson {
return _.get(this.dicomJson, tag, undefined);
}

getValue(tag) {
getValues(tag) {
return _.get(this.dicomJson, `${tag}.Value`, undefined);
}

getValue(tag) {
return _.get(this.dicomJson, `${tag}.Value.0`, undefined);
}

getSequenceItem(tag) {
return JSONPath({
path: `$..${tag}`,
Expand Down

0 comments on commit 8fda280

Please sign in to comment.