patient api finished without json serialization