{"action":"created","comment":{"url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/comments/42039848","id":42039848,"diff_hunk":"@@ -27,38 +27,26 @@\n package gov.hhs.fha.nhinc.patientdiscovery.audit.transform;\n \n import com.services.nhinc.schema.auditmessage.AuditMessageType;\n-import com.services.nhinc.schema.auditmessage.ParticipantObjectIdentificationType;\n-import gov.hhs.fha.nhinc.audit.transform.AuditTransforms;\n import gov.hhs.fha.nhinc.common.nhinccommon.AssertionType;\n-import gov.hhs.fha.nhinc.patientdiscovery.audit.PatientDiscoveryAuditTransformsConstants;\n-import gov.hhs.fha.nhinc.transform.marshallers.JAXBContextHandler;\n-import java.io.ByteArrayOutputStream;\n-import java.util.List;\n import javax.xml.bind.JAXBException;\n-import javax.xml.bind.Marshaller;\n import org.apache.log4j.Logger;\n-import org.hl7.v3.II;\n import org.hl7.v3.PRPAIN201305UV02;\n import org.hl7.v3.PRPAIN201306UV02;\n-import org.hl7.v3.PRPAIN201306UV02MFMIMT700711UV01Subject1;\n-import org.hl7.v3.PRPAMT201306UV02LivingSubjectId;\n \n /**\n  * Patient Discovery audit transforms to support PD audit logging.\n  *\n  * @author achidamb\n  */\n-public class PatientDiscoveryAuditTransforms extends AuditTransforms<PRPAIN201305UV02, PRPAIN201306UV02> {\n+public class PatientDiscoveryAuditTransforms extends AbstractPatientDiscoveryAuditTransforms<\n+    PRPAIN201305UV02, PRPAIN201306UV02> {\n \n     private static final Logger LOG = Logger.getLogger(PatientDiscoveryAuditTransforms.class);\n \n-    private static final String JAXB_HL7_CONTEXT_NAME = \"org.hl7.v3\";\n-\n     @Override\n     protected AuditMessageType getParticipantObjectIdentificationForRequest(PRPAIN201305UV02 request,\n         AssertionType assertion, AuditMessageType auditMsg) {\n \n-        // TODO: auditMsg should either use a builder, or modify in-method with no return","path":"Product/Production/Services/PatientDiscoveryCore/src/main/java/gov/hhs/fha/nhinc/patientdiscovery/audit/transform/PatientDiscoveryAuditTransforms.java","position":37,"original_position":37,"commit_id":"9616f551ae25449b56c5e7c79642640604793126","original_commit_id":"9616f551ae25449b56c5e7c79642640604793126","user":{"login":"christophermay07","id":5454422,"avatar_url":"https://avatars.githubusercontent.com/u/5454422?v=3","gravatar_id":"","url":"https://api.github.com/users/christophermay07","html_url":"https://github.com/christophermay07","followers_url":"https://api.github.com/users/christophermay07/followers","following_url":"https://api.github.com/users/christophermay07/following{/other_user}","gists_url":"https://api.github.com/users/christophermay07/gists{/gist_id}","starred_url":"https://api.github.com/users/christophermay07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christophermay07/subscriptions","organizations_url":"https://api.github.com/users/christophermay07/orgs","repos_url":"https://api.github.com/users/christophermay07/repos","events_url":"https://api.github.com/users/christophermay07/events{/privacy}","received_events_url":"https://api.github.com/users/christophermay07/received_events","type":"User","site_admin":false},"body":"I notice how you surreptitiously removed my two TODO's in this PR :)","created_at":"2015-10-14T19:21:03Z","updated_at":"2015-10-14T19:21:03Z","html_url":"https://github.com/CONNECT-Solution/CONNECT/pull/1156#discussion_r42039848","pull_request_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/1156","_links":{"self":{"href":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/comments/42039848"},"html":{"href":"https://github.com/CONNECT-Solution/CONNECT/pull/1156#discussion_r42039848"},"pull_request":{"href":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/1156"}}},"pull_request":{"url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/1156","id":47670457,"html_url":"https://github.com/CONNECT-Solution/CONNECT/pull/1156","diff_url":"https://github.com/CONNECT-Solution/CONNECT/pull/1156.diff","patch_url":"https://github.com/CONNECT-Solution/CONNECT/pull/1156.patch","issue_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/issues/1156","number":1156,"state":"open","locked":false,"title":"FHAC-599: Refactoring of PatientDiscoveryAuditTransforms class","user":{"login":"TabassumJafri","id":10816463,"avatar_url":"https://avatars.githubusercontent.com/u/10816463?v=3","gravatar_id":"","url":"https://api.github.com/users/TabassumJafri","html_url":"https://github.com/TabassumJafri","followers_url":"https://api.github.com/users/TabassumJafri/followers","following_url":"https://api.github.com/users/TabassumJafri/following{/other_user}","gists_url":"https://api.github.com/users/TabassumJafri/gists{/gist_id}","starred_url":"https://api.github.com/users/TabassumJafri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TabassumJafri/subscriptions","organizations_url":"https://api.github.com/users/TabassumJafri/orgs","repos_url":"https://api.github.com/users/TabassumJafri/repos","events_url":"https://api.github.com/users/TabassumJafri/events{/privacy}","received_events_url":"https://api.github.com/users/TabassumJafri/received_events","type":"User","site_admin":false},"body":"1. Refactored PatientDiscoveryAuditTransforms class and moved the common audit functionality into an Abstract class.\r\n2. Move the PD message(request and response) parsing code to separate classes for reuse.","created_at":"2015-10-14T14:58:17Z","updated_at":"2015-10-14T19:21:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bce21b8ae1b6d7bbf2a6f9b492be81acc20a39f2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/1156/commits","review_comments_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/1156/comments","review_comment_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/issues/1156/comments","statuses_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/statuses/9616f551ae25449b56c5e7c79642640604793126","head":{"label":"TabassumJafri:FHAC-599","ref":"FHAC-599","sha":"9616f551ae25449b56c5e7c79642640604793126","user":{"login":"TabassumJafri","id":10816463,"avatar_url":"https://avatars.githubusercontent.com/u/10816463?v=3","gravatar_id":"","url":"https://api.github.com/users/TabassumJafri","html_url":"https://github.com/TabassumJafri","followers_url":"https://api.github.com/users/TabassumJafri/followers","following_url":"https://api.github.com/users/TabassumJafri/following{/other_user}","gists_url":"https://api.github.com/users/TabassumJafri/gists{/gist_id}","starred_url":"https://api.github.com/users/TabassumJafri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TabassumJafri/subscriptions","organizations_url":"https://api.github.com/users/TabassumJafri/orgs","repos_url":"https://api.github.com/users/TabassumJafri/repos","events_url":"https://api.github.com/users/TabassumJafri/events{/privacy}","received_events_url":"https://api.github.com/users/TabassumJafri/received_events","type":"User","site_admin":false},"repo":{"id":30203135,"name":"CONNECT","full_name":"TabassumJafri/CONNECT","owner":{"login":"TabassumJafri","id":10816463,"avatar_url":"https://avatars.githubusercontent.com/u/10816463?v=3","gravatar_id":"","url":"https://api.github.com/users/TabassumJafri","html_url":"https://github.com/TabassumJafri","followers_url":"https://api.github.com/users/TabassumJafri/followers","following_url":"https://api.github.com/users/TabassumJafri/following{/other_user}","gists_url":"https://api.github.com/users/TabassumJafri/gists{/gist_id}","starred_url":"https://api.github.com/users/TabassumJafri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TabassumJafri/subscriptions","organizations_url":"https://api.github.com/users/TabassumJafri/orgs","repos_url":"https://api.github.com/users/TabassumJafri/repos","events_url":"https://api.github.com/users/TabassumJafri/events{/privacy}","received_events_url":"https://api.github.com/users/TabassumJafri/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TabassumJafri/CONNECT","description":"CONNECT Codebase (2.x, 3.x, 4.x)","fork":true,"url":"https://api.github.com/repos/TabassumJafri/CONNECT","forks_url":"https://api.github.com/repos/TabassumJafri/CONNECT/forks","keys_url":"https://api.github.com/repos/TabassumJafri/CONNECT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TabassumJafri/CONNECT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TabassumJafri/CONNECT/teams","hooks_url":"https://api.github.com/repos/TabassumJafri/CONNECT/hooks","issue_events_url":"https://api.github.com/repos/TabassumJafri/CONNECT/issues/events{/number}","events_url":"https://api.github.com/repos/TabassumJafri/CONNECT/events","assignees_url":"https://api.github.com/repos/TabassumJafri/CONNECT/assignees{/user}","branches_url":"https://api.github.com/repos/TabassumJafri/CONNECT/branches{/branch}","tags_url":"https://api.github.com/repos/TabassumJafri/CONNECT/tags","blobs_url":"https://api.github.com/repos/TabassumJafri/CONNECT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TabassumJafri/CONNECT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TabassumJafri/CONNECT/git/refs{/sha}","trees_url":"https://api.github.com/repos/TabassumJafri/CONNECT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TabassumJafri/CONNECT/statuses/{sha}","languages_url":"https://api.github.com/repos/TabassumJafri/CONNECT/languages","stargazers_url":"https://api.github.com/repos/TabassumJafri/CONNECT/stargazers","contributors_url":"https://api.github.com/repos/TabassumJafri/CONNECT/contributors","subscribers_url":"https://api.github.com/repos/TabassumJafri/CONNECT/subscribers","subscription_url":"https://api.github.com/repos/TabassumJafri/CONNECT/subscription","commits_url":"https://api.github.com/repos/TabassumJafri/CONNECT/commits{/sha}","git_commits_url":"https://api.github.com/repos/TabassumJafri/CONNECT/git/commits{/sha}","comments_url":"https://api.github.com/repos/TabassumJafri/CONNECT/comments{/number}","issue_comment_url":"https://api.github.com/repos/TabassumJafri/CONNECT/issues/comments{/number}","contents_url":"https://api.github.com/repos/TabassumJafri/CONNECT/contents/{+path}","compare_url":"https://api.github.com/repos/TabassumJafri/CONNECT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TabassumJafri/CONNECT/merges","archive_url":"https://api.github.com/repos/TabassumJafri/CONNECT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TabassumJafri/CONNECT/downloads","issues_url":"https://api.github.com/repos/TabassumJafri/CONNECT/issues{/number}","pulls_url":"https://api.github.com/repos/TabassumJafri/CONNECT/pulls{/number}","milestones_url":"https://api.github.com/repos/TabassumJafri/CONNECT/milestones{/number}","notifications_url":"https://api.github.com/repos/TabassumJafri/CONNECT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TabassumJafri/CONNECT/labels{/name}","releases_url":"https://api.github.com/repos/TabassumJafri/CONNECT/releases{/id}","created_at":"2015-02-02T19:08:28Z","updated_at":"2015-02-02T19:08:47Z","pushed_at":"2015-10-14T18:52:41Z","git_url":"git://github.com/TabassumJafri/CONNECT.git","ssh_url":"git@github.com:TabassumJafri/CONNECT.git","clone_url":"https://github.com/TabassumJafri/CONNECT.git","svn_url":"https://github.com/TabassumJafri/CONNECT","homepage":"http://www.connectopensource.org","size":1926189,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"CONNECT_integration"}},"base":{"label":"CONNECT-Solution:CONNECT_integration","ref":"CONNECT_integration","sha":"44ac6ebcb662407476179cb7cd4c1c5d64157c06","user":{"login":"CONNECT-Solution","id":1440978,"avatar_url":"https://avatars.githubusercontent.com/u/1440978?v=3","gravatar_id":"","url":"https://api.github.com/users/CONNECT-Solution","html_url":"https://github.com/CONNECT-Solution","followers_url":"https://api.github.com/users/CONNECT-Solution/followers","following_url":"https://api.github.com/users/CONNECT-Solution/following{/other_user}","gists_url":"https://api.github.com/users/CONNECT-Solution/gists{/gist_id}","starred_url":"https://api.github.com/users/CONNECT-Solution/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CONNECT-Solution/subscriptions","organizations_url":"https://api.github.com/users/CONNECT-Solution/orgs","repos_url":"https://api.github.com/users/CONNECT-Solution/repos","events_url":"https://api.github.com/users/CONNECT-Solution/events{/privacy}","received_events_url":"https://api.github.com/users/CONNECT-Solution/received_events","type":"Organization","site_admin":false},"repo":{"id":3452904,"name":"CONNECT","full_name":"CONNECT-Solution/CONNECT","owner":{"login":"CONNECT-Solution","id":1440978,"avatar_url":"https://avatars.githubusercontent.com/u/1440978?v=3","gravatar_id":"","url":"https://api.github.com/users/CONNECT-Solution","html_url":"https://github.com/CONNECT-Solution","followers_url":"https://api.github.com/users/CONNECT-Solution/followers","following_url":"https://api.github.com/users/CONNECT-Solution/following{/other_user}","gists_url":"https://api.github.com/users/CONNECT-Solution/gists{/gist_id}","starred_url":"https://api.github.com/users/CONNECT-Solution/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CONNECT-Solution/subscriptions","organizations_url":"https://api.github.com/users/CONNECT-Solution/orgs","repos_url":"https://api.github.com/users/CONNECT-Solution/repos","events_url":"https://api.github.com/users/CONNECT-Solution/events{/privacy}","received_events_url":"https://api.github.com/users/CONNECT-Solution/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CONNECT-Solution/CONNECT","description":"CONNECT Codebase (2.x, 3.x, 4.x)","fork":false,"url":"https://api.github.com/repos/CONNECT-Solution/CONNECT","forks_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/forks","keys_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/teams","hooks_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/hooks","issue_events_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/issues/events{/number}","events_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/events","assignees_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/assignees{/user}","branches_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/branches{/branch}","tags_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/tags","blobs_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/git/refs{/sha}","trees_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/statuses/{sha}","languages_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/languages","stargazers_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/stargazers","contributors_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/contributors","subscribers_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/subscribers","subscription_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/subscription","commits_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/commits{/sha}","git_commits_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/git/commits{/sha}","comments_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/comments{/number}","issue_comment_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/issues/comments{/number}","contents_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/contents/{+path}","compare_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/merges","archive_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/downloads","issues_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/issues{/number}","pulls_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls{/number}","milestones_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/milestones{/number}","notifications_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/labels{/name}","releases_url":"https://api.github.com/repos/CONNECT-Solution/CONNECT/releases{/id}","created_at":"2012-02-15T19:44:26Z","updated_at":"2015-10-11T06:40:36Z","pushed_at":"2015-10-14T18:52:42Z","git_url":"git://github.com/CONNECT-Solution/CONNECT.git","ssh_url":"git@github.com:CONNECT-Solution/CONNECT.git","clone_url":"https://github.com/CONNECT-Solution/CONNECT.git","svn_url":"https://github.com/CONNECT-Solution/CONNECT","homepage":"http://www.connectopensource.org","size":2276351,"stargazers_count":41,"watchers_count":41,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":80,"mirror_url":null,"open_issues_count":3,"forks":80,"open_issues":3,"watchers":41,"default_branch":"CONNECT_integration"}},"_links":{"self":{"href":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/1156"},"html":{"href":"https://github.com/CONNECT-Solution/CONNECT/pull/1156"},"issue":{"href":"https://api.github.com/repos/CONNECT-Solution/CONNECT/issues/1156"},"comments":{"href":"https://api.github.com/repos/CONNECT-Solution/CONNECT/issues/1156/comments"},"review_comments":{"href":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/1156/comments"},"review_comment":{"href":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CONNECT-Solution/CONNECT/pulls/1156/commits"},"statuses":{"href":"https://api.github.com/repos/CONNECT-Solution/CONNECT/statuses/9616f551ae25449b56c5e7c79642640604793126"}}}}