Get the app
Knowledge Base

PostureScreen push to custom 3rd party software (EHR developer guide)

Video5 min read

On this page 11 sections

Summary

This guide is for developers at EHR and practice software companies who want PostureScreen exams (including LeanScreen, SquatScreen and PostureScribe.AI notes) to arrive in their system.

It is a one-way push. You give the practice one secure web address (URL). PostureScreen sends each report to it. You never query, poll or log in to our system, and we never need access to yours.

3:01
PostureScreen push to custom 3rd party software (EHR developer guide)3:01

Download the integration guide (PDF): PostureScreen EHR Push Integration Guide


How it works

  1. A clinician finishes an exam in PostureScreen and sends the report to your system.
  2. PostureScreen makes one HTTPS POST to your URL. The body is multipart/form-data. It holds a data file called screening.json, the PDF report and the posture images.
  3. Your endpoint stores the files and answers with any 2xx status (for example 200 OK) within a few seconds.
  4. You match the patient and file the documents afterward, on your own schedule.

That is the whole integration. There is nothing for you to call back, and no account on our side to set up.

Step 1: Give the practice a URL and a vendor key

Build an HTTPS endpoint that accepts a multipart/form-data POST. Give each practice:

  • The URL to post to. It must start with https://. PostureScreen posts to it exactly as typed and adds no query parameters of its own, so you can put a practice ID or token in the address (for example https://api.your-ehr.com/posturescreen/inbound?practice=8841).
  • A vendor key. PostureScreen sends it back inside screening.json in a field called softwarekey. Check it on every request and reject anything that doesn't match.

PostureScreen does not send an Authorization header, so the URL and the vendor key are how you identify the practice.

Step 2: The practice adds the connection in PostureScreen

On the iPad, the practice opens Settings › WebExercises & EHR Integration › EHR Connections.

WebExercises & EHR Integration screen with EHR Connections

They tap Add EHR Connector, choose Internet System, and then fill in:

  1. A name for the connection (any name).
  2. Website URL: the full https:// address you gave them.
  3. Vendor Key: the key you issued to that practice.
  4. Switch the connection on.
Internet System connector with Website URL and Vendor Key fields

Step 3: Match the patient and the provider

On each client's profile (Client Info), the practice types your patient number into EHR Client ID. It arrives as patientID. The Internal ID field arrives as internalClientID.

EHR Client ID and Internal ID fields on the Client Info screen

If you route documents by provider, the practice enters up to three Provider / Practice IDs under Settings › Clinic & Office Information. They arrive as clinicProvider1ID, clinicProvider2ID and clinicProvider3ID, next to the provider names clinicProvider1 to clinicProvider3.

Provider / Practice ID fields under Clinic & Office Information

The patient's first name, last name and birth date are always included (nameFirst, nameLast, birthdate as yyyy-MM-dd) as a fallback when no EHR Client ID was entered.

What each request contains

Every file is its own form part, and the part name is the file name. File names keep only letters, numbers, _, - and ..

Part (file name)TypeWhen
The report, e.g. Doe_Jane_2026-12-01_Report.pdfapplication/pdfAlways. The name depends on the report that was sent, so match on .pdf
screening.jsonapplication/jsonAlways
ProfileIcon_Jane-Doe_2026-12-01.jpgimage/jpegWhen the client has a profile photo
Front_, Right_, Left_, Back_Jane-Doe_2026-12-01.jpgimage/jpegPostureScreen exam (Left and Back when those views were taken)
LeanScreen_Front_, LeanScreen_Right_Jane-Doe_2026-12-01.jpgimage/jpegLeanScreen exam
Movement thumbnailsimage/jpegSquatScreen and movement exams
AIScribe_Note_Jane-Doe_2026-12-01.rtfrich text (.rtf)When the visit has a PostureScribe.AI note (.html when sent from the PostureScreen web portal)

The image fields inside screening.json (postureScreenFrontImage, postureScreenRightImage, postureScreenLeftImage, postureScreenBackImage, leanScreenFrontImage, leanScreenRightImage) give you each image's part name, so you always know which part is which. Plan for requests of several megabytes.

Fields in screening.json

