Select the objects that you wish to see in the downloaded PDF
S %DT="ETX" D ^%DT S X=Y K:Y<1 X
This field identifies the discharge date.
K:$L(X)>40!($L(X)<1) X
ANSWER MUST BE 1-40 CHARACTERS IN LENGTH