Im writing a simple smart contract to store and retrieve data of series of patients' name and blood group with an id using mapping function in solidity. I don't know the commands to interact with the deployed contract via truffle console. Anyone please write me the truffle console commands to interact with this contract. I'm using solidity version of 0.5.0.
pragma solidity ^0.5.0;
contract PatientDB {
mapping (uint => patient) public patient_db;
struct patient {
string name;
string blood;
}
function addPatient (uint _id, string memory _name, string memory _blood) public {
patient_db[_id] = patient (_name, _blood);
}
}