xml2dcm


Namexml2dcm JSON
Version 0.0.6 PyPI version JSON
download
home_pagehttps://github.com/SeungHoJUN/XML2DCM
SummaryPackages to convert XML files to DICOM format written by SNUH VitalLab
upload_time2024-06-13 05:40:37
maintainerNone
docs_urlNone
authorseunghojun
requires_python>=3.11
licenseNone
keywords xml2dcm xml dicom ecg dicom snuh
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ---
# 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 파일의 구조가 정해진 [형식](https://github.com/SeungHoJUN/XML2DCM/blob/main/xml_format.txt)을 따라야 합니다. 변환을 진행하기 전에, 파일이 이 구조를 제대로 갖추고 있는지 확인해야 합니다.

To convert an XML file into a DCM file, the structure of the XML file must adhere to a specified [format](https://github.com/SeungHoJUN/XML2DCM/blob/main/xml_format.txt). 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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/SeungHoJUN/XML2DCM",
    "name": "xml2dcm",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "xml2dcm, XML, DICOM, ECG DICOM, SNUH",
    "author": "seunghojun",
    "author_email": "danuri.jun@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/16/03/bdf212b0b958046d635c43c2f0be54fd45ab48612ba96d32b66d4da3f3fd/xml2dcm-0.0.6.tar.gz",
    "platform": null,
    "description": "---\r\n# XML2DCM\r\n\r\nXML2DCM\uc740 XML \ud615\ud0dc\uc758 \ub370\uc774\ud130\ub97c DICOM \ud615\ud0dc\ub85c \ubc14\uafb8\ub294 \ud328\ud0a4\uc9c0 \uc785\ub2c8\ub2e4. ( \uc5ec\uae30\uc11c XML \ub370\uc774\ud130\ub294 ECG \ub370\uc774\ud130\ub97c \ub2f4\uace0 \uc788\uc2b5\ub2c8\ub2e4. )\r\n\r\nXML2DCM is a package that converts XML formatted data into DICOM format. ( the XML data contains ECG information. )\r\n\r\n---\r\n\r\n# XML Structure\r\n\r\nXML \ud30c\uc77c\uc744 DCM \ud30c\uc77c\ub85c \ubcc0\ud658\ud558\uae30 \uc704\ud574\uc11c\ub294 XML \ud30c\uc77c\uc758 \uad6c\uc870\uac00 \uc815\ud574\uc9c4 [\ud615\uc2dd](https://github.com/SeungHoJUN/XML2DCM/blob/main/xml_format.txt)\uc744 \ub530\ub77c\uc57c \ud569\ub2c8\ub2e4. \ubcc0\ud658\uc744 \uc9c4\ud589\ud558\uae30 \uc804\uc5d0, \ud30c\uc77c\uc774 \uc774 \uad6c\uc870\ub97c \uc81c\ub300\ub85c \uac16\ucd94\uace0 \uc788\ub294\uc9c0 \ud655\uc778\ud574\uc57c \ud569\ub2c8\ub2e4.\r\n\r\nTo convert an XML file into a DCM file, the structure of the XML file must adhere to a specified [format](https://github.com/SeungHoJUN/XML2DCM/blob/main/xml_format.txt). Before proceeding with the conversion, it is necessary to verify that the file conforms to this structure.\r\n\r\n---\r\n\r\n# To start using xml2dcm\r\n\r\n## Install\r\n\r\n### PIP\r\n```\r\npip install xml2dcm\r\n```\r\n\r\n```\r\npython -m pip install --upgrade xml2dcm\r\n```\r\n\r\n\r\n## Using the XML2DCM Library in Python\r\n```\r\nfrom xml2dcm import xml2dcm\r\n\r\n# Convert XML file to DICOM file\r\n# Output folder is optional. If not set, it defaults to 'generated_dicom_from_xml'\r\nxml2dcm.create_dicom_file('path/to/your/XML_file.xml', 'path/to/your/output_folder')\r\n\r\n# Check the structure of the DICOM file\r\nxml2dcm.read_dicom('path/to/your/DICOM.dcm')\r\n```\r\n\r\n---\r\n\r\n# license\r\n\r\nThis software is licensed under the Apache 2 license, quoted below\r\n\r\nCopyright 2024 SNUH https://www.snuh.org\r\n\r\nLicensed 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\r\n\r\nUnless 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.\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Packages to convert XML files to DICOM format written by SNUH VitalLab",
    "version": "0.0.6",
    "project_urls": {
        "Homepage": "https://github.com/SeungHoJUN/XML2DCM"
    },
    "split_keywords": [
        "xml2dcm",
        " xml",
        " dicom",
        " ecg dicom",
        " snuh"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1f85b7b58e1151ede1d3a1f5fdeba60c4999b834ff30b708b3b03d3f290d0557",
                "md5": "751374beab4a521da38980262b72a15a",
                "sha256": "650c2c9e3c40808ae819f47f8fdd1b8a64d2d88f5ef3ded3a475346a10e4eda9"
            },
            "downloads": -1,
            "filename": "xml2dcm-0.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "751374beab4a521da38980262b72a15a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 9986,
            "upload_time": "2024-06-13T05:40:35",
            "upload_time_iso_8601": "2024-06-13T05:40:35.847843Z",
            "url": "https://files.pythonhosted.org/packages/1f/85/b7b58e1151ede1d3a1f5fdeba60c4999b834ff30b708b3b03d3f290d0557/xml2dcm-0.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1603bdf212b0b958046d635c43c2f0be54fd45ab48612ba96d32b66d4da3f3fd",
                "md5": "d31e5ae8f61808542d10ad9818b24250",
                "sha256": "1cc917e224feb7162fea60b98d9f304e6f777d320e9ac854bdcc76f3f892b97f"
            },
            "downloads": -1,
            "filename": "xml2dcm-0.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "d31e5ae8f61808542d10ad9818b24250",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 10181,
            "upload_time": "2024-06-13T05:40:37",
            "upload_time_iso_8601": "2024-06-13T05:40:37.647373Z",
            "url": "https://files.pythonhosted.org/packages/16/03/bdf212b0b958046d635c43c2f0be54fd45ab48612ba96d32b66d4da3f3fd/xml2dcm-0.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-13 05:40:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "SeungHoJUN",
    "github_project": "XML2DCM",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "xml2dcm"
}
        
Elapsed time: 0.36311s