{
  "x-generator": "NSwag v14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))",
  "openapi": "3.0.0",
  "info": {
    "title": "Backend API (Azure AD Auth)",
    "description": "Production-ready ASP.NET Core 8 API with FastEndpoints and Azure AD authentication",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api-wav.jeryjs.dev"
    }
  ],
  "paths": {
    "/api/health-check": {
      "get": {
        "tags": [
          "Health",
          "Health-Check"
        ],
        "operationId": "BackendApiEndpointsHealthCheckEndpoint",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/stats/ancillaries": {
      "get": {
        "tags": [
          "Stats",
          "Stats"
        ],
        "operationId": "BackendApiEndpointsStatsGetAncillaryStatsEndpoint",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AncillaryStatsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/stats/contacts": {
      "get": {
        "tags": [
          "Stats",
          "Stats"
        ],
        "operationId": "BackendApiEndpointsStatsGetContactStatsEndpoint",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactStatsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/stats/patients": {
      "get": {
        "tags": [
          "Stats",
          "Stats"
        ],
        "operationId": "BackendApiEndpointsStatsGetPatientStatsEndpoint",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatientStatsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/reports/ancillaries-by-division": {
      "get": {
        "tags": [
          "Reports",
          "Reports"
        ],
        "operationId": "BackendApiEndpointsReportsGetAncillariesByDivisionEndpoint",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AncillariesByDivisionResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/reports/contacts-by-entity": {
      "get": {
        "tags": [
          "Reports",
          "Reports"
        ],
        "operationId": "BackendApiEndpointsReportsGetContactsByEntityEndpoint",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactsByEntityResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/reports/patients-by-agency": {
      "get": {
        "tags": [
          "Reports",
          "Reports"
        ],
        "operationId": "BackendApiEndpointsReportsGetPatientsByAgencyEndpoint",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatientsByAgencyResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/patients/{id}/diagnoses": {
      "post": {
        "tags": [
          "Patients",
          "Patients"
        ],
        "operationId": "BackendApiEndpointsPatientsAddPatientDiagnosisEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "x-name": "AddPatientDiagnosisRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddPatientDiagnosisRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddPatientDiagnosisResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddPatientDiagnosisResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddPatientDiagnosisResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddPatientDiagnosisResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      },
      "get": {
        "tags": [
          "Patients",
          "Patients"
        ],
        "operationId": "BackendApiEndpointsPatientsGetPatientDiagnosesEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPatientDiagnosesResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/patients": {
      "post": {
        "tags": [
          "Patients",
          "Patients"
        ],
        "operationId": "BackendApiEndpointsPatientsCreatePatientEndpoint",
        "requestBody": {
          "x-name": "CreatePatientRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePatientRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatePatientResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatePatientResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatePatientResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatePatientResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      },
      "get": {
        "tags": [
          "Patients",
          "Patients"
        ],
        "operationId": "BackendApiEndpointsPatientsGetAllPatientsEndpoint",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Patient"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/patients/{id}": {
      "delete": {
        "tags": [
          "Patients",
          "Patients"
        ],
        "operationId": "BackendApiEndpointsPatientsDeletePatientEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletePatientResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletePatientResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletePatientResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      },
      "get": {
        "tags": [
          "Patients",
          "Patients"
        ],
        "operationId": "BackendApiEndpointsPatientsGetPatientByIdEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Patient"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      },
      "patch": {
        "tags": [
          "Patients",
          "Patients"
        ],
        "operationId": "BackendApiEndpointsPatientsPatchPatientEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "x-name": "PatchPatientRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchPatientRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatchPatientResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatchPatientResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatchPatientResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      },
      "put": {
        "tags": [
          "Patients",
          "Patients"
        ],
        "operationId": "BackendApiEndpointsPatientsUpdatePatientEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "x-name": "UpdatePatientRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePatientRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdatePatientResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdatePatientResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdatePatientResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/patients/wavid/{wavId}": {
      "get": {
        "tags": [
          "Patients",
          "Patients"
        ],
        "operationId": "BackendApiEndpointsPatientsGetPatientByWavIdEndpoint",
        "parameters": [
          {
            "name": "wavId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Patient"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/search/patients": {
      "get": {
        "tags": [
          "Patients",
          "Search"
        ],
        "operationId": "BackendApiEndpointsPatientsSearchPatientsEndpoint",
        "parameters": [
          {
            "name": "FirstName",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "LastName",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "Email",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "Phone",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Patient"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/contacts/{id}/entities": {
      "post": {
        "tags": [
          "Contacts",
          "Contacts"
        ],
        "operationId": "BackendApiEndpointsContactsAddContactEntityEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            }
          }
        ],
        "requestBody": {
          "x-name": "AddContactEntityRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddContactEntityRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddContactEntityResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddContactEntityResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddContactEntityResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddContactEntityResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      },
      "get": {
        "tags": [
          "Contacts",
          "Contacts"
        ],
        "operationId": "BackendApiEndpointsContactsGetContactEntitiesEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AssociatedEntity"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/contacts": {
      "post": {
        "tags": [
          "Contacts",
          "Contacts"
        ],
        "operationId": "BackendApiEndpointsContactsCreateContactEndpoint",
        "requestBody": {
          "x-name": "CreateContactRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateContactRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateContactResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateContactResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateContactResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateContactResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      },
      "get": {
        "tags": [
          "Contacts",
          "Contacts"
        ],
        "operationId": "BackendApiEndpointsContactsGetAllContactsEndpoint",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactUser"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/contacts/{id}": {
      "delete": {
        "tags": [
          "Contacts",
          "Contacts"
        ],
        "operationId": "BackendApiEndpointsContactsDeleteContactEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteContactResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteContactResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteContactResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      },
      "get": {
        "tags": [
          "Contacts",
          "Contacts"
        ],
        "operationId": "BackendApiEndpointsContactsGetContactByIdEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactUser"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      },
      "patch": {
        "tags": [
          "Contacts",
          "Contacts"
        ],
        "operationId": "BackendApiEndpointsContactsPatchContactEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            }
          }
        ],
        "requestBody": {
          "x-name": "PatchContactRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchContactRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatchContactResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatchContactResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatchContactResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      },
      "put": {
        "tags": [
          "Contacts",
          "Contacts"
        ],
        "operationId": "BackendApiEndpointsContactsUpdateContactEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            }
          }
        ],
        "requestBody": {
          "x-name": "UpdateContactRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateContactRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateContactResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateContactResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateContactResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/contacts/wavid/{wavId}": {
      "get": {
        "tags": [
          "Contacts",
          "Contacts"
        ],
        "operationId": "BackendApiEndpointsContactsGetContactByWavIdEndpoint",
        "parameters": [
          {
            "name": "wavId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactUser"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/search/contacts": {
      "get": {
        "tags": [
          "Contacts",
          "Search"
        ],
        "operationId": "BackendApiEndpointsContactsSearchContactsEndpoint",
        "parameters": [
          {
            "name": "FirstName",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "LastName",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "JobTitle",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactUser"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/bulk/ancillaries": {
      "post": {
        "tags": [
          "Bulk Operations",
          "Bulk"
        ],
        "operationId": "BackendApiEndpointsBulkBulkCreateAncillariesEndpoint",
        "requestBody": {
          "x-name": "BulkCreateAncillariesRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkCreateAncillariesRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreateAncillariesResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreateAncillariesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreateAncillariesResponse"
                }
              }
            }
          },
          "501": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreateAncillariesResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreateAncillariesResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/bulk/contacts": {
      "post": {
        "tags": [
          "Bulk Operations",
          "Bulk"
        ],
        "operationId": "BackendApiEndpointsBulkBulkCreateContactsEndpoint",
        "requestBody": {
          "x-name": "BulkCreateContactsRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkCreateContactsRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreateContactsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreateContactsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreateContactsResponse"
                }
              }
            }
          },
          "501": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreateContactsResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreateContactsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/bulk/patients": {
      "post": {
        "tags": [
          "Bulk Operations",
          "Bulk"
        ],
        "operationId": "BackendApiEndpointsBulkBulkCreatePatientsEndpoint",
        "requestBody": {
          "x-name": "BulkCreatePatientsRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkCreatePatientsRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreatePatientsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreatePatientsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreatePatientsResponse"
                }
              }
            }
          },
          "501": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreatePatientsResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreatePatientsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/auth/authorize": {
      "get": {
        "tags": [
          "Auth",
          "Auth"
        ],
        "operationId": "BackendApiEndpointsAuthAuthorizeEndpoint",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/auth/refresh": {
      "post": {
        "tags": [
          "Auth",
          "Auth"
        ],
        "operationId": "BackendApiEndpointsAuthRefreshTokenEndpoint",
        "requestBody": {
          "x-name": "RefreshTokenRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshTokenRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/signin-oidc": {
      "get": {
        "tags": [
          "Auth",
          "Signin-Oidc"
        ],
        "operationId": "BackendApiEndpointsAuthSigninOidcCallbackEndpoint",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/ancillaries/{id}/entities": {
      "post": {
        "tags": [
          "Ancillaries",
          "Ancillaries"
        ],
        "operationId": "BackendApiEndpointsAncillariesAddAncillaryEntityEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            }
          }
        ],
        "requestBody": {
          "x-name": "AddAncillaryEntityRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddAncillaryEntityRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddAncillaryEntityResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddAncillaryEntityResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddAncillaryEntityResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddAncillaryEntityResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      },
      "get": {
        "tags": [
          "Ancillaries",
          "Ancillaries"
        ],
        "operationId": "BackendApiEndpointsAncillariesGetAncillaryEntitiesEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AssociatedEntity"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/ancillaries": {
      "post": {
        "tags": [
          "Ancillaries",
          "Ancillaries"
        ],
        "operationId": "BackendApiEndpointsAncillariesCreateAncillaryEndpoint",
        "requestBody": {
          "x-name": "CreateAncillaryRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAncillaryRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAncillaryResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAncillaryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAncillaryResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAncillaryResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      },
      "get": {
        "tags": [
          "Ancillaries",
          "Ancillaries"
        ],
        "operationId": "BackendApiEndpointsAncillariesGetAllAncillariesEndpoint",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AncillaryUser"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/ancillaries/{id}": {
      "delete": {
        "tags": [
          "Ancillaries",
          "Ancillaries"
        ],
        "operationId": "BackendApiEndpointsAncillariesDeleteAncillaryEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteAncillaryResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteAncillaryResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteAncillaryResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      },
      "get": {
        "tags": [
          "Ancillaries",
          "Ancillaries"
        ],
        "operationId": "BackendApiEndpointsAncillariesGetAncillaryByIdEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AncillaryUser"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      },
      "patch": {
        "tags": [
          "Ancillaries",
          "Ancillaries"
        ],
        "operationId": "BackendApiEndpointsAncillariesPatchAncillaryEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            }
          }
        ],
        "requestBody": {
          "x-name": "PatchAncillaryRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchAncillaryRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatchAncillaryResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatchAncillaryResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatchAncillaryResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      },
      "put": {
        "tags": [
          "Ancillaries",
          "Ancillaries"
        ],
        "operationId": "BackendApiEndpointsAncillariesUpdateAncillaryEndpoint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            }
          }
        ],
        "requestBody": {
          "x-name": "UpdateAncillaryRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAncillaryRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAncillaryResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAncillaryResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateAncillaryResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/ancillaries/wavid/{wavId}": {
      "get": {
        "tags": [
          "Ancillaries",
          "Ancillaries"
        ],
        "operationId": "BackendApiEndpointsAncillariesGetAncillaryByWavIdEndpoint",
        "parameters": [
          {
            "name": "wavId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AncillaryUser"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/search/ancillaries": {
      "get": {
        "tags": [
          "Ancillaries",
          "Search"
        ],
        "operationId": "BackendApiEndpointsAncillariesSearchAncillariesEndpoint",
        "parameters": [
          {
            "name": "Name",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "EntityType",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "State",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AncillaryUser"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/admin/tags/catalog": {
      "post": {
        "tags": [
          "Admin",
          "Tags",
          "Catalog",
          "Admin"
        ],
        "operationId": "BackendApiEndpointsAdminCreateTagDefinitionEndpoint",
        "requestBody": {
          "x-name": "CreateTagDefinitionRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTagDefinitionRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagDefinition"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      },
      "get": {
        "tags": [
          "Admin",
          "Tags",
          "Catalog",
          "Admin"
        ],
        "operationId": "BackendApiEndpointsAdminListTagDefinitionsEndpoint",
        "parameters": [
          {
            "name": "Namespace",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "Category",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            }
          },
          {
            "name": "IsSensitive",
            "in": "query",
            "schema": {
              "type": "boolean",
              "nullable": true
            }
          },
          {
            "name": "IsDeprecated",
            "in": "query",
            "schema": {
              "type": "boolean",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListTagDefinitionsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/admin/database-status": {
      "get": {
        "tags": [
          "Admin",
          "Admin"
        ],
        "operationId": "BackendApiEndpointsAdminDatabaseStatusEndpoint",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatabaseStatusResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/api/admin/import-data": {
      "post": {
        "tags": [
          "Admin",
          "Admin"
        ],
        "operationId": "BackendApiEndpointsAdminImportDataEndpoint",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportDataResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/api/admin/tags/catalog/seed": {
      "post": {
        "tags": [
          "Admin",
          "Tags",
          "Catalog",
          "Admin"
        ],
        "operationId": "BackendApiEndpointsAdminSeedTagCatalogEndpoint",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SeedCatalogResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/admin/tags/backfill": {
      "post": {
        "tags": [
          "Admin",
          "Tags",
          "Admin"
        ],
        "operationId": "BackendApiEndpointsAdminTagBackfillEndpoint",
        "requestBody": {
          "x-name": "TagBackfillRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TagBackfillRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackfillResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/admin/tags/evaluate": {
      "post": {
        "tags": [
          "Admin",
          "Tags",
          "Admin"
        ],
        "operationId": "BackendApiEndpointsAdminTagEvaluateEndpoint",
        "requestBody": {
          "x-name": "TagEvaluateRequest",
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TagEvaluateRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagEvaluateResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/admin/tags/rules": {
      "get": {
        "tags": [
          "Admin",
          "Tags",
          "Admin"
        ],
        "operationId": "BackendApiEndpointsAdminTagRulesEndpoint",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagRulesResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/admin/tags/statistics": {
      "get": {
        "tags": [
          "Admin",
          "Tags",
          "Admin"
        ],
        "operationId": "BackendApiEndpointsAdminTagStatisticsEndpoint",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagStatistics"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/api/admin/tags/validate-system": {
      "get": {
        "tags": [
          "Admin",
          "Tags",
          "Validation",
          "Admin"
        ],
        "operationId": "BackendApiEndpointsAdminValidateTaggingSystemEndpoint",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaggingValidationReport"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "JWTBearerAuth": []
          }
        ]
      }
    },
    "/health": {
      "get": {
        "operationId": "GetHealth",
        "responses": {
          "200": {
            "description": ""
          }
        }
      }
    },
    "/": {
      "get": {
        "operationId": "Get",
        "responses": {
          "200": {
            "description": ""
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HealthResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Status": {
            "type": "string"
          },
          "Timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "Version": {
            "type": "string"
          },
          "Environment": {
            "type": "string"
          }
        }
      },
      "AncillaryStatsResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "TotalCount": {
            "type": "integer",
            "format": "int32"
          },
          "ByEntityType": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            }
          },
          "ByDivision": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            }
          },
          "ByLifecycleStage": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            }
          }
        }
      },
      "ProblemDetails": {
        "type": "object",
        "additionalProperties": {
          "nullable": true
        },
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ContactStatsResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "TotalCount": {
            "type": "integer",
            "format": "int32"
          },
          "ByLifecycleStage": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            }
          },
          "ByPersonaType": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            }
          },
          "ByOwner": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            }
          }
        }
      },
      "PatientStatsResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "TotalCount": {
            "type": "integer",
            "format": "int32"
          },
          "ActiveCount": {
            "type": "integer",
            "format": "int32"
          },
          "InactiveCount": {
            "type": "integer",
            "format": "int32"
          },
          "ByState": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            }
          }
        }
      },
      "AncillariesByDivisionResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AncillariesByDivisionGroup"
            }
          },
          "TotalAncillaries": {
            "type": "integer",
            "format": "int32"
          },
          "TotalDivisions": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "AncillariesByDivisionGroup": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Division": {
            "type": "string"
          },
          "AncillaryCount": {
            "type": "integer",
            "format": "int32"
          },
          "Ancillaries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AncillarySummary"
            }
          }
        }
      },
      "AncillarySummary": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Id": {
            "type": "string",
            "format": "guid"
          },
          "EntityWavId": {
            "type": "string"
          },
          "Name": {
            "type": "string"
          },
          "EntityType": {
            "type": "string"
          },
          "LifecycleStage": {
            "type": "string",
            "nullable": true
          },
          "State": {
            "type": "string",
            "nullable": true
          },
          "City": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ContactsByEntityResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContactsByEntityGroup"
            }
          },
          "TotalContacts": {
            "type": "integer",
            "format": "int32"
          },
          "TotalEntities": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ContactsByEntityGroup": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "EntityName": {
            "type": "string"
          },
          "EntityType": {
            "type": "string"
          },
          "ContactCount": {
            "type": "integer",
            "format": "int32"
          },
          "Contacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContactSummary"
            }
          }
        }
      },
      "ContactSummary": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Id": {
            "type": "string",
            "format": "guid"
          },
          "ContactWavId": {
            "type": "string"
          },
          "FullName": {
            "type": "string"
          },
          "JobTitle": {
            "type": "string",
            "nullable": true
          },
          "Email": {
            "type": "string"
          },
          "LifecycleStage": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "PatientsByAgencyResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PatientsByAgencyGroup"
            }
          },
          "TotalPatients": {
            "type": "integer",
            "format": "int32"
          },
          "TotalAgencies": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "PatientsByAgencyGroup": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "AgencyName": {
            "type": "string"
          },
          "PatientCount": {
            "type": "integer",
            "format": "int32"
          },
          "Patients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PatientSummary"
            }
          }
        }
      },
      "PatientSummary": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Id": {
            "type": "string"
          },
          "PatientWAVId": {
            "type": "string",
            "nullable": true
          },
          "FullName": {
            "type": "string"
          },
          "Status": {
            "type": "string",
            "nullable": true
          },
          "DateOfBirth": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "AddPatientDiagnosisResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          },
          "DiagnosisId": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "AddPatientDiagnosisRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "StartOfCare": {
            "type": "string",
            "nullable": true
          },
          "FirstDiagnosis": {
            "type": "string",
            "nullable": true
          },
          "SecondDiagnosis": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "CreatePatientResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          },
          "PatientId": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "CreatePatientRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Id": {
            "type": "string",
            "nullable": true
          },
          "IsBillable": {
            "type": "boolean",
            "nullable": true
          },
          "IsPgBillable": {
            "type": "boolean",
            "nullable": true
          },
          "IsEligible": {
            "type": "boolean",
            "nullable": true
          },
          "IsPgEligible": {
            "type": "boolean",
            "nullable": true
          },
          "AgencyInfo": {
            "$ref": "#/components/schemas/AgencyInfo"
          }
        }
      },
      "AgencyInfo": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "filterStatus": {
            "type": "string",
            "nullable": true
          },
          "patientWAVId": {
            "type": "string",
            "nullable": true
          },
          "patientEHRRecId": {
            "type": "string",
            "nullable": true
          },
          "patientFName": {
            "type": "string",
            "nullable": true
          },
          "patientMName": {
            "type": "string",
            "nullable": true
          },
          "patientLName": {
            "type": "string",
            "nullable": true
          },
          "dob": {
            "type": "string",
            "nullable": true
          },
          "age": {
            "type": "string",
            "nullable": true
          },
          "patientSex": {
            "type": "string",
            "nullable": true
          },
          "patientStatus": {
            "type": "string",
            "nullable": true
          },
          "startOfCare": {
            "type": "string",
            "nullable": true
          },
          "careManagement": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CareManagement"
            }
          },
          "episodeDiagnoses": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/EpisodeDiagnosis"
            }
          }
        }
      },
      "CareManagement": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "careManagementType": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "EpisodeDiagnosis": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "startOfCare": {
            "type": "string",
            "nullable": true
          },
          "firstDiagnosis": {
            "type": "string",
            "nullable": true
          },
          "secondDiagnosis": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "DeletePatientResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          }
        }
      },
      "DeletePatientRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "Patient": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "isBillable": {
            "type": "boolean",
            "nullable": true
          },
          "isPgBillable": {
            "type": "boolean",
            "nullable": true
          },
          "isEligible": {
            "type": "boolean",
            "nullable": true
          },
          "isPgEligible": {
            "type": "boolean",
            "nullable": true
          },
          "agencyInfo": {
            "$ref": "#/components/schemas/AgencyInfo"
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tag"
            }
          }
        }
      },
      "Tag": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "namespace": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "confidence": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "nullable": true,
            "additionalProperties": {
              "type": "string"
            }
          },
          "isActive": {
            "type": "boolean"
          }
        }
      },
      "GetPatientByIdRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "GetPatientByWavIdRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "GetPatientDiagnosesResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "PatientId": {
            "type": "string"
          },
          "PatientName": {
            "type": "string",
            "nullable": true
          },
          "Diagnoses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EpisodeDiagnosis"
            }
          }
        }
      },
      "GetPatientDiagnosesRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "PatchPatientResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          }
        }
      },
      "PatchPatientRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "IsBillable": {
            "type": "boolean",
            "nullable": true
          },
          "IsPgBillable": {
            "type": "boolean",
            "nullable": true
          },
          "IsEligible": {
            "type": "boolean",
            "nullable": true
          },
          "IsPgEligible": {
            "type": "boolean",
            "nullable": true
          },
          "PatientStatus": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SearchPatientsRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "UpdatePatientResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          }
        }
      },
      "UpdatePatientRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "IsBillable": {
            "type": "boolean",
            "nullable": true
          },
          "IsPgBillable": {
            "type": "boolean",
            "nullable": true
          },
          "IsEligible": {
            "type": "boolean",
            "nullable": true
          },
          "IsPgEligible": {
            "type": "boolean",
            "nullable": true
          },
          "AgencyInfo": {
            "$ref": "#/components/schemas/AgencyInfo"
          }
        }
      },
      "AddContactEntityResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          }
        }
      },
      "AddContactEntityRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Entity": {
            "$ref": "#/components/schemas/AssociatedEntity"
          }
        }
      },
      "AssociatedEntity": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "entityType": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "entitySubtype": {
            "type": "string",
            "nullable": true
          },
          "lifecycleStage": {
            "type": "string",
            "nullable": true
          },
          "npiNumber": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "CreateContactResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          },
          "ContactId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          }
        }
      },
      "CreateContactRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ContactWavId": {
            "type": "string"
          },
          "FirstName": {
            "type": "string"
          },
          "LastName": {
            "type": "string"
          },
          "Email": {
            "type": "string"
          },
          "JobTitle": {
            "type": "string",
            "nullable": true
          },
          "PersonaType": {
            "type": "string",
            "nullable": true
          },
          "ContactLifecycleStage": {
            "type": "string",
            "nullable": true
          },
          "State": {
            "type": "string",
            "nullable": true
          },
          "City": {
            "type": "string",
            "nullable": true
          },
          "PhoneNo": {
            "type": "string",
            "nullable": true
          },
          "ContactOwner": {
            "type": "string",
            "nullable": true
          },
          "IsActive": {
            "type": "boolean"
          },
          "AssociatedEntities": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/AssociatedEntity"
            }
          }
        }
      },
      "DeleteContactResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          }
        }
      },
      "DeleteContactRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "ContactUser": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "contactWavId": {
            "type": "string"
          },
          "associatedEntities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssociatedEntity"
            }
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "personaType": {
            "type": "string",
            "nullable": true
          },
          "contactLifecycleStage": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string"
          },
          "phoneNo": {
            "type": "string",
            "nullable": true
          },
          "contactOwner": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tag"
            }
          }
        }
      },
      "GetContactByIdRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "GetContactByWavIdRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "GetContactEntitiesRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "PatchContactResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          }
        }
      },
      "PatchContactRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ContactWavId": {
            "type": "string",
            "nullable": true
          },
          "FirstName": {
            "type": "string",
            "nullable": true
          },
          "LastName": {
            "type": "string",
            "nullable": true
          },
          "Email": {
            "type": "string",
            "nullable": true
          },
          "JobTitle": {
            "type": "string",
            "nullable": true
          },
          "PersonaType": {
            "type": "string",
            "nullable": true
          },
          "ContactLifecycleStage": {
            "type": "string",
            "nullable": true
          },
          "State": {
            "type": "string",
            "nullable": true
          },
          "City": {
            "type": "string",
            "nullable": true
          },
          "PhoneNo": {
            "type": "string",
            "nullable": true
          },
          "ContactOwner": {
            "type": "string",
            "nullable": true
          },
          "IsActive": {
            "type": "boolean",
            "nullable": true
          }
        }
      },
      "SearchContactsRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "UpdateContactResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          }
        }
      },
      "UpdateContactRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ContactWavId": {
            "type": "string"
          },
          "FirstName": {
            "type": "string"
          },
          "LastName": {
            "type": "string"
          },
          "Email": {
            "type": "string"
          },
          "JobTitle": {
            "type": "string",
            "nullable": true
          },
          "PersonaType": {
            "type": "string",
            "nullable": true
          },
          "ContactLifecycleStage": {
            "type": "string",
            "nullable": true
          },
          "State": {
            "type": "string",
            "nullable": true
          },
          "City": {
            "type": "string",
            "nullable": true
          },
          "PhoneNo": {
            "type": "string",
            "nullable": true
          },
          "ContactOwner": {
            "type": "string",
            "nullable": true
          },
          "IsActive": {
            "type": "boolean"
          },
          "AssociatedEntities": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/AssociatedEntity"
            }
          }
        }
      },
      "BulkCreateAncillariesResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          },
          "CreatedCount": {
            "type": "integer",
            "format": "int32"
          },
          "ErrorCount": {
            "type": "integer",
            "format": "int32"
          },
          "Errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BulkOperationError"
            }
          }
        }
      },
      "BulkOperationError": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Index": {
            "type": "integer",
            "format": "int32"
          },
          "ItemId": {
            "type": "string",
            "nullable": true
          },
          "Error": {
            "type": "string"
          }
        }
      },
      "BulkCreateAncillariesRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Ancillaries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AncillaryUserDto"
            }
          }
        }
      },
      "AncillaryUserDto": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Id": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "EntityWavId": {
            "type": "string"
          },
          "Name": {
            "type": "string"
          },
          "EntityType": {
            "type": "string"
          },
          "EntitySubtype": {
            "type": "string",
            "nullable": true
          },
          "LifecycleStage": {
            "type": "string",
            "nullable": true
          },
          "EntityNpiNumber": {
            "type": "string",
            "nullable": true
          },
          "ClinicalServices": {
            "type": "string",
            "nullable": true
          },
          "Services": {
            "type": "string",
            "nullable": true
          },
          "ServicesArray": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "AddressType": {
            "type": "string",
            "nullable": true
          },
          "State": {
            "type": "string",
            "nullable": true
          },
          "City": {
            "type": "string",
            "nullable": true
          },
          "Zipcode": {
            "type": "string",
            "nullable": true
          },
          "Lat": {
            "type": "string",
            "nullable": true
          },
          "Lon": {
            "type": "string",
            "nullable": true
          },
          "Email": {
            "type": "string",
            "nullable": true
          },
          "PhoneNo": {
            "type": "string",
            "nullable": true
          },
          "AssociatedEntities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssociatedEntity"
            }
          }
        }
      },
      "BulkCreateContactsResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          },
          "CreatedCount": {
            "type": "integer",
            "format": "int32"
          },
          "ErrorCount": {
            "type": "integer",
            "format": "int32"
          },
          "Errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BulkOperationError"
            }
          }
        }
      },
      "BulkCreateContactsRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Contacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContactUserDto"
            }
          }
        }
      },
      "ContactUserDto": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Id": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "ContactWavId": {
            "type": "string"
          },
          "AssociatedEntities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssociatedEntity"
            }
          },
          "FirstName": {
            "type": "string"
          },
          "LastName": {
            "type": "string"
          },
          "JobTitle": {
            "type": "string",
            "nullable": true
          },
          "PersonaType": {
            "type": "string",
            "nullable": true
          },
          "ContactLifecycleStage": {
            "type": "string",
            "nullable": true
          },
          "State": {
            "type": "string",
            "nullable": true
          },
          "City": {
            "type": "string",
            "nullable": true
          },
          "Email": {
            "type": "string"
          },
          "PhoneNo": {
            "type": "string",
            "nullable": true
          },
          "ContactOwner": {
            "type": "string",
            "nullable": true
          },
          "IsActive": {
            "type": "boolean"
          }
        }
      },
      "BulkCreatePatientsResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          },
          "CreatedCount": {
            "type": "integer",
            "format": "int32"
          },
          "ErrorCount": {
            "type": "integer",
            "format": "int32"
          },
          "Errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BulkOperationError"
            }
          }
        }
      },
      "BulkCreatePatientsRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Patients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PatientDto"
            }
          }
        }
      },
      "PatientDto": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Id": {
            "type": "string",
            "nullable": true
          },
          "IsBillable": {
            "type": "boolean",
            "nullable": true
          },
          "IsPgBillable": {
            "type": "boolean",
            "nullable": true
          },
          "IsEligible": {
            "type": "boolean",
            "nullable": true
          },
          "IsPgEligible": {
            "type": "boolean",
            "nullable": true
          },
          "AgencyInfo": {
            "$ref": "#/components/schemas/AgencyInfo"
          }
        }
      },
      "RefreshTokenRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "refresh_token": {
            "type": "string"
          }
        }
      },
      "AddAncillaryEntityResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          }
        }
      },
      "AddAncillaryEntityRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Entity": {
            "$ref": "#/components/schemas/AssociatedEntity"
          }
        }
      },
      "CreateAncillaryResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          },
          "AncillaryId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          }
        }
      },
      "CreateAncillaryRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "EntityWavId": {
            "type": "string"
          },
          "Name": {
            "type": "string"
          },
          "EntityType": {
            "type": "string"
          },
          "EntitySubtype": {
            "type": "string",
            "nullable": true
          },
          "LifecycleStage": {
            "type": "string",
            "nullable": true
          },
          "EntityNpiNumber": {
            "type": "string",
            "nullable": true
          },
          "ClinicalServices": {
            "type": "string",
            "nullable": true
          },
          "Services": {
            "type": "string",
            "nullable": true
          },
          "ServicesArray": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "AddressType": {
            "type": "string",
            "nullable": true
          },
          "State": {
            "type": "string",
            "nullable": true
          },
          "City": {
            "type": "string",
            "nullable": true
          },
          "Zipcode": {
            "type": "string",
            "nullable": true
          },
          "Lat": {
            "type": "string",
            "nullable": true
          },
          "Lon": {
            "type": "string",
            "nullable": true
          },
          "Email": {
            "type": "string",
            "nullable": true
          },
          "PhoneNo": {
            "type": "string",
            "nullable": true
          },
          "AssociatedEntities": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/AssociatedEntity"
            }
          }
        }
      },
      "DeleteAncillaryResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          }
        }
      },
      "DeleteAncillaryRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "AncillaryUser": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "entityWavId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "entityType": {
            "type": "string"
          },
          "entitySubtype": {
            "type": "string",
            "nullable": true
          },
          "lifecycleStage": {
            "type": "string",
            "nullable": true
          },
          "entityNpiNumber": {
            "type": "string",
            "nullable": true
          },
          "clinicalServices": {
            "type": "string",
            "nullable": true
          },
          "services": {
            "type": "string",
            "nullable": true
          },
          "servicesArray": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "addressType": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "zipcode": {
            "type": "string",
            "nullable": true
          },
          "lat": {
            "type": "string",
            "nullable": true
          },
          "lon": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "phoneNo": {
            "type": "string",
            "nullable": true
          },
          "e_AssociatedEntitys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssociatedEntity"
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tag"
            }
          }
        }
      },
      "GetAncillaryByIdRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "GetAncillaryByWavIdRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "GetAncillaryEntitiesRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "PatchAncillaryResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          }
        }
      },
      "PatchAncillaryRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "EntityWavId": {
            "type": "string",
            "nullable": true
          },
          "Name": {
            "type": "string",
            "nullable": true
          },
          "EntityType": {
            "type": "string",
            "nullable": true
          },
          "EntitySubtype": {
            "type": "string",
            "nullable": true
          },
          "LifecycleStage": {
            "type": "string",
            "nullable": true
          },
          "EntityNpiNumber": {
            "type": "string",
            "nullable": true
          },
          "ClinicalServices": {
            "type": "string",
            "nullable": true
          },
          "Services": {
            "type": "string",
            "nullable": true
          },
          "AddressType": {
            "type": "string",
            "nullable": true
          },
          "State": {
            "type": "string",
            "nullable": true
          },
          "City": {
            "type": "string",
            "nullable": true
          },
          "Zipcode": {
            "type": "string",
            "nullable": true
          },
          "Lat": {
            "type": "string",
            "nullable": true
          },
          "Lon": {
            "type": "string",
            "nullable": true
          },
          "Email": {
            "type": "string",
            "nullable": true
          },
          "PhoneNo": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SearchAncillariesRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "UpdateAncillaryResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          }
        }
      },
      "UpdateAncillaryRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "EntityWavId": {
            "type": "string"
          },
          "Name": {
            "type": "string"
          },
          "EntityType": {
            "type": "string"
          },
          "EntitySubtype": {
            "type": "string",
            "nullable": true
          },
          "LifecycleStage": {
            "type": "string",
            "nullable": true
          },
          "EntityNpiNumber": {
            "type": "string",
            "nullable": true
          },
          "ClinicalServices": {
            "type": "string",
            "nullable": true
          },
          "Services": {
            "type": "string",
            "nullable": true
          },
          "ServicesArray": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "AddressType": {
            "type": "string",
            "nullable": true
          },
          "State": {
            "type": "string",
            "nullable": true
          },
          "City": {
            "type": "string",
            "nullable": true
          },
          "Zipcode": {
            "type": "string",
            "nullable": true
          },
          "Lat": {
            "type": "string",
            "nullable": true
          },
          "Lon": {
            "type": "string",
            "nullable": true
          },
          "Email": {
            "type": "string",
            "nullable": true
          },
          "PhoneNo": {
            "type": "string",
            "nullable": true
          },
          "AssociatedEntities": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/AssociatedEntity"
            }
          }
        }
      },
      "TagDefinition": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "namespace": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "isSensitive": {
            "type": "boolean"
          },
          "allowedRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "allowedTaggers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "isDeprecated": {
            "type": "boolean"
          },
          "replacedBy": {
            "type": "string",
            "nullable": true
          },
          "isAutomatic": {
            "type": "boolean"
          },
          "isMutable": {
            "type": "boolean"
          },
          "valuePattern": {
            "type": "string",
            "nullable": true
          },
          "exampleValues": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "retentionDays": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "relatedTags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "documentationUrl": {
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "metadata": {
            "type": "object",
            "nullable": true,
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "CreateTagDefinitionRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Namespace": {
            "type": "string"
          },
          "Name": {
            "type": "string"
          },
          "DisplayName": {
            "type": "string"
          },
          "Description": {
            "type": "string"
          },
          "Category": {
            "type": "string"
          },
          "IsSensitive": {
            "type": "boolean"
          },
          "AllowedRoles": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "AllowedTaggers": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "IsAutomatic": {
            "type": "boolean"
          },
          "IsMutable": {
            "type": "boolean"
          },
          "ValuePattern": {
            "type": "string",
            "nullable": true
          },
          "ExampleValues": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "Icon": {
            "type": "string",
            "nullable": true
          },
          "Color": {
            "type": "string",
            "nullable": true
          },
          "RetentionDays": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "RelatedTags": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "DocumentationUrl": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "DatabaseStatusResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "IsConnected": {
            "type": "boolean"
          },
          "DatabaseName": {
            "type": "string"
          },
          "PatientCount": {
            "type": "integer",
            "format": "int32"
          },
          "AncillaryUserCount": {
            "type": "integer",
            "format": "int32"
          },
          "ContactUserCount": {
            "type": "integer",
            "format": "int32"
          },
          "Message": {
            "type": "string"
          }
        }
      },
      "ImportDataResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Message": {
            "type": "string"
          },
          "PatientsImported": {
            "type": "integer",
            "format": "int32"
          },
          "AncillaryUsersImported": {
            "type": "integer",
            "format": "int32"
          },
          "ContactUsersImported": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ListTagDefinitionsResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Total": {
            "type": "integer",
            "format": "int32"
          },
          "Tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagDefinition"
            }
          }
        }
      },
      "ListTagDefinitionsRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "SeedCatalogResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "TotalDefinitions": {
            "type": "integer",
            "format": "int32"
          },
          "Created": {
            "type": "integer",
            "format": "int32"
          },
          "Skipped": {
            "type": "integer",
            "format": "int32"
          },
          "Errors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "BackfillResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "CollectionName": {
            "type": "string"
          },
          "TotalEntities": {
            "type": "integer",
            "format": "int32"
          },
          "ProcessedEntities": {
            "type": "integer",
            "format": "int32"
          },
          "SuccessfullyTagged": {
            "type": "integer",
            "format": "int32"
          },
          "FailedEntities": {
            "type": "integer",
            "format": "int32"
          },
          "TotalTagsAdded": {
            "type": "integer",
            "format": "int32"
          },
          "TotalTagsRemoved": {
            "type": "integer",
            "format": "int32"
          },
          "TagsByNamespace": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            }
          },
          "TagsByName": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            }
          },
          "Errors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "Warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "Duration": {
            "type": "string",
            "format": "duration"
          },
          "IsDryRun": {
            "type": "boolean"
          },
          "StartedAt": {
            "type": "string",
            "format": "date-time"
          },
          "CompletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "TagBackfillRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "CollectionName": {
            "type": "string"
          },
          "DryRun": {
            "type": "boolean"
          },
          "BatchSize": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "TagEvaluateResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "Tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagDto"
            }
          },
          "ExecutedRules": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "Diagnostics": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "Warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "Errors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "TagDto": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Namespace": {
            "type": "string"
          },
          "Name": {
            "type": "string"
          },
          "Source": {
            "type": "string"
          },
          "Confidence": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "Value": {
            "type": "string",
            "nullable": true
          },
          "Metadata": {
            "type": "object",
            "nullable": true,
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "TagEvaluateRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Entity": {}
        }
      },
      "TagRulesResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "TotalRules": {
            "type": "integer",
            "format": "int32"
          },
          "EnabledRules": {
            "type": "integer",
            "format": "int32"
          },
          "Rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagRuleInfo"
            }
          }
        }
      },
      "TagRuleInfo": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Name": {
            "type": "string"
          },
          "Version": {
            "type": "string"
          },
          "Description": {
            "type": "string"
          },
          "Priority": {
            "type": "integer",
            "format": "int32"
          },
          "IsEnabled": {
            "type": "boolean"
          }
        }
      },
      "TagStatistics": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "TotalTags": {
            "type": "integer",
            "format": "int32"
          },
          "TotalEntitiesWithTags": {
            "type": "integer",
            "format": "int32"
          },
          "TagCountByNamespace": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            }
          },
          "TagCountByName": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            }
          },
          "TagCountBySource": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            }
          },
          "TopTags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagUsage"
            }
          },
          "ExpiredTags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tag"
            }
          },
          "GeneratedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "TagUsage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "TagIdentifier": {
            "type": "string"
          },
          "Namespace": {
            "type": "string"
          },
          "Name": {
            "type": "string"
          },
          "UsageCount": {
            "type": "integer",
            "format": "int32"
          },
          "Percentage": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "TaggingValidationReport": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "ValidatedBy": {
            "type": "string"
          },
          "IsHealthy": {
            "type": "boolean"
          },
          "RuleCount": {
            "type": "integer",
            "format": "int32"
          },
          "EnabledRuleCount": {
            "type": "integer",
            "format": "int32"
          },
          "CatalogTagCount": {
            "type": "integer",
            "format": "int32"
          },
          "SamplePatientTags": {
            "type": "integer",
            "format": "int32"
          },
          "SamplePatientRules": {
            "type": "integer",
            "format": "int32"
          },
          "SampleContactTags": {
            "type": "integer",
            "format": "int32"
          },
          "SampleContactRules": {
            "type": "integer",
            "format": "int32"
          },
          "SampleAncillaryTags": {
            "type": "integer",
            "format": "int32"
          },
          "SampleAncillaryRules": {
            "type": "integer",
            "format": "int32"
          },
          "RuleNames": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "Checks": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "Warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "Errors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "JWTBearerAuth": {
        "type": "http",
        "description": "Enter a JWT token to authorize the requests...",
        "scheme": "Bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}