[OE-3450] fixed patient shortcode expansion bug