Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WEB] GET: Get de informação de um médico #42

Open
henriquelcardoso opened this issue Apr 20, 2018 · 3 comments
Open

[WEB] GET: Get de informação de um médico #42

henriquelcardoso opened this issue Apr 20, 2018 · 3 comments

Comments

@henriquelcardoso
Copy link

Rota com toda a informação de um médico dado um ID
Campos:

  • Nome médico
  • Lista de todos os pacientes desse médico
    - ID do paciente
    - data de cirurgia
    - Médicos responsáveis
@luisfmelo
Copy link
Member

luisfmelo commented Apr 21, 2018

/api/doctor/2

@henriquelcardoso

@luisfmelo
Copy link
Member

luisfmelo commented Apr 21, 2018

Pode ficar assim, @henriquelcardoso ?

{
	"code": 200,
	"message": "Success",
	"details": "",
	"data": {
		"id": 2,
		"name": "Sample Doctor",
		"email": "[email protected]",
		"phone": null,
		"is_active": false,
		"role_id": 2,
		"role_name": "Doctor",
		"department": null,
		"patients": [
			{
				"id": 3,
				"patient_tag": "TAG",
				"age": 60,
				"height": 180.0,
				"weight": 100.5,
				"sex": "M",
				"prehab": {
					"id": 1,
					"init_date": "2018-05-18",
					"expected_end_date": "2018-06-01",
					"actual_end_date": null,
					"surgery_date": "2018-06-18",
					"number_of_weeks": 2,
					"patient": 3,
					"status": 1,
					"created_by": 2
				}
			}
		]
	}
}

@henriquelcardoso
Copy link
Author

Acho que sim! Vou experimentar, obrigado!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants