edit patient working