-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modifying wash_out to work with EPIC EHR for health data #232
base: master
Are you sure you want to change the base?
Changes from all commits
b915db6
9546576
3c826ea
4dfabbf
3ec4bc0
690d27b
12d087f
690928b
e1bebff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,62 @@ | ||
# <s:Envelope | ||
# xmlns:a="http://www.w3.org/2005/08/addressing" | ||
# xmlns:s="http://www.w3.org/2003/05/soap-envelope"> | ||
# <s:Header> | ||
# <a:Action s:mustUnderstand="1">urn:epic-com:Edi.WebPortal.2012.Services:LookupPatientIDResponse</a:Action> | ||
# <a:RelatesTo>urn:uuid:cfd0a296-f4e0-4e48-a200-cea056a55a6b</a:RelatesTo> | ||
# </s:Header> | ||
# <s:Body> | ||
# <LookupPatientIDResponse | ||
# xmlns="urn:epic-com:Edi.WebPortal.2012.Services"> | ||
# <LookupPatientIDResult> | ||
# <UniqueMatchFound>true</UniqueMatchFound> | ||
# <PatientID> red-briar-atrius </PatientID> | ||
# </LookupPatientIDResult> | ||
# </LookupPatientIDResponse> | ||
# </s:Body> | ||
# </s:Envelope> | ||
|
||
# <?xml version="1.0" encoding="utf-8"?> | ||
# <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> | ||
# <soap:Body> | ||
# <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"> | ||
# <s:Header> | ||
# <a:Action s:mustUnderstand="1">urn:epic-com:Edi.WebPortal.2012.Services/IAtriusProxyService/LookupPatientIDResponse</a:Action> | ||
# <a:RelatesTo>urn:uuid:d664dc7a-1784-411c-9aa3-945ad4d43799</a:RelatesTo> | ||
# </s:Header> | ||
# <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
# <LookupPatientIDResponse xmlns="urn:epic-com:Edi.WebPortal.2012.Services"> | ||
# <LookupPatientIDResult> | ||
# <UniqueMatchFound>false</UniqueMatchFound> | ||
# <Error>EMPI ID not found.</Error> | ||
# </LookupPatientIDResult> | ||
# </LookupPatientIDResponse> | ||
# </s:Body> | ||
# </s:Envelope> | ||
# </soap:Body> | ||
# </soap:Envelope> | ||
|
||
xml.instruct! | ||
xml.tag! "soap:Envelope", "xmlns:soap" => 'http://schemas.xmlsoap.org/soap/envelope/', | ||
"xmlns:xsd" => 'http://www.w3.org/2001/XMLSchema', | ||
"xmlns:xsi" => 'http://www.w3.org/2001/XMLSchema-instance', | ||
"xmlns:tns" => @namespace do | ||
xml.tag! "soap:Envelope", | ||
"xmlns:soap" => "http://www.w3.org/2003/05/soap-envelope", | ||
"xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance" do | ||
xml.tag! "soap:Body" do | ||
xml.tag! "tns:#{@action_spec[:response_tag]}" do | ||
wsdl_data xml, result | ||
xml.tag! "s:Envelope", "xmlns:a" => "http://www.w3.org/2005/08/addressing", | ||
"xmlns:s" => "http://www.w3.org/2003/05/soap-envelope" do | ||
xml.tag! "s:Header" do | ||
xml.tag! "a:Action", "s:mustUnderstand" => "1" do |t| | ||
t.text! "urn:epic-com:Edi.WebPortal.2012.Services:LookupPatientIDResponse" | ||
end | ||
xml.tag! "a:RelatesTo" do |t| | ||
t.text! request_id | ||
end | ||
end | ||
|
||
xml.tag! "s:Body" do | ||
xml.tag! "#{@action_spec[:response_tag]}", "xmlns" =>'urn:epic-com:Edi.WebPortal.2012.Services' do | ||
wsdl_data xml, result | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,16 @@ xml.definitions 'xmlns' => 'http://schemas.xmlsoap.org/wsdl/', | |
'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', | ||
'xmlns:soap-enc' => 'http://schemas.xmlsoap.org/soap/encoding/', | ||
'xmlns:wsdl' => 'http://schemas.xmlsoap.org/wsdl/', | ||
'xmlns:wsam' => 'http://www.w3.org/2007/05/addressing/metadata', | ||
'xmlns:wsx' => 'http://schemas.xmlsoap.org/ws/2004/09/mex', | ||
'xmlns:wsap' => 'http://schemas.xmlsoap.org/ws/2004/08/addressing/policy', | ||
'xmlns:msc' => 'http://schemas.microsoft.com/ws/2005/12/wsdl/contract', | ||
'xmlns:wsp' => 'http://schemas.xmlsoap.org/ws/2004/09/policy', | ||
'xmlns:wsu' => 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd', | ||
'xmlns:soap12' => 'http://schemas.xmlsoap.org/wsdl/soap12/', | ||
'xmlns:wsa10' => 'http://www.w3.org/2005/08/addressing', | ||
'xmlns:wsaw' => 'http://www.w3.org/2006/05/addressing/wsdl', | ||
'xmlns:wsa' => 'http://schemas.xmlsoap.org/ws/2004/08/addressing', | ||
'name' => @name, | ||
'targetNamespace' => @namespace do | ||
xml.types do | ||
|
@@ -19,7 +29,7 @@ xml.definitions 'xmlns' => 'http://schemas.xmlsoap.org/wsdl/', | |
end | ||
end | ||
|
||
xml.portType :name => "#{@name}_port" do | ||
xml.portType :name => "IWebPortal", :type => "tns:IWebPortal" do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is IWebPortal? |
||
@map.each do |operation, formats| | ||
xml.operation :name => operation do | ||
xml.input :message => "tns:#{operation}" | ||
|
@@ -28,7 +38,7 @@ xml.definitions 'xmlns' => 'http://schemas.xmlsoap.org/wsdl/', | |
end | ||
end | ||
|
||
xml.binding :name => "#{@name}_binding", :type => "tns:#{@name}_port" do | ||
xml.binding :name => "IWebPortal", :type => "tns:IWebPortal" do | ||
xml.tag! "soap:binding", :style => 'rpc', :transport => 'http://schemas.xmlsoap.org/soap/http' | ||
@map.keys.each do |operation| | ||
xml.operation :name => operation do | ||
|
@@ -47,8 +57,8 @@ xml.definitions 'xmlns' => 'http://schemas.xmlsoap.org/wsdl/', | |
end | ||
end | ||
|
||
xml.service :name => "service" do | ||
xml.port :name => "#{@name}_port", :binding => "tns:#{@name}_binding" do | ||
xml.service :name => "WebPortal" do | ||
xml.port :name => "IWebPortal", :binding => "tns:IWebPortal" do | ||
xml.tag! "soap:address", :location => send("#{@name}_action_url") | ||
end | ||
end | ||
|
@@ -65,4 +75,4 @@ xml.definitions 'xmlns' => 'http://schemas.xmlsoap.org/wsdl/', | |
end | ||
end | ||
end | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module WashOut | ||
VERSION = "0.9.2" | ||
VERSION = "1.1.1" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why 1.1.1 ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I moved to 1.0.0 first but then made a few more changes hence internally changed that version to 1.1.1. But can pick a different version based your convention for major minor. |
||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you should leave comments like this