{
  "components": {
    "schemas": {
      "AnalyzeRequest": {
        "additionalProperties": false,
        "description": "Request schema for /analyze.",
        "properties": {
          "aggregation_strategy": {
            "anyOf": [
              {
                "enum": [
                  "simple",
                  "first",
                  "average",
                  "max"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": "simple",
            "title": "Aggregation Strategy"
          },
          "confidence_threshold": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": 0.0,
            "title": "Confidence Threshold"
          },
          "group_entities": {
            "default": false,
            "title": "Group Entities",
            "type": "boolean"
          },
          "keep_alive": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Keep Alive"
          },
          "model_name": {
            "default": "disease_detection_superclinical",
            "title": "Model Name",
            "type": "string"
          },
          "sentence_clean": {
            "default": false,
            "title": "Sentence Clean",
            "type": "boolean"
          },
          "sentence_detection": {
            "default": true,
            "title": "Sentence Detection",
            "type": "boolean"
          },
          "sentence_language": {
            "default": "en",
            "title": "Sentence Language",
            "type": "string"
          },
          "text": {
            "title": "Text",
            "type": "string"
          },
          "use_fast_tokenizer": {
            "default": true,
            "title": "Use Fast Tokenizer",
            "type": "boolean"
          }
        },
        "required": [
          "text"
        ],
        "title": "AnalyzeRequest",
        "type": "object"
      },
      "CohortResolveRequest": {
        "additionalProperties": false,
        "description": "Request schema for in-memory ``POST /cohort/resolve``.",
        "properties": {
          "concept_ancestors": {
            "items": {
              "$ref": "#/components/schemas/ConceptAncestorRequest"
            },
            "title": "Concept Ancestors",
            "type": "array"
          },
          "phenotype": {
            "additionalProperties": true,
            "title": "Phenotype",
            "type": "object"
          },
          "records_jsonl": {
            "title": "Records Jsonl",
            "type": "string"
          }
        },
        "required": [
          "phenotype",
          "records_jsonl"
        ],
        "title": "CohortResolveRequest",
        "type": "object"
      },
      "ConceptAncestorRequest": {
        "additionalProperties": false,
        "description": "One caller-supplied concept hierarchy edge.",
        "properties": {
          "ancestor_concept_id": {
            "exclusiveMinimum": 0.0,
            "title": "Ancestor Concept Id",
            "type": "integer"
          },
          "descendant_concept_id": {
            "exclusiveMinimum": 0.0,
            "title": "Descendant Concept Id",
            "type": "integer"
          }
        },
        "required": [
          "ancestor_concept_id",
          "descendant_concept_id"
        ],
        "title": "ConceptAncestorRequest",
        "type": "object"
      },
      "DeidentifyJobDocument": {
        "additionalProperties": false,
        "description": "One document in an async de-identification job.",
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "text": {
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "title": "DeidentifyJobDocument",
        "type": "object"
      },
      "DeidentifyJobRequest": {
        "additionalProperties": false,
        "description": "Request schema for POST /jobs.",
        "properties": {
          "confidence_threshold": {
            "default": 0.7,
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence Threshold",
            "type": "number"
          },
          "date_shift_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Date Shift Days"
          },
          "documents": {
            "items": {
              "$ref": "#/components/schemas/DeidentifyJobDocument"
            },
            "title": "Documents",
            "type": "array"
          },
          "keep_alive": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Keep Alive"
          },
          "keep_mapping": {
            "default": false,
            "title": "Keep Mapping",
            "type": "boolean"
          },
          "keep_year": {
            "default": false,
            "title": "Keep Year",
            "type": "boolean"
          },
          "lang": {
            "default": "en",
            "enum": [
              "am",
              "as",
              "bn",
              "en",
              "fr",
              "de",
              "it",
              "es",
              "nl",
              "hi",
              "gu",
              "kn",
              "ml",
              "mr",
              "ne",
              "or",
              "pa",
              "ta",
              "te",
              "ur",
              "pt",
              "ar",
              "he",
              "ja",
              "tr",
              "id",
              "th",
              "ko",
              "ro",
              "ru",
              "sv",
              "da",
              "no",
              "sw",
              "zu",
              "xh",
              "zh",
              "uk",
              "cs",
              "el",
              "vi"
            ],
            "title": "Lang",
            "type": "string"
          },
          "method": {
            "default": "mask",
            "enum": [
              "mask",
              "remove",
              "replace",
              "hash",
              "shift_dates"
            ],
            "title": "Method",
            "type": "string"
          },
          "model_name": {
            "default": "OpenMed/OpenMed-PII-SuperClinical-Small-44M-v1",
            "title": "Model Name",
            "type": "string"
          },
          "normalize_accents": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Normalize Accents"
          },
          "policy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Policy"
          },
          "shift_dates": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Shift Dates"
          },
          "use_safety_sweep": {
            "default": true,
            "title": "Use Safety Sweep",
            "type": "boolean"
          },
          "use_smart_merging": {
            "default": true,
            "title": "Use Smart Merging",
            "type": "boolean"
          },
          "webhook": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JobWebhookRequest"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "documents"
        ],
        "title": "DeidentifyJobRequest",
        "type": "object"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "title": "Detail",
            "type": "array"
          }
        },
        "title": "HTTPValidationError",
        "type": "object"
      },
      "JobWebhookRequest": {
        "additionalProperties": false,
        "description": "Webhook callback configuration for async jobs.",
        "properties": {
          "backoff_seconds": {
            "default": 0.5,
            "maximum": 60.0,
            "minimum": 0.0,
            "title": "Backoff Seconds",
            "type": "number"
          },
          "max_attempts": {
            "default": 3,
            "maximum": 10.0,
            "minimum": 1.0,
            "title": "Max Attempts",
            "type": "integer"
          },
          "secret": {
            "title": "Secret",
            "type": "string"
          },
          "url": {
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "url",
          "secret"
        ],
        "title": "JobWebhookRequest",
        "type": "object"
      },
      "ModelUnloadRequest": {
        "additionalProperties": false,
        "description": "Request schema for /models/unload.",
        "properties": {
          "all": {
            "default": false,
            "title": "All",
            "type": "boolean"
          },
          "model_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Name"
          }
        },
        "title": "ModelUnloadRequest",
        "type": "object"
      },
      "OmopLoadRequest": {
        "additionalProperties": false,
        "description": "Request schema for /omop/load.",
        "properties": {
          "records_jsonl": {
            "title": "Records Jsonl",
            "type": "string"
          },
          "validate_constraints": {
            "default": false,
            "title": "Validate Constraints",
            "type": "boolean"
          },
          "vocabulary_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vocabulary Version"
          }
        },
        "required": [
          "records_jsonl"
        ],
        "title": "OmopLoadRequest",
        "type": "object"
      },
      "PIIDeidentifyRequest": {
        "additionalProperties": false,
        "description": "Request schema for /pii/deidentify.",
        "properties": {
          "confidence_threshold": {
            "default": 0.7,
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence Threshold",
            "type": "number"
          },
          "date_shift_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Date Shift Days"
          },
          "keep_alive": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Keep Alive"
          },
          "keep_mapping": {
            "default": false,
            "title": "Keep Mapping",
            "type": "boolean"
          },
          "keep_year": {
            "default": false,
            "title": "Keep Year",
            "type": "boolean"
          },
          "lang": {
            "default": "en",
            "enum": [
              "am",
              "as",
              "bn",
              "en",
              "fr",
              "de",
              "it",
              "es",
              "nl",
              "hi",
              "gu",
              "kn",
              "ml",
              "mr",
              "ne",
              "or",
              "pa",
              "ta",
              "te",
              "ur",
              "pt",
              "ar",
              "he",
              "ja",
              "tr",
              "id",
              "th",
              "ko",
              "ro",
              "ru",
              "sv",
              "da",
              "no",
              "sw",
              "zu",
              "xh",
              "zh",
              "uk",
              "cs",
              "el",
              "vi"
            ],
            "title": "Lang",
            "type": "string"
          },
          "method": {
            "default": "mask",
            "enum": [
              "mask",
              "remove",
              "replace",
              "hash",
              "shift_dates"
            ],
            "title": "Method",
            "type": "string"
          },
          "model_name": {
            "default": "OpenMed/OpenMed-PII-SuperClinical-Small-44M-v1",
            "title": "Model Name",
            "type": "string"
          },
          "normalize_accents": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Normalize Accents"
          },
          "policy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Policy"
          },
          "shift_dates": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Shift Dates"
          },
          "text": {
            "title": "Text",
            "type": "string"
          },
          "use_safety_sweep": {
            "default": true,
            "title": "Use Safety Sweep",
            "type": "boolean"
          },
          "use_smart_merging": {
            "default": true,
            "title": "Use Smart Merging",
            "type": "boolean"
          }
        },
        "required": [
          "text"
        ],
        "title": "PIIDeidentifyRequest",
        "type": "object"
      },
      "PIIExtractRequest": {
        "additionalProperties": false,
        "description": "Request schema for /pii/extract.",
        "properties": {
          "confidence_threshold": {
            "default": 0.5,
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence Threshold",
            "type": "number"
          },
          "keep_alive": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Keep Alive"
          },
          "lang": {
            "default": "en",
            "enum": [
              "am",
              "as",
              "bn",
              "en",
              "fr",
              "de",
              "it",
              "es",
              "nl",
              "hi",
              "gu",
              "kn",
              "ml",
              "mr",
              "ne",
              "or",
              "pa",
              "ta",
              "te",
              "ur",
              "pt",
              "ar",
              "he",
              "ja",
              "tr",
              "id",
              "th",
              "ko",
              "ro",
              "ru",
              "sv",
              "da",
              "no",
              "sw",
              "zu",
              "xh",
              "zh",
              "uk",
              "cs",
              "el",
              "vi"
            ],
            "title": "Lang",
            "type": "string"
          },
          "model_name": {
            "default": "OpenMed/OpenMed-PII-SuperClinical-Small-44M-v1",
            "title": "Model Name",
            "type": "string"
          },
          "normalize_accents": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Normalize Accents"
          },
          "text": {
            "title": "Text",
            "type": "string"
          },
          "use_smart_merging": {
            "default": true,
            "title": "Use Smart Merging",
            "type": "boolean"
          }
        },
        "required": [
          "text"
        ],
        "title": "PIIExtractRequest",
        "type": "object"
      },
      "PIIExtractStreamRequest": {
        "additionalProperties": false,
        "description": "Request schema for /pii/extract/stream.",
        "properties": {
          "chunk_size": {
            "default": 1024,
            "maximum": 32768.0,
            "minimum": 1.0,
            "title": "Chunk Size",
            "type": "integer"
          },
          "confidence_threshold": {
            "default": 0.5,
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence Threshold",
            "type": "number"
          },
          "include_text": {
            "default": true,
            "title": "Include Text",
            "type": "boolean"
          },
          "keep_alive": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Keep Alive"
          },
          "lang": {
            "default": "en",
            "enum": [
              "am",
              "as",
              "bn",
              "en",
              "fr",
              "de",
              "it",
              "es",
              "nl",
              "hi",
              "gu",
              "kn",
              "ml",
              "mr",
              "ne",
              "or",
              "pa",
              "ta",
              "te",
              "ur",
              "pt",
              "ar",
              "he",
              "ja",
              "tr",
              "id",
              "th",
              "ko",
              "ro",
              "ru",
              "sv",
              "da",
              "no",
              "sw",
              "zu",
              "xh",
              "zh",
              "uk",
              "cs",
              "el",
              "vi"
            ],
            "title": "Lang",
            "type": "string"
          },
          "max_entity_chars": {
            "default": 512,
            "minimum": 1.0,
            "title": "Max Entity Chars",
            "type": "integer"
          },
          "model_name": {
            "default": "OpenMed/OpenMed-PII-SuperClinical-Small-44M-v1",
            "title": "Model Name",
            "type": "string"
          },
          "normalize_accents": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Normalize Accents"
          },
          "text": {
            "title": "Text",
            "type": "string"
          },
          "tokenizer_context_chars": {
            "default": 128,
            "minimum": 0.0,
            "title": "Tokenizer Context Chars",
            "type": "integer"
          },
          "use_smart_merging": {
            "default": true,
            "title": "Use Smart Merging",
            "type": "boolean"
          },
          "window_chars": {
            "default": 4096,
            "minimum": 64.0,
            "title": "Window Chars",
            "type": "integer"
          }
        },
        "required": [
          "text"
        ],
        "title": "PIIExtractStreamRequest",
        "type": "object"
      },
      "PrivacyGatewayRequest": {
        "additionalProperties": false,
        "description": "Request schema for /privacy-gateway/complete.",
        "properties": {
          "confidence_threshold": {
            "default": 0.85,
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence Threshold",
            "type": "number"
          },
          "detector_confidence_floor": {
            "default": 0.0,
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Detector Confidence Floor",
            "type": "number"
          },
          "disallowed_entity_categories": {
            "items": {
              "type": "string"
            },
            "title": "Disallowed Entity Categories",
            "type": "array"
          },
          "keep_alive": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Keep Alive"
          },
          "lang": {
            "default": "en",
            "enum": [
              "am",
              "as",
              "bn",
              "en",
              "fr",
              "de",
              "it",
              "es",
              "nl",
              "hi",
              "gu",
              "kn",
              "ml",
              "mr",
              "ne",
              "or",
              "pa",
              "ta",
              "te",
              "ur",
              "pt",
              "ar",
              "he",
              "ja",
              "tr",
              "id",
              "th",
              "ko",
              "ro",
              "ru",
              "sv",
              "da",
              "no",
              "sw",
              "zu",
              "xh",
              "zh",
              "uk",
              "cs",
              "el",
              "vi"
            ],
            "title": "Lang",
            "type": "string"
          },
          "model_name": {
            "default": "OpenMed/OpenMed-PII-SuperClinical-Small-44M-v1",
            "title": "Model Name",
            "type": "string"
          },
          "normalize_accents": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Normalize Accents"
          },
          "policy": {
            "default": "strict",
            "title": "Policy",
            "type": "string"
          },
          "text": {
            "title": "Text",
            "type": "string"
          },
          "use_smart_merging": {
            "default": true,
            "title": "Use Smart Merging",
            "type": "boolean"
          }
        },
        "required": [
          "text"
        ],
        "title": "PrivacyGatewayRequest",
        "type": "object"
      },
      "SMARTBackendIngestionRequest": {
        "additionalProperties": false,
        "description": "Request schema for starting SMART backend-services ingestion.",
        "properties": {
          "checkpoint_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Checkpoint Path"
          },
          "client_id": {
            "title": "Client Id",
            "type": "string"
          },
          "confidence_threshold": {
            "default": 0.7,
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence Threshold",
            "type": "number"
          },
          "export_path": {
            "default": "$export",
            "title": "Export Path",
            "type": "string"
          },
          "fhir_base_url": {
            "title": "Fhir Base Url",
            "type": "string"
          },
          "keep_alive": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Keep Alive"
          },
          "key_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Key Id"
          },
          "lang": {
            "default": "en",
            "enum": [
              "am",
              "as",
              "bn",
              "en",
              "fr",
              "de",
              "it",
              "es",
              "nl",
              "hi",
              "gu",
              "kn",
              "ml",
              "mr",
              "ne",
              "or",
              "pa",
              "ta",
              "te",
              "ur",
              "pt",
              "ar",
              "he",
              "ja",
              "tr",
              "id",
              "th",
              "ko",
              "ro",
              "ru",
              "sv",
              "da",
              "no",
              "sw",
              "zu",
              "xh",
              "zh",
              "uk",
              "cs",
              "el",
              "vi"
            ],
            "title": "Lang",
            "type": "string"
          },
          "max_inflight_downloads": {
            "default": 2,
            "minimum": 1.0,
            "title": "Max Inflight Downloads",
            "type": "integer"
          },
          "method": {
            "default": "replace",
            "enum": [
              "mask",
              "remove",
              "replace",
              "hash",
              "shift_dates"
            ],
            "title": "Method",
            "type": "string"
          },
          "model_name": {
            "default": "OpenMed/OpenMed-PII-SuperClinical-Small-44M-v1",
            "title": "Model Name",
            "type": "string"
          },
          "normalize_accents": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Normalize Accents"
          },
          "output_dir": {
            "title": "Output Dir",
            "type": "string"
          },
          "policy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": "hipaa_safe_harbor",
            "title": "Policy"
          },
          "poll_interval_seconds": {
            "default": 1.0,
            "minimum": 0.0,
            "title": "Poll Interval Seconds",
            "type": "number"
          },
          "private_key_pem": {
            "title": "Private Key Pem",
            "type": "string"
          },
          "request_timeout_seconds": {
            "default": 30.0,
            "exclusiveMinimum": 0.0,
            "title": "Request Timeout Seconds",
            "type": "number"
          },
          "scope": {
            "default": "system/*.read",
            "title": "Scope",
            "type": "string"
          },
          "token_url": {
            "title": "Token Url",
            "type": "string"
          },
          "use_safety_sweep": {
            "default": true,
            "title": "Use Safety Sweep",
            "type": "boolean"
          },
          "use_smart_merging": {
            "default": true,
            "title": "Use Smart Merging",
            "type": "boolean"
          }
        },
        "required": [
          "fhir_base_url",
          "token_url",
          "client_id",
          "private_key_pem",
          "output_dir"
        ],
        "title": "SMARTBackendIngestionRequest",
        "type": "object"
      },
      "ValidationError": {
        "properties": {
          "ctx": {
            "title": "Context",
            "type": "object"
          },
          "input": {
            "title": "Input"
          },
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "title": "Location",
            "type": "array"
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError",
        "type": "object"
      }
    }
  },
  "info": {
    "description": "Hardened REST API for OpenMed text analysis and PII workflows.",
    "title": "OpenMed REST API",
    "version": "2.1.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/analyze": {
      "post": {
        "operationId": "analyze_analyze_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnalyzeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "title": "Response Analyze Analyze Post",
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Analyze"
      }
    },
    "/cohort/resolve": {
      "post": {
        "operationId": "cohort_resolve_cohort_resolve_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CohortResolveRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "title": "Response Cohort Resolve Cohort Resolve Post",
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Cohort Resolve"
      }
    },
    "/fhir/smart-backend/ingestions": {
      "post": {
        "operationId": "start_smart_backend_ingestion_fhir_smart_backend_ingestions_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SMARTBackendIngestionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "title": "Response Start Smart Backend Ingestion Fhir Smart Backend Ingestions Post",
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Start Smart Backend Ingestion"
      }
    },
    "/fhir/smart-backend/ingestions/{job_id}": {
      "get": {
        "operationId": "smart_backend_ingestion_status_fhir_smart_backend_ingestions__job_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "title": "Response Smart Backend Ingestion Status Fhir Smart Backend Ingestions  Job Id  Get",
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Smart Backend Ingestion Status"
      }
    },
    "/fhir/smart-backend/ingestions/{job_id}/summary": {
      "get": {
        "operationId": "smart_backend_ingestion_summary_fhir_smart_backend_ingestions__job_id__summary_get",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "title": "Response Smart Backend Ingestion Summary Fhir Smart Backend Ingestions  Job Id  Summary Get",
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Smart Backend Ingestion Summary"
      }
    },
    "/health": {
      "get": {
        "operationId": "health_health_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "title": "Response Health Health Get",
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "summary": "Health"
      }
    },
    "/jobs": {
      "post": {
        "operationId": "create_job_jobs_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeidentifyJobRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "title": "Response Create Job Jobs Post",
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Create Job"
      }
    },
    "/jobs/{job_id}": {
      "get": {
        "operationId": "get_job_jobs__job_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "title": "Response Get Job Jobs  Job Id  Get",
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get Job"
      }
    },
    "/livez": {
      "get": {
        "operationId": "livez_livez_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "title": "Response Livez Livez Get",
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "summary": "Livez"
      }
    },
    "/models/loaded": {
      "get": {
        "operationId": "loaded_models_models_loaded_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "title": "Response Loaded Models Models Loaded Get",
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "summary": "Loaded Models"
      }
    },
    "/models/unload": {
      "post": {
        "operationId": "unload_models_models_unload_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModelUnloadRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "title": "Response Unload Models Models Unload Post",
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Unload Models"
      }
    },
    "/omop/load": {
      "post": {
        "operationId": "omop_load_omop_load_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OmopLoadRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "title": "Response Omop Load Omop Load Post",
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Omop Load"
      }
    },
    "/pii/deidentify": {
      "post": {
        "operationId": "pii_deidentify_pii_deidentify_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PIIDeidentifyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "title": "Response Pii Deidentify Pii Deidentify Post",
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Pii Deidentify"
      }
    },
    "/pii/extract": {
      "post": {
        "operationId": "pii_extract_pii_extract_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PIIExtractRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "title": "Response Pii Extract Pii Extract Post",
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Pii Extract"
      }
    },
    "/pii/extract/stream": {
      "post": {
        "operationId": "pii_extract_stream_pii_extract_stream_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PIIExtractStreamRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Pii Extract Stream"
      }
    },
    "/privacy-gateway/complete": {
      "post": {
        "operationId": "privacy_gateway_complete_privacy_gateway_complete_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrivacyGatewayRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "title": "Response Privacy Gateway Complete Privacy Gateway Complete Post",
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Privacy Gateway Complete"
      }
    },
    "/readyz": {
      "get": {
        "operationId": "readyz_readyz_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "summary": "Readyz"
      }
    }
  }
}
