This section demonstrates research data management with consent and provenance tracking, supporting academic institutions and clinical research organizations.
- End Users (Participants): Understand research consent rights
- Developers: Learn research data integration patterns
- Researchers: Implement consent-based data collection
- IRB/Ethics Boards: Audit consent compliance
- Research Institutions: Multi-site collaboration
- Common Rule (45 CFR 46): US federal research regulations
- GDPR: EU data protection for research
- HIPAA: Healthcare research requirements
- ICH-GCP: International clinical trial standards
- Belmont Report: Ethical principles
- Documented informed consent with timestamps
- Data anonymization tracking
- Multi-institution data sharing with consent
- Participant withdrawal support
- Complete audit trail for IRB review
Participant consent for research study.
npx hardhat run examples/05-research/01-study-enrollment.ts --network localhostScenario:
Participant enrolls in study:
├── Informed consent process
├── Consent for specific study procedures
├── Optional consent for future use
└── Right to withdraw at any time
Demonstrates:
- Multi-purpose research consent
- Study-specific consent tracking
- Withdrawal workflow
Track data de-identification for research.
npx hardhat run examples/05-research/02-data-anonymization.ts --network localhostScenario:
Data preparation for research:
├── Identifiable data collected
├── De-identification process
├── Transformation recorded
└── Anonymized data for analysis
Demonstrates:
- Data transformation tracking
- Anonymization provenance
- Linked data lineage
Cross-organization research data sharing.
npx hardhat run examples/05-research/03-multi-institution.ts --network localhostScenario:
Multi-site clinical trial:
├── Participant consent at Site A
├── Data shared with coordinating center
├── Analysis by collaborating institution
└── All access tracked
Demonstrates:
- Cross-institution consent
- Data sharing agreements
- Multi-party access logging
Consent for research findings publication.
npx hardhat run examples/05-research/04-publication-consent.ts --network localhostScenario:
Publishing research results:
├── Data analysis complete
├── Request consent for publication
├── Consent for case study publication
└── Acknowledgment in publication
Demonstrates:
- Secondary use consent
- Publication authorization
- Consent verification before publication
┌─────────────────────────────────────────────────────────────────┐
│ Research Data Workflow │
├─────────────────────────────────────────────────────────────────┤
│ │
│ ┌────────────┐ ┌───────────────┐ ┌─────────────────┐ │
│ │Participant │────▶│Informed Consent│────▶│ ConsentReceipt │ │
│ └────────────┘ └───────────────┘ └─────────────────┘ │
│ │ │ │
│ ▼ ▼ │
│ ┌────────────┐ ┌───────────────┐ ┌─────────────────┐ │
│ │ Researcher │────▶│ Collect Data │────▶│ DataProvenance │ │
│ └────────────┘ └───────────────┘ └─────────────────┘ │
│ │ │ │
│ ▼ ▼ │
│ ┌────────────┐ ┌───────────────┐ ┌─────────────────┐ │
│ │ Lab │────▶│ De-identify │────▶│ Transformation │ │
│ └────────────┘ └───────────────┘ │ Tracking │ │
│ │ └─────────────────┘ │
│ ▼ │ │
│ ┌────────────┐ ┌───────────────┐ ┌─────────────────┐ │
│ │Collaborator│────▶│ Access Data │────▶│ AuditLog │ │
│ └────────────┘ └───────────────┘ └─────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────┘
| Function | Contract | Purpose |
|---|---|---|
| Study consent | ConsentReceipt | Informed consent records |
| Data collection | IntegratedSystem | Consent-verified registration |
| Anonymization | DataProvenance | Transformation tracking |
| Sharing | DataProvenance | Access logging |
| Audit | ConsentAuditLog | IRB compliance |
| Requirement | System Feature |
|---|---|
| Informed Consent | KantaraConsentReceipt with full disclosure |
| Voluntary Participation | Easy withdrawal via revokeConsent |
| Minimization | Purpose-specific consent |
| Transparency | getUserConsents for participant access |
| Accountability | Complete audit trail |
| Consent Type | Description | Duration |
|---|---|---|
| Study Participation | Core research activities | Study duration |
| Data Collection | Specific data types | As specified |
| Sample Storage | Biospecimen banking | Long-term |
| Future Research | Broad consent | Indefinite |
| Publication | Case study/results | One-time |
After completing these examples, explore:
- Healthcare - Clinical research patterns
- Compliance & Audit - IRB audit support
- Advanced Patterns - Delegated consent (guardians)