Schedule Station AE Title & Schedule Station Name UNKNOWN

1,753 views
Skip to first unread message

mathieudesro

unread,
Mar 20, 2017, 10:20:44 AM3/20/17
to dcm4che
Hello dcm4chee,

Hello dcm4chee,

I try to create a MWL via an hl7 message. All fields in the ORM message work as expected but Schedule Station AE title (0040,0001) &  Shedule Station Name (0040,0010) are always set to UNKNOWN.


This seem's to be related to a change in configuration between's dcm4chee-2 & version 5.  Maybe it's because I do not to configure an HL7 Application (?) under device mmr-console. I see a hl7ApplicationName = * in ldap for device dcm4chee-arc. I can't replicate that hl7Application  for device mmr-console.

I failed to set the field "Application|Facility name of accepted Sending Application" if I try to create a "HL7 Application" and assign it to device mmr-console.  Receive the error message : IllegalArgumentException:   protocol !=HL7 - DICOM

Can someone point me into the right direction?


Great Thanks.



MSH|^~\&|||DCM4CHEE||||ORM^O01||T|2.3
PID|1||93||test_12||20020327|FEMALE||||||||||||
PV1|1|ER|ER1|||||||||||||||||||||||||||||
ORC|NW||||SC||20170323153000.0|20170324153000.0||
OBR|1|||78099^head^MR_PET^78099||||||||||||||test|head MR_PET|93|bic-is|||MR|mmr-console||||||
ZDS|93|1.65|55.00|mmr-console|Royal Ottawa Hospital||


Mapping Seem's fine 

  <xsl:template match="OBR" mode="sps">
    <!-- Modality -->
    <xsl:call-template name="attr">
      <xsl:with-param name="tag" select="'00080060'"/>
      <xsl:with-param name="vr" select="'CS'"/>
      <xsl:with-param name="val" select="string(field[24]/text())"/>
    </xsl:call-template>


    <!-- Scheduled Station 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[25]/text())"/>
    </xsl:call-template>
...


and Have a nice day






vrinda...@j4care.com

unread,
Mar 20, 2017, 10:43:14 AM3/20/17
to dcm4che

mathieudesro

unread,
Mar 20, 2017, 12:58:32 PM3/20/17
to dcm4che
dn: cn=mmr-console Scheduled Station,dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
objectClass: hl7OrderScheduledStation
cn: mmr-console Scheduled Station
hl7OrderScheduledStationDeviceReference: dicomDeviceName=mmr-console,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org dcmProperty: ScheduledProcedureStepSequence.Modality=MR dcmRulePriority: 1

dn: dicomDeviceName=mmr-console,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
objectClass: dcmDevice
objectClass: dicomDevice
dicomDeviceName: mmr-console
dicomInstalled: TRUE
dicomManufacturer: Siemens
dicomSoftwareVersion: VB20P
dicomStationName: mmr-console

dn: cn=mmr-console,dicomDeviceName=mmr-console,cn=Devices,cn=DICOM Configura
tion,dc=dcm4che,dc=org
objectClass: dcmNetworkConnection
objectClass: dicomNetworkConnection
dicomHostname: 172.31.156.46
cn: mmr-console
dicomPort: 104

dn: dicomAETitle=mmr-console,dicomDeviceName=mmr-console,cn=Devices,cn=DICOM
Configuration,dc=dcm4che,dc=org
objectClass: dcmNetworkAE
objectClass: dicomNetworkAE
dicomAETitle: mmr-console
dicomAssociationAcceptor: TRUE
dicomAssociationInitiator: TRUE
dicomNetworkConnectionReference: cn=mmr-console,dicomDeviceName=mmr-console,
cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org

mathieudesro

unread,
Mar 20, 2017, 1:06:43 PM3/20/17
to dcm4che
Seem's to work fine now after I reload the JBOSS server ????


Thank for the info  and have A nice day.

--

Mathieu


On Monday, March 20, 2017 at 10:43:14 AM UTC-4, vrinda...@j4care.com wrote:

vrinda...@j4care.com

unread,
Mar 21, 2017, 5:23:29 AM3/21/17
to dcm4che
Hello,

Any changes you make in LDAP will take effect only after you reload the configuration from Control tab in Archive UI (if you want to avoid restarting JBoss server)

George Wang

unread,
Nov 3, 2021, 2:00:37 AM11/3/21
to dcm4che
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) 
Then you can test out the following sample HL7 message  (using something like HAPI Test Panel if you like  (  download from here  https://hapifhir.github.io/hapi-hl7v2/  )  ) : 

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|


Reply all
Reply to author
Forward
0 new messages