{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-api-response-provider-participation-response-schema.json",
  "title": "ApiResponseProviderParticipationResponse",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-provider-participation-list-api-openapi.yml#/components/schemas/ApiResponseProviderParticipationResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "totalNoOfRecords": {
          "type": "integer",
          "format": "int64",
          "description": "Total number of records available"
        },
        "pageSize": {
          "type": "integer",
          "format": "int32",
          "description": "Maximum number of records per page"
        },
        "pageNumber": {
          "type": "integer",
          "format": "int32",
          "description": "Current page number"
        },
        "providerParticipation": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProviderParticipation"
          }
        }
      }
    },
    "status": {
      "type": "string",
      "description": "HTTP Response Status"
    },
    "message": {
      "type": "string",
      "description": "Returns 'VENDOR MATCHED' message if records are found, otherwise 'NO VENDOR MATCHED'",
      "enum": [
        "VENDOR MATCHED",
        "NO VENDOR MATCHED"
      ]
    },
    "error": {
      "$ref": "#/$defs/ApiErrorResponse"
    }
  },
  "$defs": {
    "ApiErrorResponse": {
      "type": "object",
      "properties": {
        "status": {
          "type": "integer",
          "format": "int32"
        },
        "statusMessage": {
          "type": "string"
        },
        "error": {
          "$ref": "#/$defs/Error"
        }
      }
    },
    "Error": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string"
        },
        "detail": {
          "$ref": "#/$defs/ErrorDetail"
        }
      }
    },
    "ErrorDetail": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      }
    },
    "ProviderInfo": {
      "type": "object",
      "properties": {
        "provider_infoId": {
          "type": "string"
        },
        "provider_tin": {
          "type": "string"
        },
        "provider_npi": {
          "type": "string"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "provider_orgName": {
          "type": "string"
        },
        "provider_orgState": {
          "type": "string"
        },
        "provider_orgZip": {
          "type": "string"
        },
        "facility_name": {
          "type": "string"
        },
        "facility_npi": {
          "type": "string"
        },
        "facility_tin": {
          "type": "string"
        },
        "facility_state": {
          "type": "string"
        },
        "facility_zip": {
          "type": "string"
        },
        "creationDateTime": {
          "type": "string",
          "format": "date-time"
        },
        "updatedDateTime": {
          "type": "string",
          "format": "date-time"
        },
        "activeStartDate": {
          "type": "string",
          "format": "date"
        },
        "activeEndDate": {
          "type": "string",
          "format": "date"
        },
        "lastOptOutDate": {
          "type": "string",
          "format": "date"
        },
        "optInStartDate": {
          "type": "string",
          "format": "date"
        },
        "optInEndDate": {
          "type": "string",
          "format": "date"
        }
      }
    },
    "ProviderParticipation": {
      "type": "object",
      "properties": {
        "vendor_orgId": {
          "type": "string"
        },
        "vendorName": {
          "type": "string",
          "description": "Vendor name. Possible values are Athena, Veradigm, Moxe, EPP etc."
        },
        "emrInternalOrgs": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "emr_id": {
                "type": "string"
              },
              "emr": {
                "type": "string"
              },
              "providerInfo": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ProviderInfo"
                }
              }
            }
          }
        }
      }
    }
  }
}