FieldMeaning
softwarekeyThe vendor key the practice entered (left out if blank)
patientIDEHR Client ID: your patient number
internalClientIDInternal ID
patientUUIDPostureScreen's own client ID (stable for that client)
nameFirst, nameLast, birthdatePatient name and birth date (yyyy-MM-dd)
isMale, isMetric, height, weight, phone, emailAddressOther client details
eventUUIDThe visit. Use it to group or de-duplicate pushes
uuidThe exam itself
screeningDateDate of the exam (yyyy-MM-dd)
notes, exercisesVisit notes and prescribed exercises
clinicName, clinicEmail, clinicPhone, clinicMobilePhone, clinicWebsitePractice details
clinicAddressOne to clinicAddressThree, clinicCity, clinicState, clinicZipPractice address
clinicDirector, clinicProvider1 to 3, clinicProvider1ID to 3IDDirector, provider names and your provider IDs
postureScreenFrontImage and the other image fieldsPart names of the images in this request
resultsDictionaryThe exam's measurements
pbf, bmi, whr, fbm, lbm, bmrLeanScreen body composition results
plainTextThe note's text, when the report sent is a PostureScribe.AI note

Some exams add more keys (for example effectiveHeadWeight and the raw digitizing data). Ignore keys you don't use, because new ones can be added over time.

{
  "softwarekey": "VK-8841-PRACTICE-KEY",
  "patientID": "EHR-10442",
  "internalClientID": "",
  "patientUUID": "6F1C2D0E-0000-0000-0000-000000000000",
  "nameFirst": "Jane",
  "nameLast": "Doe",
  "birthdate": "1980-01-01",
  "eventUUID": "A41B7C55-0000-0000-0000-000000000000",
  "screeningDate": "2026-12-01",
  "clinicName": "Demo Practice",
  "clinicProvider1": "Dr. Sample",
  "clinicProvider1ID": "DR-17",
  "postureScreenFrontImage": "Front_Jane-Doe_2026-12-01.jpg",
  "postureScreenRightImage": "Right_Jane-Doe_2026-12-01.jpg",
  "resultsDictionary": { "...": "..." }
}

How to answer

  • Any 2xx status means success. The clinician sees that the report was sent.
  • Any other status is shown to the clinician together with the text of your response, so make the message clear (for example 401 Unknown vendor key or 404 No patient with EHR Client ID EHR-10442).
  • If your server can't be reached, the clinician sees a "servers are offline or the network is unreachable" message.
  • Reply fast. The iPad stops waiting after about 20 seconds. Store the files, answer right away, and do the matching and filing afterward.

A minimal receiver

This Python (Flask) example checks the vendor key, saves every part and answers right away.

import hmac, json, os
from flask import Flask, request, abort
from werkzeug.utils import secure_filename

app = Flask(__name__)
VENDOR_KEYS = {"8841": "VK-8841-PRACTICE-KEY"}  # practice ID -> vendor key you issued

@app.post("/posturescreen/inbound")
def inbound():
    practice = request.args.get("practice", "")
    screening = json.load(request.files["screening.json"])
    expected = VENDOR_KEYS.get(practice, "")
    if not expected or not hmac.compare_digest(screening.get("softwarekey", ""), expected):
        abort(401, "Unknown vendor key")

    folder = os.path.join("inbox", practice, secure_filename(screening["eventUUID"]))
    os.makedirs(folder, exist_ok=True)
    for name, part in request.files.items():
        part.stream.seek(0)
        part.save(os.path.join(folder, secure_filename(name)))

    # Queue patient matching (patientID, then name + birthdate) for later.
    return "Received", 200

You can try your endpoint before a practice connects with a request like this one:

curl -X POST "https://api.your-ehr.com/posturescreen/inbound?practice=8841" \
  -F "screening.json=@screening.json;type=application/json" \
  -F "Doe_Jane_2026-12-01_Report.pdf=@report.pdf;type=application/pdf"

Step 4: Test with a real push

  1. In PostureScreen, create a test client and enter an EHR Client ID.
  2. Finish an exam and open the report.
  3. Tap the share button and choose EHR System.
  4. Read the result on the iPad: success, or your status code and message.

PostureScribe.AI notes and custom workflows

When the visit has a PostureScribe.AI note, it is already attached to every push as a document named AIScribe_Note_…. If you would like SOAP notes, narratives or other documents mapped into your own fields, or sent automatically the moment a note is signed, that is a custom workflow. Email us and we'll scope it with your team.

Questions

Email support@posturescreen.com.

Have a question?

Talk to the people who build PostureScreen and PostureRay.

PostureScreen support is by email. Live PostureRay support runs Monday through Friday, 9 AM–5 PM Eastern (excluding U.S. holidays).