{"action":"opened","issue":{"url":"https://api.github.com/repos/opentrials/opentrials/issues/180","repository_url":"https://api.github.com/repos/opentrials/opentrials","labels_url":"https://api.github.com/repos/opentrials/opentrials/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/opentrials/opentrials/issues/180/comments","events_url":"https://api.github.com/repos/opentrials/opentrials/issues/180/events","html_url":"https://github.com/opentrials/opentrials/issues/180","id":156776795,"number":180,"title":"Add models concept to processors","user":{"login":"roll","id":557395,"avatar_url":"https://avatars.githubusercontent.com/u/557395?v=3","gravatar_id":"","url":"https://api.github.com/users/roll","html_url":"https://github.com/roll","followers_url":"https://api.github.com/users/roll/followers","following_url":"https://api.github.com/users/roll/following{/other_user}","gists_url":"https://api.github.com/users/roll/gists{/gist_id}","starred_url":"https://api.github.com/users/roll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roll/subscriptions","organizations_url":"https://api.github.com/users/roll/orgs","repos_url":"https://api.github.com/users/roll/repos","events_url":"https://api.github.com/users/roll/events{/privacy}","received_events_url":"https://api.github.com/users/roll/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/opentrials/opentrials/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/opentrials/opentrials/labels/Processors","name":"Processors","color":"1D2021"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-25T15:15:18Z","updated_at":"2016-05-25T15:15:18Z","closed_at":null,"body":"`collectors` have been stabilized around `Record` concept - declarative description of collected data. \r\n\r\nThe same will be good to implement for  `database` entities in `processors` - `Model` or `Object` (`TrialModel` etc). It will be simple dict (almost sure we can't integrate here with ORMs) with the main purpose is to describe which data should be extracted from `Record`. For now it's not clear from code. There is no reference what dict should return every extractor except `writers` code. Documentation will not help here because of unsync problem so better to have data models as code.\r\n\r\nCurrent data flow (simplified):\r\n```\r\nsource -> Record -> extractors -> [trial dict, intervention list of dicts etc] -> writers -> database\r\n```\r\n\r\nBetter data flow (simplified):\r\n```\r\nsource -> Record -> extractors -> [Trial model, Intervention list of models etc] -> writers -> database\r\n```"}}
{"actor":{"display_login":"roll"}}