DICOM definition generate tool

Use hcidicomdefgen to generate a DICOM dataset segment definition file according to an incoming message.

hcidicomdefgen -V version -v variant -s service_name -c transfersyntax input_message
  • -V version is the DICOM version.
  • -v variant is the DICOM variant.
  • -s service_name is the DICOM service name.

    For example: C_STORE_RQ, C_FIND_RSP,...

  • -c transfer_syntax is the transfer syntax of the DICOM message.
  • input_message is the input DICOM message.

This command:

  • Creates a variant under $HCISITEDIR/formats/ldl/version/.
  • Creates a segment named <service_name>_dataset, and generates the content according to the input message parsing result.
  • Creates service_name_MSG under $HCISITEDIR/formats/ldl/version/variant/messages, which contains:
    • service_name_DIMSE: This should already be defined under $HCIROOT/formats/ldl/<version>/<variant>/segments. This command does not generate the definition file for the DIMSE header part.
    • service_name_dataset: Content is generated based on the dataset part of the input DICOM message. This file is located under $HCISITEDIR/formats/ldl/<version>/<variant/segments.