Skip to content

Integrations

Connect Pharmacy Diversion Monitor to your systems

Each integration Pharmacy Diversion Monitor supports: what flows, how fields map, and the steps to set it up.

Applies to Pharmacy Diversion Monitor as it works today. Moraph updates the platform continuously, and this page is reviewed when it changes.

Last reviewed 4 min readReport a problem
On this page
  1. Automated dispensing cabinets
  2. Steps to set it up
  3. EHR medication administration
  4. Steps to set it up
  5. Anesthesia records
  6. Steps to set it up
  7. Pharmacy inventory
  8. Steps to set it up
  9. Scheduling and time systems
  10. Steps to set it up
  11. Sign-in
  12. Steps to set it up
  13. Work API
  14. Steps to set it up
  15. Using the Work API

How Pharmacy Diversion Monitor connects to your other systems. Every connection is confirmed during discovery and specified in the design before it is built.

Automated dispensing cabinets

Removals, returns, wastes, overrides and discrepancies exported from the dispensing cabinet system you use and loaded by CSV or sent through the Work API; there is no connection to the cabinet vendor's system.

  • What flows: In: cabinet transactions and discrepancy records.
  • Mapping: Through the Work API, CSV import or the product’s exports, as agreed during implementation; the product doesn’t connect to the other system itself.

Steps to set it up

  1. Agree with Moraph which records and fields move, and in which direction.

  2. Create a Work API key with only the scopes needed, or prepare the CSV layout.

  3. Test with sample records before go-live.

EHR medication administration

Administrations from the medication administration record and discharge times from ADT, loaded from exports by CSV or the Work API; orders aren't loaded.

  • What flows: In: administrations and discharge times.
  • Mapping: Through the Work API, CSV import or the product’s exports, as agreed during implementation; the product doesn’t connect to the other system itself.

Steps to set it up

  1. Agree with Moraph which records and fields move, and in which direction.

  2. Create a Work API key with only the scopes needed, or prepare the CSV layout.

  3. Test with sample records before go-live.

Anesthesia records

Where used, anesthesia administrations can be loaded as administration records for procedural units, which are compared within their own unit.

  • What flows: In: anesthesia administrations, loaded as administration records.
  • Mapping: Through the Work API, CSV import or the product’s exports, as agreed during implementation; the product doesn’t connect to the other system itself.

Steps to set it up

  1. Agree with Moraph which records and fields move, and in which direction.

  2. Create a Work API key with only the scopes needed, or prepare the CSV layout.

  3. Test with sample records before go-live.

Pharmacy inventory

Vault and pharmacy inventory movements aren't loaded; count problems found there can be recorded as discrepancy records and followed to resolution.

  • What flows: In: discrepancies recorded by staff or loaded by CSV.
  • Mapping: Through the Work API, CSV import or the product’s exports, as agreed during implementation; the product doesn’t connect to the other system itself.

Steps to set it up

  1. Agree with Moraph which records and fields move, and in which direction.

  2. Create a Work API key with only the scopes needed, or prepare the CSV layout.

  3. Test with sample records before go-live.

Scheduling and time systems

Scheduled or worked shifts loaded from your staffing or time system's export by CSV or the Work API, so removals while off shift can be flagged.

  • What flows: In: schedules and clock-in and clock-out times.
  • Mapping: Through the Work API, CSV import or the product’s exports, as agreed during implementation; the product doesn’t connect to the other system itself.

Steps to set it up

  1. Agree with Moraph which records and fields move, and in which direction.

  2. Create a Work API key with only the scopes needed, or prepare the CSV layout.

  3. Test with sample records before go-live.

Sign-in

Staff sign in with their Moraph account, using email and password and, optionally, two-step verification. Sign-in through your own identity provider (SAML or OpenID Connect) is not offered.

  • What flows: None: accounts are kept in Moraph
  • Mapping: Nothing is imported: staff sign in with their Moraph account, and each person's role is set by your organization's administrators.

Steps to set it up

  1. Invite staff in the Moraph Portal under People and access and give each person a product role

  2. Decide whether everyone in your organization must use two-step verification; your organization administrators can require it in the Moraph Portal under People and access

Work API

Source records (transactions, discharges, administrations, shifts and discrepancies) can be sent and read through the Moraph Work API; flags, cases, plans and loss reports are never available to API keys, and program counts export as CSV.

  • What flows: Out: source records only; program counts by CSV export.
  • Mapping: Keys can create and read transactions, discharges, administrations, shifts and discrepancies. They can’t see or create flags, cases, follow-ups, loss reports or monitoring plans.

Steps to set it up

  1. Create a key in Settings under Work API keys with the records:write scope

  2. Send source records with the field keys shown in GET /api/v1/workspace; a correction needs a correction_reason

Using the Work API

Systems that aren't covered above can read and write Pharmacy Diversion Monitor records through the Sign in to read Work API. For example, to create a cabinet transaction:

http
POST https://apps.moraph.com/api/v1/records
Authorization: Bearer mrph_…
Content-Type: application/json
Idempotency-Key: 7f3c2a90-example

{ "type": "cabinet_transaction", "title": "Example title", "fields": { "transaction_type": "…" } }

Field keys are listed in the Sign in to read workspace reference. Request formats, paging and errors are in the Sign in to read Work API reference.

Was this page helpful?

Report a problem with this page
What’s the problem?
Quote the step or heading if you can. Don’t include passwords or personal records.
Only if you’d like a reply. We use it for this report and nothing else.

Need help with your own setup rather than this page? Raise a support ticket.