 
 logger = require 'winston'
 config = require './config'
+url = require 'url'
 
 express = require 'express'
 bodyParser = require 'body-parser'

      error: (data) -> append 'error', data
      pushOrchestration: (o) -> orchestrations.push o
      orchestrations: -> orchestrations
    }
  out = _out()


handler = (req, res) ->
  openhimTransactionID = req.headers['x-openhim-transactionid']

  query = url.parse(req.url, true).query
  adxAdapterID = null
  if query.adxAdapterID
    adxAdapterID = query.adxAdapterID
    delete query.adxAdapterID

  _out = ->
    body = ""
    orchestrations = []
