weasis multi-patient

  • File weasis_starter.lua contains a block of code that come straight out of the weasis sample. If you can find documentation and a sample how to make weasis multi-session you should be able to paste it there. I have not looked at weasis in years.


    Marcel

  • this bloc ??


    -- start of xml generator

    -- split query information

    local patid = string.gsub(ident, ':[^:]-$', '')

    local uid = string.gsub(ident, '^.*:', '')

    local compress = CGI('compression', 'un')

    local source = servercommand('get_param:MyACRNema')

    local paq, stq, seq, inq

  • -- this text between [[ ]] is the JNLP sample file from the weasis website without change, it is adapted by the lua code below

    -- I had to remove line <extension href="http://localhost:8080/weasis/substance.jnlp" />, for weasis_portable3.0


    local jnlp = [[

    <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc//DTD JNLP Descriptor 6.0//EN" "http://java.sun.com/dtd/JNLP-6.0.dtd">

    <jnlp spec="1.6+" codebase="http://localhost:8080/weasis" href="">

    <information>

    <title>Weasis</title>

    <vendor>Weasis Team</vendor>

    <description>DICOM images viewer</description>

    <description kind="short">An application to visualize and analyze DICOM images.</description>

    <description kind="one-line">DICOM images viewer</description>

    <description kind="tooltip">Weasis</description>

    </information>

    <security>

    <all-permissions />

    </security>


    <resources>

    <!-- Requires Java SE 8 for Weasis 2.5 and superior -->

    <java version="9+" href="http://java.sun.com/products/autodl/j2se" java-vm-args="--add-modules java.xml.bind --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.https=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.file=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.ftp=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.desktop/javax.imageio.stream=ALL-UNNAMED --add-opens=java.desktop/javax.imageio=ALL-UNNAMED --add-opens=java.desktop/com.sun.awt=ALL-UNNAMED" initial-heap-size="128m" max-heap-size="768m" />

    <java version="9+" java-vm-args="--add-modules java.xml.bind --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.https=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.file=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.ftp=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.desktop/javax.imageio.stream=ALL-UNNAMED --add-opens=java.desktop/javax.imageio=ALL-UNNAMED --add-opens=java.desktop/com.sun.awt=ALL-UNNAMED" initial-heap-size="128m" max-heap-size="768m" />

    <j2se version="1.8+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="768m" />

    <j2se version="1.8+" initial-heap-size="128m" max-heap-size="768m" />


    <jar href="http://localhost:8080/weasis/weasis-launcher.jar" main="true" />

    <jar href="http://localhost:8080/weasis/felix.jar" />


    <!-- Optional library (Substance Look and feel, only since version 1.0.8). Requires the new Java Plug-in introduced in the Java SE 6 update 10 release.For previous JRE 6, substance.jnlp needs a static codebase URL -->


    <!-- Allows to get files in pack200 compression, only since Weasis 1.1.2 -->

    <property name="jnlp.packEnabled" value="true" />


    <!-- ================================================================================================================= -->

    <!-- Security Workaround. Add prefix "jnlp.weasis" for having a fully trusted application without signing jnlp (only since weasis 1.2.9), http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6653241 -->

    <!-- Required parameter. Define the location of config.properties (the OSGI configuration and the list of plug-ins to install/start) -->

    <property name="jnlp.weasis.felix.config.properties" value="http://localhost:8080/weasis/conf/config.properties" />

    <!-- Optional parameter. Define the location of ext-config.properties (extend/override config.properties) -->

    <property name="jnlp.weasis.felix.extended.config.properties" value="http://localhost:8080/weasis-ext/conf/ext-config.properties" />

    <!-- Required parameter. Define the code base of Weasis for the JNLP -->

    <property name="jnlp.weasis.weasis.codebase.url" value="http://localhost:8080/weasis" />

    <!-- Optional parameter. Define the code base ext of Weasis for the JNLP -->

    <property name="jnlp.weasis.weasis.codebase.ext.url" value="http://localhost:8080/weasis-ext" />

    <!-- Required parameter. OSGI console parameter -->

    <property name="jnlp.weasis.gosh.args" value="-sc telnetd -p 17179 start" />

    <!-- Optional parameter. Allows to have the Weasis menu bar in the top bar on Mac OS X (works only with the native Aqua look and feel) -->

    <property name="jnlp.weasis.apple.laf.useScreenMenuBar" value="true" />

    <!-- Optional parameter. Allows to get plug-ins translations -->

    <property name="jnlp.weasis.weasis.i18n" value="http://localhost:8080/weasis-i18n" />

    <!-- Optional Weasis Documentation -->

    <!-- <property name="jnlp.weasis.weasis.help.url" value="${cdb}/../weasis-doc" /> -->

    <!-- ================================================================================================================= -->

    </resources>


    <application-desc main-class="org.weasis.launcher.WebstartLauncher">

    <!-- Example for opening dicom files from remote xml file -->

    <argument>$dicom:get -w "http://localhost:8080/dcm4chee-web/wadoQueries/wado_query3888637380.xml.gz"</argument>


    <!-- Example for opening dicom files from a local folder -->

    <argument>$dicom:get -l "/home/Images/MRIX LUMBAR/"</argument>


    <!-- Example for opening dicom files by embedding the xml file encoded in gzip and then in base64, it must be in one line without space at the beginning -->

    <argument>$dicom:get -i "H4sIAAAAAAAAALVV7Y+aMBz+vr+i6XdLXwDBHHdxpy4mvgX0dvtkOqnaBOGO1qn//RUQnW5uy3JHCC2/1+d5Wsrdw36TgB8iVzJLA0gQhkCkiyyW6SqAW71seBA83H+62/E4m79uR..."</argument>


    <!-- Example for opening dicom files from URLs -->

    <argument>$dicom:get -r "http://server/images/img1.dcm http://server/images/img2.dcm"</argument>

    </application-desc>

    </jnlp>

    ]]

Participate now!

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