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
1bf64e2a
Commit
1bf64e2a
authored
Aug 15, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(B) Add medical related entities
parent
75e9514b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
108 additions
and
0 deletions
+108
-0
Disease.cs
Clinics.Backend/Domain/Entities/Medicals/Diseases/Disease.cs
+19
-0
Hospital.cs
...cs.Backend/Domain/Entities/Medicals/Hospitals/Hospital.cs
+12
-0
MedicalImage.cs
...nd/Domain/Entities/Medicals/MedicalImages/MedicalImage.cs
+14
-0
MedicalTest.cs
...kend/Domain/Entities/Medicals/MedicalTests/MedicalTest.cs
+14
-0
Medicine.cs
...cs.Backend/Domain/Entities/Medicals/Medicines/Medicine.cs
+25
-0
MedicineForm.cs
...ies/Medicals/Medicines/MedicineFormValues/MedicineForm.cs
+12
-0
MedicineForms.cs
...es/Medicals/Medicines/MedicineFormValues/MedicineForms.cs
+12
-0
No files found.
Clinics.Backend/Domain/Entities/Medicals/Diseases/Disease.cs
0 → 100644
View file @
1bf64e2a
using
Domain.Entities.People.Patients.Relations.PatientDiseases
;
using
Domain.Primitives
;
namespace
Domain.Entities.Medicals.Diseases
;
public
sealed
class
Disease
(
int
id
)
:
Entity
(
id
)
{
#
region
Properties
public
string
Name
{
get
;
set
;
}
=
null
!;
#
region
Navigations
public
ICollection
<
PatientDisease
>
Patients
{
get
;
set
;
}
=
[];
#
endregion
#
endregion
}
Clinics.Backend/Domain/Entities/Medicals/Hospitals/Hospital.cs
0 → 100644
View file @
1bf64e2a
using
Domain.Primitives
;
namespace
Domain.Entities.Medicals.Hospitals
;
public
sealed
class
Hospital
(
int
id
)
:
Entity
(
id
)
{
#
region
Properties
public
string
Name
{
get
;
set
;
}
=
null
!;
#
endregion
}
Clinics.Backend/Domain/Entities/Medicals/MedicalImages/MedicalImage.cs
0 → 100644
View file @
1bf64e2a
using
Domain.Primitives
;
namespace
Domain.Entities.Medicals.MedicalImages
;
public
sealed
class
MedicalImage
(
int
id
)
:
Entity
(
id
)
{
#
region
Properties
public
string
Name
{
get
;
set
;
}
=
null
!;
public
string
?
Description
{
get
;
set
;
}
#
endregion
}
Clinics.Backend/Domain/Entities/Medicals/MedicalTests/MedicalTest.cs
0 → 100644
View file @
1bf64e2a
using
Domain.Primitives
;
namespace
Domain.Entities.Medicals.MedicalTests
;
public
sealed
class
MedicalTest
(
int
id
)
:
Entity
(
id
)
{
#
region
Properties
public
string
Name
{
get
;
set
;
}
=
null
!;
public
string
?
Description
{
get
;
set
;
}
#
endregion
}
Clinics.Backend/Domain/Entities/Medicals/Medicines/Medicine.cs
0 → 100644
View file @
1bf64e2a
using
Domain.Entities.Medicals.Medicines.MedicineFormValues
;
using
Domain.Entities.People.Patients.Relations.PatientMedicines
;
using
Domain.Primitives
;
namespace
Domain.Entities.Medicals.Medicines
;
// TODO: Convert Dosage to value object
public
sealed
class
Medicine
(
int
id
)
:
Entity
(
id
)
{
#
region
Properties
public
MedicineForm
MedicineForm
{
get
;
set
;
}
=
null
!;
public
string
Name
{
get
;
set
;
}
=
null
!;
public
decimal
Dosage
{
get
;
set
;
}
#
region
Navigations
public
ICollection
<
PatientMedicine
>
Patients
{
get
;
set
;
}
=
[];
#
endregion
#
endregion
}
Clinics.Backend/Domain/Entities/Medicals/Medicines/MedicineFormValues/MedicineForm.cs
0 → 100644
View file @
1bf64e2a
using
Domain.Primitives
;
namespace
Domain.Entities.Medicals.Medicines.MedicineFormValues
;
public
sealed
class
MedicineForm
(
int
id
)
:
Entity
(
id
)
{
#
region
Properties
public
string
Name
{
get
;
set
;
}
=
null
!;
#
endregion
}
Clinics.Backend/Domain/Entities/Medicals/Medicines/MedicineFormValues/MedicineForms.cs
0 → 100644
View file @
1bf64e2a
namespace
Domain.Entities.Medicals.Medicines.MedicineFormValues
;
public
static
class
MedicineForms
{
#
region
Constant
id
values
public
static
int
Tablet
=>
1
;
public
static
int
Syrup
=>
2
;
#
endregion
}
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