Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 0 additions & 51 deletions webapp/src/components/Explanation.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,58 +27,7 @@ const Explanation = () => {
</div>
</div>

{/* Query Interface */}
<div className="explanation-grid fade-in">
<div className="explanation-text">
<h3>Intuitive Query Interface</h3>
<p>Write complex MIMIC database queries using natural language or SQL. Our intelligent interface provides auto-completion, syntax highlighting, and query optimization suggestions.</p>
<div className="code-snippet">
<span className="comment"># Natural language query example</span><br/>
<span className="keyword">import</span> m3<br/>
<br/>
<span className="comment"># Connect to MIMIC database</span><br/>
db = m3.connect(<span className="string">"mimic-iv"</span>)<br/>
<br/>
<span className="comment"># Query ICU patients with specific conditions</span><br/>
results = db.query(<span className="string">"Show me ICU patients with sepsis in 2019"</span>)
</div>
<ul className="explanation-features">
<li>Natural language processing</li>
<li>SQL auto-completion</li>
<li>Query optimization</li>
<li>Result visualization</li>
</ul>
</div>
<div className="screenshot-container">
<svg width="100%" height="300" viewBox="0 0 600 300" style={{background: '#1a1a1a'}}>
<rect width="100%" height="100%" fill="#1a1a1a"/>
<rect x="0" y="0" width="600" height="30" fill="#2d3748"/>
<circle cx="15" cy="15" r="6" fill="#ff5f57"/>
<circle cx="35" cy="15" r="6" fill="#ffbd2e"/>
<circle cx="55" cy="15" r="6" fill="#28ca42"/>
<text x="80" y="20" fontFamily="Arial" fontSize="12" fill="white">m3 Query Terminal</text>

<text x="20" y="60" fontFamily="Courier New" fontSize="14" fill="#68d391"># Connect to MIMIC-IV</text>
<text x="20" y="85" fontFamily="Courier New" fontSize="14" fill="#63b3ed">from</text>
<text x="70" y="85" fontFamily="Courier New" fontSize="14" fill="white">m3</text>
<text x="95" y="85" fontFamily="Courier New" fontSize="14" fill="#63b3ed">import</text>
<text x="150" y="85" fontFamily="Courier New" fontSize="14" fill="white">Database</text>

<text x="20" y="110" fontFamily="Courier New" fontSize="14" fill="white">db = Database(</text>
<text x="120" y="110" fontFamily="Courier New" fontSize="14" fill="#f6ad55">"mimic-iv"</text>
<text x="190" y="110" fontFamily="Courier New" fontSize="14" fill="white">)</text>

<text x="20" y="145" fontFamily="Courier New" fontSize="14" fill="#68d391"># Query patient data</text>
<text x="20" y="170" fontFamily="Courier New" fontSize="14" fill="white">results = db.query(</text>
<text x="20" y="195" fontFamily="Courier New" fontSize="14" fill="#f6ad55"> "SELECT * FROM patients WHERE age &gt; 65"</text>
<text x="20" y="220" fontFamily="Courier New" fontSize="14" fill="white">)</text>

<rect x="20" y="240" width="2" height="18" fill="#0052ff">
<animate attributeName="opacity" values="1;0;1" dur="1s" repeatCount="indefinite"/>
</rect>
</svg>
</div>
</div>

{/* Data Visualization */}
<div className="explanation-grid fade-in">
Expand Down