This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> | |
<s:Body> | |
<SubmitEligibilityRequestResponse xmlns="http://tempuri.org/"> | |
<SubmitEligibilityRequestResult | |
xmlns:a="http://schemas.datacontract.org/2004/07/Apex.OneTouchWebserviceContracts.Eligibility" | |
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> | |
<a:ErrorResponses | |
xmlns:b="http://schemas.datacontract.org/2004/07/Apex.OneTouchWebserviceContracts.Eligibility.Response"/> | |
<a:InterchangeStatuses | |
xmlns:b="http://schemas.datacontract.org/2004/07/Apex.OneTouchWebserviceContracts.Eligibility.Response"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def generate_transcodes | |
if !self.is_transcoded? && self.attachment.present? | |
directory = "#{Rails.root}" | |
FileUtils.rm_r "#{Rails.root}/transcodes/" if File.exists?("#{directory}/transcodes") | |
Dir.mkdir("#{directory}/transcodes") | |
original_url = self.attachment.url.sub("https://s3-ap-southeast-1.amazonaws.com/popcorn-vod/", "").split("?").first | |
original_name = original_url.split("/").last.sub(".mp4", "") | |
s3 = AWS::S3.new( | |
:access_key_id => ENV["AWS_KEY"], | |
:secret_access_key => ENV["AWS_SECRET"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var StripeForm = React.createClass({ | |
getInitialState(){ | |
return({ | |
currentClinician: this.props.currentClinician, | |
paymentModal: null, | |
paymentForm: null, | |
hasError: false | |
}) | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Payment = React.createClass({ | |
getInitialState(){ | |
return ({ | |
clinicians: this.props.clinicians, | |
currentClinician: this.props.currentClinician, | |
unallocatedCredit: 0.0, | |
patients: [], | |
currencyTypes: [ | |
{name: 'United States Dollar', code: 'usd'}, | |
{name: 'Canadian Dollar', code: 'cad'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Calendar = React.createClass({ | |
getInitialState(){ | |
var data = this.getDataFromURL(); | |
label = data[0] || 'Today'; | |
calendarView = data[1] || this.props.calendarView || 'tableDay'; | |
date = data[2] || moment(); | |
return({ | |
currentClinicianId: this.props.currentClinicianId, | |
currentClinician: this.props.currentClinician, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": 8294, | |
"value": "07205", | |
"name": [ | |
"360 Alliance Gilsbar", | |
"360 Alliance PPO Gilsbar", | |
"Gilsbar", | |
"Gilsbar Inc", | |
"Gilsbar, Inc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Patient Unique ID from calling system-alphanumeric 50 – | |
Required – this must always be the unique id your system using for tracking | |
this patient | |
public string ID | |
MDToolbox-Rx – Integration Implementation Guide – CONFIDENTIAL – Copyright 2014 | |
Page 48/// Optional Medical Record Num for patient-alphanumeric 50 | |
public string MRN | |
/// Patient last name-required-alphanumeric 35 | |
public string LastName | |
/// Patient first name-required-alphanumeric 35 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"url": "https://test.mdtoolboxrx.net/rxtest/access1.aspx?code=2854872.4732079503654&aid=5182&sid=1&[email protected]&theme=blue&did=8&page=rx&pid=40&post=api%2Feprescriptions%2Fcapture.json%3Fpatient_id%3D40", | |
"r": { | |
"update_data_for_screens_response": { | |
"update_data_for_screens_result": "2854872.4732079503654", | |
"status_flag": "Success", | |
"status_msg": null, | |
"@xmlns": "http://mdtoolboxrx.com/" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def gen_url | |
patient = Patient.find_by(:id => params[:patient_id]) | |
doctor = patient.user | |
client = Savon.client(wsdl: 'https://test.mdtoolboxrx.net/rxws/rx.asmx?wsdl') | |
hash = patient.hash_for_mdtoolbox | |
hook_url = CGI::escape("#{ENV['BACKEND_SERVER']}api/eprescriptions/capture.json?patient_id=#{patient.id}") | |
r = client.call(:update_data_for_screens, hash) | |
r = r.body | |
code = r[:update_data_for_screens_response][:update_data_for_screens_result] | |
url = "https://test.mdtoolboxrx.net/rxtest/access1.aspx?code=#{code}&aid=5182&sid=#{doctor.practice.id}&user=#{doctor.email}&theme=blue&did=#{doctor.id}&page=rx&pid=#{patient.id}&post=#{hook_url}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"message": { | |
"Prescribers": { | |
"Prescriber": [ | |
{ | |
"ID": "8", | |
"SPI": "", | |
"LastName": "Bennett", | |
"FirstName": "Adam", | |
"MiddleName": "A", |
NewerOlder