Hello,
Yes, file is located in this directory, I haven't moved it.
I have been working on my ORM HL7 message and orm2dcm.xsl file. I have changed some fields in this file according to my ORM message, also I have added some additional fields like Scheduled Station AETitle and Station name from HL7 ORM message to be added to worklist. I am now working with Thai names so I also have changed to TIS-620 encoding, everything is working fine and creates a worklist.
However when I am adding this line <xsl:with-param name="val" select="java:org.dcm4che2.util.UIDUtils.createUID($suid-prefix)"/> I am getting the ERROR.
If I leave as it was <xsl:with-param name="val" select="string(field[1]/text())"/> it creates a worklist with Study Instance UID from ZDS.1 value 1.2.1
Here is my HL7 ORM message I am working:
MSH|^~\&|HIS|PACS||Pacs|20211005172132||ORM^O01|2016072814051461543|1|2.3||||||UTF-8
PID|1||PatientID||ชื่อทดสอบ^นามสกุลเอี่ยมอ่ง||19550119|M|
PV1|1|O||||||5101^RefDocLastName^RefDocFirstName^P^^DR|||||||||||
ORC|NW|ACCNUM||AETITLE|||R|
OBR|1|||ProcedureID^Req Procedure Description^^SchedProcStepID^Scheduled Procedure Description||||||||||||7101^ReqDocLastName^ReqDocFirstName^P^^DR||||||||||||||||||||202204011030||||||||1^DX|||
ZDS|1.2.1^100^Application^DICOM||||
I don't have this variable $suid-prefix, so I also tried to use such lines <xsl:with-param name="val" select="java:org.dcm4che2.util.UIDUtils.createUID()"/> , <xsl:with-param name="val" select="UIDUtils.createUID()"/> , <xsl:with-param name="val" select="createUID()"/> but none of these works.
When I tried with this line: <xsl:with-param name="val" select="java:org.dcm4che2.util.UIDUtils.createUID($suid-prefix)"/>
In server.log I see that java is not declared:
C:\dcm4chee-2.18.1-mysql\server\default\conf\dcm4chee-hl7\orm2dcm.xsl failed:
javax.xml.transform.TransformerConfigurationException: Namespace prefix 'java' is undeclared.
Then I tried with <xsl:with-param name="val" select="org.dcm4che2.util.UIDUtils.createUID()"/>
It shows such error in server.log:
STDERR] FATAL ERROR: 'Error checking type of the expression 'funcall(org.dcm4che2.util.UIDUtils.createUID, [])'.'
So I am confused how I can call UIDUtils.createUID() to generate a Study Instance UID?
I am also attaching orm2dcm.xsl file.
Thanks.