GROUP PROJECT REQUIREMENTS AND SPECIFICATION

Similar documents
REQUIREMENTS SPECIFICATION

RELEASED. first steps. Icon Icon name What it means

RELEASED. Clearing your active insulin

Ambulatory Artificial Pancreas Platform (AAPP) User Manual

A Virtual Glucose Homeostasis Model for Verification, Simulation and Clinical Trials

OLA Diabetes Care. Our mission statement is To enabling diabetics to live a normal life without having to worry about their conditions and medication.

Design of Insulin Watch

Why (and how) I built an artificial

Report Reference Guide

THE MINIMED 670G SYSTEM SCHOOL NURSE GUIDE

Technology for Diabetes: 101 Basic Rules of the Road. Karen Hamon RN, BSN, CDE Stephen Stone MD, FAAP Neil H. White, MD, CDE

Applying STPA to the Artificial Pancreas for People with Type 1 Diabetes

Design and Analysis of Automatic Insulin Delivery System Using Pic Microcontroller

MINIMED 640G SYSTEM^ Getting Started WITH CONTINUOUS GLUCOSE MONITORING

USING THE MINIMED 670G SYSTEM. Instructions for the Experienced MiniMed 630G System User

Report Reference Guide. THERAPY MANAGEMENT SOFTWARE FOR DIABETES CareLink Report Reference Guide 1

C o n n e c t e d I n s u l i n D e l i v e r y S y s t e m

GLOOKO DREAMED FOR ANDROID USER GUIDE

Welcome to CareLink Pro

Glucoregulation 1 of 27 Boardworks Ltd 2012

DIABETES MANAGEMENT PLAN 2017

GETTING STARTED WITH MINIMED 670G CONTINUOUS GLUCOSE MONITORING

Getting Started. Learning Guide. with Insulin Pump Therapy. PUMP Foundations. for the MiniMed 530G with Enlite

USER GUIDE BEST LIFE Insulin Pump

THERAPY MANAGEMENT SOFTWARE FOR DIABETES. User Guide

PROTOCOL FOR HYBRID CLOSED LOOP TECHNOLOGY

UNDERSTANDING THE BASIC FEATURES AND MANAGEMENT IN THE SCHOOL SETTING CHRISTINE HERTLER RN BSN CDE & MARY MCCARTHY RN CDE

Graphical User Interface for Windows for MCM Module

Reminder: Blood Glucose Test After Meal

INSPIRED BY GIVE HIM MORE. The MiniMed 670G system is the world s first insulin delivery system that automatically adapts to your child s needs.

Date of birth: Type 2 Other: Parent/guardian 1: Address: Telephone: Home: Work: Cell: address: Camper physician / health care provider:

CareLink. software REPORT REFERENCE GUIDE. Management Software for Diabetes

Caregiver Guide WITH THE OMNIPOD. MyOmniPod.com RYAN OMNIPOD WEARER

THERAPY MANAGEMENT SOFTWARE FOR DIABETES

INSPIRED BY GIVE HER MORE. The MiniMed 670G system is the world s first insulin delivery system that automatically adapts to your child s needs.

DIABETES MANAGEMENT PLAN 2017

DIABETES MANAGEMENT PLAN 2019

Live life, less complicated. InPen MOBILE APP. Healthcare Provider INSTRUCTIONS FOR USE. CompanionMedical.com

Diabetes Medical Management Plan (DMMP)

Aviva Combo BLOOD GLUCOSE METER. Advanced Owner s Booklet for Self-Testing Only

ssociation of Children s Diabetes Clinicians Clinicians Continuous Glucose Monitoring (CGM) Training for Healthcare Professionals and Patients

People with type 1 diabetes and Do It Yourself (DIY) technology solutions ABOUT THIS POSITION STATEMENT

USING THE MINIMED 670G SYSTEM

Calgary Diabetes Centre Insulin Pump Therapy: Preparation and Expectations

USING THE PUMP METHOD TO DELIVER CORTISOL HYPOPITUITARISM

Diabetes Medical Management Plan (DMMP) Handout C.1

Types of insulin. Your blood glucose levels. Types of insulin

2016 Diabetes Management Plan

THERAPY MANAGEMENT SOFTWARE FOR DIABETES

Continuous Glucose Monitoring (CGM) Dexcom G6 Training for Healthcare Professionals and Patients

Getting you up to speed Quick Reference Guide

Diabetes Medical Management Plan

Levemir vs lantus dose conversion

9-A. Diabetes Medical Management Plan

Anneli, Martina s daughter In better control with her pump since 2011 MY CHILD HAS TYPE 1 DIABETES

