This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.6.0; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol"; | |
contract HealthCareStore is Ownable{ | |
uint public pidCount; | |
uint public withdrawCount; | |
uint public doctorCount; | |
uint public donorCount; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Patient{ | |
uint256 time; | |
uint256 insuranceAmount; | |
uint256 donatedAmount; | |
string name; | |
string disease; | |
string doctorName; | |
string ipfsHash; | |
address doctorAddress; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract HealthCareStore is Ownable{ | |
uint public pidCount; | |
uint public withdrawCount; | |
uint public doctorCount; | |
uint public donorCount; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doctorSign(address _pid) public{ | |
require(doctorList[msg.sender]); | |
patientList[_pid].doctorSignature = true; | |
patientList[_pid].doctorAddress = msg.sender; | |
patientList[_pid].doctorName = doctorDetailList[msg.sender].docName; | |
} | |
NewerOlder