{"action":"opened","issue":{"url":"https://api.github.com/repos/OHDSI/WebAPI/issues/622","repository_url":"https://api.github.com/repos/OHDSI/WebAPI","labels_url":"https://api.github.com/repos/OHDSI/WebAPI/issues/622/labels{/name}","comments_url":"https://api.github.com/repos/OHDSI/WebAPI/issues/622/comments","events_url":"https://api.github.com/repos/OHDSI/WebAPI/issues/622/events","html_url":"https://github.com/OHDSI/WebAPI/issues/622","id":366188715,"node_id":"MDU6SXNzdWUzNjYxODg3MTU=","number":622,"title":"Annotation Widget","user":{"login":"CodeSchneider","id":7592718,"node_id":"MDQ6VXNlcjc1OTI3MTg=","avatar_url":"https://avatars0.githubusercontent.com/u/7592718?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeSchneider","html_url":"https://github.com/CodeSchneider","followers_url":"https://api.github.com/users/CodeSchneider/followers","following_url":"https://api.github.com/users/CodeSchneider/following{/other_user}","gists_url":"https://api.github.com/users/CodeSchneider/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeSchneider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeSchneider/subscriptions","organizations_url":"https://api.github.com/users/CodeSchneider/orgs","repos_url":"https://api.github.com/users/CodeSchneider/repos","events_url":"https://api.github.com/users/CodeSchneider/events{/privacy}","received_events_url":"https://api.github.com/users/CodeSchneider/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-03T06:10:32Z","updated_at":"2018-10-03T06:10:32Z","closed_at":null,"author_association":"NONE","body":"## Overview\r\nIn order to improve ATLAS/webapi's ability to validate a cohort, I've implemented an **annotation widget**. This annotation widget allows a user in ATLAS to perform manual chart review, i.e. answer a set of questions (or multiple sets) regarding a subject in a cohort. The results of the chart review are persisted for later processing. Here is a picture of the widget (sidebar on right side): \r\n\r\n<img width=\"1249\" alt=\"annotation_ui\" src=\"https://user-images.githubusercontent.com/7592718/46392123-1e507a80-c6ae-11e8-9103-cfc6f9263148.png\">\r\n\r\nThe widget needs several tables added to the webapi schema as well as new CRUD endpoints in order to operate. The proposed schema is depicted in the following diagram:\r\n\r\n![annotation_schema](https://user-images.githubusercontent.com/7592718/46392290-e433a880-c6ae-11e8-993b-75063ba734a6.jpg)\r\n\r\nNote: @pavgra, @chrisknoll, @anthonysena we are no longer proposing adding a separate annotation_author table, instead the annotation.user_id attribute will be FK to shiro or null (i.e. anonymous) for non-shiro installations. \r\n\r\nIf you'd like to view the accompanying front-end/knockout.js design proposal, go here.\r\n\r\nAlso, can the appropriate person grant me permission to push a branch to the this repo so the widget's endpoints and supporting schema can be further reviewed?\r\n\r\n"}}
{"actor":{"display_login":"CodeSchneider"}}