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
75e9514b
Commit
75e9514b
authored
Aug 15, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(B) Add people related entities
parent
5cbf06a4
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
309 additions
and
0 deletions
+309
-0
DoctorStatus.cs
...ctors/Shared/Constants/DoctorStatusValues/DoctorStatus.cs
+12
-0
DoctorStatuses.cs
...ors/Shared/Constants/DoctorStatusValues/DoctorStatuses.cs
+14
-0
DoctorPhone.cs
...kend/Domain/Entities/People/Doctors/Shared/DoctorPhone.cs
+15
-0
Employee.cs
Clinics.Backend/Domain/Entities/People/Employees/Employee.cs
+35
-0
EmployeeFamilyMember.cs
...s/Relations/EmployeeFamilyMembers/EmployeeFamilyMember.cs
+32
-0
FamilyRole.cs
...ions/EmployeeFamilyMembers/FamilyRoleValues/FamilyRole.cs
+12
-0
FamilyRoles.cs
...ons/EmployeeFamilyMembers/FamilyRoleValues/FamilyRoles.cs
+16
-0
EmployeeAdditionalInfo.cs
...ntities/People/Employees/Shared/EmployeeAdditionalInfo.cs
+25
-0
FamilyMember.cs
...kend/Domain/Entities/People/FamilyMembers/FamilyMember.cs
+13
-0
Patient.cs
Clinics.Backend/Domain/Entities/People/Patients/Patient.cs
+31
-0
PatientDisease.cs
...ople/Patients/Relations/PatientDiseases/PatientDisease.cs
+29
-0
PatientMedicine.cs
...le/Patients/Relations/PatientMedicines/PatientMedicine.cs
+31
-0
Gender.cs
...n/Entities/People/Shared/Constants/GenderValues/Gender.cs
+13
-0
Genders.cs
.../Entities/People/Shared/Constants/GenderValues/Genders.cs
+12
-0
PersonalInfo.cs
...ics.Backend/Domain/Entities/People/Shared/PersonalInfo.cs
+19
-0
No files found.
Clinics.Backend/Domain/Entities/People/Doctors/Shared/Constants/DoctorStatusValues/DoctorStatus.cs
0 → 100644
View file @
75e9514b
using
Domain.Primitives
;
namespace
Domain.Entities.People.Doctors.Shared.Constants.DoctorStatusValues
;
public
sealed
class
DoctorStatus
(
int
id
)
:
Entity
(
id
)
{
#
region
Properties
public
string
Name
{
get
;
set
;
}
=
null
!;
#
endregion
}
Clinics.Backend/Domain/Entities/People/Doctors/Shared/Constants/DoctorStatusValues/DoctorStatuses.cs
0 → 100644
View file @
75e9514b
namespace
Domain.Entities.People.Doctors.Shared.Constants.DoctorStatusValues
;
public
static
class
DoctorStatuses
{
#
region
Constant
id
values
public
static
int
Available
=>
1
;
public
static
int
Working
=>
2
;
public
static
int
Busy
=>
3
;
#
endregion
}
Clinics.Backend/Domain/Entities/People/Doctors/Shared/DoctorPhone.cs
0 → 100644
View file @
75e9514b
using
Domain.Primitives
;
namespace
Domain.Entities.People.Doctors.Shared
;
// TODO: Convert phone property to a value object
public
sealed
class
DoctorPhone
(
int
id
)
:
Entity
(
id
)
{
#
region
Properties
public
string
?
Name
{
get
;
set
;
}
public
string
Phone
{
get
;
set
;
}
=
null
!;
#
endregion
}
Clinics.Backend/Domain/Entities/People/Employees/Employee.cs
0 → 100644
View file @
75e9514b
using
Domain.Entities.People.Employees.Shared
;
using
Domain.Entities.People.Patients
;
using
Domain.Primitives
;
namespace
Domain.Entities.People.Employees
;
public
sealed
class
Employee
(
int
id
)
:
Entity
(
id
)
{
#
region
Properties
public
Patient
Patient
{
get
;
set
;
}
=
null
!;
public
EmployeeAdditionalInfo
?
AdditionalInfo
{
get
;
set
;
}
public
string
SerialNumber
{
get
;
set
;
}
=
null
!;
public
string
CenterStatus
{
get
;
set
;
}
=
null
!;
public
bool
IsMarried
{
get
;
set
;
}
=
false
;
#
region
Navigations
public
ICollection
<
EmployeeFamilyMember
>
FamilyMembers
{
get
;
set
;
}
=
[];
public
ICollection
<
Employee
>
RelatedEmployees
{
get
;
set
;
}
=
[];
public
ICollection
<
Employee
>
RelatedTo
{
get
;
set
;
}
=
[];
#
endregion
#
endregion
}
Clinics.Backend/Domain/Entities/People/Employees/Relations/EmployeeFamilyMembers/EmployeeFamilyMember.cs
0 → 100644
View file @
75e9514b
using
Domain.Entities.People.Employees.Relations.EmployeeFamilyMembers.FamilyRoleValues
;
using
Domain.Entities.People.FamilyMembers
;
using
Domain.Primitives
;
namespace
Domain.Entities.People.Employees.Relations.EmployeeFamilyMembers
;
public
sealed
class
EmployeeFamilyMember
(
int
id
)
:
Entity
(
id
)
{
#
region
Properties
#
region
Employee
public
int
EmployeeId
{
get
;
set
;
}
public
Employee
Employee
{
get
;
set
;
}
=
null
!;
#
endregion
#
region
Family
member
public
int
FamilyMemberId
{
get
;
set
;
}
public
FamilyMember
FamilyMember
{
get
;
set
;
}
=
null
!;
#
endregion
#
region
Additional
public
FamilyRole
Role
{
get
;
set
;
}
=
null
!;
#
endregion
#
endregion
}
Clinics.Backend/Domain/Entities/People/Employees/Relations/EmployeeFamilyMembers/FamilyRoleValues/FamilyRole.cs
0 → 100644
View file @
75e9514b
using
Domain.Primitives
;
namespace
Domain.Entities.People.Employees.Relations.EmployeeFamilyMembers.FamilyRoleValues
;
public
sealed
class
FamilyRole
(
int
id
)
:
Entity
(
id
)
{
#
region
Properties
public
string
Name
{
get
;
set
;
}
=
null
!;
#
endregion
}
Clinics.Backend/Domain/Entities/People/Employees/Relations/EmployeeFamilyMembers/FamilyRoleValues/FamilyRoles.cs
0 → 100644
View file @
75e9514b
namespace
Domain.Entities.People.Employees.Relations.EmployeeFamilyMembers.FamilyRoleValues
;
public
static
class
FamilyRoles
{
#
region
Constant
id
values
public
static
int
Husband
=>
1
;
public
static
int
Wife
=>
2
;
public
static
int
Son
=>
3
;
public
static
int
Daughter
=>
4
;
#
endregion
}
Clinics.Backend/Domain/Entities/People/Employees/Shared/EmployeeAdditionalInfo.cs
0 → 100644
View file @
75e9514b
using
Domain.Primitives
;
namespace
Domain.Entities.People.Employees.Shared
;
// TODO: Convert to a value object containig value objects
public
sealed
class
EmployeeAdditionalInfo
(
int
id
)
:
Entity
(
id
)
{
#
region
Properties
public
DateOnly
?
StartDate
{
get
;
set
;
}
public
string
?
AcademicQualification
{
get
;
set
;
}
public
string
?
WorkPhone
{
get
;
set
;
}
public
string
?
Location
{
get
;
set
;
}
public
string
?
Specialization
{
get
;
set
;
}
public
string
?
JobStatus
{
get
;
set
;
}
public
string
?
ImageUrl
{
get
;
set
;
}
#
endregion
}
Clinics.Backend/Domain/Entities/People/FamilyMembers/FamilyMember.cs
0 → 100644
View file @
75e9514b
using
Domain.Entities.People.Patients
;
using
Domain.Primitives
;
namespace
Domain.Entities.People.FamilyMembers
;
public
sealed
class
FamilyMember
(
int
id
)
:
Entity
(
id
)
{
#
region
Properties
public
Patient
Patient
{
get
;
set
;
}
=
null
!;
#
endregion
}
Clinics.Backend/Domain/Entities/People/Patients/Patient.cs
0 → 100644
View file @
75e9514b
using
Domain.Entities.People.Patients.Relations.PatientDiseases
;
using
Domain.Entities.People.Shared
;
using
Domain.Entities.People.Shared.Constants.GenderValues
;
using
Domain.Primitives
;
namespace
Domain.Entities.People.Patients
;
// TODO: Potential aggregate?
public
sealed
class
Patient
(
int
id
)
:
Entity
(
id
)
{
#
region
Properties
public
PersonalInfo
PersonalInfo
{
get
;
set
;
}
=
null
!;
public
DateOnly
DateOfBirth
{
get
;
set
;
}
public
Gender
Gender
{
get
;
set
;
}
=
null
!;
#
region
Navigations
public
ICollection
<
PatientDisease
>
Diseases
{
get
;
set
;
}
=
[];
public
ICollection
<
PatientMedicine
>
Medicines
{
get
;
set
;
}
=
[];
public
ICollection
<
Visit
>
Visits
{
get
;
set
;
}
=
[];
#
endregion
#
endregion
}
Clinics.Backend/Domain/Entities/People/Patients/Relations/PatientDiseases/PatientDisease.cs
0 → 100644
View file @
75e9514b
using
Domain.Primitives
;
namespace
Domain.Entities.People.Patients.Relations.PatientDiseases
;
public
sealed
class
PatientDisease
(
int
id
)
:
Entity
(
id
)
{
#
region
Properties
#
region
Patient
public
int
PatientId
{
get
;
set
;
}
public
Patient
Patient
{
get
;
set
;
}
=
null
!;
#
endregion
#
region
Disease
public
int
DiseaseId
{
get
;
set
;
}
public
Disease
Disease
{
get
;
set
;
}
=
null
!;
#
endregion
#
region
Additional
#
endregion
#
endregion
}
Clinics.Backend/Domain/Entities/People/Patients/Relations/PatientMedicines/PatientMedicine.cs
0 → 100644
View file @
75e9514b
using
Domain.Primitives
;
namespace
Domain.Entities.People.Patients.Relations.PatientMedicines
;
public
sealed
class
PatientMedicine
(
int
id
)
:
Entity
(
id
)
{
#
region
Properties
#
region
Patient
public
int
PatientId
{
get
;
set
;
}
public
Patient
Patient
{
get
;
set
;
}
=
null
!;
#
endregion
#
region
Medicine
public
int
MedicineId
{
get
;
set
;
}
public
Medicine
Medicine
{
get
;
set
;
}
=
null
!;
#
endregion
#
region
Additional
public
int
Number
{
get
;
set
;
}
#
endregion
#
endregion
}
Clinics.Backend/Domain/Entities/People/Shared/Constants/GenderValues/Gender.cs
0 → 100644
View file @
75e9514b
using
Domain.Primitives
;
namespace
Domain.Entities.People.Shared.Constants.GenderValues
;
// TODO: Convert to a value object
public
sealed
class
Gender
(
int
id
)
:
Entity
(
id
)
{
#
region
Properties
public
string
Name
{
get
;
set
;
}
=
null
!;
#
endregion
}
Clinics.Backend/Domain/Entities/People/Shared/Constants/GenderValues/Genders.cs
0 → 100644
View file @
75e9514b
namespace
Domain.Entities.People.Shared.Constants.GenderValues
;
public
static
class
Genders
{
#
region
Constant
id
values
public
static
int
Male
=>
1
;
public
static
int
Female
=>
2
;
#
endregion
}
Clinics.Backend/Domain/Entities/People/Shared/PersonalInfo.cs
0 → 100644
View file @
75e9514b
using
Domain.Primitives
;
namespace
Domain.Entities.People.Shared
;
// TODO: Convert props to value objects
public
sealed
class
PersonalInfo
(
int
id
)
:
Entity
(
id
)
{
#
region
Properties
public
string
FirstName
{
get
;
set
;
}
=
null
!;
public
string
MiddleName
{
get
;
set
;
}
=
null
!;
public
string
LastName
{
get
;
set
;
}
=
null
!;
#
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