Hi Marcel,
I have a problem with Lua Script. I dont know why i can't to make this work.
Am using ubuntu 14 x64 y apache 2.4.7.
In my cgi-bin directory, this files exists:
acrnema.map
dgate
dicom.ini
dicom.sql
sample.lua
The apache conf file, have this
Inside dicom.ini, i put this:
This is the url to navigate : http://192.168.1.22:8080/cgi-bin/dgate?mode=sample
this is the contents of sample.lua
HTML('Content-type: text/html\n\n')print([[<!DOCTYPE html>]])print([[<html>]])print([[<head> <title>sample 1</title> <meta charset="UTF-8"/></head>]])print([[<body>]])b=newdicomobject(); b.PatientName = '*'; a=dicomquery('CONQUESTSRV1', 'PATIENT', b);print('patientname: ',a[0].PatientName);print('ACR: ', get_amap(0),[[</br>]])print([[</body>]])print([[</html>]])
and when browsing the website, this is the source from the page
QuoteDisplay More<!DOCTYPE html>
<html>
<head>
<title>sample 1</title>
<meta charset="UTF-8"/>
</head>
<body>
in the command line i run this
and serverstatus.log show this
QuoteDisplay MoreWed Mar 30 14:13:01 2016 Server command sent using DGATE -- option
Wed Mar 30 14:13:01 2016 <!DOCTYPE html>
Wed Mar 30 14:13:01 2016 <html>
Wed Mar 30 14:13:01 2016 <head>
<title>sample 1</title>
<meta charset="UTF-8"/>
</head>
Wed Mar 30 14:13:01 2016 <body>
Wed Mar 30 14:13:01 2016
Wed Mar 30 14:13:01 2016 UPACS THREAD 21: STARTED AT: Wed Mar 30 14:13:01 2016
Wed Mar 30 14:13:01 2016 Calling Application Title : "CONQUESTSRV1 "
Wed Mar 30 14:13:01 2016 Called Application Title : "CONQUESTSRV1 "
Wed Mar 30 14:13:01 2016 Application Context : "1.2.840.10008.3.1.1.1", PDU length: 16384
Wed Mar 30 14:13:01 2016 Presentation Context 0 "1.2.840.10008.5.1.4.1.2.1.1" 1
Wed Mar 30 14:13:01 2016 (PatientRootQuery) search level: PATIENT
Wed Mar 30 14:13:01 2016 C-Find (PatientRoot) located 1 records
Wed Mar 30 14:13:01 2016 UPACS THREAD 21: ENDED AT: Wed Mar 30 14:13:01 2016
Wed Mar 30 14:13:01 2016 UPACS THREAD 21: TOTAL RUNNING TIME: 0 SECONDS
Wed Mar 30 14:13:01 2016 patientname: XXXXX.
Wed Mar 30 14:13:01 2016 ACR: DICOMSRV001 </br>
Wed Mar 30 14:13:01 2016 </body>
Wed Mar 30 14:13:01 2016 </html>
i run this to
and return
Quotepatientname: XXXXXXXX.
apparently, some error occurs with cgi, since HTML code is shown truncated.
what is i need to configure that LUA work correctly?
help me, please..
Regards,
James.