add measure to patient api working