7/18/2017. Everything discussed in this presentation is off-label. (And that s ok.) Dana Lewis Founder, #OpenAPS WARNING: Disclosure to Participants

PATIENT TRAINING CHECKLIST MINIMED 670G SYSTEM

Diabetes Medical Management Plan

Monitoring of Blood Glucose Level

Homeroom Teacher: Mother/Guardian: Address: Telephone: Home Work. Address: Father/Guardian: Address: Telephone: Home Work Cell: Address:

Dosimeter Setting Device

Authorization for MAT Diabetes Certified Staff to Administer Insulin and/or Glucagon

Hypoglycemia. When recognized early, hypoglycemia can be treated successfully.

Diabetes Medical Management Plan (DMMP)

Make a Smart IT & BT Devices for Future Warning for Heart Failure, Hypoglycemia, and Hyperglycemia Smart Watch. LP Lab LP Watch

Alternative Devices for Taking Insulin

DISCOVER THE POWER OF CONNECTION MINIMED 640G

DIABETES MEDICAL MANAGEMENT PLAN

[Insert School Logo] School Grade Teacher Physician Phone Fax Diabetes Educator Phone 504 Plan on file Yes No

2016 Diabetes Management Plan for school Insulin pump therapy [to be used in conjunction with Action Plan]

MiniMed 640G System Intelligent for Better Control

DISCOVER THE POWER OF CONNECTION MINIMED 640G

Lander County School District

Diabetes Medical Management Plan (DMMP) Adapted from Helping the Student with Diabetes Succeed: A Guide for School Personnel (2016)

MONMOUTH COUNTY VOCATIONAL SCHOOLS

Management of Diabetic Cats

Diabetes Medical Management Plan

Blood glucose Meter Roche USA V6/ PMS 287 Proof Print Number 209 Advanced Owner s Booklet

GETTING STARTED. Continuous Glucose Monitoring MiniMed 630G System

Virginia Diabetes Medical Management Plan (DMMP)

Diabetes Medical Management Plan (DMMP)

Diabetes Medical Management Plan

TO BE COMPLETED BY LICENSED HEALTH CARE PROFESSIONAL

The Realities of Technology in Type 1 Diabetes

DIABETES MANAGEMENT PLAN 2018

Control of Blood Sugar Levels

OneTouch Reveal Web Application. User Manual for Healthcare Professionals Instructions for Use

FREEHOLD REGIONAL HIGH SCHOOL DISTRICT. Parents/Guardian of

Resting and Stress ECG

Figure 2.1: Glucose meter

Diabetes Medical Management Plan/Individualized Healthcare Plan. Part A: Contact Information must be completed by the parent/guardian.

Glucose Meter. User Guide. Veterinary Monitoring System. For dog and cat use only

Insulin Pump Therapy. WakeMed Children s Endocrinology & Diabetes WakeMed Health & Hospitals Version 1.3, rev 5/21/13 MP

Diabetes and Technology. Saturday, September 9, 2017 Aimee G sell, APRN, ANP-C, CDE

Diabetes Medical Management Plan (DMMP)

LESSON 2.4 WORKBOOK. Part two: Glucose homeostasis in the blood Un-Storing energy

Diabetes Medical Management Plan

Blood Glucose Monitoring System. User Guide

Transcription:

GROUP PROJECT REQUIREMENTS AND SPECIFICATION I PROJECT BACKGROUND People with diabetes cannot make their own insulin, a hormone that is normally secreted by the pancreas. Insulin is essential to metabolize sugar and hence generate energy. Currently most diabetics inject insulin two or more times per day, with the dose injected based on readings of their blood sugar level. However, this results in artificial blood sugar fluctuations as it does not reflect the on demand insulin production of the pancreas. A personal insulin pump is an external device that mimics the function of the pancreas. It uses an embedded sensor to measure the blood sugar level at periodic intervals and then injects insulin to maintain the blood sugar at a normal level. Using readings from the embedded sensor, the system automatically measures the level of glucose in the sufferer s body. Consecutive readings are compared. If they indicate that the level of glucose is rising then insulin is injected to counteract this rise. The ideal situation is a consistent level of sugar that is within some safe band. II III MISSION (GOAL) STATEMENT The project is required to construct an insulin pump simulator that can be used for diabetes patients, insulin pump developers and physicians. GLOSSARY 1) Diabetes: A medical disorder that causes the body to produce excessive amounts of urine. 2) Basal: Insulin infusion given as low regular flow throughout the day. This is done in AUTORUN mode of the insulin pump. 3) Bolus: Insulin infusion given as a one time delivery in addition to any basal delivery. A bolus is given, for example, when eating a high carbohydrate meal. This is done in MANUAL mode of the insulin pump. 4) Unsafe: A very low level of sugar (less than 3 units) is dangerous and can result in hypoglaecemia which can result in a diabetic coma and ultimately death. 5) Safe: Between 3 units and 7 units, the levels of sugar are safe and are comparable to those in people without diabetes. This is the ideal band. 6) Undesirable: Above 7 units to 35 units is undesirable but high levels are not dangerous in the short term. Continuous high levels however can result in long term side effects. 7) Insulin: A hormone produced in the pancreas that regulates the level of glucose in the blood. 8) Pancreases: A large elongated glandular organ lying near the stomach. It secrets juices into the small intestine and the hormones insulin, glucagons and somatostatin into the bloodstream. 9) Sugar Level: Level of glucose in the blood. Levels rise after meals and are usually lowest in the morning, before the first meal of the day. 1

