Fine-grained Access Control for a Blockchain-based Healthcare System