chb / indivo_server

The Indivo™ Personally Controlled Health Record
http://indivohealth.org
GNU General Public License v3.0
103 stars 40 forks source link

Meta attributes missing in Report Document's Meta #1

Closed fredorange closed 13 years ago

fredorange commented 13 years ago

The following attributes are missing in the document meta when you get the document within a Report [GET http://indivo/records/recid/reports/minimal/vitals/]:

Record_id
RelatesTo
IsRelatedFrom

It is ok with [GET http://indivo/records/recid/documents/docid/meta].

Indivo beta 3.

thisisdhaas commented 13 years ago

I've taken a look at this, and it appears to be an issue with the template loader's context when using the custom templatetag 'get_doc_obj' that is used by the reporting calls. The GET documents/{id}/meta call doesn't use this tag, which explains the behavior.

I'll try to get a fix out this week for this.