{"action":"opened","number":433,"pull_request":{"url":"https://api.github.com/repos/synthetichealth/synthea/pulls/433","id":220427262,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwNDI3MjYy","html_url":"https://github.com/synthetichealth/synthea/pull/433","diff_url":"https://github.com/synthetichealth/synthea/pull/433.diff","patch_url":"https://github.com/synthetichealth/synthea/pull/433.patch","issue_url":"https://api.github.com/repos/synthetichealth/synthea/issues/433","number":433,"state":"open","locked":false,"title":"WIP: Add OSEHRA Synthea modules.","user":{"login":"jawalonoski","id":1054765,"node_id":"MDQ6VXNlcjEwNTQ3NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/1054765?v=4","gravatar_id":"","url":"https://api.github.com/users/jawalonoski","html_url":"https://github.com/jawalonoski","followers_url":"https://api.github.com/users/jawalonoski/followers","following_url":"https://api.github.com/users/jawalonoski/following{/other_user}","gists_url":"https://api.github.com/users/jawalonoski/gists{/gist_id}","starred_url":"https://api.github.com/users/jawalonoski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jawalonoski/subscriptions","organizations_url":"https://api.github.com/users/jawalonoski/orgs","repos_url":"https://api.github.com/users/jawalonoski/repos","events_url":"https://api.github.com/users/jawalonoski/events{/privacy}","received_events_url":"https://api.github.com/users/jawalonoski/received_events","type":"User","site_admin":false},"body":"Ran `10000` Patients with the addition of the Anemia modules.\r\n\r\n1. Modify `./src/resources/synthea.properties`:\r\n\r\n```properties\r\ngenerate.default_population = 10000\r\ngenerate.database_type = file\r\n```\r\n\r\n2. Ran synthea `./run_synthea`\r\n\r\n3. Open [H2 database](http://www.h2database.com/html/download.html) and connect to the `database.mv.db` file.\r\n\r\n4. SQL Query\r\n\r\n```sql\r\nselect pop.race, pop.gender, pop.TOTAL, popa.ANEMIA, \r\nTRUNCATE((CAST(popa.ANEMIA as double) / CAST(pop.TOTAL as double)) * 100.0, 2) as PREVALENCE\r\nfrom\r\n(select race, gender, count(*) as TOTAL\r\nfrom person\r\ngroup by race, gender\r\norder by gender, TOTAL desc) pop,\r\n(select person.race, person.gender, count(*) as ANEMIA\r\nfrom person, condition\r\nwhere person.ID = condition.person_ID\r\nand condition.code = '271737000'\r\ngroup by race, gender\r\norder by gender, ANEMIA desc) popa\r\nwhere pop.race = popa.race\r\nand pop.gender = popa.gender\r\norder by gender, TOTAL desc\r\n```\r\n\r\nResults:\r\n\r\nRACE | GENDER | TOTAL | ANEMIA | PREVALENCE\r\n-- | -- | -- | -- | --\r\nwhite | F | 4242 | 122 | 2.87\r\nhispanic | F | 523 | 23 | 4.39\r\nblack | F | 440 | 41 | 9.31\r\nasian | F | 357 | 20 | 5.6\r\nnative | F | 36 | 1 | 2.77\r\nother | F | 7 | 1 | 14.28\r\nwhite | M | 4250 | 41 | 0.96\r\nhispanic | M | 543 | 9 | 1.65\r\nblack | M | 374 | 14 | 3.74\r\nasian | M | 306 | 12 | 3.92\r\nnative | M | 15 | 1 | 6.66\r\nother | M | 7 | 1 | 14.28\r\n\r\n","created_at":"2018-10-04T15:45:49Z","updated_at":"2018-10-04T15:45:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/synthetichealth/synthea/pulls/433/commits","review_comments_url":"https://api.github.com/repos/synthetichealth/synthea/pulls/433/comments","review_comment_url":"https://api.github.com/repos/synthetichealth/synthea/pulls/comments{/number}","comments_url":"https://api.github.com/repos/synthetichealth/synthea/issues/433/comments","statuses_url":"https://api.github.com/repos/synthetichealth/synthea/statuses/1e07ef8edac671104f23e8e741ca9048f4cf6bbe","head":{"label":"synthetichealth:anemia","ref":"anemia","sha":"1e07ef8edac671104f23e8e741ca9048f4cf6bbe","user":{"login":"synthetichealth","id":19552017,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NTUyMDE3","avatar_url":"https://avatars1.githubusercontent.com/u/19552017?v=4","gravatar_id":"","url":"https://api.github.com/users/synthetichealth","html_url":"https://github.com/synthetichealth","followers_url":"https://api.github.com/users/synthetichealth/followers","following_url":"https://api.github.com/users/synthetichealth/following{/other_user}","gists_url":"https://api.github.com/users/synthetichealth/gists{/gist_id}","starred_url":"https://api.github.com/users/synthetichealth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synthetichealth/subscriptions","organizations_url":"https://api.github.com/users/synthetichealth/orgs","repos_url":"https://api.github.com/users/synthetichealth/repos","events_url":"https://api.github.com/users/synthetichealth/events{/privacy}","received_events_url":"https://api.github.com/users/synthetichealth/received_events","type":"Organization","site_admin":false},"repo":{"id":61399845,"node_id":"MDEwOlJlcG9zaXRvcnk2MTM5OTg0NQ==","name":"synthea","full_name":"synthetichealth/synthea","private":false,"owner":{"login":"synthetichealth","id":19552017,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NTUyMDE3","avatar_url":"https://avatars1.githubusercontent.com/u/19552017?v=4","gravatar_id":"","url":"https://api.github.com/users/synthetichealth","html_url":"https://github.com/synthetichealth","followers_url":"https://api.github.com/users/synthetichealth/followers","following_url":"https://api.github.com/users/synthetichealth/following{/other_user}","gists_url":"https://api.github.com/users/synthetichealth/gists{/gist_id}","starred_url":"https://api.github.com/users/synthetichealth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synthetichealth/subscriptions","organizations_url":"https://api.github.com/users/synthetichealth/orgs","repos_url":"https://api.github.com/users/synthetichealth/repos","events_url":"https://api.github.com/users/synthetichealth/events{/privacy}","received_events_url":"https://api.github.com/users/synthetichealth/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/synthetichealth/synthea","description":"Synthetic Patient Population Simulator","fork":false,"url":"https://api.github.com/repos/synthetichealth/synthea","forks_url":"https://api.github.com/repos/synthetichealth/synthea/forks","keys_url":"https://api.github.com/repos/synthetichealth/synthea/keys{/key_id}","collaborators_url":"https://api.github.com/repos/synthetichealth/synthea/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/synthetichealth/synthea/teams","hooks_url":"https://api.github.com/repos/synthetichealth/synthea/hooks","issue_events_url":"https://api.github.com/repos/synthetichealth/synthea/issues/events{/number}","events_url":"https://api.github.com/repos/synthetichealth/synthea/events","assignees_url":"https://api.github.com/repos/synthetichealth/synthea/assignees{/user}","branches_url":"https://api.github.com/repos/synthetichealth/synthea/branches{/branch}","tags_url":"https://api.github.com/repos/synthetichealth/synthea/tags","blobs_url":"https://api.github.com/repos/synthetichealth/synthea/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/synthetichealth/synthea/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/synthetichealth/synthea/git/refs{/sha}","trees_url":"https://api.github.com/repos/synthetichealth/synthea/git/trees{/sha}","statuses_url":"https://api.github.com/repos/synthetichealth/synthea/statuses/{sha}","languages_url":"https://api.github.com/repos/synthetichealth/synthea/languages","stargazers_url":"https://api.github.com/repos/synthetichealth/synthea/stargazers","contributors_url":"https://api.github.com/repos/synthetichealth/synthea/contributors","subscribers_url":"https://api.github.com/repos/synthetichealth/synthea/subscribers","subscription_url":"https://api.github.com/repos/synthetichealth/synthea/subscription","commits_url":"https://api.github.com/repos/synthetichealth/synthea/commits{/sha}","git_commits_url":"https://api.github.com/repos/synthetichealth/synthea/git/commits{/sha}","comments_url":"https://api.github.com/repos/synthetichealth/synthea/comments{/number}","issue_comment_url":"https://api.github.com/repos/synthetichealth/synthea/issues/comments{/number}","contents_url":"https://api.github.com/repos/synthetichealth/synthea/contents/{+path}","compare_url":"https://api.github.com/repos/synthetichealth/synthea/compare/{base}...{head}","merges_url":"https://api.github.com/repos/synthetichealth/synthea/merges","archive_url":"https://api.github.com/repos/synthetichealth/synthea/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/synthetichealth/synthea/downloads","issues_url":"https://api.github.com/repos/synthetichealth/synthea/issues{/number}","pulls_url":"https://api.github.com/repos/synthetichealth/synthea/pulls{/number}","milestones_url":"https://api.github.com/repos/synthetichealth/synthea/milestones{/number}","notifications_url":"https://api.github.com/repos/synthetichealth/synthea/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/synthetichealth/synthea/labels{/name}","releases_url":"https://api.github.com/repos/synthetichealth/synthea/releases{/id}","deployments_url":"https://api.github.com/repos/synthetichealth/synthea/deployments","created_at":"2016-06-17T20:15:40Z","updated_at":"2018-10-04T13:08:09Z","pushed_at":"2018-10-04T15:40:21Z","git_url":"git://github.com/synthetichealth/synthea.git","ssh_url":"git@github.com:synthetichealth/synthea.git","clone_url":"https://github.com/synthetichealth/synthea.git","svn_url":"https://github.com/synthetichealth/synthea","homepage":"https://synthetichealth.github.io/synthea","size":400510,"stargazers_count":234,"watchers_count":234,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":76,"mirror_url":null,"archived":false,"open_issues_count":44,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":76,"open_issues":44,"watchers":234,"default_branch":"master"}},"base":{"label":"synthetichealth:master","ref":"master","sha":"5a44709c3a12eee32a3b38cb8d502b944580a276","user":{"login":"synthetichealth","id":19552017,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NTUyMDE3","avatar_url":"https://avatars1.githubusercontent.com/u/19552017?v=4","gravatar_id":"","url":"https://api.github.com/users/synthetichealth","html_url":"https://github.com/synthetichealth","followers_url":"https://api.github.com/users/synthetichealth/followers","following_url":"https://api.github.com/users/synthetichealth/following{/other_user}","gists_url":"https://api.github.com/users/synthetichealth/gists{/gist_id}","starred_url":"https://api.github.com/users/synthetichealth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synthetichealth/subscriptions","organizations_url":"https://api.github.com/users/synthetichealth/orgs","repos_url":"https://api.github.com/users/synthetichealth/repos","events_url":"https://api.github.com/users/synthetichealth/events{/privacy}","received_events_url":"https://api.github.com/users/synthetichealth/received_events","type":"Organization","site_admin":false},"repo":{"id":61399845,"node_id":"MDEwOlJlcG9zaXRvcnk2MTM5OTg0NQ==","name":"synthea","full_name":"synthetichealth/synthea","private":false,"owner":{"login":"synthetichealth","id":19552017,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NTUyMDE3","avatar_url":"https://avatars1.githubusercontent.com/u/19552017?v=4","gravatar_id":"","url":"https://api.github.com/users/synthetichealth","html_url":"https://github.com/synthetichealth","followers_url":"https://api.github.com/users/synthetichealth/followers","following_url":"https://api.github.com/users/synthetichealth/following{/other_user}","gists_url":"https://api.github.com/users/synthetichealth/gists{/gist_id}","starred_url":"https://api.github.com/users/synthetichealth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synthetichealth/subscriptions","organizations_url":"https://api.github.com/users/synthetichealth/orgs","repos_url":"https://api.github.com/users/synthetichealth/repos","events_url":"https://api.github.com/users/synthetichealth/events{/privacy}","received_events_url":"https://api.github.com/users/synthetichealth/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/synthetichealth/synthea","description":"Synthetic Patient Population Simulator","fork":false,"url":"https://api.github.com/repos/synthetichealth/synthea","forks_url":"https://api.github.com/repos/synthetichealth/synthea/forks","keys_url":"https://api.github.com/repos/synthetichealth/synthea/keys{/key_id}","collaborators_url":"https://api.github.com/repos/synthetichealth/synthea/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/synthetichealth/synthea/teams","hooks_url":"https://api.github.com/repos/synthetichealth/synthea/hooks","issue_events_url":"https://api.github.com/repos/synthetichealth/synthea/issues/events{/number}","events_url":"https://api.github.com/repos/synthetichealth/synthea/events","assignees_url":"https://api.github.com/repos/synthetichealth/synthea/assignees{/user}","branches_url":"https://api.github.com/repos/synthetichealth/synthea/branches{/branch}","tags_url":"https://api.github.com/repos/synthetichealth/synthea/tags","blobs_url":"https://api.github.com/repos/synthetichealth/synthea/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/synthetichealth/synthea/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/synthetichealth/synthea/git/refs{/sha}","trees_url":"https://api.github.com/repos/synthetichealth/synthea/git/trees{/sha}","statuses_url":"https://api.github.com/repos/synthetichealth/synthea/statuses/{sha}","languages_url":"https://api.github.com/repos/synthetichealth/synthea/languages","stargazers_url":"https://api.github.com/repos/synthetichealth/synthea/stargazers","contributors_url":"https://api.github.com/repos/synthetichealth/synthea/contributors","subscribers_url":"https://api.github.com/repos/synthetichealth/synthea/subscribers","subscription_url":"https://api.github.com/repos/synthetichealth/synthea/subscription","commits_url":"https://api.github.com/repos/synthetichealth/synthea/commits{/sha}","git_commits_url":"https://api.github.com/repos/synthetichealth/synthea/git/commits{/sha}","comments_url":"https://api.github.com/repos/synthetichealth/synthea/comments{/number}","issue_comment_url":"https://api.github.com/repos/synthetichealth/synthea/issues/comments{/number}","contents_url":"https://api.github.com/repos/synthetichealth/synthea/contents/{+path}","compare_url":"https://api.github.com/repos/synthetichealth/synthea/compare/{base}...{head}","merges_url":"https://api.github.com/repos/synthetichealth/synthea/merges","archive_url":"https://api.github.com/repos/synthetichealth/synthea/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/synthetichealth/synthea/downloads","issues_url":"https://api.github.com/repos/synthetichealth/synthea/issues{/number}","pulls_url":"https://api.github.com/repos/synthetichealth/synthea/pulls{/number}","milestones_url":"https://api.github.com/repos/synthetichealth/synthea/milestones{/number}","notifications_url":"https://api.github.com/repos/synthetichealth/synthea/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/synthetichealth/synthea/labels{/name}","releases_url":"https://api.github.com/repos/synthetichealth/synthea/releases{/id}","deployments_url":"https://api.github.com/repos/synthetichealth/synthea/deployments","created_at":"2016-06-17T20:15:40Z","updated_at":"2018-10-04T13:08:09Z","pushed_at":"2018-10-04T15:40:21Z","git_url":"git://github.com/synthetichealth/synthea.git","ssh_url":"git@github.com:synthetichealth/synthea.git","clone_url":"https://github.com/synthetichealth/synthea.git","svn_url":"https://github.com/synthetichealth/synthea","homepage":"https://synthetichealth.github.io/synthea","size":400510,"stargazers_count":234,"watchers_count":234,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":76,"mirror_url":null,"archived":false,"open_issues_count":44,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":76,"open_issues":44,"watchers":234,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/synthetichealth/synthea/pulls/433"},"html":{"href":"https://github.com/synthetichealth/synthea/pull/433"},"issue":{"href":"https://api.github.com/repos/synthetichealth/synthea/issues/433"},"comments":{"href":"https://api.github.com/repos/synthetichealth/synthea/issues/433/comments"},"review_comments":{"href":"https://api.github.com/repos/synthetichealth/synthea/pulls/433/comments"},"review_comment":{"href":"https://api.github.com/repos/synthetichealth/synthea/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/synthetichealth/synthea/pulls/433/commits"},"statuses":{"href":"https://api.github.com/repos/synthetichealth/synthea/statuses/1e07ef8edac671104f23e8e741ca9048f4cf6bbe"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":904,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"jawalonoski"}}