ExportConverters

  • Hello


    I want to export a stuctured report .V2 in a XML file using the tool "dsr2xml". Can I add these lines to dicom.ini? Currently it does not work: syntax problem or inconsistency ?
    Thank you.


    Code
    #Export sr
    ExportConverters = 1
    ExportModality0 = SR
    ExportConverter0 = C:\dcmtk\bin\dsr2xml.exe %f to F:\structured_report\%f.xml


    alain godard Châtellerault France

    Alain Godard Châtellerault France. Je parle très mal anglais et je ne suis pas informaticien. Soyez indulgent :)

  • Bonjour
    This line in dicom.ini

    Code
    ExportConverter0 = C:\dcmtk\bin\dsr2xml.exe %f F:\VOLUSON\structured_report\%f.xml


    don't work....

    Code
    [CONQUESTSRV1] Exportconverter0.0 executes: C:\dcmtk\bin\dsr2xml.exe F:\VOLUSON\dicom_server\data\7294-08-01-23-1\1.2.276.0.26.1.1.1.2.2008.54.25012.490901.1_0001_000001_12010714650001.v2 F:\VOLUSON\structured_report\F:\VOLUSON\dicom_server\data\7294-08-01-23-1\1.2.276.0.26.1.1.1.2.2008.54.25012.490901.1_0001_000001_12010714650001.v2.xml


    another one :

    Code
    ExportConverter0 = C:\dcmtk\bin\dsr2xml.exe %f %f.xml


    This line works well, but the file is not in the desired directory ... An idea?

    Alain Godard Châtellerault France. Je parle très mal anglais et je ne suis pas informaticien. Soyez indulgent :)

  • Bonjour,


    The problem lies in the expanded command: "F:\VOLUSON\structured_report\F:\VOLUSON .... " is not a valid filename.


    You will have to use other % options to generate your required filename, or you may be able to use e.g., %f[3, 999] to strip of the "F:\" from the filename and then use the same construction, i.e., use


    F:\VOLUSON\structured_report\%f[3,999].xml


    Marcel

  • Unfortunately, it does not work ... The original folder path is taken, as well as the former extension. V2 (in bold) ... :(


    [CONQUESTSRV1] Exportconverter1.0 executes: C:\dcmtk\bin\dsr2xml.exe F:\VOLUSON\dicom_server\data\7294-02-01-01-1\1.2.276.0.26.1.1.1.2.2002.32.2053.1965899.1_0001_000001_12011663650001.v2 F:\VOLUSON\structured_report\VOLUSON\dicom_server\data\7294-02-01-01-1\1.2.276.0.26.1.1.1.2.2002.32.2053.1965899.1_0001_000001_12011663650001.v2.xml

    Alain Godard Châtellerault France. Je parle très mal anglais et je ne suis pas informaticien. Soyez indulgent :)

  • Hi,


    is that a problem? .v2.xml is a workable filename. Otherwise may be able to use other % options such as %Vgggg,eeee or %p and %b to create the required filename (see manual).


    E.g., %p[3,999]\%b.xml may give you what you want.


    Marcel

  • C'est bon ! :D


    Code
    ExportModality1 = SR
    ExportConverter1 = C:\dcmtk\bin\dsr2xml.exe %f F:\VOLUSON\structured_report\%b.xml


    The solution is in the manual, but my difficulties in the English language does not permit me to find the solution.
    Thanks again. :oops:
    I don't undestand "i.e." and "e.g." :?:

    Alain Godard Châtellerault France. Je parle très mal anglais et je ne suis pas informaticien. Soyez indulgent :)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!