Direct messaging with EMR Direct phiMail in OpenEMR
A clinic or group that needs to send and receive referral documents over DirectTrust from OpenEMR can use the built-in Direct messaging feature, which relies on EMR Direct phiMail, an ONC certified HISP accredited by EHNAC and DirectTrust since 2014. The integration is configured under Administration, Globals, Connectors, so the work is a connector setup with a contracted messaging provider rather than a custom API build. Your team does not write message transport code. It is responsible for the OpenEMR side: enabling the connector, entering the Direct account details the HISP issues, assigning the users who will handle traffic, and deciding which clinical documents leave the system and under whose authority.
The HISP owns the Direct address infrastructure, the certificates and trust anchors that DirectTrust requires, message delivery between organizations, and the service agreement and billing. Your organization owns everything that touches the patient record. That includes which providers have Direct addresses, who may send outbound documents, how inbound messages are routed to a designated reviewer, and how the Direct Message Log is monitored. Before go-live, confirm with the HISP exactly which account identifiers, credentials and onboarding steps it requires, and confirm the current fee terms in writing, because pricing is set by the HISP and may change from the figures published in the OpenEMR documentation.
Plan the ownership questions before the first test message. Name one accountable owner for the Direct address pool, document who reviews the inbound queue each day, and decide how a misdirected document is reported to the HISP and to your privacy officer. Confirm that the OpenEMR version you run supports the Direct workflow described in the project's Direct wiki page, and test the full path between two real Direct addresses under your control before any clinical document is sent.
What you need before configuring OpenEMR Direct messaging
Direct messaging depends on a supported OpenEMR installation, a live phiMail account and people with the right access before any connector is touched. Confirm the supported OpenEMR version on the Direct wiki page and the releases page before you start, because the platform and version requirements shape everything that follows.
Supported OpenEMR 8.x installation
Run a current OpenEMR 8.x release on a platform that meets its stated requirements. Recent releases require PHP 8.3 or later and a MySQL- or MariaDB-compatible database. Check the release notes for the version you plan to run, because the 8.3.0 and 8.4.0 releases fixed security issues in the FHIR API, patient portal, billing, fax and SMS module and fee sheet. Confirm which release you are on before you request a phiMail account.
OpenEMR releasesActive EMR Direct phiMail account
OpenEMR's built-in Direct messaging uses EMR Direct phiMail as its HISP, so the account must be active with EMR Direct before configuration. Ask EMR Direct for the current setup fee and annual per-provider pricing in writing, and confirm which providers and addresses the account covers. The OpenEMR 8.0.0 certification page lists a setup fee and a per-provider annual fee, but treat that page as a starting point and confirm the figures with the vendor.
- Annual fee per provider
- $150
Administrator access to Globals and Connectors
Direct is configured under Administration, Globals, Connectors, so the person doing the work needs administrator rights to those settings. Confirm that this person can change connector values, that a second administrator can review them, and that changes are recorded in your audit trail. Limit this access to a small group because connector settings control where clinical documents go.
Designated user for incoming messages
Incoming Direct messages create a Patient Note for a designated user, who must match each message to the correct patient. Choose a named role or user who has access to patient records, can work the queue daily and has a backup for absences. Decide this before go-live, because unassigned messages sit in the log without a clear owner and clinicians may never see them.
Direct addresses and certificate material
Your HISP issues the Direct addresses and the certificate material that identify your organization and its providers on the DirectTrust network. Ask EMR Direct which addresses, certificates and trust anchors it will provide, who holds the private keys, how they are stored and how renewals are handled. Record the expiry dates in your certificate inventory so an expired certificate does not silently stop sends and receives.
Test plan and fallback process
Before go-live, agree how you will test sending and receiving with the HISP, which test partners are available, and who signs off each test. Also define a fallback for documents that cannot be sent electronically during an outage. Confirm the test process with EMR Direct, since the exact test steps depend on the account and connector setup.
How to configure EMR Direct phiMail in OpenEMR, step by step
This sequence takes an OpenEMR site from no Direct messaging to a working EMR Direct phiMail connection, with a verified Direct address for each provider, a designated user for incoming messages, and a confirmed test message in the Direct Message Log.
Engage EMR Direct and obtain the account
The practice or its implementation partner contacts EMR Direct, the ONC certified HISP that OpenEMR's built-in Direct messaging uses, and orders the phiMail service. Ask EMR Direct for the current setup fee and per-provider annual fee in writing, since the figures on the OpenEMR 8.0.0 certification page are a reference point and may have changed. Confirm who receives the account credentials and who owns the Direct addresses. The step is complete when the account is active and you hold the connection details EMR Direct issues for the site.
Enter connector settings under Globals
An administrator opens Administration, Globals, Connectors in OpenEMR and enters the phiMail connection details supplied by EMR Direct. Confirm each field name against the Direct wiki page for your installed version, because labels can change between releases. Record the exact values in your change log without the secrets, and store any credentials in your approved secrets process rather than in a shared document. The step is complete when the settings save without error and the connector shows as enabled for the site.
Confirm the Direct address for each provider
Each provider who will send or receive clinical documents needs a Direct address that EMR Direct has issued and that OpenEMR associates with the correct user record. Check every provider's address against the list EMR Direct provided, and confirm that the CCD and CCR send options you need are enabled for the users who will use them. Check the send options against the Direct wiki page for your version. The step is complete when each provider's address matches the account record and the send options are visible for the intended roles only.
Set the designated user for incoming messages
Choose the staff member who will receive incoming Direct messages. OpenEMR creates a Patient Note for that user, who then assigns the correct patient to each message. Pick a role with the training and access to triage clinical content, and plan cover for absences so messages do not wait unseen. Document the decision and the backup. The step is complete when a test incoming message creates a Patient Note for the designated user and no other account.
Send a test message to a known Direct address
Send a test document from one provider's Direct address to a Direct address you control or one that a partner organization has agreed to receive from you. Use synthetic patient data, not live records, and label the message as a test in its content. Confirm the recipient's system accepts and displays the document. The step is complete when the recipient confirms receipt and the outbound message shows a success status in OpenEMR.
Verify the result in the Direct Message Log
Open the Direct Message Log in OpenEMR and confirm that the outbound test message and an inbound reply or acknowledgment each show the expected status. Check that the inbound message created the Patient Note for the designated user and that the patient assignment workflow works end to end. Record any error status and its cause before going live. The step is complete when both the send and receive paths show the expected status in the log and the test records are removed or marked as test data according to your policy.
How a Direct message travels from OpenEMR to a receiver and back
The diagram starts in the practice's OpenEMR server, where a clinician sends a document through the built-in Direct messaging connector. The message leaves the trust boundary to the EMR Direct phiMail HISP, which exchanges it over the DirectTrust network with the receiver's HISP. A reply or inbound message returns to OpenEMR and lands as a Patient Note for the designated user, who assigns the correct patient. The Direct Message Log records the status at each step, so check it first when a message does not arrive.
Trust boundary between the practice's OpenEMR server and the external phiMail HISP, with the Direct Message Log recording status.
How Direct message elements map to OpenEMR records
This table compares each Direct message element a team handles with where it appears in OpenEMR and who should verify it. Read it as a checklist for the first test exchange, since the exact screens and labels depend on the OpenEMR version and phiMail settings installed. The main takeaway is that the patient match and the Direct Message Log status are the points most likely to need a human check.
| Message element | Where it appears in OpenEMR | Who verifies it |
|---|---|---|
| Outgoing CCD or CCR document | Generated from the patient chart and sent through the Direct connector; confirm which format each send option produces in your version | Clinical lead reviews a sample export against the chart |
| Sender Direct address | Set in the connector settings under Administration, Globals, Connectors from the phiMail account | Practice administrator confirms it matches the issued phiMail account |
| Recipient Direct address | Entered on the outgoing send for the receiving provider; confirm where it is stored for reuse | Staff member sending the document checks it against the receiver's directory entry |
| Patient the document belongs to | Selected in the chart before sending; the document is tied to that patient record | Front office or HIM staff confirms name and date of birth before transmission |
| Incoming message as a Patient Note | Created for the designated user, who assigns the correct patient before the note is filed | Designated user, with a periodic audit of unassigned notes |
| Message status in the Direct Message Log | Shows delivery and processing status for each message; confirm the status values in your installed version | Designated user or compliance lead reviews failed or pending entries |
How to triage incoming Direct messages without filing them to the wrong chart
Incoming Direct messages do not land directly in a patient chart. OpenEMR creates a Patient Note for a designated user, and that person is responsible for identifying the correct patient before the document is filed. The designated user is the first and most important control in the workflow, so the person chosen should understand both the clinical document and the patient identifiers that the sending organization used.
- Open the Patient Note on each arrival: Treat every new note as unfiled until the patient is confirmed. Do not assume the sender's header is correct.
- Match on more than one identifier: Compare name, date of birth, sex and any identifier in the document against the chart before assigning the patient.
- Assign only when confident: If two charts could match, stop and hand the note to the medical records or front office lead rather than guessing.
- Record the assignment: Note in the Patient Note who confirmed the match so the filing decision can be traced later.
- Confirm the status update: After filing, check that the message shows as processed in the Direct Message Log.
Before closing a note, confirm that the document appears in the correct patient's chart and that no duplicate copy remains on another patient.
Some incoming messages will not match an existing patient, or will have identifiers that conflict with the chart. These cases need a defined handoff from the designated user to front office or medical records staff so they are not left in a queue or forced onto the wrong patient. The team should agree in advance who owns unmatched messages and how quickly they are reviewed.
- Receive the handoff: The designated user passes the Patient Note with a short reason, such as no matching patient, conflicting date of birth or a missing identifier.
- Search before creating: Look for possible existing charts under alternate spellings or prior names before creating a new patient record.
- Verify with the sender when needed: Contact the sending practice using known contact details to confirm the patient's identity. Do not rely on contact details printed in the message alone.
- Escalate clinical urgency: If the document contains results or instructions that may need prompt action, route it to the responsible clinician at the same time.
- Close the loop: Document the final decision in the Patient Note so the designated user and the practice manager can see how the message was resolved.
The check here is simple: the document should be filed to one patient whose identity was confirmed by a second source, and the Patient Note should show the reason for the decision.
The practice manager's role is oversight. The Direct Message Log shows the status of messages sent and received, including failed or pending items. Reviewing it on a set schedule catches messages that fell out of the workflow, whether because a note was never opened, a delivery failed or a message stayed pending. The manager does not need to read clinical content to do this review, but must be able to see whether each message reached a final state.
- Review failed statuses first: Identify failed messages and confirm whether the sender needs to be told, or whether the message needs to be re-sent through the proper channel.
- Follow up on pending statuses: Check messages that have stayed pending, and confirm with the designated user whether a Patient Note is still awaiting assignment.
- Compare log entries with Patient Notes: Each received message should have a matching note and a documented filing decision. Gaps are a sign of a skipped handoff.
- Set a review cadence: Agree on how often the log is reviewed and who covers during absence, and record that schedule in the practice's procedures.
- Report recurring problems: If the same sender or identifier mismatch keeps appearing, raise it with the designated user and the sending organization.
The check for this role is that every logged message has a final status and a documented patient assignment, with no failed or pending items left unexplained.
What EMR Direct phiMail costs and what drives the total
The published figure for the EMR Direct phiMail service is approximately a $300 setup fee plus $150 per year per provider, as listed on the OpenEMR 8.0.0 ONC Ambulatory EHR Certification Requirements page. Treat that number as a starting reference rather than a quote. Confirm current pricing directly with EMR Direct before you budget, and ask whether the setup fee is charged once per account or per site, whether the annual fee renews automatically, and what happens to the account if a provider leaves mid-year. Because the recurring cost scales with the number of providers who send or receive Direct messages, the annual figure grows with your roster, not with message volume.
The HISP fee is only one line in the total. Your own staff carry the configuration work under Administration, Globals, Connectors, including the Direct settings, the designated user who receives incoming messages, and the test cycle with a known partner address. Triage design is often the larger effort: someone must decide who reviews the Patient Note created for each incoming message, how the patient is matched, how the Direct Message Log is checked for failed or pending statuses, and who covers when that person is away. If you hire a consultant, their hours cover the same work plus any custom reporting or workflow changes, so ask for a fixed scope with named deliverables. Internal time for clinical and administrative review should also be counted, since it recurs with every batch of messages.
Plan for recurring cost in two places: the EMR Direct subscription and the staff hours spent monitoring and triaging each month. Ask EMR Direct for a written quote that states setup and annual fees, provider count definitions, any minimum term, and the support channel for connector problems. Confirm with your own team which role owns the Direct mailbox, who approves a new provider address, and how many hours per month the triage queue is expected to take. Those answers, together with the vendor quote, give you a total cost of ownership you can defend in a budget review.
Security controls for OpenEMR Direct messaging
Direct messaging moves clinical documents across an external network, so the controls sit in three places: who can change connector settings and read the message log, how the web application and server are hardened, and how the HISP relationship is governed. The cards below cover each control and the checks to run before go-live.
Limit connector and log access
Only a small group should change the Direct settings under Administration, Globals, Connectors, because those settings control where clinical documents are sent. Restrict who can open the Direct Message Log as well, since it shows message statuses tied to patients. Review the ACL groups in OpenEMR against this list and confirm that front-desk and general clinical roles cannot reach either screen.
Direct wikiRestrict the designated user role
Incoming Direct messages create a Patient Note for a designated user, who assigns the correct patient. That user sees identifiable clinical content before it is filed, so treat the role as sensitive. Name a specific role or small group, confirm it matches the staff who handle inbound records, and check that assignment to the wrong patient is caught in review.
Enforce HTTPS and server hardening
The Securing OpenEMR guide says to allow only HTTPS, consider opening only port 443, remove setup.php and other admin scripts after installation, and block direct web access to sites/*/documents. Apply these to the host that serves OpenEMR, since Direct message attachments and generated documents depend on the same web tier. Verify each setting with an external scan after every change.
Securing OpenEMR guideRequire multi-factor authentication
Staff who send, receive or file clinical documents should sign in with multi-factor authentication. The Securing OpenEMR guide recommends MFA and strong password policies, and the Administration Globals settings cover password length, complexity, reuse and expiration. Confirm the policy applies to every account with Direct permissions, including shared or service-style accounts, and that remote access requires the same controls.
Administration GlobalsGovern HISP certificates and credentials
Direct trust depends on certificates and account credentials held by the HISP and the practice's configuration. Ask EMR Direct how certificates are issued, renewed and revoked, and document who receives expiry notices. Store account credentials in your secrets process, record each rotation, and test that a rotated credential still sends and receives before the old one is retired.
Review the HISP business associate contract
When the HISP handles ePHI on the practice's behalf, it is likely acting as a business associate. Under 45 CFR 164.314(a)(2)(i), the contract must require Security Rule compliance, flow the same terms to subcontractors that handle ePHI, and require reporting of security incidents, including breaches of unsecured PHI. Have counsel confirm the contract contains these terms before you send live patient records.
45 CFR 164.314Why OpenEMR Direct messages fail or land in the wrong place
This table lists the failures teams most often see with OpenEMR Direct messaging through EMR Direct phiMail, with the likely cause and the check to run next. Work down the rows in order, because connector settings and address matching must be correct before a message can leave or reach a patient record.
| Failure | Likely cause | Check to run next |
|---|---|---|
| Connector settings do not take effect | Settings were entered under Administration, Globals, Connectors but not saved, or required fields were left blank | Reopen the Direct connector screen under Globals, confirm every field saved, then send a test message and confirm it appears in the log |
| Outgoing sender address is rejected or does not match | The Direct address in OpenEMR differs from the address provisioned in the phiMail account | Compare the Direct address character by character with the phiMail account record, and correct OpenEMR to match the provisioned address |
| Recipient address is not reachable | The recipient is not provisioned on the DirectTrust network, or the address was mistyped in the referral or send screen | Confirm the recipient's Direct address with their office or directory before resending, and record the address source for the audit trail |
| Message stays pending or shows failed in the Direct Message Log | Transmission has not completed, the recipient rejected delivery, or the connector is not reaching the HISP | Check the status history in the Direct Message Log, retry once after confirming connectivity, then raise the failure with EMR Direct support if it persists |
| Incoming message creates a note with no patient | The sender did not include enough identifying data, or the designated user has not matched the patient yet | Open the Patient Note, review the attached document demographics, and assign the correct patient before filing the document |
| Incoming message has no reviewer or lands in the wrong queue | The designated user for Direct notes is not set, or that user does not monitor notes | Confirm the designated user in the Direct settings and test with a sample message sent to that address |
| Document does not render or opens in an unexpected format | The CCD or CCR attachment was generated with a different template or the viewer cannot display the XML | Open the raw attachment, compare it with a known-good export, and confirm which send option produced it before sending again |
| Recipient cannot read the CCD or CCR | The receiving system expects a different document type or version than the one sent | Ask the recipient which document type and version their system accepts, then select that send option and test with a sample message |
Questions buyers ask before setting up OpenEMR Direct messaging
What does OpenEMR Direct messaging cost to run each year?
The phiMail service carries a setup fee and a recurring per-provider fee, so the recurring cost grows with the number of providers who send or receive Direct messages. The OpenEMR 8.0.0 ONC certification requirements page lists EMR Direct phiMail at approximately a $300 setup fee plus $150 per year per provider. Confirm current pricing with EMR Direct before budgeting, because the wiki figure is a published reference and may change. Separately, any implementation work is priced by a written scope from DeployOpen or another partner, and the quote should show one-time setup work apart from anything that recurs.
How long does phiMail configuration and testing take?
The duration depends on how many provider addresses you need, whether accounts already exist with EMR Direct, how quickly the practice can supply its details, and how many test recipients must confirm receipt. Neither the EMR Direct onboarding steps nor a typical timeline are covered by the sources used for this page, so ask EMR Direct for its current onboarding steps and expected turnaround in writing. A fixed-scope engagement sets the timeline in the written scope before work starts, which makes the schedule easier to compare across quotes.
Can our staff configure phiMail in OpenEMR without a consultant?
Yes, a practice with an administrator comfortable with OpenEMR can configure the connector under Administration, Globals, Connectors. The harder part is usually the surrounding work: deciding who receives incoming messages, confirming Direct addresses, testing sends and receives with real recipients, and writing down how messages are triaged. A consultant is most useful when the environment is complex, such as multiple sites, a shared hosting platform, or a compliance review that needs documented evidence. Whichever route you choose, the Direct wiki page is the first reference to read.
What does the practice need to provide before setup starts?
Prepare four inputs before work begins: a complete provider list with the clinicians who need Direct addresses, the Direct addresses you want to use, the staff members who will receive and triage incoming messages, and test recipients who can confirm that sends and receives work. Each provider adds a recurring per-provider fee, so finalize the list first. Also confirm which OpenEMR site and environment will host the connector, since settings are applied per installation.
How are incoming Direct messages triaged inside OpenEMR?
Incoming Direct messages create a Patient Note for a designated user, who must assign the message to the correct patient. Statuses are tracked in the Direct Message Log, so the team can see which messages are received, assigned or still open. Define a written rule for who checks the notes, how quickly, and what happens when a message cannot be matched to a patient. Without that rule, documents can sit unassigned, which is a clinical and privacy risk that no connector setting fixes.
What changes when we upgrade OpenEMR to a newer version?
Upgrades change the OpenEMR side of the workflow, so the connector, its settings and the Direct Message Log should be retested after each upgrade rather than assumed to work. Check the release notes for your target version first. Recent OpenEMR 8.x releases require PHP 8.3 or later and a MySQL- or MariaDB-compatible database, and the 8.3.0 and 8.4.0 releases fixed security issues in the fax and SMS module and other areas. Plan a staging test that sends and receives a message before the production upgrade, and confirm with EMR Direct that the connector remains supported on the new version.
Does the phiMail setup handle HIPAA compliance for us?
No. Using a DirectTrust-accredited service helps with secure transport, but HIPAA compliance is the covered entity's responsibility, and the Security Rule applies to ePHI that is created, received, maintained or transmitted. Business associate terms with the Direct service provider should be confirmed in writing, and internal controls such as access limits, audit logging and triage procedures must be documented by your team. There is no HIPAA certification, so ask for evidence of how controls are configured rather than a certificate.
How DeployOpen works on this
DeployOpen plans, implements and hands over OpenEMR Direct messaging with EMR Direct phiMail inside your own infrastructure, so your team keeps control of the connector, the mailboxes and the clinical workflow. Each engagement starts from a written scope that sets out what is configured, tested and documented before work begins.
How we scope
- Written scope lists the OpenEMR site, the phiMail account setup and the number of Direct addresses in use.
- Scope records which incoming message types route to which designated users and how Patient Note triage will work.
- Scope confirms the phiMail fee terms your organization will pay, which you verify directly with the vendor before quoting.
How we build
- We configure the Direct connector under Administration, Globals, Connectors in your OpenEMR instance.
- We test sending and receiving with CCD and CCR options against your own test Direct addresses before go-live.
- We check the Direct Message Log and Patient Note routing with your staff using realistic sample messages from non-production data.
How we hand over
- You receive a written configuration record covering connector settings, account identifiers and access roles, with secrets kept out of documents.
- Runbooks describe how staff triage incoming messages, assign patients and resolve messages that fail to route.
- Handover includes a test log showing each send and receive case in your environment, with results and open items.
How we support
- Ongoing support and upgrades for the OpenEMR instance and its connectors are available as a retainer.
- Retainer work can cover re-testing Direct messaging after OpenEMR upgrades and after security releases.
- Support scope and response terms are agreed in writing, so you know what is covered before a question comes up.

