{"action":"created","issue":{"url":"https://api.github.com/repos/rOpenHealth/rEHR/issues/19","labels_url":"https://api.github.com/repos/rOpenHealth/rEHR/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/rOpenHealth/rEHR/issues/19/comments","events_url":"https://api.github.com/repos/rOpenHealth/rEHR/issues/19/events","html_url":"https://github.com/rOpenHealth/rEHR/issues/19","id":28882932,"number":19,"title":"Number of years of history in CPRD","user":{"login":"rosap","id":6641041,"avatar_url":"https://avatars.githubusercontent.com/u/6641041?v=3","gravatar_id":"","url":"https://api.github.com/users/rosap","html_url":"https://github.com/rosap","followers_url":"https://api.github.com/users/rosap/followers","following_url":"https://api.github.com/users/rosap/following{/other_user}","gists_url":"https://api.github.com/users/rosap/gists{/gist_id}","starred_url":"https://api.github.com/users/rosap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosap/subscriptions","organizations_url":"https://api.github.com/users/rosap/orgs","repos_url":"https://api.github.com/users/rosap/repos","events_url":"https://api.github.com/users/rosap/events{/privacy}","received_events_url":"https://api.github.com/users/rosap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-03-06T14:34:52Z","updated_at":"2015-02-27T14:03:52Z","closed_at":null,"body":"Count the number of years (or length of time) a patients has been in CPRD before entering the cohort (e.g. index date, study starts);\r\n- (the length of time should include only when the practice is up to standard)\r\n\r\nNote: Sometimes this information is needed to assure to capture incidence and not prevalence patients of e.g. psoriasis, diabetes, etc.. "},"comment":{"url":"https://api.github.com/repos/rOpenHealth/rEHR/issues/comments/76398619","html_url":"https://github.com/rOpenHealth/rEHR/issues/19#issuecomment-76398619","issue_url":"https://api.github.com/repos/rOpenHealth/rEHR/issues/19","id":76398619,"user":{"login":"DASpringate","id":847127,"avatar_url":"https://avatars.githubusercontent.com/u/847127?v=3","gravatar_id":"","url":"https://api.github.com/users/DASpringate","html_url":"https://github.com/DASpringate","followers_url":"https://api.github.com/users/DASpringate/followers","following_url":"https://api.github.com/users/DASpringate/following{/other_user}","gists_url":"https://api.github.com/users/DASpringate/gists{/gist_id}","starred_url":"https://api.github.com/users/DASpringate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DASpringate/subscriptions","organizations_url":"https://api.github.com/users/DASpringate/orgs","repos_url":"https://api.github.com/users/DASpringate/repos","events_url":"https://api.github.com/users/DASpringate/events{/privacy}","received_events_url":"https://api.github.com/users/DASpringate/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T14:03:52Z","updated_at":"2015-02-27T14:03:52Z","body":"What is the best way to do this?\r\nFirst consultation date  after UTS and CRD?\r\nFirst clinical/referral event after UTS and CRD?\r\n\r\nBoth are easily done with the first_events() function.\r\n\r\nThis would fit in as an example in the vignette."}}