{"action":"created","issue":{"url":"https://api.github.com/repos/kdar/health/issues/4","labels_url":"https://api.github.com/repos/kdar/health/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/kdar/health/issues/4/comments","events_url":"https://api.github.com/repos/kdar/health/issues/4/events","html_url":"https://github.com/kdar/health/issues/4","id":60589032,"number":4,"title":"question about simple.hl7","user":{"login":"pegli","id":324442,"avatar_url":"https://avatars.githubusercontent.com/u/324442?v=3","gravatar_id":"","url":"https://api.github.com/users/pegli","html_url":"https://github.com/pegli","followers_url":"https://api.github.com/users/pegli/followers","following_url":"https://api.github.com/users/pegli/following{/other_user}","gists_url":"https://api.github.com/users/pegli/gists{/gist_id}","starred_url":"https://api.github.com/users/pegli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pegli/subscriptions","organizations_url":"https://api.github.com/users/pegli/orgs","repos_url":"https://api.github.com/users/pegli/repos","events_url":"https://api.github.com/users/pegli/events{/privacy}","received_events_url":"https://api.github.com/users/pegli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-10T23:52:58Z","updated_at":"2015-03-11T23:03:05Z","closed_at":null,"body":"I'm working on a PR that adds a HL7 encoder to the project and am reusing the existing test files to ensure that it works properly.  The encoder can re-create sample.hl7 exactly at the moment, but it fails when trying to create simple.hl7.  `The decoder_test.go` file defines the decoded structure of that test file to be:\r\n\r\n    Segment{\r\n      Field(\"MSH\"),\r\n      Field(\"|\"),\r\n      Field(`^~\\&`),\r\n      Field(\"field\"),\r\n      Field(`\\|~^&HEY`),\r\n      ...\r\n\r\nIn particular, the fifth field should have a value of `\\|~^&HEY`.  The sample.hl7 file reads differently, however:\r\n\r\n    MSH|^~\\&|field|\\E\\\\F\\\\R\\\\S\\\\T\\\\X484559\\|component1^component2\r\n\r\nHow does `\\E\\\\F\\\\R\\\\S\\\\T\\\\X484559\\` get decoded into `\\|~^&HEY`?  The decoder test is passing on my laptop, so I feel like I'm missing something important.  Thanks for your help!\r\n\r\nMy code is here, if you would like to take a look:  https://github.com/pegli/health/tree/feature/hl7_encoder/hl7"},"comment":{"url":"https://api.github.com/repos/kdar/health/issues/comments/78391821","html_url":"https://github.com/kdar/health/issues/4#issuecomment-78391821","issue_url":"https://api.github.com/repos/kdar/health/issues/4","id":78391821,"user":{"login":"kdar","id":119919,"avatar_url":"https://avatars.githubusercontent.com/u/119919?v=3","gravatar_id":"","url":"https://api.github.com/users/kdar","html_url":"https://github.com/kdar","followers_url":"https://api.github.com/users/kdar/followers","following_url":"https://api.github.com/users/kdar/following{/other_user}","gists_url":"https://api.github.com/users/kdar/gists{/gist_id}","starred_url":"https://api.github.com/users/kdar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdar/subscriptions","organizations_url":"https://api.github.com/users/kdar/orgs","repos_url":"https://api.github.com/users/kdar/repos","events_url":"https://api.github.com/users/kdar/events{/privacy}","received_events_url":"https://api.github.com/users/kdar/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T23:03:05Z","updated_at":"2015-03-11T23:03:05Z","body":"Those are escape sequences. Look here for reference: http://www.hl7standards.com/blog/2006/11/02/hl7-escape-sequences/"}}