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.6.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: xml2dcm-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 1cc917e224feb7162fea60b98d9f304e6f777d320e9ac854bdcc76f3f892b97f
MD5 d31e5ae8f61808542d10ad9818b24250
BLAKE2b-256 1603bdf212b0b958046d635c43c2f0be54fd45ab48612ba96d32b66d4da3f3fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xml2dcm-0.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 650c2c9e3c40808ae819f47f8fdd1b8a64d2d88f5ef3ded3a475346a10e4eda9
MD5 751374beab4a521da38980262b72a15a
BLAKE2b-256 1f85b7b58e1151ede1d3a1f5fdeba60c4999b834ff30b708b3b03d3f290d0557

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