forked from wishonia/wishonia
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add drug registration process and new treatment pages
Introduce a new Decentralized Clinical Trial Drug Registration Process using Mermaid for visualization. Additionally, add new placeholder pages for treatment conditions and a list view for fetching conditions in the DFDA app.
- Loading branch information
Showing
5 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
"use client" | ||
import React from 'react' | ||
|
||
|
||
|
||
export default function ConditionPage() { | ||
|
||
return ( | ||
<div className="container mx-auto px-4 py-8 space-y-8"> | ||
|
||
</div> | ||
) | ||
} |
9 changes: 9 additions & 0 deletions
9
app/dfda/conditions/[conditionName]/treatements/[treatmentName]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
"use client" | ||
import React from 'react' | ||
export default function TreatmentForConditionPage() { | ||
return ( | ||
<div className="container mx-auto px-4 py-8 space-y-8"> | ||
TODO: Implement this page | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"use client" | ||
import React from 'react' | ||
import { fetchConditions } from '../dfdaActions' | ||
export default async function ConditionListPage() { | ||
|
||
const conditions = await fetchConditions() | ||
return ( | ||
<div className="container mx-auto px-4 py-8 space-y-8"> | ||
<h1 className="text-2xl font-bold">Conditions</h1> | ||
<ul> | ||
{conditions.map((condition) => ( | ||
<li key={condition.id}>{condition.name}</li> | ||
))} | ||
</ul> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export function slugify(text: string): string { | ||
return text | ||
.toLowerCase() | ||
.replace(/[^a-z0-9]+/g, '-') | ||
.replace(/^-+|-+$/g, '') | ||
.replace(/^(\d)/, 'n$1'); // Prepend 'n' if slug starts with a number | ||
} |
18 changes: 18 additions & 0 deletions
18
public/globalSolutions/dfda/decentralized-clinical-trial-drug-registration-process.mermaid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
graph TD | ||
A["Login to company account"] --> B["Click 'Register New Drug'"] | ||
B --> C["Enter drug information"] | ||
C --> D["Upload documentation"] | ||
D --> E["AI generates study protocols"] | ||
E --> F{"Review and approve protocols"} | ||
F -->|"Approved"| G["System submits for regulatory review"] | ||
F -->|"Needs adjustment"| E | ||
G --> H["Begin participant recruitment"] | ||
H --> I["Receive enrollment updates"] | ||
I --> J["Ship drug to pharmacies/participants"] | ||
J --> K["System manages trial logistics"] | ||
K --> L["Monitor trial progress"] | ||
L --> M{"Trial complete?"} | ||
M -->|"No"| L | ||
M -->|"Yes"| N["System generates final report"] | ||
N --> O["Receive final report"] | ||
O --> P["Make development decisions"] |