SPS status from HL7 //

679 views
Skip to first unread message

Mamisoa Andriantafika

unread,
Aug 19, 2015, 5:27:42 PM8/19/15
to dcm4che
Hi,

How to set new ORM order to the SCHEDULED sps status automatically in the Modality Working List?

Thx, Mike

Armin Berger

unread,
Aug 22, 2015, 4:36:36 AM8/22/15
to dcm4che
Hi Mike!
in ORM Service you can configure the mapping between ORM Order Code and Status in MWL.  Take a look at http://www.dcm4che.org/confluence/display/ee2/ORM+Service
The OrderControlOperationMap gives the ability to use also site specific mappings for HIS/RIS communication.
best regards
armin

Prakash Jayaraman

unread,
Aug 25, 2015, 1:37:11 AM8/25/15
to dcm...@googlegroups.com
You can also set the default SPS status in the stylesheet for HL7 ORM^O01 to DICOM MWL mapping. Path conf/dcm4chee-hl7/orm2dcm.xsl

--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at http://groups.google.com/group/dcm4che.
For more options, visit https://groups.google.com/d/optout.

Alexander Korsukov

unread,
Aug 28, 2015, 7:48:22 AM8/28/15
to dcm...@googlegroups.com
I use

            orc.getOrc1_OrderControl().setValue("XO");
            orc.getOrc5_OrderStatus().setValue("SC");


to create new and update existing MWL record (instead of orc.getOrc1_OrderControl().setValue("NW"); for create new record).

On XO:SC message DCM4CHEE create new record and then update SPS status. On NW, DCM4CHEE only create new record, and dont set SPS status.

David Simic

unread,
Nov 28, 2016, 3:10:39 PM11/28/16
to dcm4che
In dcm4chee's (2.18.x) default config the order status is updated according to the ORC-1 field as mentioned by Alexander. 

The ORC-5 field (which one would think would be used for order status) is completely ignored. I wrote a blog post detailing this as well as how to configure orm2dcm.xml to read the status off of ORC-5 (for better HL7 compliance). Here's the link for anyone interested:



As described there you would need to add:

<xsl:template match="ORC" mode="sps">
    <item>
        <!-- Scheduled Procedure Step Start Date/Time -->
        <xsl:call-template name="attrDATM">
            <xsl:with-param name="datag" select="'00400002'"/>
            <xsl:with-param name="tmtag" select="'00400003'"/>
            <xsl:with-param name="val"
                select="string(field[7]/component[3]/text())"/>
        </xsl:call-template>
        <!-- SPS Status -->
        <xsl:call-template name="attr">
            <xsl:with-param name="tag" select="'00400020'"/>
            <xsl:with-param name="vr" select="'UI'"/>
            <xsl:with-param name="val"
                select="string(field[5]/text())"/>
        </xsl:call-template>
        <!-- End SPS Status -->
        <xsl:apply-templates
            select="following-sibling::OBR[1]" mode="sps"/>
    </item>
</xsl:template>


to conf/dcm4chee-hl7/orm2dcm.xsl. For more details please check out the post.
Reply all
Reply to author
Forward
0 new messages