local composer = require( "composer" ) local scene = composer.newScene() local widget = require ( "widget") -- ----------------------------------------------------------------------------------- -- Code outside of the scene event functions below will only be executed ONCE unless -- the scene is removed entirely (not recycled) via "composer.removeScene()" -- ----------------------------------------------------------------------------------- -- Initialize variables local function gotoBackToDrugs() composer.gotoScene( "Drugs", { time=800, effect="crossFade" } ) end -- ----------------------------------------------------------------------------------- -- Scene event functions -- ----------------------------------------------------------------------------------- -- create() function scene:create( event ) local sceneGroup = self.view -- Code here runs when the scene is first created but has not yet appeared on screen local background = display.newImageRect( sceneGroup, "background.png", 800, 1400 ) background.x = display.contentCenterX background.y = display.contentCenterY local Back = display.newText( sceneGroup, "BACK", display.contentCenterX, 50, native.systemFont, 30 ) Back:setFillColor( 0.82, 0.86, 1 ) Back:addEventListener( "tap", gotoBackToDrugs ) end local function scrolllistener ( event ) local phase = event.phase local direction = event.direction if event.limitReached then if "up" == direction then print( "Reached Top Limit" ) elseif "down" == direction then print ( "Reached Bottom Limit" ) end end return true end local scrollView = widget.newScrollView { left = 0, top = 100, width = display.contentWidth, height = display.contentHeight, topPadding = 50, bottomPadding = 50, horizontalScrollDisabled = true, verticalScrollDisabled = false, listener = scrollListener, } local lotsOfText = [["ACTIONS Adenosine exerts its effects by decreasing conduction through the AV mode. The half-life of Adenocard (adenosine) is less than 10 seconds. Thus its effects - both desired and undesired - are self-limited. INDICATIONS Adenocard is indicated for supraventricular tachycardia (SVT), including that associated with accessory bypass tracts (Wolff-Parkinson-White syndrome). When clinically advisable, appropriate vagal maneuvers should be attempted prior to Adenocard administration. CONTRAINDICATIONS Adenocard is contraindicated in second- or third-degree AV block and sick sinus syndrome (except in patients with a functioning artificial pacemaker), and known hypersensitivity to adenosine. PRECAUTIONS The effects of adenosine are antagonized by methylxanthines such as caffeine and theophylline. Thus larger doses may be required for adenosine to be effective in patients who have taken methylxanthines. Adenosine effects are potentiated by dipyridamole (Persantine™). Thus smaller doses of adenosine may be effective in those who have taken this drug. Adenosine may produce bronchoconstriction in patients with asthma. ADVERSE REACTIONS AND SIDE EFFECTS ● Cardiovascular: Facial flushing, headache, and rarely: sweating, palpitations, chest pain, and hypotension. ● Respiratory: Shortness of breath, chest pressure, and rarely: hyperventilating metallic taste, tightness in throat, and head pressure. ● CNS: Light headedness and rarely: dizziness, blurred vision, tingling and numbness in extremities, apprehension. WARNINGS Adenocard may produce a short-lasting first-, second-, or third-degree heart block. In extreme cases, transient asystole may result. At the time of conversion to normal sinus rhythm, a variety of new rhythms may appear (PVCs, PACs sinus bradycardia, sinus tachycardia, skipped beats, and varying degrees of AV block), though they generally last only a few seconds without intervention. DOSAGE Adult: 12 mg rapid IVP immediately followed by 20 mL NS flush. If not resolved repeat in 2 minutes at 12 mg IVP, followed by 20 mL NS flush PRN. Pediatric: 0.1 mg/kg (maximum first dose 6 mg) rapid IVP/IO, immediately followed by 6 mL NS flush. If not resolved repeat in 2 minutes at 0.2 mg/kg (maximum dose 12 mg) rapid IVP, IO followed by 10 mL NS flush PRN. "]] local lotsOfTextObject = display.newText ( lotsOfText, 0, 0, 300, 0, "Helvetica", 14 ) lotsOfTextObject:setTextColor( 0 ) lotsOfTextObject.x = display.contentCenterX scrollView:insert( lotsOfTextObject) -- show() function scene:show( event ) local sceneGroup = self.view local phase = event.phase if ( phase == "will" ) then -- Code here runs when the scene is still off screen (but is about to come on screen) elseif ( phase == "did" ) then -- Code here runs when the scene is entirely on screen -- Start the music! end end -- hide() function scene:hide( event ) local sceneGroup = self.view local phase = event.phase if ( phase == "will" ) then -- Code here runs when the scene is on screen (but is about to go off screen) elseif ( phase == "did" ) then -- Code here runs immediately after the scene goes entirely off screen -- Stop the music! audio.stop( 1 ) end end -- destroy() function scene:destroy( event ) local sceneGroup = self.view -- Code here runs prior to the removal of scene's view -- Dispose audio! end -- ----------------------------------------------------------------------------------- -- Scene event function listeners -- ----------------------------------------------------------------------------------- scene:addEventListener( "create", scene ) scene:addEventListener( "show", scene ) scene:addEventListener( "hide", scene ) scene:addEventListener( "destroy", scene ) -- ----------------------------------------------------------------------------------- return scene