Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
HIAST-Clinics
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
almohanad.hafez
HIAST-Clinics
Commits
65713e1b
Commit
65713e1b
authored
Aug 26, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(B) Fix medicines seed
parent
f09c96b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
67 deletions
+53
-67
SeedMedicines.cs
...ckend/Persistence/SeedDatabase/Medicines/SeedMedicines.cs
+52
-66
VisitsController.cs
Clinics.Backend/Presentation/Controllers/VisitsController.cs
+1
-1
No files found.
Clinics.Backend/Persistence/SeedDatabase/Medicines/SeedMedicines.cs
View file @
65713e1b
...
@@ -25,73 +25,59 @@ public class SeedMedicines : ISeedMedicines
...
@@ -25,73 +25,59 @@ public class SeedMedicines : ISeedMedicines
if
(
currentSize
==
0
)
if
(
currentSize
==
0
)
{
{
List
<
Medicine
>
medicines
=
new
();
List
<
Medicine
>
medicines
=
new
();
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Cetamol"
,
500
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Cetamol"
,
500
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Paracetamol"
,
325
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Paracetamol"
,
325
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Cough Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Cetamol"
,
325
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Ibuprofen"
,
200
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Ceatcodaen"
,
325
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Aspirin"
,
100
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Cetaprofin"
,
325
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Children's Cough Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Cetacold"
,
325
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Amoxicillin"
,
500
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Cetagrape"
,
325
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Azithromycin"
,
250
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Cough"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Antibiotic Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
12
,
"Aspirin"
,
500
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Metformin"
,
500
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
120
,
"Pediatric"
,
60
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Atorvastatin"
,
20
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
8
,
"Amoxicillin"
,
250
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Cough and Cold Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
150
,
"Acetaminophen"
,
160
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Omeprazole"
,
20
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
15
,
"Ibuprofen"
,
400
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Ranitidine"
,
150
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Loratadine"
,
10
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Antacid Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
200
,
"Vitamin D"
,
400
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Levofloxacin"
,
500
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
30
,
"Nurofen"
,
200
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Ciprofloxacin"
,
250
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
120
,
"Antihistamine"
,
5
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Antibiotic Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
14
,
"Claritin"
,
10
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Doxycycline"
,
100
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
150
,
"Flu"
,
100
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Tetracycline"
,
250
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Panadol"
,
500
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Antibiotic Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Ibuprofen"
,
100
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Prednisone"
,
20
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
16
,
"Spirin"
,
100
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Hydrocortisone"
,
10
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
180
,
"Cough Suppressant"
,
60
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Steroid Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
18
,
"Cetal"
,
500
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Lisinopril"
,
10
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
120
,
"Tuskan"
,
120
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Enalapril"
,
5
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
12
,
"Naproxen"
,
250
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Blood Pressure Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Bronchicum"
,
150
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Simvastatin"
,
20
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
14
,
"Fenistil"
,
5
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Atorvastatin"
,
10
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Fenistil"
,
30
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Cholesterol Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Diclofenac"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Albuterol"
,
2
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
125
,
"Amoclan"
,
250
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Ipratropium"
,
2
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
12
,
"Zinnat"
,
250
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Asthma Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
200
,
"Novalgin"
,
500
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Rabeprazole"
,
20
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
15
,
"Milga"
,
250
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Omeprazole"
,
20
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
150
,
"Multivitamin"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Antacid Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
18
,
"Trifluor"
,
250
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Citalopram"
,
20
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Zithromax"
,
200
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Fluoxetine"
,
20
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Ferrotron"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Antidepressant Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Feroglobin"
,
100
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Amlodipine"
,
5
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
16
,
"Farcolin"
,
200
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Lisinopril"
,
10
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
120
,
"Clindamycin"
,
300
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Blood Pressure Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
12
,
"Trimed Flu"
,
325
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Metoprolol"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
150
,
"Prospan"
,
100
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Propranolol"
,
20
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Omeprazole"
,
40
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Heart Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
200
,
"Lactulose"
,
15
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Warfarin"
,
5
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
18
,
"Tavanic"
,
500
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Aspirin"
,
100
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Ventolin"
,
2
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Blood Thinner Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Losartan"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Furosemide"
,
40
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
120
,
"Promax"
,
100
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Hydrochlorothiazide"
,
25
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
12
,
"Nurofen Cold & Flu"
,
200
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Diuretic Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
150
,
"Guava"
,
60
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Spironolactone"
,
25
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
8
,
"Profenid"
,
150
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Triamterene"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Depakine"
,
200
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Diuretic Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Allopurinol"
,
100
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Colchicine"
,
6
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Gout Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Glipizide"
,
5
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Metformin"
,
500
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Diabetes Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Lorazepam"
,
1
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Alprazolam"
,
5
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Anxiety Syrup"
,
50
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
20
,
"Zolpidem"
,
5
));
medicines
.
Add
(
new
Medicine
(
0
,
Tablet
,
10
,
"Eszopiclone"
,
2
));
medicines
.
Add
(
new
Medicine
(
0
,
Syrup
,
100
,
"Sleep Syrup"
,
50
));
foreach
(
var
medicine
in
medicines
)
foreach
(
var
medicine
in
medicines
)
{
{
...
...
Clinics.Backend/Presentation/Controllers/VisitsController.cs
View file @
65713e1b
...
@@ -11,7 +11,7 @@ using Presentation.Controllers.Base;
...
@@ -11,7 +11,7 @@ using Presentation.Controllers.Base;
namespace
Presentation.Controllers
;
namespace
Presentation.Controllers
;
[Route("api/
Doctor
s")]
[Route("api/
Visit
s")]
public
class
VisitsController
:
ApiController
public
class
VisitsController
:
ApiController
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment