Open DPC JP
Open Diagnosis Procedure Combination for Japan is a Python library for structurally reading Japanese DPC FF1 and EF data with explicit year and revision profiles. It also provides versioned Charlson Comorbidity Index definitions. The first public release is 0.1.0.
Scope
The core interface is a library API. DPC extraction scripts are separate utilities in this repository. The browser-only Patient List Generator creates the CSV those scripts consume. The library does not include clinical patient data, official master files, CaseCurator application rules, storage, or REDCap exports. Structural parsing is not a complete DPC submission or clinical validity check.
Installation
Python 3.12 or newer is required.
python -m pip install open-dpc-jp
Quick start
from pathlib import Path
from open_dpc_jp.parsing import parse_ef, parse_ff1
ef = parse_ef(Path("EFn.txt"), source_kind="efn", dataset_year=2025)
ff1 = parse_ff1(Path("FF1.txt"), schema_id="dpc-2025-20250530")
print(ef["diagnostics"], ff1["schema"])
Supported data and documentation
Versioned structural profiles cover DPC years 2014–2026, with explicit revisions where needed. Source coverage and limits are recorded in spec/dpc/source_ledger.json. See the Japanese documentation for usage, methods, supported inputs, extraction, and the Patient List CSV contract. The documentation source is also available in this repository.
License and citation
Project-owned code is offered under MIT. See NOTICE for its scope and third-party sources. Third-party publications, official DPC data and master files are not relicensed. See CITATION.cff for citation metadata and cite the original methods and DPC specification where applicable.
Release files for open-dpc-jp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| open_dpc_jp-0.1.0.tar.gz | 199.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| open_dpc_jp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 321.7 kB
Release files / open_dpc_jp-0.1.0.tar.gz
| Download URL | open_dpc_jp-0.1.0.tar.gz |
|---|---|
| Size | 199.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ecec32d8be41f8e4e9861648a9f51320950b541224aff29e705c8ca3b0deeb0f
|
|
BLAKE2b-256 checksum How to use checksums |
16e0459aa7124783355e32637a9713a36c13287e33cce11d451f9d344bdcecaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / open_dpc_jp-0.1.0-py3-none-any.whl
| Download URL | open_dpc_jp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 122.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25c13bcab17ff87d87755e2ea29e289a8ae9df51e3ae9c99ff7c53c601edb685
|
|
BLAKE2b-256 checksum How to use checksums |
718f401f74c8e4f8c54c355c0948ee72f73990a8e2c9bfeb8b179be78e03c6d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency log