The Plexus Outbound Anesthesia Record Task is an Outbound Interface Engine Task that is used to export anesthesia records and documents.
For more details on the Outbound Interface Engine and Tasks please refer to this wiki article.
The Anesthesia Record Task will query the database searching for anesthesia records and documents that haven't been exported yet. The Anesthesia Record Task will then export the un-exported documents.
Configuration
The export behavior can be controlled by the configuration settings listed below.
Settings
Here are all the settings that can be set:
|
Setting Name |
Table |
Catalog ID |
Description |
Notes |
|
plexusintraopoutbound-targetsystem |
AppSettings |
233 |
Destination to which files will be sent. Value should be a name of an Outbound Destination from the EMR.OutboundDestinations table. |
This value is case sensitive and should match the name of the destination exactly |
|
plexusintraopoutbound-customfilename |
AppSettings |
189 |
File name template |
Example: “[DOS]_[LNAME]_[FNAME]_[FORMID]_[MRN]_[ACCT]_[DATE]_[TIME]” |
|
plexusintraopoutbound-pdfdocumentpath |
AppSettings |
227 |
PDF document path |
|
|
plexusintraopoutbound-xmldocumentpath |
AppSettings |
234 |
XML document path |
|
|
plexusintraopoutbound-sftpdirectory |
AppSettings |
228 |
SFTP directory |
|
|
plexusintraopoutbound-skipifmissingaccountid |
SvrSettings |
|
Skip if missing account id |
Value should be “true” or “false”. Default value is true |
|
plexusintraopoutbound-base64encode |
SvrSettings |
|
Base64 encode |
Value should be “true” or “false”. Default value is true |
|
plexusintraopoutbound-base64encode-zri |
SvrSettings |
|
Base64 encode and use ZRI segment |
Value should be “true” or “false”. Default value is false |
|
plexusintraopoutbound-textreport |
SvrSettings |
|
Send text report |
Value should be “true” or “false”. Default value is false |
|
FormIDs |
SvrSettings |
|
Mapping of document type to form name |
The document ids specified will be processed by task in addition to the intraop record. The document names specified will be used by the task whenever it needs to output document names. |
Setting up the Anesthesia Record Task
- Create the Anesthesia Record. Add a new row to the EMR DB Tasks table. Set the Name column value to "plexusoutbound-anesthesiarecord". Setup the desired schedule by setting the Interval and Settings column values. Ensure that the Task is enabled by setting the StatusID column value to "1".
- Create outbound destination. Add a new row to the EMR DB OutboundDestinations table. Set all the values and remember the outbound destination name. This destination name will be used as the value for the Target System and as the prefix for the Form IDs setting name.
- Add the configurations listed above to the EMR DB SvrSettings or AppSettings table as specified above.
Minimal settings
At least the following settings need to set:
- plexusintraopoutbound-targetsystem
- plexusintraopoutbound-customfilename
- FormIDs
Here is an example of the minimal settings and values you could set:
|
Setting Name |
Table |
Description |
|
plexusintraopoutbound-targetsystem |
AppSettings |
sftp |
|
plexusintraopoutbound-customfilename |
AppSettings |
[DOS]_[LNAME]_[FNAME]_[MRN]_[DATE]_[TIMES] |
|
FormIDs |
SvrSettings |
1|IntraOp;2|Preop;34|Nerve Block; |
With this minimal configuration the Anesthesia Record Task will export IntraOp, Preop, and Nerve Block documents as PDF files. The file names will be set based on the above template and sent to the "sftp" outbound destination.
File Name Template
The following keys can be set in a file name template string. The Anesthesia Record Task will process the template string and replace the keys with the proper values.
|
Template Key |
Description |
|
[DOS] |
Date of Service - format: yyyyMMdd |
|
[DOSTIME] |
Date of Service Time - format: HHmm |
|
[GUID] |
GUID |
|
[GUID36] |
Base36 GUID |
|
[MRN] |
MRN |
|
[FNAME] |
First Name |
|
[LNAME] |
Last Name |
|
[MNAME] |
Middle Name |
|
[DATE] |
Export Date - format: yyyyMMdd |
|
[TIME] |
Export Time - format: HHmm |
|
[TIMES] |
Export Time - format: HHmmss |
|
[FORMID] |
Form Name |
|
[DOCTITLE] |
Document Title |
|
[ISADDENDUM] |
if addendum the "_AD" will be added here |
|
[VERSIONGUID] |
Version GUID |
|
[VERSIONGUID36] |
Base36 Version GUID |
|
[ACCT] |
Account Number |
|
[SURG] |
Surgoeon Name |
Export Status
The Anesthesia Record Task will update the export status of an an anesthesia record and its documents after they have been successfully exported.
Successful Anesthesia Record Export Status ID: 2
The ExportStatusID column value of every Touch DB AnesRecords table row that was exported successfully will be incremented by 2.
TODO
add more details about the queries being performed to retrieve the records and documents
Comments
0 comments
Please sign in to leave a comment.