To pick Accession Number from field 2 of OBR segment instead of field 18 (as provided in the default hl7-oru2dsr stylesheet), you will have to
only adjust the stylesheet. This can't be passed as HL7 Import Report Template Params.
Use
<!--Accession Number-->
<DicomAttribute tag="00080050" vr="SH">
<Value number="1"><xsl:value-of select="field[2]"/></Value>
</DicomAttribute>
Note :
- If you already have
Vendor Device Data imported in your archive configuration you will have to replace it (Devices -> dcm4chee-arc -> Attributes). (This option will just reload configuration; archive restart is not required)
- Else you may replace the existing stylesheet with your adjusted stylesheet in $WILDFLY_HOME/standalone/tmp/dcm4chee-arc location. (This option requires archive restart)