Skip to content

Commit

Permalink
feat: add fns to get tag, keyword and vr of dicom json
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Nov 18, 2023
1 parent 8b4cf9f commit 61a391c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions models/DICOM/dicom-json-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,18 @@ class BaseDicomJson {
_.set(this.dicomJson, `${tag}.vr`, vrOfTag);
_.set(this.dicomJson, `${tag}.Value`, [value]);
}

static getKeywordOfTag(tag) {
return _.get(dictionary.tag, `${tag}`);
}

static getTagOfKeyword(keyword) {
return _.get(dictionary.keyword, `${keyword}`);
}

static getTagVrOfTag(tag) {
return _.get(dictionary.tagVR, `${tag}.vr`);
}
}

class DicomJsonModel {
Expand Down

0 comments on commit 61a391c

Please sign in to comment.