Update main.py
Browse files
main.py
CHANGED
|
@@ -509,7 +509,7 @@ class WoundDetailsRequest:
|
|
| 509 |
self.periwound_type = periwound_type
|
| 510 |
self.patient_id = patient_id
|
| 511 |
|
| 512 |
-
@app.post("/
|
| 513 |
async def add_wound_details_v3(
|
| 514 |
# Use Depends() to get your database session and verify the JWT token
|
| 515 |
db: Session = Depends(get_db),
|
|
@@ -755,7 +755,7 @@ async def search_patient_endpoint(name: str, db: SessionLocal = Depends(get_db),
|
|
| 755 |
except Exception as e:
|
| 756 |
raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=str(e))
|
| 757 |
|
| 758 |
-
@app.get("/
|
| 759 |
async def generate_prescription_endpoint(patient_id: str, db: SessionLocal = Depends(get_db), payload: dict = Depends(verify_jwt_token)):
|
| 760 |
if not patient_id:
|
| 761 |
raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail='Missing required fields')
|
|
|
|
| 509 |
self.periwound_type = periwound_type
|
| 510 |
self.patient_id = patient_id
|
| 511 |
|
| 512 |
+
@app.post("/add_wound_details_v3")
|
| 513 |
async def add_wound_details_v3(
|
| 514 |
# Use Depends() to get your database session and verify the JWT token
|
| 515 |
db: Session = Depends(get_db),
|
|
|
|
| 755 |
except Exception as e:
|
| 756 |
raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=str(e))
|
| 757 |
|
| 758 |
+
@app.get("/generate_prescription")
|
| 759 |
async def generate_prescription_endpoint(patient_id: str, db: SessionLocal = Depends(get_db), payload: dict = Depends(verify_jwt_token)):
|
| 760 |
if not patient_id:
|
| 761 |
raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail='Missing required fields')
|