{"id":15832538,"url":"https://github.com/davealdon/hl7-javascript-parsing","last_synced_at":"2026-05-01T15:31:33.412Z","repository":{"id":105658851,"uuid":"132463327","full_name":"DaveAldon/HL7-Javascript-Parsing","owner":"DaveAldon","description":"Making HL7 look pretty and more organized using jQuery and nothing else.","archived":false,"fork":false,"pushed_at":"2020-02-18T16:40:40.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-31T05:55:01.373Z","etag":null,"topics":["hl7","hl7-parser","hl7-parsing","javascript","jquery"],"latest_commit_sha":null,"homepage":"https://davealdon.github.io/HL7-Javascript-Parsing/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DaveAldon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-07T13:18:33.000Z","updated_at":"2022-10-24T03:17:28.000Z","dependencies_parsed_at":"2023-06-12T15:00:21.383Z","dependency_job_id":null,"html_url":"https://github.com/DaveAldon/HL7-Javascript-Parsing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DaveAldon/HL7-Javascript-Parsing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaveAldon%2FHL7-Javascript-Parsing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaveAldon%2FHL7-Javascript-Parsing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaveAldon%2FHL7-Javascript-Parsing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaveAldon%2FHL7-Javascript-Parsing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DaveAldon","download_url":"https://codeload.github.com/DaveAldon/HL7-Javascript-Parsing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaveAldon%2FHL7-Javascript-Parsing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32502954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hl7","hl7-parser","hl7-parsing","javascript","jquery"],"created_at":"2024-10-05T13:00:26.697Z","updated_at":"2026-05-01T15:31:33.390Z","avatar_url":"https://github.com/DaveAldon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HL7-Javascript-Parsing\nMaking HL7 look pretty and more organized using jQuery and nothing else.\n\n## Instructions\nPlace the js file in your directory and link to it:\n```HTML\n\u003cscript type=\"text/javascript\" src=\"js/hl7.js\"\u003e\u003c/script\u003e\n```\n\nThen add your table somewhere and make sure it has an id:\n```HTML\n\u003ctable id=\"content\"\u003e\u003c/table\u003e\n```\n\nThen once you have your raw HL7, pass the string and the element id you want the result placed inside to the function like this:\n```javascript\nvar hl7 = \"MSH|^~\\\u0026|SENDING_APPLICATION|SENDING_FACILITY|RECEIVING_APPLICATION|RECEIVING_FACILITY|20110613061611||SIU^S12|24916560|P|2.3||||||\"\n\nparseHL7(hl7, '#content')\n```\n\nAnd you'll have a table that breaks down your HL7 into something human readable.\n\n## Limitations\nMany common HL7 categories are supported, but some are not. They will be added as the need arises.\n\n## Development\nYou can do some cool things once the HL7 is parsed out. For example, the demo included in this repo demonstrates how to make the table collapsible according to each HL7 header by adding this to your javascript:\n```Javascript\n$('#content').on('click', 'tr.header', function (e) {\n  $(this).nextUntil('tr.header').css('display', function(i,v) {\n      return this.style.display === 'table-row' ? 'none' : 'table-row';\n  });\n});\n```\n\nYou're responsible for the styling of the resulting table, and for the HL7 being properly formatted. HL7 is just a pattern, so if anything is off slightly it simply won't be predictable.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavealdon%2Fhl7-javascript-parsing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavealdon%2Fhl7-javascript-parsing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavealdon%2Fhl7-javascript-parsing/lists"}