Concepts of quality and safety using structure