Move measurements to patient as a detail_route
Refactor graph serialization