substantial compliance doctrine — Legal Definition, Examples & Cases