An integrated framework for securing semi-structured health records