Sha256: fd878254c7266f3085f0bf80c113b04378b43d4b382563bc8ca95d7eae519bf5

Contents?: true

Size: 1.15 KB

Versions: 17

Compression:

Stored size: 1.15 KB

Contents

module AllscriptsUnityClient
  class JSONUnityRequest < UnityRequest
    def to_hash
      action = @parameters[:action]
      userid = @parameters[:userid]
      appname = @parameters[:appname] || @appname
      patientid = @parameters[:patientid]
      token = @parameters[:token] || @security_token
      parameter1 = process_date(@parameters[:parameter1]) || ""
      parameter2 = process_date(@parameters[:parameter2]) || ""
      parameter3 = process_date(@parameters[:parameter3]) || ""
      parameter4 = process_date(@parameters[:parameter4]) || ""
      parameter5 = process_date(@parameters[:parameter5]) || ""
      parameter6 = process_date(@parameters[:parameter6]) || ""
      data = Utilities::encode_data(@parameters[:data]) || ""

      return {
        "Action" => action,
        "AppUserID" => userid,
        "Appname" => appname,
        "PatientID" => patientid,
        "Token" => token,
        "Parameter1" => parameter1,
        "Parameter2" => parameter2,
        "Parameter3" => parameter3,
        "Parameter4" => parameter4,
        "Parameter5" => parameter5,
        "Parameter6" => parameter6,
        "Data" => data
      }
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
allscripts_unity_client-1.3.4 lib/allscripts_unity_client/json_unity_request.rb
allscripts_unity_client-1.3.3 lib/allscripts_unity_client/json_unity_request.rb
allscripts_unity_client-1.3.2 lib/allscripts_unity_client/json_unity_request.rb
allscripts_unity_client-1.3.1 lib/allscripts_unity_client/json_unity_request.rb
allscripts_unity_client-1.3.0 lib/allscripts_unity_client/json_unity_request.rb
allscripts_unity_client-1.2.7 lib/allscripts_unity_client/json_unity_request.rb
allscripts_unity_client-1.2.6 lib/allscripts_unity_client/json_unity_request.rb
allscripts_unity_client-1.2.5 lib/allscripts_unity_client/json_unity_request.rb
allscripts_unity_client-1.2.4 lib/allscripts_unity_client/json_unity_request.rb
allscripts_unity_client-1.2.3 lib/allscripts_unity_client/json_unity_request.rb
allscripts_unity_client-1.2.2 lib/allscripts_unity_client/json_unity_request.rb
allscripts_unity_client-1.2.1 lib/allscripts_unity_client/json_unity_request.rb
allscripts_unity_client-1.2.0 lib/allscripts_unity_client/json_unity_request.rb
allscripts_unity_client-1.1.1 lib/allscripts_unity_client/json_unity_request.rb
allscripts_unity_client-1.1.0 lib/allscripts_unity_client/json_unity_request.rb
allscripts_unity_client-1.0.4 lib/allscripts_unity_client/json_unity_request.rb
allscripts_unity_client-1.0.3 lib/allscripts_unity_client/json_unity_request.rb