tidepool-org/blip — pull request #45 by nicolashery (2014-04-10 15:05:48+00:00)
Title: Change patient team attribute to object

@jh-bate Here is what I propose the `api.patient.get()` returns. Example:

```javascript
{
"id": "11",
"firstName": "Mary",
"lastName": "Smith",
// ...
"team": {
"id": "99",
"members": [
{"id": "5", "firstName": "June", "lastName": "Alaniz"},
{"id": "6", "firstName": "Donald", "lastName": "Carter"}
]
}
}
```

That way you can access `patient.team.id` to get the notes, and the `Patient` page can access `patient.team.members` to display the patient's team members.

What do you think?