Hello,
You miight not need my solution anymore. I came across the same problem as you ( AE Title and Station Name are both "UNKNOWN").
I use DCM4CHE 2.18.3 on Windows 10 using WAMP 3.2.3
The following method resolved my problem (I was able to specity the content of AE Title and the content of Station Name in the DCM4CHE MWL ).
1) Firstly download this file
Over write your current orm2dcm.xls (make a backup first).
For me the file is here:
server\default\conf\dcm4chee-hl7\orm2dcm.xl
2)
You wil notice the author of the HL7Sender file made changes to the end bit of the file.
I further made changes so it looks like this:
<!-- Add part by support Modality Station NAME&Station AE Title for
mato...@gmail.com -->
<xsl:template match="ZDS" mode="sps">
<!-- Station AE Title -->
<xsl:call-template name="attr">
<xsl:with-param name="tag" select="'00400010'"/>
<xsl:with-param name="vr" select="'AE'"/>
<xsl:with-param name="val" select="string(field[1]/component[2]/text())"/>
</xsl:call-template>
<!-- Scheduled Station Name (set to same field as AE Title)-->
<xsl:call-template name="attr">
<xsl:with-param name="tag" select="'00400001'"/>
<xsl:with-param name="vr" select="'AE'"/>
<xsl:with-param name="val" select="string(field[1]/component[3]/text())"/>
</xsl:call-template>
</xsl:template>
<!-- Add part end -->
</xsl:stylesheet>
3)
You'll notice the lines:
<xsl:with-param name="val" select="string(field[1]/component[2]/text())"/>
and
<xsl:with-param name="val" select="string(field[1]/component[3]/text())"/>
are mine.
4)
MSH|^~\&|MESA_OF|XYZ_RADIOLOGY|MESA_IM|XYZ_IMAGE_MANAGER|||ORM^O01|103106|P|2.3.1|||||| ||
PID|||583295^^^ADT1||DOE^J1||20011230|M||WH||||||||20983295|||||||||||||||||||||
PV1||E||||||5101^NELL^FREDERICK^P^^DR|||||||||||V103-1^^^ADT1|||||||||||||||||||||||||200007010800|||||||V|
ORC|NW|A103Z^MESA_ORDPLC|B103Z^MESA_ORDFIL||||1^once^^^^S||200007010900|^ROSEWOOD^RANDOLPH||7101^ESTRADA^JAIME^P^^DR||
(314)555-1212|200007010900||922229-10^IHE-RAD^IHE-CODE-231||
OBR|1|A103Z^MESA_ORDC|B103Z^MESA_ORDFIL|A^C^B^LEFT^SHOULDER^D|||||||||xxx||Radiology^^^^R|7101^ESTRADA^JAIME^P^^DR||MOF5026|RP1026|SPS2032||||MR|||1^once^^^^S|||WALK|||||||||||A|||P1^Procedure 1^ERL_MESA
ZDS|1.2.826.0.1.3680043.9.6467.0.1476185012461.0^AETitle^StationName^KKK|ABCDE^FGHIJK
The result you will see on DCM4CHE MWL next is the AE Title is now called "KKK",
the Station Name is called "StationName".
The job's SUID is 1.2.826.0.1.3680043.9.6467.0.1476185012461.0
5) If you like you can probable change component[2] to component[1]
and component [3] to component[2]
to make the ZDS more compact.
Hope this helps.
6) By the way, for those who need help change SPS status, try these:
SET SPS STATUS to 'SCHEDULED'
ORC|XO(SC)|1|||||1^0^60^20161012040000
SET SPS STATUS to 'ARRIVED'
MSH|^~\&|MESA_OF|XYZ_RADIOLOGY|MESA_IM|XYZ_IMAGE_MANAGER|||ADT^A10|103106|P|2.3.1|||||| ||
SET SPS STATUS to 'STARTED'
ORC|SC(IP)|1|||||1^0^60^20161012040000
SET SPS STATUS to 'COMPLETED'
ORC|XO(CM)|1|||||1^0^60^20161012040000
CANCEL THE JOB
ORC|CA|A103Z^MESA_ORDPLC|B103Z^MESA_ORDFIL||SC||1^once^^^^S|