Skip to content

Commit

Permalink
Merge pull request #4 from MohamedHamed12/hamed
Browse files Browse the repository at this point in the history
Hamed
  • Loading branch information
MohamedHamed12 authored May 2, 2024
2 parents a480805 + 3d05ef5 commit ed108de
Show file tree
Hide file tree
Showing 20 changed files with 101 additions and 1 deletion.
File renamed without changes.
15 changes: 15 additions & 0 deletions desgin/visit/sequence.pu
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@startuml visit

participant Admin
participant System
participant Visit

Admin -> System : "set visit"



Admin -> System : "get visit"
System -> Admin : "split visit to missed and current and upcoming"

Admin -> System : "update visit to finished"
@enduml
15 changes: 15 additions & 0 deletions desgin/visit/usecase.pu
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@startuml OnlineShoppingSystem

left to right direction
actor Admin as "Admin"
actor System as "System"
actor Patient as "Patient"

rectangle "Use Cases" {
Admin --> (Manage patients)
Admin --> (Manage visits)
System --> (Split visits to missed and current and upcoming)
Patient --> (Get his data)
}

@enduml
12 changes: 12 additions & 0 deletions desgin/visit/visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```mermaid
graph TD;
A[Visit] -->|1| B[Unfinished Visit]
A -->|2| C[Finished Visit]
B -->|edit| D[Admin set Finished]
B -->|get| E[System]
E -->|date < today| F[Missed Visit]
E -->|date > today| G[ Upcoming Visit]
E -->|date = today| H[Current Visit]
```
2 changes: 1 addition & 1 deletion project/accounts/filters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Meta:
'national_id': ['exact'],
'full_name': ['exact'],
'created_at': ['year', 'month', 'day'],
'experience': ['exact'],
'experience_years': ['exact'],
'work_days': ['exact'],
'license_number': ['exact'],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 5.0.3 on 2024-05-02 04:51

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("accounts", "0003_alter_address_user_alter_phone_user_and_more"),
]

operations = [
migrations.AlterField(
model_name="doctor",
name="marital_status",
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AlterField(
model_name="employee",
name="marital_status",
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AlterField(
model_name="patient",
name="marital_status",
field=models.CharField(blank=True, max_length=255, null=True),
),
]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions project/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ distlib==0.3.8
Django==5.0.3
django-cors-headers==4.3.1
django-database-url==1.0.3
django-filter==24.2
django-shortuuidfield==0.1.3
djangorestframework==3.15.1
djangorestframework-simplejwt==5.3.1
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Generated by Django 5.0.3 on 2024-05-02 04:51

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("accounts", "0004_alter_doctor_marital_status_and_more"),
("visit", "0001_initial"),
]

operations = [
migrations.RemoveField(
model_name="visit",
name="enddatetime",
),
migrations.AlterField(
model_name="visit",
name="doctors",
field=models.ManyToManyField(
blank=True, null=True, related_name="visits", to="accounts.doctor"
),
),
]
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ distlib==0.3.8
Django==5.0.3
django-cors-headers==4.3.1
django-database-url==1.0.3
django-filter==24.2
django-shortuuidfield==0.1.3
djangorestframework==3.15.1
djangorestframework-simplejwt==5.3.1
drf-yasg==1.21.7
factory-boy==3.3.0
Faker==25.0.0
filelock==3.13.3
identify==2.5.35
inflection==0.5.1
Expand All @@ -18,6 +21,7 @@ platformdirs==4.2.0
pre-commit==3.7.0
psycopg2-binary==2.9.9
PyJWT==2.8.0
python-dateutil==2.9.0.post0
python-decouple==3.8
pytz==2024.1
PyYAML==6.0.1
Expand Down

0 comments on commit ed108de

Please # to comment.