Skip to content

Instantly share code, notes, and snippets.

@jrmi
Last active November 2, 2015 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrmi/3f867beced83a349b8fe to your computer and use it in GitHub Desktop.
Save jrmi/3f867beced83a349b8fe to your computer and use it in GitHub Desktop.
Code sample to create a "proxy service" with mhesb
#!/usr/bin/env python
from pyESB import Chain, source, transformers
c1 = Chain(source.MLLP(port=2345))
c2 = Chain(source.Timer(minutes=30))
c3 = Chain(source.SQLQuery(type="msql", query="""select...""", ))
c1.add(transfomers.HL7toObject())
c1.add(transfomers.LogMessage())
c1.add(transfomers.HL7toObject())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment