Design and implementation of a generalized laboratory data model