{"id":15010681,"url":"https://github.com/eerohele/pipehat","last_synced_at":"2025-10-29T22:08:08.075Z","repository":{"id":151300591,"uuid":"608360529","full_name":"eerohele/pipehat","owner":"eerohele","description":"Read and write vertical bar encoded HL7 v2.x messages.","archived":false,"fork":false,"pushed_at":"2024-05-23T04:40:29.000Z","size":95,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T07:03:12.801Z","etag":null,"topics":["clojure","hl7"],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/eerohele.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-03-01T21:23:32.000Z","updated_at":"2024-05-25T19:03:13.000Z","dependencies_parsed_at":"2024-01-12T22:34:06.851Z","dependency_job_id":"f24e32c5-f7aa-44b3-b4aa-9d005d755efa","html_url":"https://github.com/eerohele/pipehat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eerohele%2Fpipehat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eerohele%2Fpipehat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eerohele%2Fpipehat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eerohele%2Fpipehat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eerohele","download_url":"https://codeload.github.com/eerohele/pipehat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248088310,"owners_count":21045684,"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":["clojure","hl7"],"created_at":"2024-09-24T19:35:22.058Z","updated_at":"2025-10-29T22:08:03.009Z","avatar_url":"https://github.com/eerohele.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pipehat\n\n[![Clojars Project](https://img.shields.io/clojars/v/me.flowthing/pipehat.svg)](https://clojars.org/me.flowthing/pipehat)\n\nPipehat (`|^`) is a zero-dependency Clojure library for reading and writing [HL7 version 2](https://www.hl7.org/implement/standards/product_brief.cfm?product_id=185) messages encoded using vertical bar (\"pipehat\") encoding.\n\n## Features\n\n- Read, write, and round-trip HL7 v2 messages\n- [Minimum Lower Layer Protocol](http://www.hl7.org/implement/standards/product_brief.cfm?product_id=55) (MLLP) support (see [`hello.repl`](https://github.com/eerohele/pipehat/blob/main/repl/hello.repl) for an example)\n- Shape read messages into maps for easier (and indexed) access to message data\n\n## Example\n\n```clojure\n(require '[pipehat.api :as hl7])\n;;=\u003e nil\n\n(def input\n  (str\n    \"MSH|^~\\\\\u0026|GHH LAB|ELAB-3|GHH OE|BLDG4|200202150930||ORU^R01|CNTRL-3456|P|2.4\" \\return\n    \"PID|||555-44-4444||EVERYWOMAN^EVE^E^^^^L|JONES|196203520|F|||153 FERNWOOD DR.^^STATESVILLE^OH^35292||(206)3345232|(206)752-121||||AC555444444||67-A4335^OH^20030520\" \\return\n    \"OBR|1|845439^GHH OE|1045813^GHH LAB|1554-5^GLUCOSE|||200202150730||||||||555-55-5555~555-66-6666-666^PRIMARY^PATRICIA P^^^^MD^^LEVEL SEVEN HEALTHCARE, INC.|||||||||F||||||444-44-4444^HIPPOCRATES^HOWARD H^^^^MD\" \\return\n    \"OBX|1|SN|1554-5^GLUCOSE^POST 12H CFST:MCNC:PT:SER/PLAS:QN||^182|mg/dl|70_105|H|||F\" \\return))\n;;=\u003e #'user/input\n\n(hl7/read-string input)\n;;=\u003e [[\"MSH\" [\"|\" \"^~\\\\\u0026\" \"GHH LAB\" ...]]\n;;    [\"PID\" [nil nil \"555-44-4444\" ...]]\n;;    [\"OBR\" [\"1\" [\"845439\" \"GHH OE\"] [\"1045813\" \"GHH LAB\"] ...]]\n;;    ...]\n\n;; Round-tripping\n(assert (= input (-\u003e input hl7/read-string hl7/write-string)))\n;;=\u003e true\n\n;; Shaping the message into a more palatable format\n(-\u003e input hl7/read-string hl7/shape)\n;;=\u003e {\"MSH\" [{[\"MSH\" 1] \"|\", [\"MSH\" 2] \"^~\\\\\u0026\", ...}],\n;;    \"PID\" [{[\"PID\" 3] \"555-44-4444\", [\"PID\" 5] {#, #, ...}, ...}],\n;;    ...}\n\n;; Get the value of OBX.3.3 from the shaped message\n(get-in *1 [\"OBX\" 0 [\"OBX\" 3] [\"OBX\" 3 3]])\n;;=\u003e \"POST 12H CFST:MCNC:PT:SER/PLAS:QN\"\n```\n\nFor more examples, see [`hello.repl`](https://github.com/eerohele/pipehat/blob/main/repl/hello.repl).\n\n## API\n\nSee [API docs](https://eerohele.github.io/pipehat/).\n\n## Status\n\nStable. There will be no breaking changes to the API. No new features are planned.\n\nEverything apart from the `pipehat.api` namespace is internal and subject to change.\n\n## Prior art\n\n- [Clojure HL7 Version 2.x Message Parser](https://github.com/cmiles74/clojure-hl7-messaging-2-parser)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feerohele%2Fpipehat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feerohele%2Fpipehat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feerohele%2Fpipehat/lists"}