An ethics code for pain