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