{"action":"closed","number":127,"pull_request":{"url":"https://api.github.com/repos/codeforamerica/rva-screening/pulls/127","id":35881482,"html_url":"https://github.com/codeforamerica/rva-screening/pull/127","diff_url":"https://github.com/codeforamerica/rva-screening/pull/127.diff","patch_url":"https://github.com/codeforamerica/rva-screening/pull/127.patch","issue_url":"https://api.github.com/repos/codeforamerica/rva-screening/issues/127","number":127,"state":"closed","locked":false,"title":"Mock data","user":{"login":"bengolder","id":451510,"avatar_url":"https://avatars.githubusercontent.com/u/451510?v=3","gravatar_id":"","url":"https://api.github.com/users/bengolder","html_url":"https://github.com/bengolder","followers_url":"https://api.github.com/users/bengolder/followers","following_url":"https://api.github.com/users/bengolder/following{/other_user}","gists_url":"https://api.github.com/users/bengolder/gists{/gist_id}","starred_url":"https://api.github.com/users/bengolder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bengolder/subscriptions","organizations_url":"https://api.github.com/users/bengolder/orgs","repos_url":"https://api.github.com/users/bengolder/repos","events_url":"https://api.github.com/users/bengolder/events{/privacy}","received_events_url":"https://api.github.com/users/bengolder/received_events","type":"User","site_admin":false},"body":"This adds a script that allows us to add randomly generated patients to the database. For testing.\r\nNothing else is affected. To run the script, first make sure you've done:\r\n\r\n     pip install -r requirements.txt\r\n\r\nThen do:\r\n\r\n    python add_mock_data.py\r\n\r\nWhat changed:\r\n\r\n* `/add_mock_data.py` - the script that you can run\r\n* `requirements.txt` - added the [`fake-factory`](http://fake-factory.readthedocs.org/en/latest/) library. We should separate out different types of requirements for testing, production, dev at some point.\r\n* `app/example_data.py` - added different sets of choices that are used in the interface, such as races, ethnicities, etc. The mock data script selects from these choices to enter them in the database.\r\n\r\nHere's what it looks like:\r\n![mock_data](https://cloud.githubusercontent.com/assets/451510/7737686/f24e9e02-ff01-11e4-8bf0-7b8e08ed4fb7.gif)\r\n","created_at":"2015-05-20T22:08:37Z","updated_at":"2015-05-21T18:12:00Z","closed_at":"2015-05-21T18:12:00Z","merged_at":"2015-05-21T18:12:00Z","merge_commit_sha":"45c31c1a880aaf5ad24862f5c071b01ced309893","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codeforamerica/rva-screening/pulls/127/commits","review_comments_url":"https://api.github.com/repos/codeforamerica/rva-screening/pulls/127/comments","review_comment_url":"https://api.github.com/repos/codeforamerica/rva-screening/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codeforamerica/rva-screening/issues/127/comments","statuses_url":"https://api.github.com/repos/codeforamerica/rva-screening/statuses/b8ea99d39122368011d83407b1f0b22d31f99ea8","head":{"label":"codeforamerica:mock_data","ref":"mock_data","sha":"b8ea99d39122368011d83407b1f0b22d31f99ea8","user":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"repo":{"id":32598942,"name":"rva-screening","full_name":"codeforamerica/rva-screening","owner":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeforamerica/rva-screening","description":"Health service prescreener for sharing patient eligibility data.","fork":false,"url":"https://api.github.com/repos/codeforamerica/rva-screening","forks_url":"https://api.github.com/repos/codeforamerica/rva-screening/forks","keys_url":"https://api.github.com/repos/codeforamerica/rva-screening/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeforamerica/rva-screening/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeforamerica/rva-screening/teams","hooks_url":"https://api.github.com/repos/codeforamerica/rva-screening/hooks","issue_events_url":"https://api.github.com/repos/codeforamerica/rva-screening/issues/events{/number}","events_url":"https://api.github.com/repos/codeforamerica/rva-screening/events","assignees_url":"https://api.github.com/repos/codeforamerica/rva-screening/assignees{/user}","branches_url":"https://api.github.com/repos/codeforamerica/rva-screening/branches{/branch}","tags_url":"https://api.github.com/repos/codeforamerica/rva-screening/tags","blobs_url":"https://api.github.com/repos/codeforamerica/rva-screening/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeforamerica/rva-screening/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeforamerica/rva-screening/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeforamerica/rva-screening/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeforamerica/rva-screening/statuses/{sha}","languages_url":"https://api.github.com/repos/codeforamerica/rva-screening/languages","stargazers_url":"https://api.github.com/repos/codeforamerica/rva-screening/stargazers","contributors_url":"https://api.github.com/repos/codeforamerica/rva-screening/contributors","subscribers_url":"https://api.github.com/repos/codeforamerica/rva-screening/subscribers","subscription_url":"https://api.github.com/repos/codeforamerica/rva-screening/subscription","commits_url":"https://api.github.com/repos/codeforamerica/rva-screening/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeforamerica/rva-screening/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeforamerica/rva-screening/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeforamerica/rva-screening/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeforamerica/rva-screening/contents/{+path}","compare_url":"https://api.github.com/repos/codeforamerica/rva-screening/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeforamerica/rva-screening/merges","archive_url":"https://api.github.com/repos/codeforamerica/rva-screening/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeforamerica/rva-screening/downloads","issues_url":"https://api.github.com/repos/codeforamerica/rva-screening/issues{/number}","pulls_url":"https://api.github.com/repos/codeforamerica/rva-screening/pulls{/number}","milestones_url":"https://api.github.com/repos/codeforamerica/rva-screening/milestones{/number}","notifications_url":"https://api.github.com/repos/codeforamerica/rva-screening/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeforamerica/rva-screening/labels{/name}","releases_url":"https://api.github.com/repos/codeforamerica/rva-screening/releases{/id}","created_at":"2015-03-20T17:58:39Z","updated_at":"2015-05-16T22:49:41Z","pushed_at":"2015-05-21T18:12:00Z","git_url":"git://github.com/codeforamerica/rva-screening.git","ssh_url":"git@github.com:codeforamerica/rva-screening.git","clone_url":"https://github.com/codeforamerica/rva-screening.git","svn_url":"https://github.com/codeforamerica/rva-screening","homepage":"","size":2536,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":35,"forks":0,"open_issues":35,"watchers":0,"default_branch":"master"}},"base":{"label":"codeforamerica:master","ref":"master","sha":"fabdd93f7d749bcffb8cded01a8d2bccc26fbf69","user":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"repo":{"id":32598942,"name":"rva-screening","full_name":"codeforamerica/rva-screening","owner":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeforamerica/rva-screening","description":"Health service prescreener for sharing patient eligibility data.","fork":false,"url":"https://api.github.com/repos/codeforamerica/rva-screening","forks_url":"https://api.github.com/repos/codeforamerica/rva-screening/forks","keys_url":"https://api.github.com/repos/codeforamerica/rva-screening/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeforamerica/rva-screening/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeforamerica/rva-screening/teams","hooks_url":"https://api.github.com/repos/codeforamerica/rva-screening/hooks","issue_events_url":"https://api.github.com/repos/codeforamerica/rva-screening/issues/events{/number}","events_url":"https://api.github.com/repos/codeforamerica/rva-screening/events","assignees_url":"https://api.github.com/repos/codeforamerica/rva-screening/assignees{/user}","branches_url":"https://api.github.com/repos/codeforamerica/rva-screening/branches{/branch}","tags_url":"https://api.github.com/repos/codeforamerica/rva-screening/tags","blobs_url":"https://api.github.com/repos/codeforamerica/rva-screening/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeforamerica/rva-screening/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeforamerica/rva-screening/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeforamerica/rva-screening/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeforamerica/rva-screening/statuses/{sha}","languages_url":"https://api.github.com/repos/codeforamerica/rva-screening/languages","stargazers_url":"https://api.github.com/repos/codeforamerica/rva-screening/stargazers","contributors_url":"https://api.github.com/repos/codeforamerica/rva-screening/contributors","subscribers_url":"https://api.github.com/repos/codeforamerica/rva-screening/subscribers","subscription_url":"https://api.github.com/repos/codeforamerica/rva-screening/subscription","commits_url":"https://api.github.com/repos/codeforamerica/rva-screening/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeforamerica/rva-screening/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeforamerica/rva-screening/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeforamerica/rva-screening/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeforamerica/rva-screening/contents/{+path}","compare_url":"https://api.github.com/repos/codeforamerica/rva-screening/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeforamerica/rva-screening/merges","archive_url":"https://api.github.com/repos/codeforamerica/rva-screening/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeforamerica/rva-screening/downloads","issues_url":"https://api.github.com/repos/codeforamerica/rva-screening/issues{/number}","pulls_url":"https://api.github.com/repos/codeforamerica/rva-screening/pulls{/number}","milestones_url":"https://api.github.com/repos/codeforamerica/rva-screening/milestones{/number}","notifications_url":"https://api.github.com/repos/codeforamerica/rva-screening/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeforamerica/rva-screening/labels{/name}","releases_url":"https://api.github.com/repos/codeforamerica/rva-screening/releases{/id}","created_at":"2015-03-20T17:58:39Z","updated_at":"2015-05-16T22:49:41Z","pushed_at":"2015-05-21T18:12:00Z","git_url":"git://github.com/codeforamerica/rva-screening.git","ssh_url":"git@github.com:codeforamerica/rva-screening.git","clone_url":"https://github.com/codeforamerica/rva-screening.git","svn_url":"https://github.com/codeforamerica/rva-screening","homepage":"","size":2536,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":35,"forks":0,"open_issues":35,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeforamerica/rva-screening/pulls/127"},"html":{"href":"https://github.com/codeforamerica/rva-screening/pull/127"},"issue":{"href":"https://api.github.com/repos/codeforamerica/rva-screening/issues/127"},"comments":{"href":"https://api.github.com/repos/codeforamerica/rva-screening/issues/127/comments"},"review_comments":{"href":"https://api.github.com/repos/codeforamerica/rva-screening/pulls/127/comments"},"review_comment":{"href":"https://api.github.com/repos/codeforamerica/rva-screening/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codeforamerica/rva-screening/pulls/127/commits"},"statuses":{"href":"https://api.github.com/repos/codeforamerica/rva-screening/statuses/b8ea99d39122368011d83407b1f0b22d31f99ea8"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"bengolder","id":451510,"avatar_url":"https://avatars.githubusercontent.com/u/451510?v=3","gravatar_id":"","url":"https://api.github.com/users/bengolder","html_url":"https://github.com/bengolder","followers_url":"https://api.github.com/users/bengolder/followers","following_url":"https://api.github.com/users/bengolder/following{/other_user}","gists_url":"https://api.github.com/users/bengolder/gists{/gist_id}","starred_url":"https://api.github.com/users/bengolder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bengolder/subscriptions","organizations_url":"https://api.github.com/users/bengolder/orgs","repos_url":"https://api.github.com/users/bengolder/repos","events_url":"https://api.github.com/users/bengolder/events{/privacy}","received_events_url":"https://api.github.com/users/bengolder/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":10,"additions":244,"deletions":8,"changed_files":5}}