PK.NOTEKEY
@HDR,
IF{/CONF[.notes.nursing.cats] %PK.NURNKEY("N",.notes.nursing.cats)},
IF{/CONF[.notes.depts] %PK.DEPTKEY("D",.notes.depts)},
@TRLR,
END;

HDR
"<?xml version="_D(34)_1.0_D(34)_" ?>"^!,
"<ReplyMessage>"^!,
"<TransactionId>"_1234_"</TransactionId>"^!,
"<Status>Success</Status>"^!,
"<Payload>"^!

TRLR
"</Payload>"^!,
"</ReplyMessage>"^!
