ClaML reader
A ClaML reader for Python. Generated from the ClaML.dtd file from the DIMDI, using PyXB.
Features
Reads classification files in ClaML format (XML) into Python objects. See examples/test1.py for a usage example.
Resources
van der Haring EJ, Broënhorst S, ten Napel H, Weber S, Schopen M, Zanstra PE. ClaML: a standard for the electronic publication of classification coding schemes
ISO 13120:2013 Health informatics – Syntax to represent the content of healthcare classification systems – Classification Markup Language (ClaML), now superseded by ISO 13120:2019.
DIMDI (Deutsche Institut für Medizinische Dokumentation und Information) ICD-10-GM download: icd10gm2019syst-claml.zip
Usage
To use ClaML reader in a project:
import python_claml
Example
Read and parse the contents of a ClaML file and print all class codes:
with open(file_name, 'r') as input_file:
# Read file contents
contents = input_file.read()
# Parse ClaML document
classification: ClaML = claml.CreateFromDocument(contents)
for cls in classification.Class:
print(cls.code)
Development
The code was generated using the following commands:
pyxbgen --schema-root=../resources -u ClaML.xsd -m python_claml.claml
Install
From the package index:
pip install python-claml
or from source:
git clone https://github.com/thehyve/python_claml.git
cd python_claml
pip install .
Test
python setup.py test
Acknowledgement
This project was funded by the German Ministry of Education and Research (BMBF) as part of the project DIFUTURE - Data Integration for Future Medicine within the German Medical Informatics Initiative (grant no. 01ZZ1804D).
License
Copyright (c) 2019 The Hyve B.V.
The ClaML reader is licensed under the MIT License. See the file LICENSE.
Metadata
Release files for python-claml 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| python_claml-0.1.1.tar.gz | 18.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_claml-0.1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 36.5 kB
Release files / python_claml-0.1.1.tar.gz
| Download URL | python_claml-0.1.1.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd8436efc71fcacf950e7057699262d3e2b0aad6f820c4ec5e504335aa7c55ed
|
|
BLAKE2b-256 checksum How to use checksums |
98c7a3a45c7b399ef45df1d48dbf375b0c64cfed91eba76d464037aa061dfeb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.7
|
Release files / python_claml-0.1.1-py2.py3-none-any.whl
| Download URL | python_claml-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
33a822c5b03a117b917351ebf138401fd1d87b3125a243802f55102cd16569e2
|
|
BLAKE2b-256 checksum How to use checksums |
f0fbdec28df32f9740d1c6716d0234b1409f43cfd12bf17e7f7957c4c826277d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.7
|
Security for python-claml 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.