Last active
January 29, 2016 07:15
-
-
Save axpence/a3b85f15305dba853429 to your computer and use it in GitHub Desktop.
PainDemo.xml
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <survey name="KneeReplacementStateMachine"> | |
| <node id="INITIAL_STATE" day="1" onEnterAction="SMS" expectedResponseType="range" body="(DAY 1) How was your pain level today? 1=No Pain, 3= Some pain, but not limiting any activity, 5=modest pain, controlled with aspirin/tylenol, 7=Severe Pain (stronger medication), 9= Extreme Pain (need help)"> | |
| <node id="LOW_PAIN" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="1,2,3,4,5" body="This is typical. Dont forget to take your 1000 steps today."> | |
| <pointer id="GOTO_DAY_3" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_3"></pointer> | |
| </node> | |
| <node id="MODERATE_PAIN" onEnterAction="SMS" preGuardTransitionValues="6,7,8" expectedResponseType="trueFalse" body="I walked 1000 steps today. (T)rue or (F)alse"> | |
| <node id="DECREASE_WALKING" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="true,t" body="Please decrease the amount of walking"> | |
| <pointer id="GOTO_DAY_3" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_3"></pointer> | |
| </node> | |
| <pointer id="GOTO_EXTREME_PAIN" onEnterAction="SMS" preGuardTransitionValues="false,f" transitionToState="EXTREME_PAIN"> | |
| </pointer> | |
| </node> | |
| <node id="EXTREME_PAIN" onEnterAction="SMS" preGuardTransitionValues="9,10" expectedResponseType="multipleChoice" body="What are some symptoms of your knee? A) Swelling B) External Bleeding C) Stiffness"> | |
| <node id="ICE_KNEE" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="a" body="Please ice your knee. Postmates can deliver icy hot patches for you (http://www.bitly.com/1ZbAeVV)"> | |
| <pointer id="GOTO_DAY_3" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_3"></pointer> | |
| </node> | |
| <node id="REGUEST_KNEE_PICTURE" onEnterAction="SMS" preGuardTransitionValues="b" expectedResponseType="image" body="Please send us a picture of your knee."> | |
| <node id="DOCTOR_CALLS_USER" expectedResponseType="range" onEnterAction="MMS" preGuardTransitionValues="IMAGE" body="Dr. Johnson will call you shortly."> | |
| <pointer id="GOTO_DAY_3" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_3"></pointer> | |
| </node> | |
| </node> | |
| <node id="STRETCH_JOINT" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="c" body="Please watch this youtube video on how to properly stretch and soften your joint http://www.youtube.com/watch?v=210292j29"> | |
| <pointer id="GOTO_DAY_3" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_3"></pointer> | |
| </node> | |
| </node> | |
| </node> | |
| <node id="DAY_3" day="3" onEnterAction="SMS" expectedResponseType="range" body="(DAY 3) How was your pain level today? 1=No Pain, 3= Some pain, but not limiting any activity, 5=modest pain, controlled with aspirin/tylenol, 7=Severe Pain (stronger medication), 9= Extreme Pain (need help)"> | |
| <node id="LOW_PAIN_3" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="1,2,3,4,5" body="This is typical. Dont forget to take your 1000 steps today."> | |
| <pointer id="GOTO_DAY_5" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_5"></pointer> | |
| </node> | |
| <node id="MODERATE_PAIN_3" onEnterAction="SMS" preGuardTransitionValues="6,7,8" expectedResponseType="trueFalse" body="I walked 1000 steps today. (T)rue or (F)alse"> | |
| <node id="DECREASE_WALKING_3" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="true,t" body="Please decrease the amount of walking"> | |
| <pointer id="GOTO_DAY_5" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_5"></pointer> | |
| </node> | |
| <pointer id="GOTO_EXTREME_PAIN_3" onEnterAction="SMS" preGuardTransitionValues="false,f" transitionToState="EXTREME_PAIN_3"> | |
| </pointer> | |
| </node> | |
| <node id="EXTREME_PAIN_3" onEnterAction="SMS" preGuardTransitionValues="9,10" expectedResponseType="multipleChoice" body="What are some symptoms of your knee? A) Swelling B) External Bleeding C) Stiffness"> | |
| <node id="ICE_KNEE_3" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="a" body="Please ice your knee. Postmates can deliver icy hot patches for you (http://www.bitly.com/1ZbAeVV)"> | |
| <pointer id="GOTO_DAY_5" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_5"></pointer> | |
| </node> | |
| <node id="REGUEST_KNEE_PICTURE_3" onEnterAction="SMS" preGuardTransitionValues="b" expectedResponseType="image" body="Please send us a picture of your knee."> | |
| <node id="DOCTOR_CALLS_USER_3" onEnterAction="MMS" expectedResponseType="range" preGuardTransitionValues="IMAGE" body="Dr. Johnson will call you shortly."> | |
| <pointer id="GOTO_DAY_5" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_5"></pointer> | |
| </node> | |
| </node> | |
| <node id="STRETCH_JOINT_3" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="c" body="Please watch this youtube video on how to properly stretch and soften your joint http://www.youtube.com/watch?v=210292j29"> | |
| <pointer id="GOTO_DAY_5" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_5"></pointer> | |
| </node> | |
| </node> | |
| </node> | |
| <node id="DAY_5" day="5" onEnterAction="SMS" expectedResponseType="range" body="(DAY 5) How was your pain level today? 1=No Pain, 3= Some pain, but not limiting any activity, 5=modest pain, controlled with aspirin/tylenol, 7=Severe Pain (stronger medication), 9= Extreme Pain (need help)"> | |
| <node id="LOW_PAIN_5" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="1,2,3,4,5" body="This is typical. Dont forget to take your 1000 steps today."> | |
| <pointer id="GOTO_DAY_9" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_9"></pointer> | |
| </node> | |
| <node id="MODERATE_PAIN_5" onEnterAction="SMS" preGuardTransitionValues="6,7,8" expectedResponseType="trueFalse" body="I walked 1000 steps today. (T)rue or (F)alse"> | |
| <node id="DECREASE_WALKING_5" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="true,t" body="Please decrease the amount of walking"> | |
| <pointer id="GOTO_DAY_9" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_9"></pointer> | |
| </node> | |
| <pointer id="GOTO_EXTREME_PAIN_5" onEnterAction="SMS" preGuardTransitionValues="false,f" transitionToState="EXTREME_PAIN_5"> | |
| </pointer> | |
| </node> | |
| <node id="EXTREME_PAIN_5" onEnterAction="SMS" preGuardTransitionValues="9,10" expectedResponseType="multipleChoice" body="What are some symptoms of your knee? A) Swelling B) External Bleeding C) Stiffness"> | |
| <node id="ICE_KNEE_5" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="a" body="Please ice your knee. Postmates can deliver icy hot patches for you (http://www.bitly.com/1ZbAeVV)"> | |
| <pointer id="GOTO_DAY_9" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_9"></pointer> | |
| </node> | |
| <node id="REGUEST_KNEE_PICTURE_5" onEnterAction="SMS" preGuardTransitionValues="b" expectedResponseType="image" body="Please send us a picture of your knee."> | |
| <node id="DOCTOR_CALLS_USER_5" onEnterAction="MMS" expectedResponseType="range" preGuardTransitionValues="IMAGE" body="Dr. Johnson will call you shortly."> | |
| <pointer id="GOTO_DAY_9" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_9"></pointer> | |
| </node> | |
| </node> | |
| <node id="STRETCH_JOINT_5" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="c" body="Please watch this youtube video on how to properly stretch and soften your joint http://www.youtube.com/watch?v=210292j29"> | |
| <pointer id="GOTO_DAY_9" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_9"></pointer> | |
| </node> | |
| </node> | |
| </node> | |
| <node id="DAY_9" day="9" onEnterAction="SMS" expectedResponseType="range" body="(DAY 9) How was your pain level today? 1=No Pain, 3= Some pain, but not limiting any activity, 5=modest pain, controlled with aspirin/tylenol, 7=Severe Pain (stronger medication), 9= Extreme Pain (need help)"> | |
| <node id="LOW_PAIN_9" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="1,2,3,4,5" body="This is typical. Dont forget to take your 1000 steps today."> | |
| <pointer id="GOTO_DAY_13" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_13"></pointer> | |
| </node> | |
| <node id="MODERATE_PAIN_9" onEnterAction="SMS" preGuardTransitionValues="6,7,8" expectedResponseType="trueFalse" body="I walked 1000 steps today. (T)rue or (F)alse"> | |
| <node id="DECREASE_WALKING_9" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="true,t" body="Please decrease the amount of walking"> | |
| <pointer id="GOTO_DAY_13" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_13"></pointer> | |
| </node> | |
| <pointer id="GOTO_EXTREME_PAIN_9" onEnterAction="SMS" preGuardTransitionValues="false,f" transitionToState="EXTREME_PAIN_9"> | |
| </pointer> | |
| </node> | |
| <node id="EXTREME_PAIN_9" onEnterAction="SMS" preGuardTransitionValues="9,10" expectedResponseType="multipleChoice" body="What are some symptoms of your knee? A) Swelling B) External Bleeding C) Stiffness"> | |
| <node id="ICE_KNEE_9" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="a" body="Please ice your knee. Postmates can deliver icy hot patches for you (http://www.bitly.com/1ZbAeVV)"> | |
| <pointer id="GOTO_DAY_13" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_13"></pointer> | |
| </node> | |
| <node id="REGUEST_KNEE_PICTURE_9" onEnterAction="SMS" preGuardTransitionValues="b" expectedResponseType="image" body="Please send us a picture of your knee."> | |
| <node id="DOCTOR_CALLS_USER_9" onEnterAction="MMS" expectedResponseType="range" preGuardTransitionValues="IMAGE" body="Dr. Johnson will call you shortly."> | |
| <pointer id="GOTO_DAY_13" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_13"></pointer> | |
| </node> | |
| </node> | |
| <node id="STRETCH_JOINT_9" onEnterAction="SMS" expectedResponseType="range" preGuardTransitionValues="c" body="Please watch this youtube video on how to properly stretch and soften your joint http://www.youtube.com/watch?v=210292j29"> | |
| <pointer id="GOTO_DAY_13" onEnterAction="SMS" preGuardTransitionValues="N,n" transitionToState="DAY_13"></pointer> | |
| </node> | |
| </node> | |
| </node> | |
| <node id="DAY_13" day="13" onEnterAction="SMS" expectedResponseType="range" body="(DAY 13) How was your pain level today? 1=No Pain, 3= Some pain, but not limiting any activity, 5=modest pain, controlled with aspirin/tylenol, 7=Severe Pain (stronger medication), 9= Extreme Pain (need help)"> | |
| <node id="LOW_PAIN_13" onEnterAction="SMS" preGuardTransitionValues="1,2,3,4,5" body="This is typical. Dont forget to take your 1000 steps today."> | |
| </node> | |
| <node id="MODERATE_PAIN_13" onEnterAction="SMS" preGuardTransitionValues="6,7,8" expectedResponseType="trueFalse" body="I walked 1000 steps today. (T)rue or (F)alse"> | |
| <node id="DECREASE_WALKING_13" onEnterAction="SMS" preGuardTransitionValues="true,t" body="Please decrease the amount of walking"> | |
| </node> | |
| <pointer id="GOTO_EXTREME_PAIN_13" onEnterAction="SMS" preGuardTransitionValues="false,f" transitionToState="EXTREME_PAIN_13"> | |
| </pointer> | |
| </node> | |
| <node id="EXTREME_PAIN_13" onEnterAction="SMS" preGuardTransitionValues="9,10" expectedResponseType="multipleChoice" body="What are some symptoms of your knee? A) Swelling B) External Bleeding C) Stiffness"> | |
| <node id="ICE_KNEE_13" onEnterAction="SMS" preGuardTransitionValues="a" body="Please ice your knee. Postmates can deliver icy hot patches for you (http://www.bitly.com/1ZbAeVV)"> | |
| </node> | |
| <node id="REGUEST_KNEE_PICTURE_13" onEnterAction="SMS" preGuardTransitionValues="b" expectedResponseType="image" body="Please send us a picture of your knee."> | |
| <node id="DOCTOR_CALLS_USER_13" onEnterAction="MMS" preGuardTransitionValues="IMAGE" body="Dr. Johnson will call you shortly."> | |
| </node> | |
| </node> | |
| <node id="STRETCH_JOINT_13" onEnterAction="SMS" preGuardTransitionValues="c" body="Please watch this youtube video on how to properly stretch and soften your joint http://www.youtube.com/watch?v=210292j29"> | |
| </node> | |
| </node> | |
| </node> | |
| </survey> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment