postureco

How Can We Help?

PostureRay push to 3rd party software and EHRs

PostureRay generic E.H.R. interface
revision date 2021/7/2

Initial setup:

  1. In the System Setup form, select the E.H.R. Settings tab
  2. For the user code (admin user if you only have one user set-up), select the generic E.H.R. provider.
  3. Complete the URL of your E.H.R. listening service and the key you want to use to identify the client.

Sending a study to your E.H.R.:

  1. Click on the Export menu option.
  2. Ensure the E.H.R. Export Destination is selected at the top center of the form.
  3. If you also want the reports to be sent, ensure the “Reports too?” checkbox is checked at the bottom left of the form.
  4. In the list of studies, click on the patient name of the study you want to export. The evaluated checkboxes will checked.
  5. Click on the Export button at the middle left of the Export form,
  6. The E.H.R. Export form will appear with the list of X-rays and Reports which are available to upload based on your previous selections. You may uncheck some X-rays and/or reports.
  7. Click on the Export button.
  8. A success or error message will appear.
  9. An EHRw.txt file will have been created in the PostureRay\Report folder. The w in the name is a series of letters and numbers to form a unique file name.

This is what is sent to your E.H.R. when the user clicks on the Export button in the E.H.R. Export form:

For the study, PostureRay posts to your server, the following information:
• Patient number in E.H.R.
• Patient first name
• Patient last name
• Patient date of birth
• E.H.R. user key (value in the System Setup form’s E.H.R. settings tab)
One or more jpg and optionally, some pdfs are posted as data streams.

PostureRay posts the following to your E,H.R. URL:
1. The information would be formatted as JSON text, for example
{“processor”:”TravelcardAttachedDocProcessor”,”vendor”:”postureRay”,”key”:”ssddet3EBYXFFirs1GjEYlgCBUpB1C3c”,”patientControlNumber”:”ArmaJes202147000″,”patientFirstName”:”Jes”,”patientLastName”:”Arma”,”patientDateOfBirth”:”1955-01-01″,”override”:”1″}
3. With this post one or more files may be posted between boundaries. These can be jpgs or pdfs. There is a maximum size cut-off for the PDFs. Also jpgs and pdfs are grouped together by PostureRay so that individual posts aren’t too big. These size limits are 19 megabytes.
4. The Security Protocol is Tls1.2
5. The HttpWebRequest is created as a combination of the URL and the encoded JSON text.
6. The ContentType is “multipart/form-data; boundary=8d90416b78d46c9”  N.B. this boundary is unique for each Web Request.
7. The Method is a POST
8. The content length is included
9. For each file sent as a data stream, the E.H.R. must return:
– the file’s MD5 signature (md5 JSON element)
– the file name (filename JSON element)
– the file size (size JSON element)
– the file transfer status (status JSON element)
– the error message if applicable (errorMessage JSON element)
10. Using the data returned from the E.H.R., PostureRay compares the MD5 signature of each file to what was received by the E.H.R. to make sure the file content wasn’t modified during the upload.