The Federal Government has confirmed the law will be changed to protect privacy in the My Health Record System following crisis talks last night with the Australian Medical Association.

Amidst concerns police and government agencies could access private health records, Health Minister Greg Hunt says legislative amendments to the online health system will be made that require a court order or warrant in order for documents to be accessed by anyone other than a health professional.

Mr Hunt also announced Australians will be able to withdraw from My Health Record after the opt out period finishes in October and have all their health data deleted.