Created
October 26, 2010 22:22
-
-
Save jdee/647964 to your computer and use it in GitHub Desktop.
smoking gun?
This file contains hidden or 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
jdee@fatman:webapp$ bundle exec cucumber -r features/support/env.rb -r features/support/standard.rb -r features/shared_step_definitions -r features/standard_step_definitions --tags @pending features/standard/staging_area.feature:213 | |
Feature: Staging Electronic Messages | |
To process electonically submitted messages | |
A user needs to be able to view messages and assign them to CMRs | |
@pending | |
Scenario: Assigning a staged message with a home phone number # features/standard/staging_area.feature:213 | |
Given I am logged in as a super user # features/standard_step_definitions/common_helper_steps.rb:22 | |
And I have the staged message "realm_campylobacter_jejuni" # features/standard_step_definitions/accept_staged_messages_as_hl7_steps.rb:19 | |
And the following loinc code to common test types mapping exists # features/standard_step_definitions/staging_area.rb:102 | |
| loinc_code | common_name | | |
| 625-4 | Culture | | |
When I visit the staged message show page # features/standard_step_definitions/accept_staged_messages_as_hl7_steps.rb:56 | |
And I follow "Similar Events" # features/standard_step_definitions/webrat_steps.rb:35 | |
And I follow "Create a CMR from this message" # features/standard_step_definitions/webrat_steps.rb:35 | |
Then I should receive a 200 response # features/standard_step_definitions/accept_staged_messages_as_hl7_steps.rb:82 | |
And I should remain on the staged message show page # features/standard_step_definitions/staging_area.rb:89 | |
And I should see value "Assigned" in the message footer # features/standard_step_definitions/accept_staged_messages_as_hl7_steps.rb:70 | |
expected following text to match xpath //div[@class='staged-message']/div[@class='footer']//*[contains(text(), 'Assigned')]: | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<title> | |
TriSano: | |
Event Search using staged message 52 / Everyman, Adam A | |
</title> | |
<link href="/stylesheets/trisano-theme/jquery-ui-1.8.4.custom.css?1286285412" media="screen" rel="stylesheet" type="text/css"> | |
<link href="/stylesheets/grid.css?1285190365" media="screen" rel="stylesheet" type="text/css"> | |
<link href="/stylesheets/structure.css?1287406127" media="screen" rel="stylesheet" type="text/css"> | |
<link href="/stylesheets/typography.css?1287406127" media="screen" rel="stylesheet" type="text/css"> | |
<link href="/stylesheets/action.css?1287496904" media="screen" rel="stylesheet" type="text/css"> | |
<link href="/stylesheets/tabview.css?1285190365" media="screen" rel="stylesheet" type="text/css"> | |
<link href="/stylesheets/calendar/trisano/style.css?1285190364" media="screen" rel="stylesheet" type="text/css"> | |
<script src="/javascripts/prototype.js?1285190364" type="text/javascript"></script><script src="/javascripts/effects.js?1285190364" type="text/javascript"></script><script src="/javascripts/dragdrop.js?1285190364" type="text/javascript"></script><script src="/javascripts/controls.js?1285190364" type="text/javascript"></script><script src="/javascripts/jquery-1.4.2.min.js?1285190364" type="text/javascript"></script><script src="/javascripts/jquery-ui-1.8.4.custom.min.js?1285190364" type="text/javascript"></script><script src="/javascripts/jquery.tmpl.min.js?1288101427" type="text/javascript"></script><script> | |
var $j = jQuery.noConflict(); | |
</script><script src="/javascripts/trisano_i18n.js?1285190364" type="text/javascript"></script><script src="/javascripts/ext/trisano_en/translations_en.js?1288126782" type="text/javascript"></script><script src="/javascripts/application.js?1285963817" type="text/javascript"></script><script src="/javascripts/sniffer.js?1285190364" type="text/javascript"></script><script src="/javascripts/yahoo-dom-event.js?1285190364" type="text/javascript"></script><script src="/javascripts/shortcut.js?1285190364" type="text/javascript"></script><script src="/javascripts/keycode.js?1285190364" type="text/javascript"></script><script src="/javascripts/keymap.js?1285190364" type="text/javascript"></script><script src="/javascripts/element-beta-min.js?1285190364" type="text/javascript"></script><script src="/javascripts/tabview-min.js?1285190364" type="text/javascript"></script><script src="/javascripts/patch_inplaceeditor_1-8-1.js?1285190364" type="text/javascript"></script><script src="/javascripts/trisano_ajax.js?1285190364" type="text/javascript"></script><script src="/javascripts/trisano_lazy_load.js?1285805133" type="text/javascript"></script><script type="text/javascript"> | |
function loadScript(src) { | |
var script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = src | |
document.body.appendChild(script); | |
} | |
</script><!-- Calendar --><script src="/javascripts/calendar_date_select/calendar_date_select.js?1285190364" type="text/javascript"></script><link href="/stylesheets/calendar_date_select/default.css?1285190364" media="screen" rel="stylesheet" type="text/css"> | |
<script type="text/javascript"> | |
Date.weekdays = $w("Sun Mon Tue Wed Thu Fri Sat"); | |
Date.months = $w("January February March April May June July August September October November December"); | |
_translations = { | |
"OK" : "OK", | |
"Now" : "Now", | |
"Today" : "Today", | |
"Clear" : "Clear" | |
} | |
</script><!-- Other javascripts, maybe --> | |
</head> | |
<body class="yui-skin-sam"> | |
<script type="text/javascript"> | |
document.observe('trisano:dom:loaded', function() { | |
shortcuts_init('/', '/users/shortcuts'); | |
focus_init(); | |
}); | |
</script><script src="/javascripts/wz_tooltip.js?1285190364" type="text/javascript"></script><div id="head"> | |
<div class="container"> | |
<table><tr> | |
<td> | |
<div class="horiz"><a href="/" id="logo"><img alt="Logo" border="0" src="/images/ext/trisano_ee/logo.png?1282318896"></a></div> | |
</td> | |
<td class="right"> | |
<div class="areas"> | |
<a href="/cmrs/event_search">NEW CMR</a> | <a href="/staged_messages" rel="http://trisano.org/relation/staged_messages">STAGING AREA</a> | <a href="/cmrs">EVENTS</a> | <a href="/outbreak_events">OUTBREAKS</a> | <a href="/search/cmrs">SEARCH</a> | <a href="/people">PEOPLE</a> | <a href="/places">PLACES</a> | <a href="http://localhost:18080/pentaho/Home" onclick="window.open(this.href);return false;">AVR</a> | <a href="/admin">ADMIN</a> | <a href="/users/settings">SETTINGS</a> | <a href="https://wiki.csinitiative.com/display/trisw/Help" onclick="window.open(this.href);return false;">HELP</a> | |
</div> | |
<div class="user"> | |
<div class="language" style="display: inline"> | |
<form action="/staged_messages/52/event_search?birth_date=1980-06-02&name=Everyman%2C+Adam+A" id="select-locale" method="get" style="display: inline"> | |
<label for="locale" style="display: inline; color: #FFF; font-size: 10px; font-weight: normal;">Language:</label> | |
<select id="locale" name="locale" onchange="this.form.submit()" style="display: inline"><option value="en" selected>English</option> | |
<option value="es">Español</option> | |
<option value="test">Test</option></select> | |
</form> | |
</div> | |
<form action="/events/change_user" id="switch_user" method="post" style="display: inline"> | |
<span id="user_name">default_user:</span><select id="user_id" name="user_id" onchange="this.form.submit()" style="display: inline"><option value="det">data_entry_tech</option> | |
<option value="utah" selected>default_user</option> | |
<option value="investigator">investigator</option> | |
<option value="lhd_mgr">lhd_manager</option> | |
<option value="state_mgr">state_manager</option> | |
<option value="surveillance">surveillance_mgr</option> | |
<option value="trisano_user">trisano_user</option></select> | |
</form> | |
</div> | |
</td> | |
</tr></table> | |
</div> | |
</div> | |
<div id="bar"> | |
<div class="container"> | |
<div class="left areas_title"> | |
Event Search using staged message 52 / Everyman, Adam A | |
</div> | |
<div class="right action1"> | |
</div> | |
</div> | |
</div> | |
<div id="title_area"> | |
<div class="container"> | |
<div id="flash-message"></div> | |
<div class="name"> | |
</div> | |
<div class="tools"> | |
</div> | |
</div> | |
</div> | |
<div id="main-content"> | |
<script> | |
header_height = Element.getHeight('head') + Element.getHeight('bar') + Element.getHeight('title_area') + 2 + "px" | |
Element.setStyle('main-content', {top: header_height}) | |
</script><div class="container"> | |
<a href="/staged_messages">< Back to Staged Messages</a> | |
<fieldset class="form"> | |
<legend>Message Details</legend> | |
<table class="list"> | |
<tr><td> | |
</td></tr> | |
<tr> | |
<td> | |
<div class="staged-message" id="message_52"> | |
<div class="header"> | |
<p>Everyman, Adam A – DOB 1980-06-02</p> | |
</div> | |
<div class="request"> | |
<div class="specimen"> | |
<p>OBR 1</p> | |
<p>Specimen: Stool specimen</p> | |
<p>Collected: 2008-08-15</p> | |
</div> | |
<div class="results"> | |
<table> | |
<tr> | |
<th>Test Date</th> | |
<th>LOINC Code</th> | |
<th>Test type</th> | |
<th>Result</th> | |
<th>Units</th> | |
<th>Status</th> | |
<th>Reference range</th> | |
</tr> | |
<tr> | |
<td> | |
2009-06-04 | |
</td> | |
<td> | |
625-4 | |
</td> | |
<td> | |
Bacteria identified | |
</td> | |
<td> | |
Campylobacter jejuni | |
</td> | |
<td> | |
</td> | |
<td> | |
P | |
</td> | |
<td> | |
</td> | |
</tr> | |
</table> | |
</div> | |
</div> | |
<br><div class="footer"> | |
<p> | |
<small>GHH Lab</small> | |
</p> | |
<div class="tools"> | |
<a href="/staged_messages/52/event_search?birth_date=1980-06-02&name=Everyman%2C+Adam+A" class="staged-message-link">Similar Events</a> | |
| | |
<form action="/staged_messages/52/discard" id="discard_52" method="post" style="display: inline"> | |
<input id="staged_message_id" name="staged_message_id" type="hidden" value="52"><a class="staged-message-discard-link staged-message-link" href="#" onclick="this.parentNode.submit(); return false;">Discard</a> | |
</form> | |
<p> | |
State: | |
Pending | |
| |
<span class="hoverable"> | |
<b> | |
Notes | |
<span>None</span> | |
</b> | |
| | |
<b> | |
Raw | |
<span>MSH|^~&|Lab1^1234^CLIA|^1234^CLIA|ELR^2.16.840.1.113883.19.3.2^ISO|SPH^2.16.840.1.113883.19.3.2^ISO|20080818183002.1-0700||ORU^R01^ORU_R01|1234567890|P^T|2.5.1|||NE|NE|USA||||USELR1.0^^2.16.84SFT|1|Level Seven Healthcare Software, Inc.^L^^^^&2.16.840.1.113883.19.4.6^IPID|1||36363636^^^MPI&2.16.840.1.113883.19.3.2.1&ISO^MR^A&2.16.840.1.113883.19.3.2.1&ISO~444333333^^^&2.16.840.1.113883.4.1^ISO^SS||Everyman^Adam^A^^^^L^^^^^^^BS|Mum^Martha^M^^^^M|19800602|M||2106-3^White^CDCREC^^^^04/24/2007|2222 Home Street^^Ann Arbor^MI^99999^USA^H||^PRN^PH^^1^555^5552004|^WPN^PH^^1^955^5551009|eng^English^ISO6392^^^^3/29/2007|M^Married^HL70002^^^^2.5.1||||||N^Not Hispanic or Latino^HL70189^^^^2.5.1||||||||N|||200808151000-0700|ReliablePV1|1|O|4E^234^A^Good Health Hospital&2.16.840.1.113883.19.3.2.3&ISO^N^N^Building 1^4^Nursing unit 4 East^1234&&2.16.840.1.113883.19.3.2.3&ISO^&2.16.840.1.113883.19.3.2.3&ISO|R||||||||||||||||||||||||||||||||||||PV2|||1^Sick^99AdmitReason|||||||||||||N||||||||Level Seven Healthcare, Inc.^L^^ORC|RE|23456^EHR^2.16.840.1.113883.19.3.2.3^ISO|9700123^Lab^2.16.840.1.113883.19.3.1.6^ISO|||||||||1234^Admit^Alan^A^III^Dr^^^&2.16.840.1.113883.19.4.6^ISO^L^^^EI^&2.16.840.1.113883.19.4.6^ISO^^^^^^^^MD||^WPN^PH^^1^555^5551005|||||||Level Seven Healthcare, Inc.^L^^^^&2.16.840.1.113883.19.4.6^ISO^XX^^^1234|1005 Healthcare Drive^^Ann Arbor^MI^99999^USA^B|^WPN^PH^^1^555^5553001|4444 HealtOBR|1|23456^EHR^2.16.840.1.113883.19.3.2.3^ISO|9700123^Lab^2.16.840.1.113883.19.3.1.6^ISO|625-4^Bacteria identified^LN^3456543^ CULTURE, STOOL^99USI^2.26|||200808151030-0700||||||diarrhea|||1234^Admit^Alan^A^III^Dr^^^&2.16.840.1.113883.19.4.6^ISO^L^^^EI^&2.16.840.1.113883.19.4.6^ISO^^^^^^^^MD|^WPN^PH^^1^555^5551005|||||2008081830-0700|||F||||||787.91^DIARRHEA^I9CDX^^^^07/09/2008|1235&Slide&Stan&S&&Dr&MD&&DOC&2.16.840.1.113883.19.4.6OBX|1|CWE|625-4^Bacteria identified:Prid:Pt:Stool:Nom:Culture^LN^^^^2.26|1|66543000^Campylobacter jejuni^SCT^^^^January 2007||||||P|||200906041458|||0086^Bacterial identification^OBSMETHOD^^^^501-20080815||200906051700||||GHH Lab^L^^^^CLIA&2.16.840.1.113883.19.4.6&ISO^XX^^^1236|3434 Industrial Loop^^Ann Arbor^MI^99999^USA^B|9876543^Slide^Stan^S^^^^^NPPES&2.16.840.1.113883.19.4.6&ISSPM|1|23456&EHR&2.16.840.1.113883.19.3.2.3&ISO^9700122&Lab&2.16.840.1.113883.19.3.1.6&ISO||119339001^Stool specimen^SCT^^^^20080131|||||||P^Patient^HL60369^^^^2.5.1|10^g&gram&UCUM&&&&1.6|||||200808151030-0700|200808151100-0700</span> | |
</b> | |
</span> | |
</p> | |
</div> | |
</div> | |
</div> | |
</td> | |
</tr> | |
</table> | |
</fieldset> | |
<br><b>No results</b> | |
<br><form action="/staged_messages/52/event" id="assign_to_new" method="post"> | |
<a href="#" onclick="this.parentNode.submit(); return false;">Create a CMR from this message</a> | |
</form> | |
</div> | |
<div class="container"> | |
<div id="foot"> | |
<hr> | |
<div class="footlogo"> | |
<img alt="Foot" border="0" src="/images/foot.png?1285190364"> | |
</div> | |
<div class="foottext"> | |
<div class="top"> | |
<a href="https://wiki.csinitiative.com/display/trihepb/TriSano+Perinatal+Hep+B+Core+Team+-+Core+Team+Release+Notes">CSI TriSano® Enterprise Edition PHEPBCT1</a> | |
</div> | |
<div class="bottom"> | |
<a href="http://connect.csinitiative.com">Support</a> | |
| | |
<a href="http://csinitiative.com/products/trisano/overview/">About</a> | |
| | |
User Feedback (<a href="https://wiki.csinitiative.com/display/triee/User+Feedback">web</a>, <a href="mailto:[email protected]">email</a>) | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<script type="text/javascript"> | |
//<![CDATA[ | |
document.fire('trisano:dom:loaded') | |
//]]> | |
</script> | |
</body> | |
</html> | |
(Spec::Expectations::ExpectationNotMetError) | |
./features/standard_step_definitions/accept_staged_messages_as_hl7_steps.rb:71:in `/^I should see value "([^\"]*)" in the message footer$/' | |
features/standard/staging_area.feature:224:in `And I should see value "Assigned" in the message footer' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment