The Ballerina DICOM packages provide functionalities to work with Digital Imaging and Communications in Medicine (DICOM) standard in Ballerina programs.
These packages include DICOM structures and data types, encoders, validators, parsers, DICOMweb related utils and a DICOM service type for creating DICOMweb APIs, as well as other miscellaneous utilities for working with the DICOM standard.
Package | Description |
---|---|
health.dicom | Provides DICOM data types, error types, data element dictionaries, encoders, validators, and utility functions. |
health.dicom.dicomparser | Provides DICOM file, dataset, and data element parsers. |
health.dicom.dicomweb | Provides DICOMweb data types, error types, a response builder, and utility functions. |
heath.dicom.dicomservice | Provides a custom DICOM service type to easily implement DICOMweb APIs. |
Note: These packages are currently in a work-in-progress state and are undergoing rapid changes to ensure their functionality and reliability.
-
Install Ballerina:
- Download and install Ballerina Swan Lake.
-
(Optional) Install Java SE Development Kit (JDK) version 17:
Note: Only necessary if you want to build the
core
or thedicomservice
package.Note: Set the JAVA_HOME to the path where you installed the JDK.
-
(Optional) Configure GitHub Credentials:
Note: Only necessary if you want to build the
core
or thedicomservice
package.The
core
and thedicomservice
packages use Java dependencies, which use Ballerina packages hosted on Github. To install them during the Gradle build, a GitHub personal access token (PAT) with theread:packages
scope is required.Export your GitHub username and a personal access token,
export GITHUB_USERNAME=<Username> export GITHUB_PAT=<PAT>
Execute the commands below to build from source.
-
To build the
core
or thedicomservice
package:Navigate to the respective package directory and execute,
./gradlew clean build
-
To build any other package (e.g.,
dicomparser
):Navigate to the respective package directory and execute,
bal build
Note: If you want to publish the
core
or thedicomservice
package, please make sure to build the package first.
Navigate to the package directory (inside ballerina
directory for the core
or the dicomservice
package) and follow the following instructions,
As an open source project, Ballerina welcomes contributions from the community.
For more information, go to the contribution guidelines.
All contributors are encouraged to read the Ballerina Code of Conduct.
- Discuss code changes of the Ballerina project in [email protected].
- Chat live with us via our Discord server.
- Post all technical questions on Stack Overflow with the #ballerina tag.