Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.morf.health/docs/llms.txt

Use this file to discover all available pages before exploring further.

images/healthie.svg Morf’s Healthie Create Or Update Referring Provider action uses backend logic to avoid creating duplicate referring providers.

Deduplication Logic

If no referring provider ID is specified in the node configuration, Morf will:
  1. List all organization referring physicians already stored in Healthie, filtered to those with first and last names.
  2. Check if any existing referring physician matches by city, state, and business name — but only if that information is included in the node. A referring physician must match all criteria provided in the node to be updated.
  3. If a match is found, update that referring physician. Otherwise, create a new one.

Parameters

Action
Parameters
{
  "$result_object_key": {
    "business_name": "Dr. John",
    "created_at": "2024-05-10T08:46:04Z",
    "email": "john.doe@example.com",
    "first_name": "John",
    "full_name": "John Doe",
    "id": "57211",
    "last_name": "Doe",
    "location": {
      "city": "San Francisco",
      "country": "USA",
      "line1": "123 Main Street",
      "line2": "Suite 100",
      "state": "CA",
      "zip": "94117"
    },
    "npi": "1000321231",
    "phone_number": "+15551234123"
  }
}
{
  "$result_object_key": {
    "business_name": "Provider's business name",
    "created_at": "Provider's creation date",
    "email": "Provider's email",
    "first_name": "Provider's first name",
    "full_name": "Provider's full name",
    "id": "Provider ID",
    "last_name": "Provider's last name",
    "location": {
      "city": "City",
      "country": "Country",
      "line1": "First line of the address",
      "line2": "Second line of the address",
      "state": "State",
      "zip": "Zip code"
    },
    "npi": "Provider's NPI",
    "phone_number": "Provider's phone number"
  }
}

Result Object Field Details

You can use the result of the action’s data as inputs to downstream workflow actions. Each fetch action requires a result object key to be specified which will nest the action’s result data inside the downstream data context in the Workflow. Here we demonstrate how to refer to this data using the prefix $result_object_key.
ReferringProvider
Fetch Action Response Object