debian/0000755000000000000000000000000011673172337007200 5ustar debian/watch0000644000000000000000000000011211607324415010214 0ustar version=3 http://pypi.python.org/packages/source/h/hl7/ hl7-(.*)\.tar\.gz debian/copyright0000644000000000000000000000326011627353007011126 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: python-hl7 Source: http://github.com/johnpaulett/python-hl7 Files: * Copyright: 2009-2011 John Paulett License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2011 John Paulett License: BSD-3-clause Licensed under the same terms as python-hl7 debian/changelog0000644000000000000000000000125011673172215011043 0ustar python-hl7 (0.2.2-1) unstable; urgency=low * New upstream release (0.2.2) * Add dependency on python-pkg-resources (Closes: #645262) * Add man page for mllp_send (built from docs/mllp_send.rst) -- John Paulett Sat, 17 Dec 2011 11:22:24 -0600 python-hl7 (0.2.1-1) unstable; urgency=low * New upstream release (0.2.1) * Correct empty lines in debian/copyright and use correct License short name (BSD-3-clause) * 0.2.2 -- John Paulett Wed, 14 Dec 2011 15:53:13 -0600 python-hl7 (0.2.0-1) unstable; urgency=low * Initial release (Closes: #633749) -- John Paulett Wed, 13 Jul 2011 07:32:39 -0500 debian/source/0000755000000000000000000000000011673172341010473 5ustar debian/source/format0000644000000000000000000000001411607324414011676 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000211607324415010367 0ustar 7 debian/rules0000755000000000000000000000010011607324415010240 0ustar #!/usr/bin/make -f # -*- makefile -*- %: dh --with python2 $@ debian/mllp_send.10000644000000000000000000000546211673172215011241 0ustar .TH "MLLP_SEND" "1" "December 17, 2011" "0.2.2" "python-hl7" .SH NAME mllp_send \- MLLP network client . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .\" Man page generated from reStructeredText. . .sp python\-hl7 features a simple network client, \fBmllp_send\fP, which reads HL7 messages from a file or \fBsys.stdin\fP and posts them to an MLLP server. \fBmllp_send\fP is a command\-line wrapper around \fBhl7.client.MLLPClient\fP. \fBmllp_send\fP is a useful tool for testing HL7 interfaces or resending logged messages: .sp .nf .ft C $ mllp_send \-\-file sample.hl7 \-\-port 6661 mirth.example.com MSH|^~\e&|LIS|Example|Hospital|Mirth|20111207105244||ACK^A01|A234244|P|2.3.1| MSA|AA|234242|Message Received Successfully| .ft P .fi .SH USAGE .sp .nf .ft C Usage: mllp_send [options] Options: \-h, \-\-help show this help message and exit \-p PORT, \-\-port=PORT port to connect to \-f FILE, \-\-file=FILE read from FILE instead of stdin \-q, \-\-quiet do not print status messages to stdout \-\-loose allow file to be a HL7\-like object (\er\en instead of \er). Can ONLY send 1 message. Requires \-\-file option (no stdin) .ft P .fi .SH INPUT FORMAT .sp By default, \fBmllp_send\fP expects the \fBFILE\fP or stdin input to be a properly formatted HL7 message (carriage returns separating segments) wrapped in a MLLP stream (\fBmessage1message2...\fP). .sp However, it is common, especially if the file has been manually edited in certain text editors, that the ASCII control characters will be lost and the carriage returns will be replaced with the platform\(aqs default line endings. In this case, \fBmllp_send\fP provides the \fB\-\-loose\fP option, which attempts to take something that "looks like HL7" and convert it into a proper HL7 message. Currently the \fB\-\-loose\fP option can only handle 1 HL7 message per file (it causes \fBmllp_send\fP to assume the whole file is one HL7 message). .SH ADDITIONAL RESOURCES .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .IP \(bu 2 \fI\%http://python-hl7.readthedocs.org\fP .UNINDENT .UNINDENT .UNINDENT .SH AUTHOR John Paulett .SH COPYRIGHT 2011, John Paulett .\" Generated by docutils manpage writer. .\" . debian/control0000644000000000000000000000225011673172215010575 0ustar Source: python-hl7 Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: John Paulett Build-Depends: debhelper (>= 7.0.50~), python (>= 2.6.6-3~), python-setuptools (>= 0.6b3-1~) Standards-Version: 3.9.2 Homepage: https://github.com/johnpaulett/python-hl7/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-hl7/trunk Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-hl7/trunk/ Package: python-hl7 Architecture: all Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-pkg-resources Provides: ${python:Provides} Description: Python library for parsing HL7 messages HL7 is a communication protocol and message format for health care data. It is the de-facto standard for transmitting data between clinical information systems and between clinical devices. The version 2.x series, which is often is a pipe delimited format is currently the most widely accepted version of HL7 (version 3.0 is an XML-based format). python-hl7 currently only parses HL7 version 2.x messages into an easy to access, list-based, data structure. debian/python-hl7.manpages0000644000000000000000000000002211673172215012713 0ustar debian/mllp_send.1