I'm writting an application for storing medical records using Blockchain, Ganache and Metamask and when I try to add a pacient or to register as a pacient, I get this error from Metamask saying that it cannot estimate the gas for the transaction. The problem is that the transaction is to large? I am using Ganache for my addresses. I cannot solve this problem. Please help!
Here is my contract: http://remix.ethereum.org/#optimize=false&runs=200&evmVersion=null&version=soljson-v0.8.7+commit.e28d00a7.js