How smi/smiservices works
Main Components
• SmiServices Suite – Representing the core microservices that handle tasks such as:
– DICOM processing applications (DicomDirectoryProcessor, DicomLoader, DynamicRulesTester, ExtractImages, Setup, TriggerUpdates)
– A wide set of microservices under src/SmiServices/Microservices:
– CohortExtractor, CohortPackager, DicomAnonymiser, DicomRelationalMapper, DicomReprocessor, DicomTagReader, FileCopier, IdentifierMapper, IsIdentifiable, MongoDBPopulator, UpdateValues, etc.
• CTPAnonymiser – A Java service dedicated to de-identification, with its own build scripts and library dependencies (note the use of Maven and JDK).
• Databases – Include components for MongoDB and SQL (or relational databases) as the target storage for extracted metadata.
• Supporting Utilities and Configurations – Indicate that various configuration files (in data/microserviceConfigs, data/rabbitmqConfigs, and util/docker-compose setups) offer deployment and runtime settings.
• Build and Deployment Scripts – Highlight the binary folders (bin/smi, bin/ctp) and the build infrastructure (e.g., .NET build scripts, Maven scripts, pre-commit hooks, and docker-compose files) that underpin development and deployment.
Relationships and Interactions
• Outbound/inbound communication lines between the SmiServices microservices and RabbitMQ. For example, some microservices are "consumers" (like queue consumers handling extraction requests), while others are "producers" (sending messages or control commands).
• How SmiServices integrate with databases; many microservices have components that either load data into MongoDB/SQL or extract data from them.
• Configuration and deployment layer (docker-compose, configuration files in data and utils) with the infrastructure components to show that the environment is supported by external scripts and settings.
Architectural Patterns and Design Principles
• The architecture leverages a microservices pattern with clearly defined service boundaries (each microservice is in its own module under “src/SmiServices/Microservices”).
• Communication is event-driven via RabbitMQ, which suggests asynchronous processing and decoupling.
• There is a separation of concerns between metadata extraction, de-identification processing, and data persistence.
• Shared libraries (e.g., common message definitions and utility code under src/common and src/SmiServices/Common) support consistency and reduce duplication across services.