HL7 - RESTful
Covered by this topic
CGI Vars Explained
Attribute | Description | Value Type (O=Optional, R=Required, Rv=Required to be the value listed) | Sample or Required Values |
f | Tells system you are requesting to do an HL7 upload. | Rv | wchl7 |
interface | Tells system the name of the configuration to use. | R | lab_abc |
message | The actual HL7 to upload | R | MSH|^~\&|SendingApp|SendingFac|ReceivingApp|ReceivingFac|20120411070545||ORU^R01|59689|P|2.3 |
login_user | Username assigned to your posting account | R | username1 |
login_passwd | Password assigned to your posting account | R | p@ssw0rd |
Sample Webform Post
<FORM METHOD="POST" ACTION="POSTING-URL" enctype="multipart/form-data">
Select file to upload: <input type="file" name="message" value="message" size="45" id="file"><BR>
Interface Name:<input size="40" type="text" name="interface" id="interface" value="Assigned Interface Name"><BR>
<input type='hidden' name='f' value='wchl7'>
<input type='hidden' name='login_user' value='username'>
<input type='hidden' name='login_passwd' value='password'>
<input type='submit' value='Submit'>
</FORM>
Sample Bash Script
#!/bin/bash
if [ $# -lt 5 ]; then
echo Usage: $0 interface message user password url
exit 1
fi
INTERFACE=$1
MESSAGE=$2
LOGINUSER=$3
LOGINPASS=$4
URL=$5
curl -i \
-F "f=wchl7" \
-F "interface=$INTERFACE" \
-F "login_user=$LOGINUSER" \
-F "login_passwd=$LOGINPASS" \
-F "message=@$MESSAGE" \
"$URL"
Supported Message Types
WebChart Documentation
Last Updated:
Last Build:
Fri, 20 Jun 2025 19:19:56 UTC
WikiGDrive Version: 9b54d57b334ab6e65183ff1f8d720a685ad59e87