[
  {
    "action": {
      "value": "CHARGE",
      "label": "Charge",
      "labelReady": "Charged"
    },
    "avs": {
      "value": "ADDRESS_OR_ZIP",
      "label": "Match Address or Zip"
    },
    "createdAt": 0,
    "cvvSettings": {
      "label": "Enable",
      "value": "enable"
    },
    "domain": "https://*.*.*/ema/web/practice/staff/#/practice/staff/patient/*/edit-patient/financials/patient/*/patientFinancials/*",
    "hash": "d1b36010e98857755e261d0643911d24",
    "id": "085bbacd-c838-4e14-a2c4-15d56babe59d",
    "installedAt": 1780429982374,
    "matchElement": {
      "attribute": null,
      "isEnabled": true,
      "matchingValue": "Collect Payment:",
      "xPath": "//h4[contains(@class,\"modal-title\")]"
    },
    "name": "ModMed - Patient Financials",
    "paths": {
      "transaction_amount": {
        "attribute": null,
        "regex": "",
        "type": {
          "value": "path",
          "label": "Page"
        },
        "value": "//div[contains(@class,\"payment-total-amount\")]",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "tax": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "invoice_number": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "purchase_number": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "hide",
          "label": "Hide"
        }
      },
      "first_name": {
        "attribute": null,
        "regex": " \\b(\\w+)$",
        "type": {
          "value": "path",
          "label": "Page"
        },
        "value": "//span[contains(@class,\"patient-name\")]/a[1]/span[1]",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "last_name": {
        "attribute": null,
        "regex": "^\\W*([\\w-]+)",
        "type": {
          "value": "path",
          "label": "Page"
        },
        "value": "//span[contains(@class,\"patient-name\")]/a[1]/span[1]",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "customer_id": {
        "attribute": null,
        "regex": "",
        "type": {
          "value": "path",
          "label": "Page"
        },
        "value": "//div[contains(@class,\"patient-info\")]/span[5]/strong[1]",
        "visibility": {
          "value": "hide",
          "label": "Hide"
        }
      },
      "company_name": {
        "attribute": null,
        "regex": "",
        "type": {
          "value": "path",
          "label": "Page"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "email": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "phone": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "address": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "zip": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "note": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      }
    },
    "version": "2",
    "isAuto": true,
    "isAutoClose": false,
    "isAutoRunAutomation": true,
    "automations": [
      {
        "domain": "https://*.ema.md/ema/patient/PatientFinancials.action",
        "id": "8fc68e11-39d4-4be7-b02a-737495c1afff",
        "integrationId": "085bbacd-c838-4e14-a2c4-15d56babe59d",
        "steps": [
          {
            "automationLabel": "Payment Method",
            "id": "3c2e40d5-438c-4ba3-b8df-3c3f2454fad1",
            "path": "//select[@id=\"paymentMethodSelect\"]",
            "type": {
              "value": "dropdown",
              "label": "Dropdown"
            },
            "value": {
              "label": "Pay Junction",
              "value": "number:510"
            }
          },
          {
            "automationLabel": "Notes",
            "id": "cc1d0bc1-cb0b-40fc-9d69-73d725375ed0",
            "options": [],
            "path": "//textarea[@id=\"transactionNotes\"]",
            "placementOption": {
              "label": "Prepend",
              "value": "prepend"
            },
            "type": {
              "value": "input",
              "label": "Input"
            },
            "value": "PJ ID: {{transactionId}} | {{vault.accountType}} {{vault.lastFour}} | Amount: {{amountBase}}  | Surcharge: {{amountSurcharge}}"
          }
        ],
        "type": "CHARGE"
      }
    ]
  },
  {
    "action": {
      "value": "REFUND",
      "label": "Refund",
      "labelReady": "Refunded"
    },
    "avs": {
      "value": "ADDRESS_OR_ZIP",
      "label": "Match Address or Zip"
    },
    "createdAt": 1726516130542,
    "cvvSettings": {
      "label": "Enable",
      "value": "enable"
    },
    "domain": "https://*.*.*/ema/web/practice/staff/#/practice/staff/patient/*/edit-patient/financials/patient/*/patientFinancials/*",
    "hash": "40155b71e35c40d9ce233279d21e1df2",
    "id": "145c8bd3-ae49-4827-ba81-5d2bbafe9dae",
    "installedAt": 1780429982374,
    "matchElement": {
      "attribute": null,
      "isEnabled": true,
      "matchingValue": "Patient Refund",
      "xPath": "//div[contains(@class,\"modal-ema-card-container\")]/div[3]/div[1]/div[1]/div[1]"
    },
    "name": "ModMed - Refund",
    "paths": {
      "transaction_amount": {
        "attribute": null,
        "regex": "",
        "type": {
          "value": "path",
          "label": "Page"
        },
        "value": "//input[@ng-model=\"$ctrl.allocations[payment.id].amount\"]",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "tax": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "invoice_number": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "purchase_number": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "hide",
          "label": "Hide"
        }
      },
      "first_name": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "last_name": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "customer_id": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "hide",
          "label": "Hide"
        }
      },
      "company_name": {
        "attribute": null,
        "regex": "",
        "type": {
          "value": "path",
          "label": "Page"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "email": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "phone": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "address": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "zip": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "note": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      }
    },
    "version": "2",
    "isAuto": true,
    "isAutoClose": false,
    "isAutoRunAutomation": true,
    "automations": [
      {
        "id": "9d289887-1323-4155-8fb0-aac661a21850",
        "integrationId": "145c8bd3-ae49-4827-ba81-5d2bbafe9dae",
        "steps": [
          {
            "automationLabel": "Check Box Click",
            "id": "c65f5d18-7dcb-4af3-b1e2-e984da4a5283",
            "path": "//div[contains(@class,\"printable-container\")]/div[2]/form[1]/div[1]/div[2]/patient-unallocated-mav-payment-table[1]/div[1]/table[1]/tbody[1]/tr[1]/td[8]/div[1]/div[1]/input[1]",
            "type": {
              "value": "click",
              "label": "Click"
            },
            "value": ""
          },
          {
            "automationLabel": "Amount",
            "id": "166e56e1-e18c-4c44-8975-96f67e717873",
            "options": [],
            "path": "//input[@ng-model=\"$ctrl.allocations[payment.id].amount\"]",
            "placementOption": {
              "label": "Replace",
              "value": "replace"
            },
            "transactionApprovalSetting": {
              "label": "Base Amount",
              "value": "BASE_AMOUNT"
            },
            "type": {
              "value": "input",
              "label": "Input"
            },
            "useTransactionApproval": true,
            "value": ""
          },
          {
            "automationLabel": "Method",
            "id": "89dc2979-f19d-4638-aea6-842f872ada6a",
            "path": "//div[@id=\"refundMethod\"]/div[1]/span[1]",
            "type": {
              "value": "click",
              "label": "Click"
            },
            "value": ""
          },
          {
            "automationLabel": "Method - Other",
            "id": "78b0278f-f4dd-476e-b9b6-0f11d1bde46c",
            "path": "//a[contains(@class,\"ui-select-choices-row-inner\")]/div[text()=\"Other\"]",
            "type": {
              "value": "click",
              "label": "Click"
            },
            "value": ""
          },
          {
            "automationLabel": "Notes",
            "id": "8440101e-08a4-4cbc-92bf-6f98806c24d5",
            "options": [],
            "path": "//textarea[@id=\"transactionNotes\"]",
            "placementOption": {
              "label": "Replace",
              "value": "replace"
            },
            "type": {
              "value": "input",
              "label": "Input"
            },
            "value": "PJ Extension "
          }
        ],
        "type": "REFUND"
      }
    ]
  },
  {
    "action": {
      "value": "CHARGE",
      "label": "Charge",
      "labelReady": "Charged"
    },
    "avs": {
      "value": "ADDRESS_OR_ZIP",
      "label": "Match Address or Zip"
    },
    "createdAt": 1726082598253,
    "cvvSettings": {
      "label": "Enable",
      "value": "enable"
    },
    "domain": "https://*.*.*/ema/web/practice/staff/#/practice/staff/master-check*/check*/*/financials",
    "hash": "c15c1f38cf8d08ab2fbc9ae6f8f9b3bb",
    "id": "3baea04b-ece8-451a-a534-60c702cf328b",
    "installedAt": 1780429982374,
    "matchElement": {
      "attribute": null,
      "isEnabled": true,
      "matchingValue": "Collect Payment",
      "xPath": "//h4[contains(@class,\"modal-title\")]"
    },
    "name": "ModMed - Check In/Out",
    "paths": {
      "transaction_amount": {
        "attribute": null,
        "regex": "",
        "type": {
          "value": "path",
          "label": "Page"
        },
        "value": "//div[contains(@class,\"payment-total-amount\")]",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "tax": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "invoice_number": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "purchase_number": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "hide",
          "label": "Hide"
        }
      },
      "first_name": {
        "attribute": null,
        "regex": ", (\\w+)$",
        "type": {
          "value": "path",
          "label": "Page"
        },
        "value": "//span[contains(@class,\"patient-name\")]/a[1]/span[1]",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "last_name": {
        "attribute": null,
        "regex": "^(.*),",
        "type": {
          "value": "path",
          "label": "Page"
        },
        "value": "//span[contains(@class,\"patient-name\")]/a[1]/span[1]",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "customer_id": {
        "attribute": null,
        "regex": "",
        "type": {
          "value": "path",
          "label": "Page"
        },
        "value": "//div[contains(@class,\"patient-info\")]/span[5]/strong[1]",
        "visibility": {
          "value": "hide",
          "label": "Hide"
        }
      },
      "company_name": {
        "attribute": null,
        "regex": "",
        "type": {
          "value": "path",
          "label": "Page"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "email": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "phone": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "address": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "zip": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      },
      "note": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "display",
          "label": "Display"
        }
      }
    },
    "version": "1",
    "isAuto": true,
    "isAutoClose": false,
    "isAutoRunAutomation": true,
    "automations": [
      {
        "id": "7864510b-d1e6-47ea-94f7-6851aa616160",
        "integrationId": "3baea04b-ece8-451a-a534-60c702cf328b",
        "steps": [
          {
            "automationLabel": "Payment Method",
            "id": "6ffaa769-a09a-4f70-8b12-a3181d92d41b",
            "path": "//select[@id=\"paymentMethodSelect\"]",
            "type": {
              "value": "dropdown",
              "label": "Dropdown"
            },
            "value": {
              "label": "Pay Junction",
              "value": "number:510"
            }
          },
          {
            "automationLabel": "Notes",
            "id": "573fbe6e-3d84-47a2-bcca-ddfc5decea1b",
            "isSkip": false,
            "options": [],
            "path": "//textarea[@id=\"transactionNotes\"]",
            "placementOption": {
              "label": "Prepend",
              "value": "prepend"
            },
            "type": {
              "value": "input",
              "label": "Input"
            },
            "value": "PJ ID: {{transactionId}} | {{vault.accountType}} {{vault.lastFour}} | Amount: {{amountBase}} | Surcharge: {{amountSurcharge}} |"
          }
        ],
        "type": "CHARGE"
      }
    ]
  }
]