{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "Serilog": {
    "Using": [
      "Serilog.Sinks.Console",
      "Serilog.Sinks.File",
      "Serilog.Exceptions",
      "Serilog.Expressions",
      "Serilog.Enrichers.Thread"
    ],
    "Enrich": [
      "WithExceptionDetails",
      "WithDynamicProperty",
      "WithThreadId"
    ],
    "MinimumLevel": {
      "Default": "Information",
      "Override": {
        "adas_core": "Debug",
        "EasyNetQ": "Information",
        "Quartz": "Information",
        "Microsoft": "Warning",
        "System": "Error"
      }
    },
    "WriteTo": [
      {
        "Name": "Console",
        "Args": {
          "theme": "Serilog.Sinks.SystemConsole.Themes.SystemConsoleTheme::Grayscale, Serilog.Sinks.Console"
        }
      },
      {
        "Name": "File",
        "Args": {
          "path": "Logs/.log",
          "formatter": {
            "type": "Serilog.Templates.ExpressionTemplate, Serilog.Expressions",
            "template": "{@t:yyyy-MM-dd HH:mm:ss} [{@l:u3}]{#if SourceContext is not null} ({#if Length(SourceContext) > 35}{Substring(SourceContext, Length(SourceContext) - 35)}{#else}{SourceContext,35}{#end}){#end}: {@m}{#if TraceId is not null} TraceId: {TraceId}{#end}{#if TraceMessageId is not null} TraceMessageId: {TraceMessageId}{#end} TraceIdentifier: {TraceIdentifier} Thread: {ThreadId} \n{@x}"
          },
          "rollingInterval": 4,
          "retainedFileCountLimit": 72,
          "rollOnFileSizeLimit": true
        }
      }
    ],
    "Properties": {
      "Application": "ADASCORE"
    }
  },
  "AllowedHosts": "*",
  "DatabaseSettings": {
    "ConnectionString": "mongodb://smacsuci:2(R*aQpu2r@sumo.julianrojas.xyz:27017/?authSource=admin",
    "DatabaseName": "adas"
  },
  "RabbitMQSettings": {
    "ConnectionString": "host=sumo.julianrojas.xyz;port=5672;username=adas_core;password=adas_core;publisherConfirms=true;timeout=30",
    "PatientsQueue": "patients",
    "TreatmentsQueue": "treatments",
    "ObservationsQueue": "observations",
    "RecordingQueue": "recordings",
    "PumpsQueue": "pumps",
    "AlarmObservationQueue": "alarms",
    "MaxRetries": 1
  },
  "DatabaseConfigurationAudit": {
    "ConnectionString": "mongodb://smacsuci:2(R*aQpu2r@sumo.julianrojas.xyz:27017/?authSource=admin",
    "DatabaseName": "AuditAdas"

  },

  "CacheSettings": {
    "IsEnabled": true,
    "Patients": "Redis",
    "Displays": "Redis",
    "PumpObservations": "None",
    "Appointments": "Cache",
    "PointOfCares": "Redis",
    "GroupedObservations": "Redis",
    "PatientObservations": "Cache",
    "ConfigObservations": "Redis",

    "InMemory": {
      "Ttl": {
        "GlobalSeconds": 3600,
        "PatientsSeconds": 600,
        "DisplaysSeconds": 1200,
        "PumpObservationsSeconds": 300,
        "AppointmentsSeconds": 900,
        "PointOfCaresSeconds": 1200,
        "GroupedObservationsSeconds": 300,
        "ConfigObservationsSeconds": 1200,
        "PatientObservationsSeconds": 300
      }
    },

    "Redis": {
      "ConnectionString": "localhost:6379",
      "EnableScalable": false,
      "Ssl": false,
      "Password": null,
      "ChannelPrefix": "AdasCore",
      "Endpoints": [
        { "Host": "localhost", "Port": 6379 }
      ],
      "Ttl": {
        "GlobalSeconds": 3600,
        "PatientsSeconds": 600,
        "DisplaysSeconds": 1200,
        "PumpObservationsSeconds": 300,
        "AppointmentsSeconds": 900,
        "PointOfCaresSeconds": 1200,
        "GroupedObservationsSeconds": 300,
        "ConfigObservationsSeconds": 1200,
        "PatientObservationsSeconds": 300
      }
    }
  },

  "AuthSettings": {
    "JwtConfig": {
      "Key": "534224WERW�$&/($$ghdTDDTHSSDFVADFTRGW%Y&%�B&CVW$&H&$HWETGWXZ%EGX$%c",
      "Issuer": "https://www.philips.es/healthcare",
      "Audience": "Madrid Salud",
      "TokenValidityInMinutes": 120,
      "RefreshTokenValidityInMinutes": 1440
    },
    "LoginMethods": [
      "Local",
      "Ldap"
    ]
  },
  "ApiSettings": {
    "Customize": "BD",
    "PointOfCareMapping": {
      "Key": "PV1",
      "Required": false,
      "Refresh": 600
    },
    "ConfigObservation": {
      "Key": "PV1",
      "IgnoreUnknownObservation": true,
      "IgnoreUnknownTreatment": false,
      "Refresh": 60
    },
    "RetentionPolicy": "NoDelete",
    "RetentionPolicyValue": 1500,
    "CreatePatientWithORU": true,
    "CreatePatientWithSIU": true,
    "CreatePatientWithoutLocation": false,
    "CreatePatientWithADT_A08": false,
    "UpdatePatientDataWithORU": true,
    "UpdatePatientLocationWithORU": true,
    "ArchivePatientWithOru": false,
    "UpdatePatientNumberWithOru": false,
    "OnArchivePatientAction": "Archive",
    "CretatePatientWithoutPatientNumber": false,
    "ArchivePatientsWithoutObservationsSinceHours": 4800,
    "SinceDischargeTimeToArchive ": 48,
    "CheckInactivePatientSchedulerIntervalHours": 2400,
    "CheckActiveTreatmentsSchedulerIntervalMinutes": 1000,
    "ActivateCheckExpiredObservations": false,
    "ActivateSchedulerGetProvidersObservations": false,
    "ActivateSchedulerCheckNewsJob": false,
    "ActivateSchedulerCheckExpiredObservation": false,
    "ActivateCheckInactivePatients": true,
    "ActivateCheckExpiredAlerts": false,
    "ActivateSchedulerCheckHydricBalance": false,
    "ActivateSchedulerCheckOpiateBoluses": false,
    "ActivateSchedulerCheckActiveTreatmentsJob": false,
    "Shift": [
      "08:00",
      "15:00",
      "18:00"
    ],
    "FindPatientByLocationWithoutID": false,
    "PersistObservationCodes": true,
    "IccaFacility": "Philips.CIS.CVC",
    "SendingFacility": [
      "obs",
      "UMS"
    ],
    "AllergiesCode": [
      "473011001"
    ],
    "DrainageCode": [
      "56868008"
    ],
    "PositionCode": [
      "386053000"
    ],
    "IsolationCode": [
      "302147001"
    ],
    "HighFrequencyVentilation": [
      "PC-HFO"
    ],
    "InvasiveVentilation": [
      "A/C  (S.I.P.P.V. )",
      "A/C  (S.I.P.P.V.) + V.G.",
      "PRVC",
      "PC-SIMV",
      "SIMV-PRVC",
      "PC-AC",
      "SIMV",
      "SIMV-PC",
      "S.I.M.V.",
      "PC-CMV",
      "SIPPV",
      "PC"
    ],
    "NonInvasiveVentilation": [
      "DUOPAP",
      "NCPAP"
    ],
    "Surgery": [
      "138875005",
      "35631009",
      "420419008",
      "370897002",
      "115959002",
      "370896006"
    ],
    "SurgeryText": [
      "Cirugía láser of",
      "Cirugía",
      "Cirugía sentidos",
      "Cirugía respirat",
      "Cirugía locomoto",
      "Cirugía renal",
      "Cirugía digestiv",
      "Cirugía neuro"
    ],
    "Transcutaneous": [
      "151756",
      "151760"
    ],
    "RegionalBrainSaturation": [
      "194908",
      "194909"
    ],
    "MedicationBolus": [
      "000523",
      "001034",
      "21011000140105",
      "322440003",
      "322761006",
      "18851000140100",
      "333919005",
      "333920004",
      "333922007"
    ],
    "IntravenousLinesCode": [
      "10546003"
    ],
    "Electroencephalogram": [
      "42803009"
    ],
    "Respiratory": [
      "361110005",
      "416362002",
      "84481000140102"
    ],
    "Oni": "84481000140102",
    "BalizaUrl": "http://10.0.10.35/info.html",
    "BalizaPassword": "password",
    "ConfigObservationRefresh": 120,
    "ConfigUnitsRequired": false,
    "PumpExpiresSeconds": 120,
    "SendPumpsZero": false,
    "PumPressureAlarm": [],
    "VolumetricAirOcclusionAlarm": [
      "Occlusion",
      "Upstream Occlusion"
    ],
    "VolumetricAirInLineAlarm": [
      "Accumulated Air In Line",
      "Air In Line",
      "Air In Line Now"
    ],
    "EndContinuousInfusionAlarm": [
      "End Of Infusion",
      "Near End Of Infusion",
      "End Of Infusion - KVO Stop",
      "End Of Infusion - Stop"
    ],
    "InotropicEndInfusionAlarm": [
      "Near End Of Infusion",
      "End Of Infusion",
      "End Of Infusion - KVO Stop",
      "End Of Infusion - Stop"
    ],
    "InotropicMedicines": [
      "Dopamina",
      "Dobutamina",
      "Milrinona",
      "Noradrenalina",
      "Levosimendán"
    ],
    "PathUpdateFiles": [
      "C:",
      "Standard_Files",
      "UploadFromServer"
    ],
    "TimeToSendGroupedObs": 20
  }
}
