# DynamiChain: Development of Medical Blockchain Ecosystem Based on Dynamic Consent System
## 3 Proposed System
### Dynamic Consent Algorithm  
Medical data is an intangible asset that requires time and effort from a medical institution or individual. It is intertwined with users, service providers, data carriers, etc., requiring a consent system algorithm that all participants can intuitively understand and agree on. To meet these needs, this paper applied the dynamic consent concept on a new customized consent system, called \"dynamic consent algorithm\". The system is tailored to the individual user's taste, minimizing the user's resistance to data disclosure. Furthermore, by implementing this dynamic consent algorithm in the chaincode mentioned in Section 4, this paper developed a consent system algorithm that is transparent and integrated to all \begin{table}
\begin{tabular}{c l} \hline \hline
**Function Classification** & \multicolumn{1}{c}{**Function Contents**} \\ \hline \multirow{4}{*}{Data Provider’s App} & Basic account functions (log in, create account, etc.) \\  & My examination history ledger \\  & My examination data (raw data and statistical data) \\  & Dynamic consent rule settings \\ \hline \multirow{4}{*}{Data Utilizer’s App} & Basic account functions \\  & Input health examination results data function \\  & Data provider list management \\  & Data providers’ examination history management ledger \\  & Data providers’ examination data sharing usage history management ledger \\  & Request for data provider data function \\  & Data provider data request management function (applicable and non-applicable) \\ \hline \multirow{3}{*}{Blockchain System} & Health examination data hash storage function \\  & Sync smart contract with real-time dynamic consent function settings \\  & Smart contract and blockchain ledger \\ \hline \multirow{3}{*}{Blockchain Admin Web} & Channel management \\  & Peer node management \\ \cline{1-1}  & User account management \\ \cline{1-1}  & Blockchain data sharing history ledger management \\ \hline \hline \end{tabular}
\end{table} 
Table 1: Specific system function list. participants in the consensus operation of the blockchain. Our proposed dynamic consent algorithm includes data type, approval duration, and objectives (Figure 2). The term data type refers to data providers setting the type of data they wish to provide to other data utilizers. Data providers can choose from three data types: Data derived basically, out-of-hospital-level tests, and data derived from hospital-level tests. For example, basic data refer to social demographic data, such as age, sex, and address. Out-of-hospital tests refer to basic health tests that data providers can easily achieve through home healthcare devices, such as thermometers, InBody tests, or other healthcare-related devices. On the other hand, data obtained from hospital-level tests are more in-depth because data providers can only achieve such data when they visit the hospital. The specific contents of these three classifications are shown in Table 2.  
Approval duration refers to data providers setting the exposure duration of their personal medical data to other data utilizers. By default, data providers can simply select 6 months, 12 months, or unlimited duration. This can always be changed by accessing the system settings.