Вот смарт-контракт.
pragma solidity ^0.4.8;
contract RecordCreation {
uint public count;
mapping (address => string) public usertype;
struct Patientdetails{
}
Patientdetails[] public patientdetails;
mapping (address => uint[]) public PatientDocuments;
function RecordCreation(){
}
//Function user type definition
function userDefinition(string utype1) payable returns(bool result) {
}
//Data Submission Function
function patientDataSubmission() payable returns (bool result){
}
//Documents Count Retrieval Function for a Patient
function countOfDataSubmission(address patientaddress) payable returns (uint result){
}
function getPatientsCount(address patientaddress)
constant returns (uint count) {
}
}
Как я могу определить контракт для варианта использования - у пациента есть любое количество документов?
Похоже, вы стремитесь к этому: https://medium.com/@robhitchens/enforcing-referential-integrity-in-ethereum-smart-contracts-a9ab1427ff42 .
Роб Хитченс
Крисси Мариам Роберт
Крисси Мариам Роберт
Роб Хитченс
Крисси Мариам Роберт
Роб Хитченс