{"action":"created","issue":{"url":"https://api.github.com/repos/openhealthcare/uclp-tb/issues/203","repository_url":"https://api.github.com/repos/openhealthcare/uclp-tb","labels_url":"https://api.github.com/repos/openhealthcare/uclp-tb/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/openhealthcare/uclp-tb/issues/203/comments","events_url":"https://api.github.com/repos/openhealthcare/uclp-tb/issues/203/events","html_url":"https://github.com/openhealthcare/uclp-tb/pull/203","id":170421385,"number":203,"title":"194 address in contact details","user":{"login":"fredkingham","id":2175455,"avatar_url":"https://avatars.githubusercontent.com/u/2175455?v=3","gravatar_id":"","url":"https://api.github.com/users/fredkingham","html_url":"https://github.com/fredkingham","followers_url":"https://api.github.com/users/fredkingham/followers","following_url":"https://api.github.com/users/fredkingham/following{/other_user}","gists_url":"https://api.github.com/users/fredkingham/gists{/gist_id}","starred_url":"https://api.github.com/users/fredkingham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredkingham/subscriptions","organizations_url":"https://api.github.com/users/fredkingham/orgs","repos_url":"https://api.github.com/users/fredkingham/repos","events_url":"https://api.github.com/users/fredkingham/events{/privacy}","received_events_url":"https://api.github.com/users/fredkingham/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openhealthcare/uclp-tb/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"davidmiller","id":17229,"avatar_url":"https://avatars.githubusercontent.com/u/17229?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmiller","html_url":"https://github.com/davidmiller","followers_url":"https://api.github.com/users/davidmiller/followers","following_url":"https://api.github.com/users/davidmiller/following{/other_user}","gists_url":"https://api.github.com/users/davidmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmiller/subscriptions","organizations_url":"https://api.github.com/users/davidmiller/orgs","repos_url":"https://api.github.com/users/davidmiller/repos","events_url":"https://api.github.com/users/davidmiller/events{/privacy}","received_events_url":"https://api.github.com/users/davidmiller/received_events","type":"User","site_admin":false},"assignees":[{"login":"davidmiller","id":17229,"avatar_url":"https://avatars.githubusercontent.com/u/17229?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmiller","html_url":"https://github.com/davidmiller","followers_url":"https://api.github.com/users/davidmiller/followers","following_url":"https://api.github.com/users/davidmiller/following{/other_user}","gists_url":"https://api.github.com/users/davidmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmiller/subscriptions","organizations_url":"https://api.github.com/users/davidmiller/orgs","repos_url":"https://api.github.com/users/davidmiller/repos","events_url":"https://api.github.com/users/davidmiller/events{/privacy}","received_events_url":"https://api.github.com/users/davidmiller/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-08-10T13:47:43Z","updated_at":"2016-08-10T15:18:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openhealthcare/uclp-tb/pulls/203","html_url":"https://github.com/openhealthcare/uclp-tb/pull/203","diff_url":"https://github.com/openhealthcare/uclp-tb/pull/203.diff","patch_url":"https://github.com/openhealthcare/uclp-tb/pull/203.patch"},"body":"I so this is similar to the previous pull request (https://github.com/openhealthcare/uclp-tb/pull/200) it gives us symptomatic in contact tracing.\r\n\r\nI've also fixed the link, what I'm not so sure about is some of the methodolgy.\r\n\r\nAt the moment contact tracing, looks to the front end like a model with the fields of demographics, contact details and some additional fields. Then in the backend we break it up.\r\n\r\nIt then has a 1 to many relationship with contact traced. That also defines whether that contact has been symptomatic. Not clean, but it works.\r\n\r\nAt the moment if someone says the contact is symptomatic and then someone else says they aren't symptomatic, this gets overridden. The field is on the contact traced model, I think we want to update it to true, and never allow it to be falsified if set to true, via contact tracing, maybe allow it to be updated viat the contact traced model, thoughts?\r\n\r\nThere's also the download of contact traced which has a field called contact tracing, this is an array of dictionaries of 'contact tracing' (I know, awkward) and 'episode' (the fully serialised episode). This is ok....\r\n\r\nFinally there's the way we update. We create a new contact traced and a new contact tracing each time we create a new contact tracing instance. This is almost definitely wrong. I think we want to look at whether the individual currently has a tb episode that is open, and attach contact traced to this if it doesn't already exist.\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/openhealthcare/uclp-tb/issues/comments/238900518","html_url":"https://github.com/openhealthcare/uclp-tb/pull/203#issuecomment-238900518","issue_url":"https://api.github.com/repos/openhealthcare/uclp-tb/issues/203","id":238900518,"user":{"login":"fredkingham","id":2175455,"avatar_url":"https://avatars.githubusercontent.com/u/2175455?v=3","gravatar_id":"","url":"https://api.github.com/users/fredkingham","html_url":"https://github.com/fredkingham","followers_url":"https://api.github.com/users/fredkingham/followers","following_url":"https://api.github.com/users/fredkingham/following{/other_user}","gists_url":"https://api.github.com/users/fredkingham/gists{/gist_id}","starred_url":"https://api.github.com/users/fredkingham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredkingham/subscriptions","organizations_url":"https://api.github.com/users/fredkingham/orgs","repos_url":"https://api.github.com/users/fredkingham/repos","events_url":"https://api.github.com/users/fredkingham/events{/privacy}","received_events_url":"https://api.github.com/users/fredkingham/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T15:18:37Z","updated_at":"2016-08-10T15:18:37Z","body":"suggested better api...\r\n\r\nindex_case: [\r\n   {\r\n       episode: Episosde.to_dict(user)\r\n       relations_to_index: asdfs,\r\n       symptomatic\r\n   }\r\n]\r\n\r\ntb_contact: [\r\n   episode.to_dict,\r\n   episode.to_dict \r\n]\r\n\r\nfor creation of tb contact: {\r\n      demographics: {},\r\n      contact details: {},\r\n      relationship_to_index: Father,\r\n      symptomatic: false\r\n}\r\n\r\n"}}
{"actor":{"display_login":"fredkingham"}}