Skip to content

The Ballerina DICOM packages provide functionalities to work with Digital Imaging and Communications in Medicine (DICOM) standard in Ballerina programs.

License

Notifications You must be signed in to change notification settings

ballerina-platform/module-ballerinax-health.dicom

Repository files navigation

Ballerina DICOM Packages

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.

Build from the source

Set Up the prerequisites

  1. Install Ballerina:

  2. (Optional) Install Java SE Development Kit (JDK) version 17:

    Note: Only necessary if you want to build the core or the dicomservice package.

    Note: Set the JAVA_HOME to the path where you installed the JDK.

  3. (Optional) Configure GitHub Credentials:

    Note: Only necessary if you want to build the core or the dicomservice package.

    The core and the dicomservice 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 the read:packages scope is required.

    Export your GitHub username and a personal access token,

    export GITHUB_USERNAME=<Username>
    export GITHUB_PAT=<PAT>

Build the source

Execute the commands below to build from source.

  • To build the core or the dicomservice 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

Publish packages

Note: If you want to publish the core or the dicomservice 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,

Contribute to Ballerina

As an open source project, Ballerina welcomes contributions from the community.

For more information, go to the contribution guidelines.

Code of conduct

All contributors are encouraged to read the Ballerina Code of Conduct.

Useful links

About

The Ballerina DICOM packages provide functionalities to work with Digital Imaging and Communications in Medicine (DICOM) standard in Ballerina programs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published