Electronic Medical Record Workflow

The Electronic Medical Record (EMR) workflow is an IBM(R) WebSphere(R) MQ Workflow process designed to illustrate the interaction of IBM WebSphere MQ Workflow, IBM WebSphere Interchange Server collaborations, various IBM WebSphere Business Integration adapters, and various HL7- and HIPAA-enabled applications. The example illustrated by the EMR workflow includes database interaction, seamless integration with a HIPAA-enabled payer and an instance of a sample patient electronic medical record.

Process model

The following diagram shows the process model for the Electronic Medical Record workflow:

Process model for EMR workflow

Activity details

The EMR workflow contains the following activities:

Alert for Drug Use

This activity sends an alert message containing the name of the drug being prescribed and the medical condition that it is used to treat..

Property Value
Control to Send Pharmacy Order
Data from Source Mappings:
  • Order_Prescription_Code maps to OrderMedCode
  • Order_Prescription_Description maps to OrderMedDesc
  • Order_Prescription_Indication maps to OrderMedInd
  • Patient_ID maps to PatientID
Referenced programs Alert_for_Drug_Usage
Referenced Program Execution Server CWLDSVR.FMCSYS.FMCGRP
Input data structure OMP_Alert
Output data structure OMP_Alert

Send Pharmacy Order

This activity sends a pharmacy order message, containing both doctor and patient identification, along with prescribed medication information.

Property Value
Control from Alert for Drug Use
Control to Send_Email when ReturnCode <> "0"
Update_EMR when ReturnCode = "0"
Data from Source Mappings:
  • DR_Last_Name maps to DrLName
  • DR_First_Name maps to DrFName
  • DR_Email_Address maps to EmailAddresses
  • Order_Prescription_Code maps to OrderMedCode
  • Order_Prescription_Quantity maps to OrderMedQty
  • Order_Prescription_Dosage_Form maps to OrderMedDsgForm
  • Order_Prescription_Dosage_Amount maps to OrderMedDsgAmt
  • Order_Prescription_Dosage_Unit maps to OrderMedDsgUnits
  • Order_Prescription_Frequency maps to OrderMedFrq
  • Order_Prescription_Description maps to OrderMedDesc
  • Order_Prescription_Indication maps to OrderMedInd
  • Patient_ID maps to PatientID
  • Patient_Last_Name maps to PatientLName
  • Patient_First_Name maps to PatientFName
  • Patient_Middle_Name maps to PatientMName
Referenced programs Send_Pharmacy_Order
Referenced Program Execution Server CWLDSVR.FMCSYS.FMCGRP
Input data structure OMP_O09
Output data structure ORP_O10

Send_Email

This activity sends an e-mail to notify the ordering doctor of the dispensed medication prescribed to a patient, or to an interested party if any exception has occurred.

Property Value
Control from Send Pharmacy Order when ReturnCode <> "0"
Update_EMR
Data from
  • Source Mappings:
    • DR_Last_Name maps to DrLName
    • DR_First_Name maps to DrFName
    • DR_Email_Address maps to EmailAddresses
    • Patient_Last_Name maps to PatientLName
    • Patient_First_Name maps to PatientFName
    • Patient_ID maps to PatientID
    • Order_Prescription_Description maps to OrderMedDesc
  • Update_EMR Mappings:
    • ReturnCode maps to ReturnCode
Referenced programs Send_Email
Referenced Program Execution Server CWLDSVR.FMCSYS.FMCGRP
Input data structure OMP_Email
Output data structure Default Data Structure

Update_EMR

This activity updates the electronic medical record.

Property Value
Control from Send Pharmacy Order when ReturnCode = "0"
Control to Send_Email
Data from Source Mappings:
  • Order_Prescription_Code maps to OrderMedCode
  • Order_Prescription_Dosage_Amount maps to OrderMedDsgAmt
  • Order_Prescription_Dosage_Unit maps to OrderMedDsgUnits
  • Order_Prescription_Dosage_Form maps to OrderMedDsgForm
  • Order_Prescription_Frequency maps to OrderMedFrq
  • Order_Prescription_Description maps to OrderMedDesc
  • Patient_ID maps to PatientID
Data to Send_Email Mappings:
  • ReturnCode maps to ReturnCode
Referenced programs Update_EMR
Referenced Program Execution Server CWLDSVR.FMCSYS.FMCGRP
Input data structure OMP_UpdateEMR
Output data structure UpdateEMR

Data structures

Errors

The information returned by an HL7 response message when an error is detected.

Member name Member type
ErrorIdentifier STRING
ErrorText STRING
CodingSystem STRING
AlternateIdentifier STRING
AlternateText STRING
AlternateCodingSystem STRING
SegmentID STRING
Sequence FLOAT
FieldPosition FLOAT

EMR

Input data to the workflow.

Member name Member type
Member name Member type
DBKey STRING
DR_Last_Name STRING
DR_First_Name STRING
DR_Email_Address STRING
Order_Prescription_Code STRING
Order_Prescription_Quantity STRING
Order_Prescription_Dosage_Amount STRING
Order_Prescription_Dosage_Unit STRING
Order_Prescription_Dosage_Form STRING
Order_Prescription_Frequency STRING
Order_Prescription_Description STRING
Order_Prescription_Indication STRING
Patient_ID STRING
Patient_Last_Name STRING
Patient_First_Name STRING
Patient_Middle_Name STRING

OMP_O09

Input data for pharmacy.

Member name Member type
DrLName STRING
DrFName STRING
EmailAddresses STRING
OrderMedCode STRING
OrderMedQty STRING
OrderMedDsgForm STRING
OrderMedDsgAmt STRING
OrderMedDsgUnits STRING
OrderMedFrq STRING
OrderMedDesc STRING
OrderMedInd STRING
PatientID STRING
PatientLName STRING
PatientFName STRING
PatientMName STRING

ORP_O10

Pharmacy return information.

Member name Member type
ReturnCode STRING
AckCode STRING
Errors Array(10) of STRUCTURE Errors

OMP_Alert

Data for medication alert.

Member name Member type
OrderMedCode STRING
OrderMedDesc STRING
OrderMedInd STRING
ReturnCode STRING
PatientID STRING

OMP_Email

Email specific data.

Member name Member type
DrLName STRING
DrFName STRING
EmailAddresses STRING
PatientLName STRING
PatientFName STRING
PatientID STRING
OrderMedDesc STRING
ReturnCode STRING
ErrorDesc STRING

UpdateEMR

Response from the EMR database update operation.

Member name Member type
ReturnCode STRING
AckCode STRING

OMP_UpdateEMR

EMR database update input.

Member name Member type
OrderMedCode STRING
OrderMedDsgAmt STRING
OrderMedDsgUnits STRING
OrderMedDsgForm STRING
OrderMedFrq STRING
OrderMedDesc STRING
PatientID STRING

Copyright IBM Corp. 2002, 2003