DICOM metadata validation, collection-consistent pseudonymization, UID remapping and verified binary rewriting in MoonBit.
Dependencies
moon run --target native examples/data_pipeline
moon run --target native cmd/data -- summary INPUT_DIR
moon run --target native cmd/data -- quality INPUT_DIR
moon run --target native cmd/data -- export INPUT_DIR --output NEW.csv --format csv --fields 00080060,00280010,00280011
moon run --target native cmd/data -- convert INPUT_DIR --output NEW_DIR| Entry | Implemented behavior | Platform / boundary |
|---|---|---|
| Public library | DICOM/JSON exchange, policy, query/filter/group/export, quality, immutable collection plans and privacy-safe explanation | Portable core; directory streaming and authorization providers require Native |
| Native data tools | Metadata summary/quality, private CSV/JSONL and strict streaming conversion | No Python required; per-job identity, new output destinations, cooperative cancellation |
| Collection CLI | Patient pseudonyms, identity UID mapping, full-date intervals, references and SHA-256 manifests | Per-job mappings; no persisted secrets in this compatible entry |
| Private host | Persistent project/source identities, incremental cache/dedup, delivered-history references, precise time handling, resumable sealed jobs, object review, Ed25519 packages and idempotent directory receipts | Python 3.12 + MoonBit Native, controlled POSIX deployment |
| Classic CT research | Single-frame uncompressed 16-bit MONOCHROME2, independent voxel/HU/geometry checks | Narrow ct-classic-research-v1; synthetic series tested |
| Local workbench | Loopback job/status/explanation and cancellation interface | Single-host capability/CSRF protection; no multi-user network service |
moon add 001-Elsa/medseal@0.5.0import {
"001-Elsa/medseal/api/policy",
}
pkgtype(kind: "executable")
supported_targets = "+native"///|
fn main {
try {
let policy = @policy.strict()
ignore(policy)
println("public-policy-ok")
} catch {
_ => println("public-policy-rejected")
}
}moon run --target native appcd MedSeal-MBT
moon update
moon run --target native examples/collectionmoon run --target native cmd/main -- plan INPUT_DIR --policy examples/research-policy.json
moon run --target native cmd/main -- batch INPUT_DIR --output NEW_JOB_DIR --policy examples/research-policy.json
moon run --target native cmd/main -- verify NEW_JOB_DIR
moon run --target native cmd/main -- inspect samples/input.dcm --json
moon run --target native cmd/main -- validate samples/input.dcm --json
mkdir -p tmp
moon run --target native cmd/main -- anonymize samples/input.dcm --output tmp/single.dcm --report tmp/single.json --remove-privatemoon info
moon fmt --check
moon check --target all --deny-warn
moon test --target all --deny-warn
moon build --target native
moon package
python3.12 -m pip install -r requirements-qa.txt -r requirements-enterprise.txt
python3.12 tools/check_documentation.py
python3.12 tools/verify_data_processing.py --record tmp/data-processing-ci.json
python3.12 tools/verify_data_consumer.py --record tmp/data-consumer-ci.json
python3.12 tools/verify_with_pydicom.py
python3.12 tools/verify_ct_research.py --record tmp/ct-research.json
python3.12 tools/verify_release_readiness.py文档核对:本文说明已与当前维护代码和实际入口核对;不扩大医疗/生产保证。见文档账本;正式申报由韩桢本人完成。
Install
Download zipDICOM metadata validation, collection-consistent pseudonymization, UID remapping and verified binary rewriting in MoonBit.
Dependencies