diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9f5aae2..234b1b4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ default_language_version: repos: - repo: https://github.com/crate-ci/typos - rev: v1.19.0 + rev: v1.20.4 hooks: - id: typos exclude: _*.xml @@ -13,7 +13,7 @@ repos: - id: black args: [ --safe, --quiet ] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -23,7 +23,7 @@ repos: - id: debug-statements language_version: python3 - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.4 + rev: v0.3.5 hooks: - id: ruff args: [dicom_validator, --fix, --exit-non-zero-on-fix] diff --git a/README.md b/README.md index fb91f4f..b8dce60 100644 --- a/README.md +++ b/README.md @@ -166,12 +166,12 @@ c:\dev\DICOM Data\SR\image12.dcm (0008,0050) Accession Number SH 1 [ACN000001] (0008,0060) Modality CS 1 [US] (0008,0070) Manufacturer LO 1 [Acuson] -(0008,0090) Referring Physician's Name PN 1 [] +(0008,0090) Referring Physician's Name ON 1 [] (0008,1010) Station Name SH 1 [QV-00775] (0008,1030) Study Description LO 1 [ABDOMEN] -(0008,1050) Performing Physician's Name PN 1 [DOE,JOHN] -(0008,1060) Name of Physician(s) Reading Study PN 1 [] -(0008,1070) Operators' Name PN 1 [DO] +(0008,1050) Performing Physician's Name ON 1 [DOE,JOHN] +(0008,1060) Name of Physician(s) Reading Study ON 1 [] +(0008,1070) Operators' Name ON 1 [DO] (0008,1080) Admitting Diagnoses Description LO 1 [RSNA'95 Data Not Delete] (0009,0010) [Unknown] LO 1 [AEGIS_DICOM_2.00] ... @@ -182,6 +182,6 @@ If you want to show only specific tags, you can use the option `--show-tags`: (py3_test) c:\dev\GitHub\dicom-validator>dump_dcm_info "c:\dev\DICOM Data\SR\image12.dcm" --show-tags 0010,0010 PatientID c:\dev\DICOM Data\SR\image12.dcm -(0010,0010) Patient's Name PN 1 [DOE^JANE] +(0010,0010) Patient's Name ON 1 [DOE^JANE] (0010,0020) Patient ID LO 1 [ACN000001] ``` diff --git a/dicom_validator/spec_reader/part6_reader.py b/dicom_validator/spec_reader/part6_reader.py index fc5f604..439f1d7 100644 --- a/dicom_validator/spec_reader/part6_reader.py +++ b/dicom_validator/spec_reader/part6_reader.py @@ -36,7 +36,7 @@ def data_element(self, tag_id): as key. The values of the returned dict are dicts with the following entries: 'name': The human-readable tag name - 'vr': The tag value representation (e.g. 'PN') + 'vr': The tag value representation (e.g. 'ON') 'vm': The tag multiplicity (e.g. '1-N') 'prop': Additional properties, like 'RET' for retired """