Skip to content

Instantly share code, notes, and snippets.

@zaryab2000
Created June 14, 2020 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zaryab2000/055caac1115386a3f0f7f58ab40bf314 to your computer and use it in GitHub Desktop.
Save zaryab2000/055caac1115386a3f0f7f58ab40bf314 to your computer and use it in GitHub Desktop.
struct Patient{
uint256 time;
uint256 insuranceAmount;
uint256 donatedAmount;
string name;
string disease;
string doctorName;
string ipfsHash;
address doctorAddress;
address patientID;
bool pidAvailable;
bool doctorSignature;
}
struct Doctor{
address docAdress;
string docName;
string docSpecialization;
}
struct withdrawHistory{
address pid;
string doctorName;
uint256 time;
uint256 amount;
string patientName;
}
struct donationHistory{
address pid;
address donorAddress;
uint256 time;
uint256 amount;
string patientName;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment