Add medical imaging and biological imaging methods value sets - #81
Conversation
…sets Value sets derived from "Toward AI-Ready Medical Imaging Data" (Nikolov et al., Bridge2AI consortium), covering the DICOM data lifecycle from extraction through validation and de-identification. medical/dicom.yaml - DICOMModalityEnum: PS3.16 CID 29 acquisition modality codes, mapped to NCIT where a term exists and to DCM codes throughout - DICOMValueRepresentationEnum: the 34 VRs of PS3.5 Section 6.2 - DICOMAttributeTypeEnum: attribute types 1, 1C, 2, 2C, 3 - DICOMTransferSyntaxEnum: current PS3.6 transfer syntaxes with UIDs - DICOMNetworkServiceEnum: DIMSE-C/N services and DICOMweb services - DICOMSoftwareToolEnum: toolkits, validators, servers and anonymizers medical/imaging_deidentification.yaml - DICOMDeidentificationMethodEnum: PS3.15 Annex E profile and options (CID 7050) - DICOMDeidentificationActionEnum: PS3.15 Table E.1-1a action codes - ImageDeidentificationTargetEnum, DeidentificationRegulatoryFrameworkEnum - DefacingMethodEnum and DefacingToolEnum from the paper's Table I medical/imaging_data_management.yaml - ImagingDataLifecycleStageEnum: the paper's six-stage framework - ImagingDataSourceTypeEnum, DICOMValidationIssueTypeEnum - ImageQualityMetricEnum, ImagingInteroperabilityStandardEnum - Bridge2AIDataGenerationProjectEnum All ontology CURIEs verified against OLS; DICOM codes verified against the current DICOM standard tables. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JqKeWA6q8xdJhgpuzHE4Ym
The value sets stand on the DICOM standard and de-identification practice; the descriptions no longer cite the review article that seeded them. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JqKeWA6q8xdJhgpuzHE4Ym
bio/biological_imaging_methods.yaml defines thirteen dynamic enums populated from the Biological Imaging Methods Ontology (FBbi): one per top-level branch (imaging method, sample preparation, visualization, illumination, detection, imaged parameter, contrast enhancement, resolution enhancement, source of contrast) plus the microscopy, light microscopy, fluorescence microscopy and fixation method subtrees. DICOMModalityEnum gains FBbi exact mappings for CT, CFM, GM, OCT and RG. FBbi is registered in the validator's ontology adapter configuration. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JqKeWA6q8xdJhgpuzHE4Ym
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
Claude finished @cmungall's task in 6m 47s —— View job Code review: medical imaging + biological imaging value sets
Overall this is a well-organized, well-documented addition. Structure, headers, 1. The new ontology IDs are not verified by anything in this repoCLAUDE.md says "ALWAYS check IDs, NEVER guess them", and here the automated safety net doesn't apply:
Suggested follow-up beyond this PR: a test that resolves every 2.
|
…matches The enum evaluator previously checked only the `meaning` of each permissible value. It now also resolves every CURIE in exact/close/broad/narrow/related mappings and every `reachable_from.source_nodes` entry of a dynamic enum, reporting ERROR for configured prefixes and INFO otherwise, and counts them in the mappings-checked total. Unit tests cover both paths. Schema fixes from validating the new files against OLS: - NCIT terms broader than the lifecycle stage they annotated (Data Extraction, Data Integrity Verification, Data Validation) move from meaning to broad_mappings - GDPR anonymisation/pseudonymisation take the NCIT label as title with the GDPR wording as an alias - FBbi mappings on CT and RG become close_mappings and on GM broad_mappings; CFM and OCT remain exact - DICOMModalityEnum documents the NCIT-or-DCM meaning rule and the non-acquisition Modality values it excludes - DCM is registered in oak_config.yaml as a deliberately unvalidated prefix Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JqKeWA6q8xdJhgpuzHE4Ym
|
Claude encountered an error after 2s —— View job I'll analyze this and get back to you. |
|
Claude finished @cmungall's task in 3m 55s —— View job Code review: medical imaging + biological imaging value sets (round 2)
The response to the previous round is solid: Comments below on the new validator code, roughly in priority order. 1. Mapping-slot validation is a repo-wide behaviour change and hasn't been run repo-wide
Nothing in this PR demonstrates that the pre-existing 800+ mappings pass. Please run 2. Negative results are cached permanently, and
|
Summary
This PR adds comprehensive value sets for medical imaging data management and biological imaging methods, supporting DICOM data extraction, validation, de-identification, and research workflows.
Key Changes
New Medical Imaging Value Sets
src/valuesets/schema/medical/dicom.yaml- DICOM Standard Value Setssrc/valuesets/schema/medical/imaging_deidentification.yaml- De-identification Value Setssrc/valuesets/schema/medical/imaging_data_management.yaml- Data Management Value SetsNew Biological Imaging Value Sets
src/valuesets/schema/bio/biological_imaging_methods.yaml- FBbi-based Imaging MethodsSchema Integration
src/valuesets/schema/valuesets.yamlto import new medical imaging modulessrc/valuesets/validators/oak_config.yamlto add FBbi ontology adapter for dynamic enum validationImplementation Details
reachable_fromto populate from FBbi ontologyhttps://claude.ai/code/session_01JqKeWA6q8xdJhgpuzHE4Ym