The Scottish Patient Safety Programme in Primary Care has been awarded £450,000 over two years to test a scheme that aims to boost communication between GPs and pharmacists.
It will be evaluated by NHS Education for Scotland and Strathclyde University.
It is hoped the new scheme will reduce the risk of harm to patients through issues such as prescribing discrepancies, which can happen when patients are discharged from hospital.
The programme will be tested over two years by three NHS boards, in both rural and urban areas across the country, which are still to be decided.
It will be evaluated to see if it is effective enough to be rolled out across Scotland.