{"id":19903409,"url":"https://github.com/zdavatz/gdt2dicom","last_synced_at":"2025-07-18T11:10:47.548Z","repository":{"id":143505268,"uuid":"611142824","full_name":"zdavatz/gdt2dicom","owner":"zdavatz","description":"Convert a gdt file and an image folder to a dicom file","archived":false,"fork":false,"pushed_at":"2024-12-17T07:27:03.000Z","size":657,"stargazers_count":0,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T07:23:01.456Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zdavatz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-08T07:52:37.000Z","updated_at":"2024-12-17T07:19:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"6fcf0d22-e8b8-4ac5-85c0-f3b6f55d9155","html_url":"https://github.com/zdavatz/gdt2dicom","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/zdavatz/gdt2dicom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdavatz%2Fgdt2dicom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdavatz%2Fgdt2dicom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdavatz%2Fgdt2dicom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdavatz%2Fgdt2dicom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zdavatz","download_url":"https://codeload.github.com/zdavatz/gdt2dicom/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdavatz%2Fgdt2dicom/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265747098,"owners_count":23821808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T20:23:36.924Z","updated_at":"2025-07-18T11:10:47.203Z","avatar_url":"https://github.com/zdavatz.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gdt2dicom\nConvert a gdt file and an image folder to a dicom file\n\n\n## Build\n\n* Install `dcmtk`, that will give you `img2dcm`\n* Install Rust: https://www.rust-lang.org/tools/install\n\n```\ncargo build\n```\n\nThe binary should be built at `./target/debug/gdt2dicom` and `./target/debug/dicom2gdt`\n\n### GDT to Dicom\n\nYou can run the binary like this:\n\n```\n./target/debug/gdt2dicom --gdt-file \u003cGDT_FILE\u003e --jpegs \u003cFOLDER CONTAINING JPEGS\u003e --output \u003cOUTPUT DCM PATH\u003e\n```\n\nBy default it searches for a xml file for Dicom in the jpegs folder (#5),\nif it cannot find one it uses a default file. You can also specify the xml file with the `-d` or `--dicom-xml` flag.\n\n### Dicom to GDT\n\nYou can convert Dicom 2 GDT as well.\n\n```\n./target/debug/dicom2gdt --dicom-file \u003cDCM FILE\u003e [--gdt-file \u003cGDT FILE\u003e] [--jpegs \u003cPATH TO JPEGS\u003e]\n```\n\n- `--gdt-file` or `-g` is optional, when it's not present, it will be outputed to stdout.\n- `--jpegs` or `-j` is optional, when it's not present, images will not be exported.\n\n### GDT zu Worklist file\n\nYou can convert a GDT file to a Worklist file doing\n\n```\ngdt2dicom --gdt-file epat.gdt --output epat.wl\n```\n\n### GDT to Open Practice Protocol\n\n```\n./target/debug/gdt2opp --gdt-file \u003cDCM FILE\u003e --output opp.xml\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdavatz%2Fgdt2dicom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzdavatz%2Fgdt2dicom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdavatz%2Fgdt2dicom/lists"}