IV THE SCOPE OF THE WORK (IN/OUT OF SCOPE LIST) 1) IN: The project shall include the design and implementation of an insulin pump simulator, to be used to educate the diabetes patients. 2) IN: The deliverables shall include a requirements document, design document and source and executable code. 3) IN: The project shall include the design and implementation of a Graphical User Interface (GUI) to start, run (automatically and manually), and stop the insulin simulator. CASE tools can be used to generate GUI. If GUI is generated by CASE tools, it is not necessary to include the details of GUI in the design documents. 4) OUT: This project does not require to develop hardware. 5) OUT: The project doe not develop a patient simulator. V FUNCTIONAL REQUIREMENTS By and large, the functional requirements for the simulator are classified into six groups: safety requirements, insulin dose computation requirements, after insulin injection blood sugar level requirements, insulin pump status requirements, and graphical user interface requirements. V.1 Safety Constraints 1) The initial capacity of the insulin reservoir is set to 100. Maximum daily dose, maximum single dose and minimum dose are set to 35, 5, and 1, respectively. Maximum daily dose is defined the maximum dose that can be delivered in 12 minutes that is scaled down from a day; Maximum single dose is the maximum dose of insulin that can be delivered in a single injection; Minimum dose is the dose that may be delivered to maintain an existing trend in blood sugar levels. 2) Once the dose has been computed the simulator then must determine whether the dose calculated is safe. It is essential due to the critical nature of the simulator. There are two scenarios about safety requirements depending on simulator mode AUTORUN Mode and MANUAL Mode. 3) AUTORUN Mode: If maximum daily dose will be exceeded by the sum of the dose calculated and the cumulative doze, the dose to be injected should be calculated by subtracting the sum of the calculated doze and cumulative dose of insulin from maximum daily dose. If the sum of the dose calculated and cumulative doze is less than or equal to maximum daily doze, there are two possibilities: 1) If the dose calculated is less than or equal to maximum single dose, deliver the insulin calculated; 2) If the single dose computed is too high, deliver the maximum single dose. Alert the user and set the status to warning, if the safe constraints (maximum single doze and/or maximum daily doze) broken. 4) MANUAL Mode: If maximum daily dose is exceeded and/or maximum single dose is exceeded, alert the user and set the status to warning. The maximum daily and maximum single dose safety constraints will be overridden. In other words, amount of insulin units calculated will be injected as it is. 5) All safety requirements are reset every 12 minutes. 2

V.2 Insulin Dose Computation Requirements 1) The dose of insulin to be delivered shall be computed by measuring the current level of blood sugar, comparing this to previous measured levels and computing the required dose as described below. 2) The possible blood sugar level is between 1 and 35 and the simulator shall measure the blood sugar level and deliver insulin if required every 10 seconds. 3) The amount of insulin to be delivered shall be computed according to the current sugar reading as read by the simulator: a. If the reading is below the safe minimum, no insulin shall be delivered. Alarm is on and a warning message must be displayed. b. If the reading is within the safe zone, then insulin is only delivered if the level of sugar is rising and the rate of increase of sugar level is increasing. The amount of insulin required must be defined based on the following algorithm: //CompDose is the insulin dose required according to the insulin dosage computation. //This may be overridden for safety reasons; cumulative_dose is the total dose that has already //been delivered over the last 12 minutes. r0, r1, and r2 maintain //information about //the last three readings from the sugar sensor. r2 holds the current reading, r1 the previous //reading and r0 the reading before that. if (r2 >= safemin && r2 <= safemax) { } //sugar level stable or falling if (r2 <= r1) then CompDose = 0 // sugar level increasing but rate of increasing falling else if ((r2 > r1) && ((r2 r1) < (r1 r0))) then CompDose = 0 // sugar level increasing and rate of increase increasing, compute dose // a minimum dose must be delivered if rounded to zero else if ((r2 > r1) && ((r2 r1) >= (r1 r0)) && (round ((r2 r1) / 4) > 0)) then CompDose = round((r2 r1) / 4) else if ((r2 > r1) && ((r2 r1) >= (r1 r0)) && ((round (r2 r1) / 4) = 0)) then CompDose = minimum_doze c. If the reading is above the safe zone, insulin is delivered unless the level of blood sugar is falling and the rate of decrease of the blood sugar level is increasing. The amount of insulin required must be defined based on the following algorithm. if (r2 > safemax) { } //sugar level increasing. if ((r2 > r1) && (round((r2 r1) / 4) = 0)) then CompDose = minimum_dose else if ((r2 > r1) && (round((r2 r1) / 4) > 0)) then CompDose = round((r2 r1) / 4) // sugar level stable else if (r2 == r1) then CompDose = minimum_dose // sugar level falling and rate of decrease increasing else if ((r2 < r1) && ((r2 r1) <= (r1 r0))) then CompDose = 0 // sugar level falling and rate of decrease decreasing else if ((r2 < r1) && ((r2 r1) > (r1 r0))) then CompDose = minimum_doze 3

