{"action":"created","comment":{"url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/pulls/comments/227348022","pull_request_review_id":167366291,"id":227348022,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzM0ODAyMg==","diff_hunk":"@@ -0,0 +1,59 @@\n+package org.openmrs.reference.helper;\r\n+\r\n+public class PatientGenerator {\r\n+\t\r\n+\tpublic static TestPatient generateTestPatient() {\r\n+\t\tTestPatient p = new TestPatient();\r\n+\t\tp.givenName = randomArrayEntry(PATIENT_GIVEN_NAMES);\r\n+\t\tp.familyName = randomArrayEntry(PATIENT_FAMILY_NAMES);\r\n+\t\tp.gender = randomArrayEntry(PATIENT_GENDER);\r\n+\t\tp.birthDay = randomArrayEntry(PATIENT_BIRTH_DAY);\r\n+\t\tp.birthMonth = randomArrayEntry(PATIENT_BIRTH_MONTH);\r\n+\t\tp.birthYear = randomArrayEntry(PATIENT_BIRTH_YEAR);\r\n+\t\tString suffix = randomSuffix();\r\n+\t\tp.address1 = \"Address1\" + suffix;\r\n+\t\tp.address2 = \"Address2\" + suffix;\r\n+\t\tp.city = \"City\" + suffix;\r\n+\t\tp.state = \"State\" + suffix; // TODO shorter string for State perhaps?\r\n+\t\tp.country = \"Country\" + suffix; // TODO shorter string for Country perhaps?\r\n+\t\tp.phone = randomSuffix(9);\r\n+\t\tp.postalCode = \"345234\"; // hardwired for now\r\n+\t\tp.latitude = \"12\"; // hardwired for now\r\n+\t\tp.longitude = \"47\"; // hardwired for now\r\n+\t\tp.startDate = \"01-01-2000\"; // hardwired for now\r\n+\t\tp.endDate = \"01-01-2010\"; // hardwired for now\r\n+\t\treturn p;\r\n+\t}\r\n+\t\r\n+\tprivate static final String[] PATIENT_GIVEN_NAMES = { \"Alexandre\", \"Achint\", \"Brittany\", \"Burke\", \"Cesar\", \"Cosmin\",\r\n+\t        \"Daniel\", \"Darius\", \"David\", \"Ellen\", \"Émerson\", \"Evan\", \"Fernando\", \"Gabou\", \"Glauber\", \"Hamish\", \"Louise\",\r\n+\t        \"Mário\", \"Mark\", \"Natália\", \"Neil\", \"Neissi\", \"Nelice\", \"Rafal\", \"Renee\", \"Wyclif\" };\r\n+\t\r\n+\tprivate static final String[] PATIENT_FAMILY_NAMES = { \"Barbosa\", \"Sethi\", \"Eddy\", \"Mamlin\", \"Vortmann\", \"Ioan\",\r\n+\t        \"Kayiwa\", \"Jazayeri\", \"Walton\", \"Ball\", \"Hernandez\", \"Waters\", \"Freire\", \"Mandy\", \"Ramos\", \"Fraser\", \"Sécordel\",\r\n+\t        \"Areias\", \"Goodrich\", \"Arsand\", \"Craven\", \"Lima\", \"Heck\", \"Korytkowski\", \"Orser\", \"Luyima\" };\r\n+\t\r\n+\tprivate static final String[] PATIENT_BIRTH_MONTH = { \"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\",\r\n+\t        \"August\", \"September\", \"October\", \"November\", \"December\" };\r\n+\t\r\n+\tprivate static final String[] PATIENT_BIRTH_DAY = { \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\", \"13\",\r\n+\t        \"14\", \"15\", \"16\", \"17\", \"18\", \"19\", \"20\", \"21\", \"22\", \"23\", \"24\", \"25\", \"26\", \"27\", \"28\" };\r\n+\t\r\n+\tprivate static final String[] PATIENT_BIRTH_YEAR = { \"1980\", \"1981\", \"1982\", \"1983\", \"1990\", \"1991\", \"1995\" };\r\n+\t\r\n+\tprivate static final String[] PATIENT_GENDER = { \"Male\", \"Female\" };\r\n+\t\r\n+\tstatic String randomArrayEntry(String[] array) {\r\n+\t\treturn array[(int) (Math.random() * array.length)];\r\n+\t}\r\n+\t\r\n+\tstatic String randomSuffix() {\r\n+\t\treturn randomSuffix(6);\r","path":"ui-tests/src/test/java/reference/helper/PatientGenerator.java","position":51,"original_position":51,"commit_id":"c60585f5a53ae6204339cab2b59ac3c1e780ba97","original_commit_id":"c60585f5a53ae6204339cab2b59ac3c1e780ba97","user":{"login":"tomaszmueller","id":11390692,"node_id":"MDQ6VXNlcjExMzkwNjky","avatar_url":"https://avatars1.githubusercontent.com/u/11390692?v=4","gravatar_id":"","url":"https://api.github.com/users/tomaszmueller","html_url":"https://github.com/tomaszmueller","followers_url":"https://api.github.com/users/tomaszmueller/followers","following_url":"https://api.github.com/users/tomaszmueller/following{/other_user}","gists_url":"https://api.github.com/users/tomaszmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaszmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaszmueller/subscriptions","organizations_url":"https://api.github.com/users/tomaszmueller/orgs","repos_url":"https://api.github.com/users/tomaszmueller/repos","events_url":"https://api.github.com/users/tomaszmueller/events{/privacy}","received_events_url":"https://api.github.com/users/tomaszmueller/received_events","type":"User","site_admin":false},"body":"6 means this function is using first 6 numbers of the current time","created_at":"2018-10-23T11:33:36Z","updated_at":"2018-10-23T11:33:36Z","html_url":"https://github.com/openmrs/openmrs-module-fhir/pull/175#discussion_r227348022","pull_request_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/pulls/175","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/openmrs/openmrs-module-fhir/pulls/comments/227348022"},"html":{"href":"https://github.com/openmrs/openmrs-module-fhir/pull/175#discussion_r227348022"},"pull_request":{"href":"https://api.github.com/repos/openmrs/openmrs-module-fhir/pulls/175"}},"in_reply_to_id":227270811},"pull_request":{"url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/pulls/175","id":224705156,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NzA1MTU2","html_url":"https://github.com/openmrs/openmrs-module-fhir/pull/175","diff_url":"https://github.com/openmrs/openmrs-module-fhir/pull/175.diff","patch_url":"https://github.com/openmrs/openmrs-module-fhir/pull/175.patch","issue_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/issues/175","number":175,"state":"open","locked":false,"title":"SYNCT-205: \"Setup UI tests environment for FHIR mapping","user":{"login":"tomaszmueller","id":11390692,"node_id":"MDQ6VXNlcjExMzkwNjky","avatar_url":"https://avatars1.githubusercontent.com/u/11390692?v=4","gravatar_id":"","url":"https://api.github.com/users/tomaszmueller","html_url":"https://github.com/tomaszmueller","followers_url":"https://api.github.com/users/tomaszmueller/followers","following_url":"https://api.github.com/users/tomaszmueller/following{/other_user}","gists_url":"https://api.github.com/users/tomaszmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaszmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaszmueller/subscriptions","organizations_url":"https://api.github.com/users/tomaszmueller/orgs","repos_url":"https://api.github.com/users/tomaszmueller/repos","events_url":"https://api.github.com/users/tomaszmueller/events{/privacy}","received_events_url":"https://api.github.com/users/tomaszmueller/received_events","type":"User","site_admin":false},"body":"\"","created_at":"2018-10-22T14:47:35Z","updated_at":"2018-10-23T11:33:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1df6abde965ce10bead5d9235b20cee11058630","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/pulls/175/commits","review_comments_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/pulls/175/comments","review_comment_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/issues/175/comments","statuses_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/statuses/c60585f5a53ae6204339cab2b59ac3c1e780ba97","head":{"label":"openmrs:SYNCT-205","ref":"SYNCT-205","sha":"c60585f5a53ae6204339cab2b59ac3c1e780ba97","user":{"login":"openmrs","id":860776,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg2MDc3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/860776?v=4","gravatar_id":"","url":"https://api.github.com/users/openmrs","html_url":"https://github.com/openmrs","followers_url":"https://api.github.com/users/openmrs/followers","following_url":"https://api.github.com/users/openmrs/following{/other_user}","gists_url":"https://api.github.com/users/openmrs/gists{/gist_id}","starred_url":"https://api.github.com/users/openmrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmrs/subscriptions","organizations_url":"https://api.github.com/users/openmrs/orgs","repos_url":"https://api.github.com/users/openmrs/repos","events_url":"https://api.github.com/users/openmrs/events{/privacy}","received_events_url":"https://api.github.com/users/openmrs/received_events","type":"Organization","site_admin":false},"repo":{"id":23968789,"node_id":"MDEwOlJlcG9zaXRvcnkyMzk2ODc4OQ==","name":"openmrs-module-fhir","full_name":"openmrs/openmrs-module-fhir","private":false,"owner":{"login":"openmrs","id":860776,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg2MDc3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/860776?v=4","gravatar_id":"","url":"https://api.github.com/users/openmrs","html_url":"https://github.com/openmrs","followers_url":"https://api.github.com/users/openmrs/followers","following_url":"https://api.github.com/users/openmrs/following{/other_user}","gists_url":"https://api.github.com/users/openmrs/gists{/gist_id}","starred_url":"https://api.github.com/users/openmrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmrs/subscriptions","organizations_url":"https://api.github.com/users/openmrs/orgs","repos_url":"https://api.github.com/users/openmrs/repos","events_url":"https://api.github.com/users/openmrs/events{/privacy}","received_events_url":"https://api.github.com/users/openmrs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openmrs/openmrs-module-fhir","description":"Implements REST and Java APIs to access OpenMRS via FHIR Specification.","fork":false,"url":"https://api.github.com/repos/openmrs/openmrs-module-fhir","forks_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/forks","keys_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/teams","hooks_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/hooks","issue_events_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/issues/events{/number}","events_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/events","assignees_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/assignees{/user}","branches_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/branches{/branch}","tags_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/tags","blobs_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/git/refs{/sha}","trees_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/statuses/{sha}","languages_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/languages","stargazers_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/stargazers","contributors_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/contributors","subscribers_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/subscribers","subscription_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/subscription","commits_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/commits{/sha}","git_commits_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/git/commits{/sha}","comments_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/comments{/number}","issue_comment_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/issues/comments{/number}","contents_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/contents/{+path}","compare_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/merges","archive_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/downloads","issues_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/issues{/number}","pulls_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/pulls{/number}","milestones_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/milestones{/number}","notifications_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/labels{/name}","releases_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/releases{/id}","deployments_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/deployments","created_at":"2014-09-12T16:51:12Z","updated_at":"2018-10-12T11:08:49Z","pushed_at":"2018-10-22T14:47:35Z","git_url":"git://github.com/openmrs/openmrs-module-fhir.git","ssh_url":"git@github.com:openmrs/openmrs-module-fhir.git","clone_url":"https://github.com/openmrs/openmrs-module-fhir.git","svn_url":"https://github.com/openmrs/openmrs-module-fhir","homepage":null,"size":48867,"stargazers_count":23,"watchers_count":23,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":73,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":73,"open_issues":3,"watchers":23,"default_branch":"master"}},"base":{"label":"openmrs:master","ref":"master","sha":"b0c20885d414dbee50bde0c88dabe184b865ec45","user":{"login":"openmrs","id":860776,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg2MDc3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/860776?v=4","gravatar_id":"","url":"https://api.github.com/users/openmrs","html_url":"https://github.com/openmrs","followers_url":"https://api.github.com/users/openmrs/followers","following_url":"https://api.github.com/users/openmrs/following{/other_user}","gists_url":"https://api.github.com/users/openmrs/gists{/gist_id}","starred_url":"https://api.github.com/users/openmrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmrs/subscriptions","organizations_url":"https://api.github.com/users/openmrs/orgs","repos_url":"https://api.github.com/users/openmrs/repos","events_url":"https://api.github.com/users/openmrs/events{/privacy}","received_events_url":"https://api.github.com/users/openmrs/received_events","type":"Organization","site_admin":false},"repo":{"id":23968789,"node_id":"MDEwOlJlcG9zaXRvcnkyMzk2ODc4OQ==","name":"openmrs-module-fhir","full_name":"openmrs/openmrs-module-fhir","private":false,"owner":{"login":"openmrs","id":860776,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg2MDc3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/860776?v=4","gravatar_id":"","url":"https://api.github.com/users/openmrs","html_url":"https://github.com/openmrs","followers_url":"https://api.github.com/users/openmrs/followers","following_url":"https://api.github.com/users/openmrs/following{/other_user}","gists_url":"https://api.github.com/users/openmrs/gists{/gist_id}","starred_url":"https://api.github.com/users/openmrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmrs/subscriptions","organizations_url":"https://api.github.com/users/openmrs/orgs","repos_url":"https://api.github.com/users/openmrs/repos","events_url":"https://api.github.com/users/openmrs/events{/privacy}","received_events_url":"https://api.github.com/users/openmrs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openmrs/openmrs-module-fhir","description":"Implements REST and Java APIs to access OpenMRS via FHIR Specification.","fork":false,"url":"https://api.github.com/repos/openmrs/openmrs-module-fhir","forks_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/forks","keys_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/teams","hooks_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/hooks","issue_events_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/issues/events{/number}","events_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/events","assignees_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/assignees{/user}","branches_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/branches{/branch}","tags_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/tags","blobs_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/git/refs{/sha}","trees_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/statuses/{sha}","languages_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/languages","stargazers_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/stargazers","contributors_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/contributors","subscribers_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/subscribers","subscription_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/subscription","commits_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/commits{/sha}","git_commits_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/git/commits{/sha}","comments_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/comments{/number}","issue_comment_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/issues/comments{/number}","contents_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/contents/{+path}","compare_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/merges","archive_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/downloads","issues_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/issues{/number}","pulls_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/pulls{/number}","milestones_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/milestones{/number}","notifications_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/labels{/name}","releases_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/releases{/id}","deployments_url":"https://api.github.com/repos/openmrs/openmrs-module-fhir/deployments","created_at":"2014-09-12T16:51:12Z","updated_at":"2018-10-12T11:08:49Z","pushed_at":"2018-10-22T14:47:35Z","git_url":"git://github.com/openmrs/openmrs-module-fhir.git","ssh_url":"git@github.com:openmrs/openmrs-module-fhir.git","clone_url":"https://github.com/openmrs/openmrs-module-fhir.git","svn_url":"https://github.com/openmrs/openmrs-module-fhir","homepage":null,"size":48867,"stargazers_count":23,"watchers_count":23,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":73,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":73,"open_issues":3,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openmrs/openmrs-module-fhir/pulls/175"},"html":{"href":"https://github.com/openmrs/openmrs-module-fhir/pull/175"},"issue":{"href":"https://api.github.com/repos/openmrs/openmrs-module-fhir/issues/175"},"comments":{"href":"https://api.github.com/repos/openmrs/openmrs-module-fhir/issues/175/comments"},"review_comments":{"href":"https://api.github.com/repos/openmrs/openmrs-module-fhir/pulls/175/comments"},"review_comment":{"href":"https://api.github.com/repos/openmrs/openmrs-module-fhir/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openmrs/openmrs-module-fhir/pulls/175/commits"},"statuses":{"href":"https://api.github.com/repos/openmrs/openmrs-module-fhir/statuses/c60585f5a53ae6204339cab2b59ac3c1e780ba97"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"tomaszmueller"}}