fresh
This commit is contained in:
Binary file not shown.
Binary file not shown.
+2
-1
@@ -1,12 +1,13 @@
|
||||
from fastapi import FastAPI, HTTPException
|
||||
from pydantic import BaseModel
|
||||
from .routers import docOffices, patients, patients_files, patients_notes
|
||||
from .routers import docOffices, patients, patients_files, patients_notes, users
|
||||
|
||||
app = FastAPI()
|
||||
app.include_router(docOffices.router)
|
||||
app.include_router(patients.router)
|
||||
app.include_router(patients_files.router)
|
||||
app.include_router(patients_notes.router)
|
||||
app.include_router(users.router)
|
||||
|
||||
# Check if server is up
|
||||
@app.get("/")
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,29 @@
|
||||
from fastapi import APIRouter, HTTPException
|
||||
from pydantic import BaseModel
|
||||
from ..database import dbConnection
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
class userRequest(BaseModel):
|
||||
DocOfficeID: int
|
||||
patientID: int
|
||||
|
||||
# Get List of all files
|
||||
@router.get("/users/", tags="users")
|
||||
async def read_all_users():
|
||||
db = dbConnection.dbConnect()
|
||||
cursor = db.cursor()
|
||||
query = "SELECT * FROM users"
|
||||
cursor.execute(query)
|
||||
items = [
|
||||
{
|
||||
"idUser": item[0],
|
||||
"UserName": item[1],
|
||||
"Password": item[2],
|
||||
"docOffice_ID": item[3],
|
||||
}
|
||||
for item in cursor.fetchall()
|
||||
]
|
||||
cursor.close()
|
||||
db.close()
|
||||
return items
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+156
-94
@@ -1,5 +1,156 @@
|
||||
4294967294,471
|
||||
4294967294,0
|
||||
4294967278,132
|
||||
4294967278,131
|
||||
4294967278,130
|
||||
4294967278,129
|
||||
4294967278,128
|
||||
4294967278,127
|
||||
4294967278,126
|
||||
4294967278,125
|
||||
4294967278,124
|
||||
4294967278,123
|
||||
4294967278,122
|
||||
4294967278,121
|
||||
4294967278,120
|
||||
4294967278,119
|
||||
4294967278,118
|
||||
4294967278,117
|
||||
4294967278,116
|
||||
4294967278,115
|
||||
4294967278,114
|
||||
4294967278,113
|
||||
4294967278,112
|
||||
4294967278,111
|
||||
4294967278,110
|
||||
4294967278,109
|
||||
4294967278,108
|
||||
4294967278,107
|
||||
4294967278,106
|
||||
4294967278,105
|
||||
4294967278,104
|
||||
4294967278,103
|
||||
4294967278,102
|
||||
4294967278,101
|
||||
4294967278,100
|
||||
4294967278,99
|
||||
4294967278,98
|
||||
4294967278,97
|
||||
4294967278,96
|
||||
4294967278,95
|
||||
4294967278,94
|
||||
4294967278,93
|
||||
4294967278,92
|
||||
4294967278,91
|
||||
4294967278,90
|
||||
4294967278,89
|
||||
4294967278,87
|
||||
4294967278,86
|
||||
4294967278,85
|
||||
4294967278,84
|
||||
4294967278,83
|
||||
4294967278,82
|
||||
4294967278,81
|
||||
4294967278,80
|
||||
4294967278,79
|
||||
4294967278,78
|
||||
4294967278,77
|
||||
4294967278,76
|
||||
4294967278,75
|
||||
4294967278,74
|
||||
4294967278,73
|
||||
4294967278,72
|
||||
4294967278,71
|
||||
4294967278,70
|
||||
4294967278,69
|
||||
4294967278,68
|
||||
4294967278,67
|
||||
4294967278,66
|
||||
4294967278,65
|
||||
4294967278,64
|
||||
4294967278,63
|
||||
4294967278,62
|
||||
4294967278,61
|
||||
4294967278,60
|
||||
4294967278,59
|
||||
4294967278,58
|
||||
4294967278,57
|
||||
4294967278,56
|
||||
4294967278,55
|
||||
4294967278,54
|
||||
4294967278,53
|
||||
4294967278,52
|
||||
4294967278,51
|
||||
4294967278,50
|
||||
4294967278,49
|
||||
4294967278,48
|
||||
4294967278,47
|
||||
4294967278,46
|
||||
4294967278,45
|
||||
4294967278,44
|
||||
4294967278,43
|
||||
4294967278,42
|
||||
4294967278,41
|
||||
4294967278,40
|
||||
4294967278,39
|
||||
4294967278,38
|
||||
4294967278,37
|
||||
4294967279,24
|
||||
4294967279,20
|
||||
4294967279,19
|
||||
4294967279,11
|
||||
4294967279,10
|
||||
4294967279,9
|
||||
4294967279,8
|
||||
4294967279,7
|
||||
4294967279,6
|
||||
4294967279,5
|
||||
4294967279,4
|
||||
4243767290,0
|
||||
6,5
|
||||
6,4
|
||||
6,3
|
||||
6,2
|
||||
6,1
|
||||
4294967279,297
|
||||
4294967279,296
|
||||
5,5
|
||||
5,4
|
||||
5,3
|
||||
5,2
|
||||
5,1
|
||||
4294967294,1421
|
||||
4294967279,295
|
||||
4294967279,294
|
||||
4,6
|
||||
4,5
|
||||
4,4
|
||||
4,3
|
||||
4,2
|
||||
4,1
|
||||
4294967279,293
|
||||
4294967294,1420
|
||||
4294967294,187
|
||||
4294967278,292
|
||||
4294967279,292
|
||||
3,5
|
||||
3,4
|
||||
3,3
|
||||
3,2
|
||||
3,1
|
||||
4294967278,291
|
||||
4294967279,291
|
||||
2,4
|
||||
2,3
|
||||
2,2
|
||||
2,1
|
||||
4294967278,290
|
||||
4243767290,3
|
||||
4243767290,2
|
||||
4294967294,472
|
||||
4294967279,281
|
||||
4294967278,289
|
||||
4294967279,280
|
||||
4294967278,288
|
||||
4294967293,131
|
||||
4294967293,130
|
||||
4294967293,129
|
||||
@@ -130,7 +281,6 @@
|
||||
4294967293,4
|
||||
4294967293,3
|
||||
4294967293,2
|
||||
4243767290,0
|
||||
4243767289,0
|
||||
4243767288,0
|
||||
4243767287,0
|
||||
@@ -141,6 +291,9 @@
|
||||
4243767282,0
|
||||
4243767281,0
|
||||
4294967293,0
|
||||
4294967279,26
|
||||
4294967279,27
|
||||
4294967279,28
|
||||
4294967279,29
|
||||
4294967279,142
|
||||
4294967279,143
|
||||
@@ -151,100 +304,9 @@
|
||||
4294967279,32
|
||||
4294967279,33
|
||||
4294967279,146
|
||||
4294967279,147
|
||||
4294967279,148
|
||||
4294967279,149
|
||||
4294967279,147
|
||||
4294967279,34
|
||||
4294967279,35
|
||||
4294967279,36
|
||||
4294967279,37
|
||||
4294967279,150
|
||||
4294967279,151
|
||||
4294967279,152
|
||||
4294967279,153
|
||||
4294967279,38
|
||||
4294967279,39
|
||||
4294967279,40
|
||||
4294967279,41
|
||||
4294967279,154
|
||||
4294967279,155
|
||||
4294967279,158
|
||||
4294967279,156
|
||||
4294967279,42
|
||||
4294967279,43
|
||||
4294967279,157
|
||||
4294967279,44
|
||||
4294967279,159
|
||||
4294967279,160
|
||||
4294967279,45
|
||||
4294967279,161
|
||||
4294967279,46
|
||||
4294967279,47
|
||||
4294967279,162
|
||||
4294967279,48
|
||||
4294967279,163
|
||||
4294967279,164
|
||||
4294967279,49
|
||||
4294967279,165
|
||||
4294967279,50
|
||||
4294967279,51
|
||||
4294967279,166
|
||||
4294967279,52
|
||||
4294967279,167
|
||||
4294967279,168
|
||||
4294967279,53
|
||||
4294967279,169
|
||||
4294967279,54
|
||||
4294967279,55
|
||||
4294967279,170
|
||||
4294967279,56
|
||||
4294967279,171
|
||||
4294967279,172
|
||||
4294967279,57
|
||||
4294967279,173
|
||||
4294967279,58
|
||||
4294967279,59
|
||||
4294967279,175
|
||||
4294967279,60
|
||||
4294967279,176
|
||||
4294967279,177
|
||||
4294967279,61
|
||||
4294967279,178
|
||||
4294967279,62
|
||||
4294967279,63
|
||||
4294967279,179
|
||||
4294967279,64
|
||||
4294967279,180
|
||||
4294967279,182
|
||||
4294967279,65
|
||||
4294967279,181
|
||||
4294967279,66
|
||||
4294967279,183
|
||||
4294967279,67
|
||||
4294967279,184
|
||||
4294967279,68
|
||||
4294967279,185
|
||||
4294967279,69
|
||||
4294967279,70
|
||||
4294967279,186
|
||||
4294967279,71
|
||||
4294967279,187
|
||||
4294967279,188
|
||||
4294967279,72
|
||||
4294967279,189
|
||||
4294967279,73
|
||||
4294967279,74
|
||||
4294967279,190
|
||||
4294967279,75
|
||||
4294967279,191
|
||||
4294967279,192
|
||||
4294967279,76
|
||||
4294967279,193
|
||||
4294967279,77
|
||||
4294967279,78
|
||||
4294967279,194
|
||||
4294967279,79
|
||||
4294967279,195
|
||||
4294967279,196
|
||||
4294967279,80
|
||||
4294967279,197
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"mysqld_version_id":80300,"dd_version":80200,"sdi_version":80019,"dd_object_type":"Table","dd_object":{"name":"cond_instances","mysql_version_id":80300,"created":20240323120712,"last_altered":20240323120712,"hidden":1,"options":"avg_row_length=0;key_block_size=0;keys_disabled=0;pack_record=1;server_p_s_table=1;stats_auto_recalc=0;stats_sample_pages=0;","columns":[{"name":"NAME","type":16,"is_nullable":false,"is_zerofill":false,"is_unsigned":false,"is_auto_increment":false,"is_virtual":false,"hidden":1,"ordinal_position":1,"char_length":512,"numeric_precision":0,"numeric_scale":0,"numeric_scale_null":true,"datetime_precision":0,"datetime_precision_null":1,"has_no_default":true,"default_value_null":false,"srs_id_null":true,"srs_id":0,"default_value":"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAA==","default_value_utf8_null":true,"default_value_utf8":"","default_option":"","update_option":"","comment":"","generation_expression":"","generation_expression_utf8":"","options":"interval_count=0;","se_private_data":"","engine_attribute":"","secondary_engine_attribute":"","column_key":4,"column_type_utf8":"varchar(128)","elements":[],"collation_id":255,"is_explicit_collation":false},{"name":"OBJECT_INSTANCE_BEGIN","type":9,"is_nullable":false,"is_zerofill":false,"is_unsigned":true,"is_auto_increment":false,"is_virtual":false,"hidden":1,"ordinal_position":2,"char_length":20,"numeric_precision":20,"numeric_scale":0,"numeric_scale_null":false,"datetime_precision":0,"datetime_precision_null":1,"has_no_default":true,"default_value_null":false,"srs_id_null":true,"srs_id":0,"default_value":"AAAAAAAAAAA=","default_value_utf8_null":true,"default_value_utf8":"","default_option":"","update_option":"","comment":"","generation_expression":"","generation_expression_utf8":"","options":"interval_count=0;","se_private_data":"","engine_attribute":"","secondary_engine_attribute":"","column_key":2,"column_type_utf8":"bigint unsigned","elements":[],"collation_id":255,"is_explicit_collation":false}],"schema_ref":"performance_schema","se_private_id":18446744073709551615,"engine":"PERFORMANCE_SCHEMA","last_checked_for_upgrade_version_id":0,"comment":"","se_private_data":"","engine_attribute":"","secondary_engine_attribute":"","row_format":2,"partition_type":0,"partition_expression":"","partition_expression_utf8":"","default_partitioning":0,"subpartition_type":0,"subpartition_expression":"","subpartition_expression_utf8":"","default_subpartitioning":0,"indexes":[{"name":"PRIMARY","hidden":false,"is_generated":false,"ordinal_position":1,"comment":"","options":"flags=0;","se_private_data":"","type":1,"algorithm":4,"is_algorithm_explicit":false,"is_visible":true,"engine":"PERFORMANCE_SCHEMA","engine_attribute":"","secondary_engine_attribute":"","elements":[{"ordinal_position":1,"length":8,"order":1,"hidden":false,"column_opx":1}]},{"name":"NAME","hidden":false,"is_generated":false,"ordinal_position":2,"comment":"","options":"flags=0;","se_private_data":"","type":3,"algorithm":4,"is_algorithm_explicit":false,"is_visible":true,"engine":"PERFORMANCE_SCHEMA","engine_attribute":"","secondary_engine_attribute":"","elements":[{"ordinal_position":1,"length":512,"order":1,"hidden":false,"column_opx":0}]}],"foreign_keys":[],"check_constraints":[],"partitions":[],"collation_id":255}}
|
||||
{"mysqld_version_id":80300,"dd_version":80200,"sdi_version":80019,"dd_object_type":"Table","dd_object":{"name":"cond_instances","mysql_version_id":80300,"created":20240326202610,"last_altered":20240326202610,"hidden":1,"options":"avg_row_length=0;key_block_size=0;keys_disabled=0;pack_record=1;server_p_s_table=1;stats_auto_recalc=0;stats_sample_pages=0;","columns":[{"name":"NAME","type":16,"is_nullable":false,"is_zerofill":false,"is_unsigned":false,"is_auto_increment":false,"is_virtual":false,"hidden":1,"ordinal_position":1,"char_length":512,"numeric_precision":0,"numeric_scale":0,"numeric_scale_null":true,"datetime_precision":0,"datetime_precision_null":1,"has_no_default":true,"default_value_null":false,"srs_id_null":true,"srs_id":0,"default_value":"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAA==","default_value_utf8_null":true,"default_value_utf8":"","default_option":"","update_option":"","comment":"","generation_expression":"","generation_expression_utf8":"","options":"interval_count=0;","se_private_data":"","engine_attribute":"","secondary_engine_attribute":"","column_key":4,"column_type_utf8":"varchar(128)","elements":[],"collation_id":255,"is_explicit_collation":false},{"name":"OBJECT_INSTANCE_BEGIN","type":9,"is_nullable":false,"is_zerofill":false,"is_unsigned":true,"is_auto_increment":false,"is_virtual":false,"hidden":1,"ordinal_position":2,"char_length":20,"numeric_precision":20,"numeric_scale":0,"numeric_scale_null":false,"datetime_precision":0,"datetime_precision_null":1,"has_no_default":true,"default_value_null":false,"srs_id_null":true,"srs_id":0,"default_value":"AAAAAAAAAAA=","default_value_utf8_null":true,"default_value_utf8":"","default_option":"","update_option":"","comment":"","generation_expression":"","generation_expression_utf8":"","options":"interval_count=0;","se_private_data":"","engine_attribute":"","secondary_engine_attribute":"","column_key":2,"column_type_utf8":"bigint unsigned","elements":[],"collation_id":255,"is_explicit_collation":false}],"schema_ref":"performance_schema","se_private_id":18446744073709551615,"engine":"PERFORMANCE_SCHEMA","last_checked_for_upgrade_version_id":0,"comment":"","se_private_data":"","engine_attribute":"","secondary_engine_attribute":"","row_format":2,"partition_type":0,"partition_expression":"","partition_expression_utf8":"","default_partitioning":0,"subpartition_type":0,"subpartition_expression":"","subpartition_expression_utf8":"","default_subpartitioning":0,"indexes":[{"name":"PRIMARY","hidden":false,"is_generated":false,"ordinal_position":1,"comment":"","options":"flags=0;","se_private_data":"","type":1,"algorithm":4,"is_algorithm_explicit":false,"is_visible":true,"engine":"PERFORMANCE_SCHEMA","engine_attribute":"","secondary_engine_attribute":"","elements":[{"ordinal_position":1,"length":8,"order":1,"hidden":false,"column_opx":1}]},{"name":"NAME","hidden":false,"is_generated":false,"ordinal_position":2,"comment":"","options":"flags=0;","se_private_data":"","type":3,"algorithm":4,"is_algorithm_explicit":false,"is_visible":true,"engine":"PERFORMANCE_SCHEMA","engine_attribute":"","secondary_engine_attribute":"","elements":[{"ordinal_position":1,"length":512,"order":1,"hidden":false,"column_opx":0}]}],"foreign_keys":[],"check_constraints":[],"partitions":[],"collation_id":255}}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user