Algorithm 2 Health record search. |
Input: SearchQuery, Blockchain Output: MatchingRecords Initialization:; MatchingRecords←Empty list; Procedure:; block in Blockchain record in block record matches SearchQuery MatchingRecords.append(record) Return MatchingRecords |