PostureScreen push to custom 3rd party software (EHR developer guide)
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.
Download the integration guide (PDF): PostureScreen EHR Push Integration Guide
How it works
- A clinician finishes an exam in PostureScreen and sends the report to your system.
- PostureScreen makes one HTTPS POST to your URL. The body is
multipart/form-data. It holds a data file calledscreening.json, the PDF report and the posture images. - Your endpoint stores the files and answers with any 2xx status (for example
200 OK) within a few seconds. - 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 examplehttps://api.your-ehr.com/posturescreen/inbound?practice=8841). - A vendor key. PostureScreen sends it back inside
screening.jsonin a field calledsoftwarekey. 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.

They tap Add EHR Connector, choose Internet System, and then fill in:
- A name for the connection (any name).
- Website URL: the full
https://address you gave them. - Vendor Key: the key you issued to that practice.
- Switch the connection on.

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.

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.

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) | Type | When |
|---|---|---|
The report, e.g. Doe_Jane_2026-12-01_Report.pdf | application/pdf | Always. The name depends on the report that was sent, so match on .pdf |
screening.json | application/json | Always |
ProfileIcon_Jane-Doe_2026-12-01.jpg | image/jpeg | When the client has a profile photo |
Front_, Right_, Left_, Back_Jane-Doe_2026-12-01.jpg | image/jpeg | PostureScreen exam (Left and Back when those views were taken) |
LeanScreen_Front_, LeanScreen_Right_Jane-Doe_2026-12-01.jpg | image/jpeg | LeanScreen exam |
| Movement thumbnails | image/jpeg | SquatScreen and movement exams |
AIScribe_Note_Jane-Doe_2026-12-01.rtf | rich 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
| Field | Meaning |
|---|---|
softwarekey | The vendor key the practice entered (left out if blank) |
patientID | EHR Client ID: your patient number |
internalClientID | Internal ID |
patientUUID | PostureScreen's own client ID (stable for that client) |
nameFirst, nameLast, birthdate | Patient name and birth date (yyyy-MM-dd) |
isMale, isMetric, height, weight, phone, emailAddress | Other client details |
eventUUID | The visit. Use it to group or de-duplicate pushes |
uuid | The exam itself |
screeningDate | Date of the exam (yyyy-MM-dd) |
notes, exercises | Visit notes and prescribed exercises |
clinicName, clinicEmail, clinicPhone, clinicMobilePhone, clinicWebsite | Practice details |
clinicAddressOne to clinicAddressThree, clinicCity, clinicState, clinicZip | Practice address |
clinicDirector, clinicProvider1 to 3, clinicProvider1ID to 3ID | Director, provider names and your provider IDs |
postureScreenFrontImage and the other image fields | Part names of the images in this request |
resultsDictionary | The exam's measurements |
pbf, bmi, whr, fbm, lbm, bmr | LeanScreen body composition results |
plainText | The 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 keyor404 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
- In PostureScreen, create a test client and enter an EHR Client ID.
- Finish an exam and open the report.
- Tap the share button and choose EHR System.
- 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).
