lock var_sex for some procedures
fixed post-op DX
merged