Skip to content

Instantly share code, notes, and snippets.

@jdee
Created October 20, 2010 15:13
Show Gist options
  • Select an option

  • Save jdee/636601 to your computer and use it in GitHub Desktop.

Select an option

Save jdee/636601 to your computer and use it in GitHub Desktop.
posting an HL7 message
jdee@fatman:~/github/csinitiative/trisano/client-web-api/ruby/staged_messages$ export TRISANO_BASE_URL=http://localhost:3000
jdee@fatman:~/github/csinitiative/trisano/client-web-api/ruby/staged_messages$ export TRISANO_API_CONTENT_TYPE=application/edi-hl7v2
jdee@fatman:~/github/csinitiative/trisano/client-web-api/ruby/staged_messages$ ruby staged_messages.rb ../../../webapp/lib/hl7/samples/realm-minimal-message.hl7
Using the following custom headers:
{"Content-Type"=>"application/edi-hl7v2"}
Processing message 1
Message number 1 could not be processed due to the following errors (TrisanoWebError):
* HL7 Message is missing the header
* HL7 Message is missing the header
* HL7 Message is missing the header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment