From 6d2cca3724b4d8f58ce6758041d46b259e8b6f49 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 17:22:31 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/crate-ci/typos: v1.19.0 → v1.20.4](https://github.com/crate-ci/typos/compare/v1.19.0...v1.20.4) - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0) - [github.com/astral-sh/ruff-pre-commit: v0.3.4 → v0.3.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.4...v0.3.5) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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] From 45d36219a5c1b80cd2936d649471f683890996dd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 17:22:54 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- README.md | 10 +++++----- dicom_validator/spec_reader/part6_reader.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) 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 """