The data would be useful for tracking spending on alcohol or cigarettes and may be used to inform healthy living campaigns, it has been suggested.
The idea is an example of an ambitious Scottish Government plan to share more data between the public, private and voluntary sectors for research purposes.
This could involve bodies ranging from the NHS, police and local councils to pharmaceutical companies, retailers, and children's and health charities.
The data, which will be accessed on an anonymous basis, could be used for research....