An API to support the manual collection of phenotypic data on a portable device