{"id":19069705,"url":"https://github.com/evanlucas/nodengine-hl7","last_synced_at":"2025-04-28T14:12:08.022Z","repository":{"id":13866247,"uuid":"16564111","full_name":"evanlucas/nodengine-hl7","owner":"evanlucas","description":"HL7 parser for nodengine","archived":false,"fork":false,"pushed_at":"2017-03-28T18:32:44.000Z","size":459,"stargazers_count":24,"open_issues_count":4,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-28T14:12:03.029Z","etag":null,"topics":["hl7","hl7-parser"],"latest_commit_sha":null,"homepage":"https://evanlucas.github.io/nodengine-hl7/","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/evanlucas.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}},"created_at":"2014-02-06T00:42:14.000Z","updated_at":"2023-07-22T22:02:44.000Z","dependencies_parsed_at":"2022-07-13T05:20:30.812Z","dependency_job_id":null,"html_url":"https://github.com/evanlucas/nodengine-hl7","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanlucas%2Fnodengine-hl7","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanlucas%2Fnodengine-hl7/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanlucas%2Fnodengine-hl7/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanlucas%2Fnodengine-hl7/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evanlucas","download_url":"https://codeload.github.com/evanlucas/nodengine-hl7/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251326850,"owners_count":21571636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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"],"created_at":"2024-11-09T01:15:22.717Z","updated_at":"2025-04-28T14:12:08.001Z","avatar_url":"https://github.com/evanlucas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nodengine-hl7\n\n[![Build Status](https://travis-ci.org/evanlucas/nodengine-hl7.png?branch=master)](https://travis-ci.org/evanlucas/nodengine-hl7)\n[![Coverage Status](https://coveralls.io/repos/evanlucas/nodengine-hl7/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/evanlucas/nodengine-hl7?branch=master)\n\nA hl7 parser\n\n## Installation\n```sh\n$ npm install --save nodengine-hl7\n```\n\nor install globally for the CLI tool\n\n```bash\n$ npm install -g nodengine-hl7\n$ ne-hl7 --help\nne-hl7 - a streaming parser for hl7 messages\n\n    usage: ne-hl7 [options]\n\n    options:\n\n      -h, --help                  show help and usage\n      -l, --loglevel \u003clevel\u003e      set log level\n      -f, --file \u003cfile\u003e           parse file\n      -s, --segments              only show segment types\n      -c, --count                 print message count\n      -j, --json                  output in json\n      -v, --version               show version\n```\n\n## Unit Tests\n\nTo run tests:\n\n```bash\n$ npm test\n```\n\n**NOTE: All hl7 test fixtures are samples taken from various places on the internet**\n\n## API\n\n### Parser\n\n  Constructor\n\n***\n\n### Message\n\n  Constructor\n\n##### Params\n| Name | Type(s) | Description |\n| ---- | ------- | ----------- |\n| segments | Array, Segment | A single Segment or an array of Segments |\n\n\n***\n\n### Message.hasSegments()\n\n  Does this message have any segments?\n\n\n\n***\n\n### Message.addSegment()\n\n  Adds the given _segment_ to the message\n\n##### Params\n| Name | Type(s) | Description |\n| ---- | ------- | ----------- |\n| segment | Segment | The Segment to add to the message |\n\n\n***\n\n### Message.getHeader()\n\n  Gets the header Segment of the Message\n\n\n\n***\n\n### Message.delimiters()\n\n  Gets the delimiters for the given message. These are taken from the MSH\n\n\n\n***\n\n### Segment\n\n  Constructor\n\n***\n\n### Segment.parse()\n\n  Parses _data_ as a hl7 segment\n\n##### Params\n| Name | Type(s) | Description |\n| ---- | ------- | ----------- |\n| data | Buffer, String | The segment |\n\n\n***\n\n### utils.segmentIsHeader()\n\n  Is the given _segment_ a header segment?\n\n##### Params\n| Name | Type(s) | Description |\n| ---- | ------- | ----------- |\n| segment | Segment | A Segment object |\n\n\n***\n\n### utils.segmentTypeIsHeader()\n\n  Is the given segment _type_ a header segment?\n\n##### Params\n| Name | Type(s) | Description |\n| ---- | ------- | ----------- |\n| type | String | The segment type |\n\n## License\n\nMIT (See `LICENSE` for more info)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanlucas%2Fnodengine-hl7","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevanlucas%2Fnodengine-hl7","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanlucas%2Fnodengine-hl7/lists"}