d. The amount of insulin actually delivered may be different from the computed dose as various safety constraints specified at V.1. There is a limit on the maximum dose to be delivered in a single injection and a limit on the total cumulative dose in 12 minutes. If maximum daily dose will be exceeded by the dose calculated, the dose to be injected should be calculated by subtracting cumulative dose of insulin from maximum daily dose. In the mean time the warning message shall be issued. This message can be reset by the user within the 12 minute time window. V.3 Blood Sugar Behavior Requirement When a certain amount of insulin is injected based on the algorithms as shown in V.2, V.5.(4), and V.5.(5) the blood sugar level needs to be updated at next 10 second reading (we assume that next 10 second blood sugar level reading is updated blood sugar level and next 10 second time is current time in the formula below) unless the user updates the blood sugar level between current time and latest injection time. A possible formula is as follows: updated blood sugar level = ( (current time latest injection time)/latest injected insulin dose * 0.04) previous blood sugar level 3 * e The constant numbers such as 3 can be adjusted, resulting different blood level drops. Note that BSL is updated every 10 seconds after first dosage of insulin injection. For example, after the simulator starts, let s assume that the current BSL is 5 (note that an initial BSL is any number between 3 and 7). If the user does not change BSL, the BSL remains same, which is 5 in this case. Suppose that at the 00:14 simulation time the user increases BSL to 14 (which means the use eats some food). Then, at the 00:20 simulation time (note that every 10 second the simulator reads BSL), the simulator reads a new BSL and decides whether or not it needs to inject some amount of insulin based on the algorithms. In this case, 2 insulin units are expected to be injected. At the 00:30 simulation time the simulator should update BSL by using the formula above. In other words, at this time, the update BSL = 13 3 * e ( (30 20)/2*0.04) = 12.18. Another 10 seconds later, the updated BSL = 12.18 3* e ( (40 20)/2*0.04) = 11.49 unless the user changes BSL. V.4 Error and Warning Requirement Whenever errors and/or warnings occur, the simulator displays the corresponding messages immediately. Since there is no insulin pump hardware for the simulator, the error messages such as No Needle Unit, Sensor Failure, Insulin Reservoir Removed, and Pump Failure are activated and deactivated by the user. The error message, No Insulin, and the warning messages such as Maximum Daily Dose, Maximum Single Dose, Low Insulin Level, Low Battery, and Low Blood Sugar Level shall be activated and deactivated by the simulator. These messages can be also reset every 12 minute. Note that these messages reflect the status of the insulin simulator. For example, Low Battery shall be issued if the status of the battery has fallen to one third of the full charge after the simulator starts. Note that the level of battery shall decrease by 4 units every 30 second. Note that when the battery is completely empty, the simulator shall stop. The table below specifies the error and warning messages and their descriptions. When at least one error occurs, AUTORUN and MANUAL modes are suspended until the errors are removed; simulation timer and battery keep going. 4

