Skip to main content

Packages to convert XML files to DICOM format written by SNUH VitalLab

Project description


XML2DCM

XML2DCM은 XML 형태의 데이터를 DiCOM 형태로 바꾸는 패키지 입니다. ( 여기서 XML 데이터는 ECG 데이터를 담고 있습니다. )

XML2DCM is a package that converts XML formatted data into DiCOM format. ( the XML data contains ECG information. )


XML Structure

XML 파일을 DCM 파일로 변환하기 위해서는 XML 파일의 구조가 정해진 형식을 따라야 합니다. 변환을 진행하기 전에, 파일이 이 구조를 제대로 갖추고 있는지 확인해야 합니다.

To convert an XML file into a DCM file, the structure of the XML file must adhere to a specified format. Before proceeding with the conversion, it is necessary to verify that the file conforms to this structure.


To start using xml2dcm

Install

PIP

pip install xml2dcm
python -m pip install --upgrade xml2dcm

Using the XML2DCM Library in Python

from xml2dcm import xml2dcm

# Convert XML file to DICOM file
# Output folder is optional. If not set, it defaults to 'generated_dicom_from_xml'
xml2dcm.create_dicom_file('path/to/your/XML_file.xml', 'path/to/your/output_folder')

# Check the structure of the DICOM file
xml2dcm.read_dicom('path/to/your/DiCOM.dcm')

license

This software is licensed under the Apache 2 license, quoted below

Copyright 2024 SNUH https://www.snuh.org

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xml2dcm-0.0.5.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

xml2dcm-0.0.5-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file xml2dcm-0.0.5.tar.gz.

File metadata

  • Download URL: xml2dcm-0.0.5.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for xml2dcm-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c1ecc695fe198de40ecd09350c38769850aa42f08aabd494cc05073d3138d4fe
MD5 1329fe567a4874d2ee7fdbb4f9f701ba
BLAKE2b-256 5e70bee6694978ce33137b7494c57ec05c60aaf20c7eea3cb22b23a6fc8c9ac1

See more details on using hashes here.

File details

Details for the file xml2dcm-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: xml2dcm-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for xml2dcm-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e03e06733a77df19eccc0e191bad5dd353c340af379eaa22c8c0fa3e2a9f471b
MD5 4a60e379fdaececd7835b17943f61709
BLAKE2b-256 8acd02403e41afb0b6ec45f03451defccd718d34b36a7e2bcd0fd9aaaab8dc79

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page