{
  "ConnectionStrings": {
    "DefaultConnection": "Host=localhost;Port=5437;Database=vigilcare_records;Username=postgres;Password=password"
  },
  "Redis": {
    "ConnectionString": "localhost:6383"
  },
  "Seq": {
    "ServerUrl": "http://localhost:5346"
  },
  "Minio": {
    "Endpoint": "localhost:9012",
    "AccessKey": "minioadmin",
    "SecretKey": "minioadmin",
    "BucketName": "scans",
    "UseSsl": false,
    "PresignedUrlExpiryMinutes": 15
  },
  "Jwt": {
    "Secret": "VigilCareRecordsDevSecretKeyAtLeast32Chars!",
    "Issuer": "VigilCareRecords",
    "Audience": "VigilCareRecords",
    "ExpiryMinutes": 15,
    "RefreshTokenExpiryDays": 7
  },
  "Serilog": {
    "Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.Seq" ],
    "MinimumLevel": {
      "Default": "Information",
      "Override": {
        "Microsoft.AspNetCore": "Warning",
        "Microsoft.EntityFrameworkCore.Database.Command": "Information"
      }
    },
    "WriteTo": [
      { "Name": "Console" },
      {
        "Name": "Seq",
        "Args": {
          "serverUrl": "http://localhost:5346"
        }
      }
    ],
    "Enrich": [ "FromLogContext" ]
  },
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning",
      "Microsoft.EntityFrameworkCore.Database.Command": "Information"
    }
  },
  "SiteConfig": {
    "ClinicalApprovalRequired": {
      "PATIENT_REGISTRATION": false,
      "ENCOUNTER_SUMMARY": true,
      "VITALS_SHEET": true,
      "LAB_RESULTS": true,
      "MEDICATION_LIST": true,
      "ALLERGY_UPDATE": false,
      "MIXED": true
    }
  },
  "Cors": {
    "AllowedOrigins": [ "http://localhost:3028" ]
  },
  "PromotionRetry": {
    "PollIntervalSeconds": 60,
    "InitialDelaySeconds": 30,
    "MaxDelaySeconds": 900,
    "MaxRetryAttempts": 10,
    "BackoffMultiplier": 2.0
  },
  "Fhir": {
    "BaseUrl": "http://localhost:5271/fhir",
    "PublisherName": "VigilCare Records",
    "PublisherUrl": "https://vigilcare.local",
    "ServerVersion": "1.0.0"
  },
  "Ocr": {
    "Enabled": false,
    "Provider": "azure",
    "ConfidenceThreshold": 0.7,
    "PollIntervalSeconds": 15,
    "Azure": {
      "Endpoint": "",
      "ApiKey": ""
    },
    "Tesseract": {
      "DataPath": "/usr/share/tessdata",
      "Language": "eng"
    }
  }
}