public override bool ProcessContract(ParticipantHandler participantHandler, List <Chain> chains) { if (ValidateContextual(participantHandler, chains)) { var k = participantHandler.CountSimilarPatients(Country, Region, Birthyear); if (k < 3) { throw new TransactionParkedException(); } else { participantHandler.AddPatient(new Patient() { Address = TransactionId , Country = Country , Region = Region , Birthyear = Birthyear }); return(true); } } return(false); }