{
  "server": "https://monitor.yourhospital.com",
  "token": "set automatically by --pair",
  "data_dir": "/var/lib/carepulse-edge",
  "log_file": "/var/log/carepulse-edge.log",
  "log_level": "INFO",
  "hl7_listeners": [
    {
      "host": "0.0.0.0",
      "port": 2575
    }
  ],
  "sample_seconds": 60,
  "timezone": "+05:30",
  "match_patient_id": true,
  "waveforms": false,
  "waveform_channels": [
    "ecg_ii",
    "pleth",
    "resp",
    "co2",
    "art",
    "paw",
    "ctg_fhr",
    "ctg_toco"
  ],
  "waveform_rates": {
    "ecg": 250,
    "pleth": 125,
    "resp": 62,
    "co2": 62,
    "ctg": 4
  },
  "accept_adt": true,
  "monitor_vendor": "Mindray",
  "code_map": {
    "MY_LOCAL_SPO2": "spo2",
    "IGNORE_THIS_CODE": ""
  },
  "adt_out": {
    "host": "",
    "port": 2575,
    "receiving_app": "MONITORS",
    "interval": 30
  },
  "modbus": [
    {
      "name": "Blood bank fridge 1 probe",
      "host": "192.168.10.50",
      "port": 502,
      "unit": 1,
      "interval": 60,
      "function": 3,
      "serial": "BB-FRIDGE-1",
      "location": "Blood bank fridge 1",
      "points": [
        {
          "register": 0,
          "type": "int16",
          "scale": 0.1,
          "param": "fridge_temp"
        }
      ]
    },
    {
      "name": "OT-1 room sensor",
      "host": "192.168.10.51",
      "unit": 1,
      "interval": 60,
      "serial": "OT1-ENV",
      "location": "OT 1",
      "points": [
        {
          "register": 0,
          "type": "int16",
          "scale": 0.1,
          "param": "room_temp"
        },
        {
          "register": 1,
          "type": "uint16",
          "scale": 0.1,
          "param": "humidity"
        },
        {
          "register": 2,
          "type": "int16",
          "scale": 0.1,
          "param": "pressure_diff"
        }
      ]
    },
    {
      "name": "Ward 3 nurse call IO",
      "host": "192.168.10.60",
      "port": 502,
      "unit": 1,
      "interval": 1,
      "function": 3,
      "points": [
        {
          "register": 0,
          "type": "uint16",
          "mask": 1,
          "param": "nc",
          "nurse_call": {
            "ward_code": "W3",
            "bed_code": "W3-4",
            "type": "normal"
          }
        },
        {
          "register": 0,
          "type": "uint16",
          "mask": 2,
          "param": "be",
          "nurse_call": {
            "ward_code": "W3",
            "bed_code": "W3-4",
            "type": "bed_exit"
          }
        }
      ]
    }
  ],
  "folders": [
    {
      "path": "/srv/ecg_export",
      "doc_type": "ecg",
      "patterns": [
        "*.pdf",
        "*.xml"
      ],
      "uhid_regex": "(UH\\d+)",
      "device_serial": "ECG-OPD-1",
      "settle_seconds": 10
    }
  ],
  "mqtt": {
    "host": "",
    "port": 1883,
    "username": "",
    "password": "",
    "tls": false,
    "topics": [
      "carepulse/#"
    ]
  },
  "rtls": {
    "interval": 2,
    "http_port": 8088,
    "topics": [
      "ble/gw/#"
    ],
    "tag_prefixes": [
      "AC:23:3F"
    ]
  }
}