Skip to content

Commit

Permalink
Update patient header phone number and clinic information
Browse files Browse the repository at this point in the history
  • Loading branch information
TanookiVerde committed Aug 8, 2024
1 parent e793a3c commit d75379f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/routers/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ async def get_patient_header(
"name": "Clinica da Familia XXX",
"phone": "(21) 95555-0001",
},
"family_health_team": [{
"family_health_team": {
"ine_code": "1234567",
"name": "Equipe Roxo",
"phone": "(21) 95555-0001"
}],
},
"medical_responsible": [{"name": "Roberta dos Santos", "registry": "XXXXXXX"}],
"nursing_responsible": [{"name": "Pedro da Nobrega", "registry": "XXXXXXX"}],
"validated": True,
Expand Down
10 changes: 8 additions & 2 deletions app/types/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
class FamilyClinic(BaseModel):
cnes: str
name: str
phone: str


# Family Health Team model
class FamilyHealthTeam(BaseModel):
ine_code: str
name: str
phone: str


# Medical Conditions model
Expand Down Expand Up @@ -46,6 +48,10 @@ class UserInfo(BaseModel):
username: str
email: str

class Professional(BaseModel):
name: str
registry: str


class PatientHeader(BaseModel):
registration_name: str
Expand All @@ -58,6 +64,6 @@ class PatientHeader(BaseModel):
phone: Optional[str]
family_clinic: FamilyClinic
family_health_team: FamilyHealthTeam
medical_responsible: Optional[str]
nursing_responsible: Optional[str]
medical_responsible: List[Professional]
nursing_responsible: List[Professional]
validated: bool

0 comments on commit d75379f

Please sign in to comment.