Message Description Messages to be displayed Message description Error No Needle Unit The delivery needle has been removed. Sensor Failure The self test of the sugar sensor has resulted in an error. Insulin Reservoir Removed Insulin reservoir has been removed. Insulin Pump Failure The pump is not working. No Insulin There isn t enough remaining insulin to suffice the next dose. Warning Maximum Daily Dose Maximum daily dose will be exceeded by the dose calculated Maximum Single Dose Maximum single dose will be exceeded by the dose calculated Low Insulin Level The level of insulin in the reservoir is low (i.e., less than 20 units) Low Battery The status of the battery has fallen to one third of the full charge. Low Blood Sugar Level The blood sugar level is below the safe minimum value. Table 1. Error and warning conditions of the insulin pump simulator. V.5 Insulin Pump Status Requirements 1) The possible status of the insulin pump simulator includes SWITCHON, AUTORUN, MANUAL, and SWITCHOFF. 2) When the simulator is loaded, it goes to SWITCHOFF mode. 3) The SWITCHON mode simulates the behavior of the pump when the user pushes the switch on button. When the user switches on the simulator, it goes to AUTORUN mode. It is assumed that the user s blood sugar is at SAFE stage (for example, the blood sugar level is five.) 4) Under normal operating conditions, the simulator is defined by the AUTORUN. If the user increases the blood sugar level, the simulator should respond properly based on V.2. Unless the user increases the blood sugar level, the simulator does not take any insulin injections and the blood sugar level remains SAFE. Note that cumulative dose is reset to zero at the beginning of the each 12 minutes period. The AUTORUN can be further defined in three statuses: normal, warning, and error. In normal operation, the status is running; if a state exists which is potentially hazardous such as low battery and low insulin level, then the status is warning and The simulator keep functioning with displaying warning messages; if a state exists such as pump fail, sensor fail, delivery fail and insulin empty, the status is error. In the error state, normal operation (AUTORUN mode and MANUAL mode) are suspended until the errors are removed. 5) As soon as the user clicks a manual mode button, the simulator goes to MANULA mode. The user is able to specify the amount of insulin to be delivered by pressing the button within 5 second period. The number of clicks specifies the number of units of insulin to be injected. Insulin injection occurs when the five second time window is expired. Note that safety checks, specified at Requirement V.1, are overruled. If maximum daily dose and maximum single dose are exceeded, the amount of insulin is injected while the simulator displays the corresponding warning messages. Cumulative dose and the last dose of insulin are still updated. After insulin injection, the simulator automatically goes to the AUTORUN mode. Note that the blood sugar level will be updated when the simulator goes back to the AUTORUN mode. 6) When switch off, the simulator goes to the SWITCHOFF mode that clear all information. When the user switches on, the simulator starts new. Figure 1 shows the statechart diagram for the insulin pump simulator. 5

SWITCH-ON AUTORUN MANUAL SWITCH-OFF Figure 1. Statechart diagram for insulin pump simulator V.6 Graphical User Interface Requirements 1) A power on/off switch shall be displayed. 2) A MANNUAL button is used to inject insulin manually. The number of clicks within five second is the amount of insulin injected. 3) Display the current mode (AUTORUN, MANNUAL). 4) All values are reset every 12 minutes. 5) A current blood sugar level and at least two previous levels should be displayed. Implementing a graphical representation (with numerical values) to a current sugar level and previous sugar levels is required. 6) The amount of the last dose of insulin to be administered shall be displayed. 7) The amount of the cumulative of insulin injected shall be displayed. 8) The amount of time the simulator run shall be displayed. 9) Current real time shall be displayed. 10) The status of battery shall be displayed with a numeric value and progress bar. 11) The status of the insulin reservoir shall be displayed. 12) Warning and error messages shall be displayed in the single line text box. If there is one message, keep displaying that message. When there is more than one message, each message is displayed for 3 seconds until all messages have been displayed. The display sequence then restarts with the first message unless warnings and errors are clear. Also an audio alarm for each message shall be given. 13) Users are allowed to change the current blood sugar level in order to test the insulin pump simulator s reaction to varying blood sugar readings. 14) If users decide that they require insulin immediately they can manually override the automatically delivering system. Users specify how much insulin to be injected by pressing a button. The number of button presses within 5 second period specifies the number of units of 6

insulin to be injected. The system must be in manual mode for this to be operational and you may assume that after the first press is detected, the number of presses is counted automatically. VI ANALYSIS, DESIGN AND IMPLEMENTATION REQUIREMENTS Object Oriented Analysis (OOA), Object Oriented Design (OOD) and Object Oriented Programming (OOP) are required. Use case diagrams, class diagrams, and sequence diagrams are required. An OOP language such as Java, C#, C++, and Visual Basic is required. CASE tools should be used for OOA, OOD and OOP: Microsoft Visio and UMLDiagrammer (or other UML drawing tools) can be used for OOA and OOD (However, word processors or presentation tools such as Microsoft Word and PowerPoint are allowed); Eclipse, NetBeans, and Microsoft Visual Studio can be used for OOP. Note that NetBeans provides an automatic GUI generation function. 7