{"action":"created","comment":{"url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/pulls/comments/67710391","id":67710391,"diff_hunk":"@@ -82,4 +81,30 @@ private void setValue(String[] row, Map<String, Integer> columnsIndex, String co\n     }\n \n \n+    public List<String> generatePatientRegistrationTemplate(MetaData metadata, Map<String, String> subjectMap, boolean registerSite) {\n+        List<String> result = new ArrayList<>();\n+        String header = \"Study Subject ID\\t\";\n+        if(metadata.isGenderRequired()) header += \"gender\\t\";\n+        if(metadata.getBirthdateRequired() != 3) header += \"Date of Birth\\t\";","path":"src/main/java/nl/thehyve/ocdu/factories/PatientDataFactory.java","position":33,"original_position":33,"commit_id":"7da1175f71cdb38b1481fe1af0ebe3f614c746f5","original_commit_id":"7da1175f71cdb38b1481fe1af0ebe3f614c746f5","user":{"login":"PiotrZakrzewski","id":1050269,"avatar_url":"https://avatars.githubusercontent.com/u/1050269?v=3","gravatar_id":"","url":"https://api.github.com/users/PiotrZakrzewski","html_url":"https://github.com/PiotrZakrzewski","followers_url":"https://api.github.com/users/PiotrZakrzewski/followers","following_url":"https://api.github.com/users/PiotrZakrzewski/following{/other_user}","gists_url":"https://api.github.com/users/PiotrZakrzewski/gists{/gist_id}","starred_url":"https://api.github.com/users/PiotrZakrzewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PiotrZakrzewski/subscriptions","organizations_url":"https://api.github.com/users/PiotrZakrzewski/orgs","repos_url":"https://api.github.com/users/PiotrZakrzewski/repos","events_url":"https://api.github.com/users/PiotrZakrzewski/events{/privacy}","received_events_url":"https://api.github.com/users/PiotrZakrzewski/received_events","type":"User","site_admin":false},"body":"Why 3?","created_at":"2016-06-20T15:29:14Z","updated_at":"2016-06-20T15:29:14Z","html_url":"https://github.com/thehyve/Open-Clinica-Data-Uploader/pull/113#discussion_r67710391","pull_request_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/pulls/113","_links":{"self":{"href":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/pulls/comments/67710391"},"html":{"href":"https://github.com/thehyve/Open-Clinica-Data-Uploader/pull/113#discussion_r67710391"},"pull_request":{"href":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/pulls/113"}}},"pull_request":{"url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/pulls/113","id":74443780,"html_url":"https://github.com/thehyve/Open-Clinica-Data-Uploader/pull/113","diff_url":"https://github.com/thehyve/Open-Clinica-Data-Uploader/pull/113.diff","patch_url":"https://github.com/thehyve/Open-Clinica-Data-Uploader/pull/113.patch","issue_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/issues/113","number":113,"state":"open","locked":false,"title":"add subject-registartion template downloading functionality","user":{"login":"beaugogh","id":3026681,"avatar_url":"https://avatars.githubusercontent.com/u/3026681?v=3","gravatar_id":"","url":"https://api.github.com/users/beaugogh","html_url":"https://github.com/beaugogh","followers_url":"https://api.github.com/users/beaugogh/followers","following_url":"https://api.github.com/users/beaugogh/following{/other_user}","gists_url":"https://api.github.com/users/beaugogh/gists{/gist_id}","starred_url":"https://api.github.com/users/beaugogh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beaugogh/subscriptions","organizations_url":"https://api.github.com/users/beaugogh/orgs","repos_url":"https://api.github.com/users/beaugogh/repos","events_url":"https://api.github.com/users/beaugogh/events{/privacy}","received_events_url":"https://api.github.com/users/beaugogh/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-20T13:33:43Z","updated_at":"2016-06-20T15:29:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3b93c7e80db3445fb69446d3b82a71e4c2a501e","assignee":{"login":"PiotrZakrzewski","id":1050269,"avatar_url":"https://avatars.githubusercontent.com/u/1050269?v=3","gravatar_id":"","url":"https://api.github.com/users/PiotrZakrzewski","html_url":"https://github.com/PiotrZakrzewski","followers_url":"https://api.github.com/users/PiotrZakrzewski/followers","following_url":"https://api.github.com/users/PiotrZakrzewski/following{/other_user}","gists_url":"https://api.github.com/users/PiotrZakrzewski/gists{/gist_id}","starred_url":"https://api.github.com/users/PiotrZakrzewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PiotrZakrzewski/subscriptions","organizations_url":"https://api.github.com/users/PiotrZakrzewski/orgs","repos_url":"https://api.github.com/users/PiotrZakrzewski/repos","events_url":"https://api.github.com/users/PiotrZakrzewski/events{/privacy}","received_events_url":"https://api.github.com/users/PiotrZakrzewski/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/pulls/113/commits","review_comments_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/pulls/113/comments","review_comment_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/issues/113/comments","statuses_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/statuses/7da1175f71cdb38b1481fe1af0ebe3f614c746f5","head":{"label":"thehyve:patientval","ref":"patientval","sha":"7da1175f71cdb38b1481fe1af0ebe3f614c746f5","user":{"login":"thehyve","id":1502440,"avatar_url":"https://avatars.githubusercontent.com/u/1502440?v=3","gravatar_id":"","url":"https://api.github.com/users/thehyve","html_url":"https://github.com/thehyve","followers_url":"https://api.github.com/users/thehyve/followers","following_url":"https://api.github.com/users/thehyve/following{/other_user}","gists_url":"https://api.github.com/users/thehyve/gists{/gist_id}","starred_url":"https://api.github.com/users/thehyve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehyve/subscriptions","organizations_url":"https://api.github.com/users/thehyve/orgs","repos_url":"https://api.github.com/users/thehyve/repos","events_url":"https://api.github.com/users/thehyve/events{/privacy}","received_events_url":"https://api.github.com/users/thehyve/received_events","type":"Organization","site_admin":false},"repo":{"id":54628662,"name":"Open-Clinica-Data-Uploader","full_name":"thehyve/Open-Clinica-Data-Uploader","owner":{"login":"thehyve","id":1502440,"avatar_url":"https://avatars.githubusercontent.com/u/1502440?v=3","gravatar_id":"","url":"https://api.github.com/users/thehyve","html_url":"https://github.com/thehyve","followers_url":"https://api.github.com/users/thehyve/followers","following_url":"https://api.github.com/users/thehyve/following{/other_user}","gists_url":"https://api.github.com/users/thehyve/gists{/gist_id}","starred_url":"https://api.github.com/users/thehyve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehyve/subscriptions","organizations_url":"https://api.github.com/users/thehyve/orgs","repos_url":"https://api.github.com/users/thehyve/repos","events_url":"https://api.github.com/users/thehyve/events{/privacy}","received_events_url":"https://api.github.com/users/thehyve/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thehyve/Open-Clinica-Data-Uploader","description":"Next version of Open Clinica Data Importer","fork":false,"url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader","forks_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/forks","keys_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/teams","hooks_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/hooks","issue_events_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/issues/events{/number}","events_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/events","assignees_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/assignees{/user}","branches_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/branches{/branch}","tags_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/tags","blobs_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/git/refs{/sha}","trees_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/statuses/{sha}","languages_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/languages","stargazers_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/stargazers","contributors_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/contributors","subscribers_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/subscribers","subscription_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/subscription","commits_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/commits{/sha}","git_commits_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/git/commits{/sha}","comments_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/comments{/number}","issue_comment_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/issues/comments{/number}","contents_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/contents/{+path}","compare_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/merges","archive_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/downloads","issues_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/issues{/number}","pulls_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/pulls{/number}","milestones_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/milestones{/number}","notifications_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/labels{/name}","releases_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/releases{/id}","deployments_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/deployments","created_at":"2016-03-24T09:01:15Z","updated_at":"2016-06-15T17:18:12Z","pushed_at":"2016-06-20T15:27:34Z","git_url":"git://github.com/thehyve/Open-Clinica-Data-Uploader.git","ssh_url":"git@github.com:thehyve/Open-Clinica-Data-Uploader.git","clone_url":"https://github.com/thehyve/Open-Clinica-Data-Uploader.git","svn_url":"https://github.com/thehyve/Open-Clinica-Data-Uploader","homepage":null,"size":1035,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"thehyve:master","ref":"master","sha":"0157dca60978ecb68628a819cd345ae9f7c7a421","user":{"login":"thehyve","id":1502440,"avatar_url":"https://avatars.githubusercontent.com/u/1502440?v=3","gravatar_id":"","url":"https://api.github.com/users/thehyve","html_url":"https://github.com/thehyve","followers_url":"https://api.github.com/users/thehyve/followers","following_url":"https://api.github.com/users/thehyve/following{/other_user}","gists_url":"https://api.github.com/users/thehyve/gists{/gist_id}","starred_url":"https://api.github.com/users/thehyve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehyve/subscriptions","organizations_url":"https://api.github.com/users/thehyve/orgs","repos_url":"https://api.github.com/users/thehyve/repos","events_url":"https://api.github.com/users/thehyve/events{/privacy}","received_events_url":"https://api.github.com/users/thehyve/received_events","type":"Organization","site_admin":false},"repo":{"id":54628662,"name":"Open-Clinica-Data-Uploader","full_name":"thehyve/Open-Clinica-Data-Uploader","owner":{"login":"thehyve","id":1502440,"avatar_url":"https://avatars.githubusercontent.com/u/1502440?v=3","gravatar_id":"","url":"https://api.github.com/users/thehyve","html_url":"https://github.com/thehyve","followers_url":"https://api.github.com/users/thehyve/followers","following_url":"https://api.github.com/users/thehyve/following{/other_user}","gists_url":"https://api.github.com/users/thehyve/gists{/gist_id}","starred_url":"https://api.github.com/users/thehyve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehyve/subscriptions","organizations_url":"https://api.github.com/users/thehyve/orgs","repos_url":"https://api.github.com/users/thehyve/repos","events_url":"https://api.github.com/users/thehyve/events{/privacy}","received_events_url":"https://api.github.com/users/thehyve/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thehyve/Open-Clinica-Data-Uploader","description":"Next version of Open Clinica Data Importer","fork":false,"url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader","forks_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/forks","keys_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/teams","hooks_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/hooks","issue_events_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/issues/events{/number}","events_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/events","assignees_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/assignees{/user}","branches_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/branches{/branch}","tags_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/tags","blobs_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/git/refs{/sha}","trees_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/statuses/{sha}","languages_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/languages","stargazers_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/stargazers","contributors_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/contributors","subscribers_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/subscribers","subscription_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/subscription","commits_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/commits{/sha}","git_commits_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/git/commits{/sha}","comments_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/comments{/number}","issue_comment_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/issues/comments{/number}","contents_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/contents/{+path}","compare_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/merges","archive_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/downloads","issues_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/issues{/number}","pulls_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/pulls{/number}","milestones_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/milestones{/number}","notifications_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/labels{/name}","releases_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/releases{/id}","deployments_url":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/deployments","created_at":"2016-03-24T09:01:15Z","updated_at":"2016-06-15T17:18:12Z","pushed_at":"2016-06-20T15:27:34Z","git_url":"git://github.com/thehyve/Open-Clinica-Data-Uploader.git","ssh_url":"git@github.com:thehyve/Open-Clinica-Data-Uploader.git","clone_url":"https://github.com/thehyve/Open-Clinica-Data-Uploader.git","svn_url":"https://github.com/thehyve/Open-Clinica-Data-Uploader","homepage":null,"size":1035,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/pulls/113"},"html":{"href":"https://github.com/thehyve/Open-Clinica-Data-Uploader/pull/113"},"issue":{"href":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/issues/113"},"comments":{"href":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/issues/113/comments"},"review_comments":{"href":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/pulls/113/comments"},"review_comment":{"href":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/pulls/113/commits"},"statuses":{"href":"https://api.github.com/repos/thehyve/Open-Clinica-Data-Uploader/statuses/7da1175f71cdb38b1481fe1af0ebe3f614c746f5"}}}}
{"actor":{"display_login":"PiotrZakrzewski"}}