[
  {
    "action": {
      "value": "CHARGE",
      "label": "Charge",
      "labelReady": "Charged"
    },
    "avs": {
      "value": "ZIP",
      "label": "Match Zip"
    },
    "createdAt": 1786562015500,
    "cvvSettings": {
      "label": "Enable",
      "value": "enable"
    },
    "domain": "https://*.*.*/ema/web/practice/staff*/#/practice/staff/patient/*/edit-patient/financials/patient/*/patientFinancials/*",
    "hash": "7c2298b055011acb46c4a86eec698aef",
    "id": "061fc8d4-07e5-4ab0-9c63-1222219cfae3",
    "installedAt": 1786562015500,
    "isAutoClose": true,
    "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": {
        "attribute": null,
        "regex": "",
        "type": {
          "value": "path",
          "label": "Page"
        },
        "value": "//div[contains(@class,\"patient-info\")]/span[5]/strong[1]",
        "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": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "hide",
          "label": "Hide"
        }
      },
      "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": "3",
    "isAuto": true,
    "isAutoRunAutomation": true,
    "isSmartTerminalBillingNameOverride": false,
    "automations": [
      {
        "domain": "https://*.ema.md/ema/patient/PatientFinancials.action",
        "id": "ba329e11-258e-463b-87e5-0eccd0f31049",
        "integrationId": "061fc8d4-07e5-4ab0-9c63-1222219cfae3",
        "steps": [
          {
            "automationLabel": "Payment Method",
            "id": "e5f3c681-9746-463f-9dfa-a9a9ceb9fed9",
            "path": "//select[@id=\"paymentMethodSelect\"]",
            "type": {
              "value": "dropdown",
              "label": "Dropdown"
            },
            "value": {
              "label": "Other",
              "value": "other"
            },
            "isConditional": false
          },
          {
            "automationLabel": "Notes",
            "id": "6321c3e1-eb61-4f48-91c5-9295be816462",
            "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}}",
            "isConditional": false,
            "isUnsettledBnplFieldsOverride": false
          }
        ],
        "type": "CHARGE"
      }
    ]
  },
  {
    "action": {
      "value": "CHARGE",
      "label": "Charge",
      "labelReady": "Charged"
    },
    "avs": {
      "value": "ZIP",
      "label": "Match Zip"
    },
    "createdAt": 1786562015500,
    "cvvSettings": {
      "label": "Enable",
      "value": "enable"
    },
    "domain": "https://*.*.*/ema/web/practice/staff*/#/practice/staff/patient/*/edit-patient/financials/patient/*/patientFinancials/*",
    "hash": "dee09b2d906c59829433acc4e7a2cf82",
    "id": "502ae0cf-bdcb-4e0d-9d4a-30d954c998dc",
    "installedAt": 1786562015500,
    "isAutoClose": true,
    "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": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "hide",
          "label": "Hide"
        }
      },
      "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": "3",
    "isAuto": true,
    "isAutoRunAutomation": true,
    "isSmartTerminalBillingNameOverride": false,
    "automations": [
      {
        "id": "e4d41b44-8ba7-4714-ba00-8c2c4b896a62",
        "integrationId": "502ae0cf-bdcb-4e0d-9d4a-30d954c998dc",
        "steps": [
          {
            "automationLabel": "Amount",
            "id": "efe6ea60-de2b-432f-b83e-68cc924281a1",
            "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": "",
            "isConditional": false,
            "isUnsettledBnplFieldsOverride": false
          },
          {
            "automationLabel": "Method",
            "id": "8440884b-eafd-45d2-93f1-6eb136d06f3e",
            "path": "//div[@id=\"refundMethod\"]/div[1]/span[1]",
            "type": {
              "value": "click",
              "label": "Click"
            },
            "value": "",
            "isConditional": false
          },
          {
            "automationLabel": "Method - Other",
            "id": "f591c032-b420-46a2-97b2-61f77af6c720",
            "path": "//a[contains(@class,\"ui-select-choices-row-inner\")]/div[text()=\"Other\"]",
            "type": {
              "value": "click",
              "label": "Click"
            },
            "value": "",
            "isConditional": false
          },
          {
            "automationLabel": "Notes",
            "id": "d24e37be-9a7d-4aa9-875d-cfa45c0c8d77",
            "options": [],
            "path": "//textarea[@id=\"transactionNotes\"]",
            "placementOption": {
              "label": "Replace",
              "value": "replace"
            },
            "type": {
              "value": "input",
              "label": "Input"
            },
            "value": "PJ Extension ",
            "isConditional": false,
            "isUnsettledBnplFieldsOverride": false
          }
        ],
        "type": "REFUND"
      }
    ]
  },
  {
    "action": {
      "value": "CHARGE",
      "label": "Charge",
      "labelReady": "Charged"
    },
    "avs": {
      "value": "ZIP",
      "label": "Match Zip"
    },
    "createdAt": 1786562015500,
    "cvvSettings": {
      "label": "Enable",
      "value": "enable"
    },
    "domain": "https://*.*.*/ema/web/practice/staff*/#/practice/staff/master-check*/check*/*/financials",
    "hash": "5fbad046b94856eef9d4e9d9864da1c5",
    "id": "b46299fa-577f-444d-90a0-661c6dec1132",
    "installedAt": 1786562015500,
    "isAutoClose": true,
    "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": {
        "attribute": null,
        "regex": "",
        "type": {
          "value": "path",
          "label": "Page"
        },
        "value": "//div[contains(@class,\"patient-info\")]/span[5]/strong[1]",
        "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": {
        "type": {
          "label": "Page",
          "value": "path"
        },
        "value": "",
        "visibility": {
          "value": "hide",
          "label": "Hide"
        }
      },
      "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": "3",
    "isAuto": true,
    "isAutoRunAutomation": true,
    "isSmartTerminalBillingNameOverride": false,
    "automations": [
      {
        "id": "c3699c43-0ceb-4a57-ae60-e3c7fc23bdc3",
        "integrationId": "b46299fa-577f-444d-90a0-661c6dec1132",
        "steps": [
          {
            "automationLabel": "Payment Method",
            "id": "c07b9297-6e41-4996-bd68-3c59e08cd62d",
            "path": "//select[@id=\"paymentMethodSelect\"]",
            "type": {
              "value": "dropdown",
              "label": "Dropdown"
            },
            "value": {
              "label": "Other",
              "value": "other"
            },
            "isConditional": false
          },
          {
            "automationLabel": "Notes",
            "id": "54b65e66-48be-462d-97f3-8d006cd19895",
            "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}}",
            "isConditional": false,
            "isUnsettledBnplFieldsOverride": false
          }
        ],
        "type": "CHARGE"
      }
    ]
  }
]