Deal sets out pharmacare framework and will cover contraception, diabetes treatment