laboratory context parsing