Code to Device Mapping for ORM message in HL7

994 views
Skip to first unread message

maju

unread,
Nov 21, 2013, 1:42:52 PM11/21/13
to dcm...@googlegroups.com
I want to send a ORM^o01 message to Modality work list of DCM4CHEE through HL7 inspactor for test porous. So i find a message like this for test in web

MSH|^~\&|MESA_OF|XYZ_RADIOLOGY|MESA_IM|XYZ_IMAGE_M ANAGER|||ORM^O01|100112|P|2.3.1|||||| ||
PID|||M4000^^^ADT1||KING^MARTIN||19450804|M||WH|82 0 JORIE BLVD^^CHICAGO^IL^60523|||||||20-98-4000|||||||||||||||||||||
PV1||E|ED||||1234^WEAVER^TIMOTHY^P^^DR|5101^NELL^F REDERICK^P^^DR|||||||||||V100^^^ADT1|||||||||||||||||||||||||200008201100|||||||V|
ORC|NW|A100Z^MESA_ORDPLC|B100Z^MESA_ORDFIL||SC||1^ once^^^^S||200008161510|^ROSEWOOD^RANDOLPH||7101^E STRADA^JAIME^P^^DR||(314)555-1212|200008161510||922229-10^IHE-RAD^IHE-CODE-231||
OBR|1|A100Z^MESA_ORDPLC|B100Z^MESA_ORDFIL|P1^Proce dure 1^ERL_MESA^X1_A1^SP Action Item X1_A1^DSS_MESA|||||||||xxx||Radiology^^^^R|7101^ES TRADA^JAIME^P^^DR||XR999999|RP123456|SPS123456|||| MR|||1^once^^^^S|||WALK|||||||||||A|||RP_X1^RP Action Item RP_X1^DSS_MESA
ZDS|1.2.1^100^Application^DICOM

I got the message in modality worklist but in log i found warn and some missing field 

16:52:43,722 WARN  [CodeToDeviceMappingBean] Failed to find device for unkown Protocol Code: X1_A1^DSS_MESA
16:52:43,726 INFO  [ORMService] No Scheduled Station AET - use default: UNKOWN
16:52:43,732 INFO  [ORMService] No Scheduled Station Name - use default: UNKOWN
16:52:43,733 INFO  [ORMService] No SPS Start Date - use current date/time

I think in OBR in 4 no. field which is a "Universal Service ID" , is not configure correctly. how should i fix "CodeToDeviceMappingBean". What i am missing. Any clue pls. Also what should i do to fix Station AET and Station Name. I add full log file.

thanks in advance    



logfile.txt

fleetwoodfc

unread,
Nov 21, 2013, 3:11:18 PM11/21/13
to dcm...@googlegroups.com
DCM4CHEE has the DeviceService

"Device Service. Use the commands in this service to import device mapping files, delete device mappings, delete a specific device, get a list of all devices for a specific protocol, and add the scheduled station name AE title, the name, and the modality to the given SPS items."

So you can create a devices mapping xml file like:

<devices>
  <device name="CT Station 1" modality="CT" aet="CT1">
    <protocol>910910^CT: Chest^DSS_MESA</protocol>
    <protocol>910950^CT: Abdomen^DSS_MESA</protocol>
  </device>
  <device name="MR Station 1" modality="MR" aet="MR1">
    <protocol>911010^MR: Head^DSS_MESA</protocol>
    <protocol>911050^MR: Neck^DSS_MESA</protocol>
  </device>
</devices>

Then import this into the database using the:

jmx-console->service=DeviceService importDeviceMapping() operation.

maju

unread,
Nov 22, 2013, 12:53:25 AM11/22/13
to dcm...@googlegroups.com
Hi fleet
I try to build xml file but when i invoke i got a Exception message like this, 
Exception:javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: XML document structures must start and end within the same entity.

So i search in old forum and find out 2 link 

Here suggest using ZDS for device mapping.
As per instruction i create a sql file for my device table by this quire 

INSERT INTO `device` (`pk`, `station_name`, `station_aet`, `modality`, `version_number`) VALUES
(5, 'CR0007', 'A C J B - AC JOINTS BOTH', 'CR', 0),

then should i add this line in orm2dcm
 <xsl:template match="ZDS">

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

<!-- Scheduled Station Name (set to the same field as 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[2]/text())"/>
</xsl:call-template>

</xsl:template>

Also what should my ZDS will be. is it like 
ZDS|Station_Name|Station_AET|

thanks in advanced.
maju
Reply all
Reply to author
Forward
0 new messages