implement medicine resource and CRUD with its respective templates