# Patent

## Title
Mobile medical applications with separated communication and development environment for the same

## Abstract

Systems and methods are provided for a mobile medical application operating environment and automated/semi-automated systems for creating application software for the operating environment. In the operating environment, all data storage and communication with external devices relating to sensitive medical data and operations is handled by a data manager application concurrently running with the medical application on a mobile device. Multiple medical applications can be run concurrently on the mobile device with reduced risk of data failure, thereby simplifying the design and release process for mobile medical applications.

## Background
RELATED APPLICATIONS
This application claims the benefit of U.S. Provisional Application No. 61/983,053, filed on Apr. 23, 2014 and entitled “TRUSTWORTHY MOBILE MEDICAL APPLICATION MODEL AND DEVELOPMENT ENVIRONMENT,” the entire contents of which are incorporated herein by reference.


STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT
This invention was made with government support under grants 1116385 and 1231590 awarded by the National Science Foundation. The government has certain rights in the invention.


BACKGROUND
The present invention relates to medical applications for mobile devices. In particular, the present invention relates to development platforms, architecture framework, and safety/security of mobile medical applications.
SUMMARY
According industry reports, by 2018, 1.7 billion smartphone users will have downloaded at least one health application. Such widespread adoption of smartphone-based medical apps will open new avenues for innovation, bringing mobile medical apps (MMAs) to the forefront of low cost healthcare delivery. A smartphone user may have multiple “apps” running on a smart phone or tablet controlling his health in a collaborative manner and sharing data. Such applications might range from simple data monitoring to more complex actuation control for devices such as, for example, infusion pumps.
Mobile medical apps (MMAs) work closely with human physiology through sensing and control. As such, it is essential for them to achieve intended functionality without having harmful effects on human physiology or compromising the privacy of health data in spite of runtime faults caused, for example, by service availability and application coding errors. Key challenges in ensuring correct functioning of MMAs include maintaining privacy of health data, long-term operation of wearable sensors, and ensuring that no physical harm is done to a user by the MMAs. Providing evidence of such safety, security, and sustainability (S3) properties can increase development time and may require higher skill sets for the developer. As such, although ensuring S3 is essential, it often acts as a hindrance to innovation.
Various embodiments described herein provide a tool for partially automating the process of developing and optimizing code for medical health applications. In some embodiments, the system receives a high-level description of the functionality of the health app (for example, expressed in Architectural Analysis and Description Language (AADL) format) and outputs security enabled code for interfacing with sensors, storing data, and communicating data to other apps, other devices, or remote storage systems (e.g., a cloud-based EHR management environment). In some embodiments, the system will also apply static analysis tools to test the automated code for errors. Furthermore, for apps that control actuation devices in a closed loop, the system will allow developers to test their generated apps for patient safety using algorithms such as, for example, non-linear spatio-temporal hybrid automata.
In some embodiments, medical device applications running on a user device (e.g., a smart phone or tablet) will be configured to interface with sensors, external devices, other apps, and remote storage systems only through a medical data manager application or “Trustworthy Data Manager” (TDM). The TDM application is optimized and tested to provide secure and reliable communication and safe operation of the mobile app regardless of user errors and varying operating conditions. As a result operation of app-controlled medical devices and storage of medical data is less susceptible to app coding errors or run-time fault conditions.
In one embodiment, the invention provides a method of developing a mobile medical software application. A code development system receives specification information defining operational characteristics of a first mobile medical software application. The code development system then automatically generates a data manager software application. The generated data manager includes portions of previously written software code stored on a non-transitory computer-readable memory of the code development system. These previously written software code are experimentally verified to satisfy safety and security criteria. The portions of previously written software code are selected and arranged by the code development system such that the generated data manager software application is configured to communicate with the first mobile medical software application and to provide communication with other software applications and one or more external devices based on the specification information received for the first mobile medical software application. The first mobile medical software application is generated such that the first mobile medical software application is configured to communicate with the data manager software application and is not capable of direct communication with any external device.
In another embodiment, the invention provides a mobile medical system comprising a first external medical device, a second external medical device, and a mobile device. The mobile device includes a processor and a non-transitory memory storing instructions that, when executed by the processor, operate a plurality of software applications including a first mobile medical software application, a second mobile medical software application, and a mobile medical data manager software application. Operating the mobile medical data manager includes providing all communication between the first mobile medical software application, the second mobile medical software application, the first external medical device, and the second external medical device. Operating the first mobile medical software application and the second mobile medical software application includes performing a data operation related to a medical function and communicating with the mobile medical data manager to transfer data related to the data operation to or from the external medical devices. Neither the first mobile medical software application, nor the second mobile medical software application is capable of communicating directly with any external device—all communications to and from the mobile medical software applications are provided through the mobile medical data manager.
Other aspects of the invention will become apparent by consideration of the detailed description and accompanying drawings.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram of an example of smartphone-based suite of medical functionality provided by mobile medical applications (MMAs) according to one embodiment.
FIG. 2 is a block diagram of a first example of a mobile medical application architecture for the system of FIG. 1.
FIG. 3 is a block diagram of a second example of a mobile medical application architecture for the system of FIG. 1 using a trustworthy data manager application.
FIG. 4 is a flowchart of a partially-automated method of developing mobile medical applications according to the architecture of FIG. 3.



DETAILED DESCRIPTION
Before any embodiments of the invention are explained in detail, it is to be understood that the invention is not limited in its application to the details of construction and the arrangement of components set forth in the following description or illustrated in the following drawings. The invention is capable of other embodiments and of being practiced or of being carried out in various ways.
FIG. 1 illustrates an example of a communication network for a user 101 utilizing multiple mobile medical applications (MMAs). The user 101 may be prescribed a specific medical device or sensor 103 or may utilize their own non-prescription device such as, for example, a blood pressure monitor 105 or a step-counter/activity monitor 107. In this example, each device collects data about the user 101 including, for example, vital signs and activity progress, and transmits the data to a smartphone 109 running one or more MMAs. The smartphone 109 may then forward the data to a remote system 111 for diagnosis, analysis, and/or storage. For example, the remote system 111 may be a medical record repository server or a cloud-based storage environment. A medical professional (e.g., a doctor) can then access the data and other diagnostic information through another device 113 such as, for example, a desktop computer, a smartphone, or a tablet.
Diagnostic and analysis data, which may be generated manually by the medical professional 113 or automatically by the remote system 111, can then be transmitted back to the smartphone 109 where it can be utilized by the user 101 or the connected sensor/actuator devices 103, 105, 107. For example, in some MMAs, the user 101 will monitor a graphical user interface displayed on the smartphone 109 which provides feedback regarding a medical condition or progress towards a goal (e.g., a step-counter). In other MMAs, the smartphone 109 may transmit a signal to a device or actuator to modify the operation of the device based on feedback. For example, one MMA may operate as an “artificial pancreas” that receives sensor data, processes that data, and transmits an operating instruction to a communicatively coupled insulin infusion pump associated with the user 101.
In MMAs, like those illustrated in the example of FIG. 1, a wearable sensor can collect physiological data and communicate it to the smartphone 109 through a wireless channel. The smartphone 109 in turn can communicate the data to a cloud server 111 where it can be stored in an electronic health record (EHR). As noted above, the smartphone 109 can also control safety critical devices such as a drug infusion pump. In this way, the control outputs computed by the MMA can directly affect the physiology and well-being of the user 101. In such cases, the control algorithms must be verified for patient safety. In fact, because some MMAs operating on smartphones are considered to be “medical devices” by the FDA, documentation of such testing and verification may be required before the MMA can be made available to the public.
Due to lack of in-depth knowledge about human physiology, smartphone app developers might fail to consider these safety concerns. Further, since the smartphone is not a dedicated healthcare platform, non-medical apps such as games, might affect system performance and data reliability (e.g., via rapid battery depletion), thereby the availability and operation of the medical app. Also, all communications between the sensors, the smartphone 109, and the cloud 111 take place through the wireless channel which may be susceptible to security attacks.
FIG. 2 illustrates one example of a software architecture model for mobile medical applications that addresses the reliability and security concerns noted above on an app-by-app basis. The user in this example is operating two medical applications—Medical Application A 201 and Medical Application B 203—on the same smart phone. Medical Application A 201 includes a graphical user interface 205, a module controlling the data analysis and other substantive application functionality 207, a module to control and facilitate communication with other applications running on the same smartphone (i.e., inter-app communication module 209), a module for managing communication between the application and a communicative coupled sensor (sensor communication module 211), and a module for managing communication via Wi-Fi with other devices and remote systems (module 213).
Similarly, Medical Application B 203 also includes its own graphical user interface 215 and a module for controlling the data analysis and other substantive functionality of the app (i.e., module 217). Furthermore, Medical Application B 203 must also include modules for managing and regulating communication with other apps operating on the same smartphone (module 219), with any communicative coupled sensors (module 221), and with other devices or remote systems via Wi-Fi (module 223).
This framework creates system redundancies in the modules of Medical Application A 201 and Medical Application B 203. For example, each developer must design and implement code to control the interactions between the smartphone, the specific app, and the external sensors. This may be a somewhat acceptable design characteristic when the first application 201 is utilizing one sensor 225 and the second application 203 is using a different sensor 227. However, in situations where both applications 201, 203 are utilizing data from the same sensor 225, the redundant sensor communication modules 211, 221 increase the load on system resources and may affect the reliability of the sensor 225.
Furthermore, although there are synergistic benefits to providing for communication and data sharing between two medical applications 201, 203 running on the same smartphone, making each application responsible for implementing its own inter-app communication requires some degree of knowledge about the input-output characteristics of other applications in order to effective implement communication and data sharing between apps.
Lastly, because the FDA now regulates certain MMAs as medical devices, the system functionality and communication interface modules of each app must separately undergo extensive testing, validation, and documentation. These added requirements may dissuade app developers from designing and releasing MMAs that could otherwise be beneficial to specific patients or to the public at large.
FIG. 3 illustrates an alternative software architecture framework that may enable objective evaluation of S3 requirements (i.e., safety, sustainability, and security) and provide a trustworthy operating environment for sensitive operations such as actuator control, sensor interface, sensor code, and cloud communication. Furthermore, by using a standard model that allows multiple MMAs to operate as a “suite,” automated tools such as hybrid automata-based model checking techniques can be used to evaluate patient safety due to interactions between human physiology and application software. Sensor software design can also be optimized to obtain sustainable design for long-term availability. Moreover, security enabled software for interfacing the smartphone with sensors, actuators, and remote services (e.g., cloud environments) can be generated through partially automated processes.
In the architectural framework of FIG. 3, the MMA sensor/actuator interfaces, data communication, and data storage mechanisms are isolated from the core mobile device GUI and processing algorithms. In the example of FIG. 3, two mobile medical applications are being run on the same smartphone: Medical Application A 301 and Medical Application B 303. Furthermore, a third application 305 (i.e., the Trustworthy Data Manager (TDM) Application) is also being run on the same smart phone to handle internal and external communications, including, for example, communications between the two applications 301, 303 and communication with the external sensors 313, 315.
The content and complexity of each individual MMA is greatly simplified under this framework. The first application 301 includes a GUI 317, the functional processing algorithms specific to the first application (module 319), and a basic application I/O module 321. Similarly, the second application 303 includes a GUI 323, the functional processing algorithms 325, and another basic application I/O module 327. The I/O module 321, 327 of each application does not need to be capable of comprehensive internal and external communication. Instead, in some implementations, the I/O module simply needs to control a fixed number of memory locations where output data generated by the application is to be stored and to access memory locations where input data from the TDM application 305 can be found.
Notably, in the framework illustrated in FIG. 3, each MMA does not need to provide its own secure, sustainable, and safe data communication modules. Instead, a separate application—the TDM 305—provides optimized code for communication with external sensors (module 307), for communication between applications running on the same smartphone (module 309), and for communications with other external devices and remote systems via Wi-Fi (module 311).
In the framework of FIG. 3, the MMA software itself (i.e., Medical Application A 301 or Medical Application B 303) is in charge of only the graphical and algorithmic aspects of the application. Every instance of data communication to the sensor, cloud, data storage in the smartphone, control inputs to the actuator, and other interaction with the user is performed through the TDM application 305. This framework enables development of MMAs in the form of a suite, where participating apps are certified by the regulatory agencies for safety, sustainability, and security. The app model registry may provide guidelines to other apps to become part of the application suite (e.g., the types of sensors being used by currently available apps in the application suite, sensor sampling frequency, energy management algorithms, etc.). However, to allow new MMAs to be developed that are not restricted by compliance with the existing guidelines of a specific application suite, a new TDM 305 can be developed and implemented that modifies the requirements and guideline—effectively creating a new group of MMAs (or application suite).
The application model of FIG. 3 ensures that S3 properties are taken into account during new MMA development. Any form of control input from an MMA is safety assured by checking it with a hybrid automata based model, as discussed in further detail below. Any sensor communicating with the TDM 305 supports long term availability with sustainable design. Finally, any form of data communication is privacy ensured by the TDM. Also, data collected by different applications are kept in secured databases shared only with certified applications (similar in principal to application sandboxing).
Furthermore, the architectural framework illustrated in FIG. 3 can be implemented by a semi-automated application development system that ensures safety from interactions, sustainability in sensor usage, and security of data (i.e., the S3 principles). The semi-automated application development can also generate a customized TDM application 305 for interfacing with specific sensors and other data communication. In various implementations, a developer can use the development tool to either (a) verify that a previously developed MMA satisfies trustworthiness requirements and/or (b) automatically generate critical parts of the code that will sufficiently address S3 vulnerabilities.
The (semi)automated application development tool can be a implemented as a software application running, for example, on a desktop computer, laptop computer, or tablet computer. In other words, the system would include a processor and a non-transitory computer-readable memory storing instructions that, when executed by the processor, provide the application development functionality. In other embodiments, the development tool is implemented as a web- or network-based design environment where use input is entered through a user-end terminal (e.g., a personal computer with Internet/network access) and forwarded to a remote server system that provides the development tool functionality as described below.
FIG. 4 illustrates one example of a method implemented by the application development tool to assist a developer in creating a S3-verified MMA. The software developer begins by providing a high-level design of his app as input to the system (step 401). The high-level specification may be provided and formatted according to a system-specific modeling language or may utilize a standard modeling format such as, for example, Architectural Analysis and Description Language (AADL). AADL is an accepted industry standard format and is generic enough to describe computational methods of smartphone aps as well as physiological aspects of the human body.
The “design” specification provided by the software developer includes an “app software” component 403 and an “interfaces and communication” component 405. The “app software” component 403 defines the graphical user interface 407 and the control algorithm 409 for the MMA. The “interfaces and communication” component 405 defines specifications 411 for interacting with certain sensors and actuators that are to be utilized by the MMA and other I/O communication interface protocol 413). Both the application software component 403 and the interfaces and communication component 405 are provided as inputs to the automated development environment (ADE) 415. The ADE 415 performs static analysis of the application software (step 417) using, for example, spatio-temporal hypbrid automata, as described in further detail below. The ADE 415 analyzes the sensor/actuator specifications 411 and performs a multi-object optimization routine 419 to optimize how sensors and actuators can be monitored and controlled to optimize performance variables such as, for example, execution time, energy consumption, etc. The ADE 415 also generates appropriate encryption algorithms according to the I/O communication interface specification 413 provided by the developer (step 421). Based on the output of the static analysis of the application-specific component (step 417), the multi-object optimization (step 419), and the developed encryption algorithms (step 421), the ADE 415 configures the application according to S3 principles and constraints (step 423).
Based on the output of the application configuration step 423, the ADE 415 outputs automatically generated code modules (step 425) that conform to the operational requirements specified by the developer and to the S3 principles (or other performance verification standards). These code modules can be assembled using pre-written code that is optimized and adjusted based on the output of the analysis and configuration performed by the ADE 415.
The output of the process illustrated in FIG. 4 is an application software component 427 (i.e., the MMA), sensor code 431, and code 429 configured to manage interfaces and communication. In the example of FIG. 4, application code written by the developer (portion 435) is combined with automated code 437 generated by the ADE 415 to form the MMA 427. The TDM 429 in this example is, however, generated entirely by automated code provided by the ADE 415 and includes optimized communication code 433 (including data encryption algorithms and code for communicating with external sensors and actuators). The sensor code 431 output by the ADE 415 can be uploaded to the specific external sensors to control sensor-side functionality and communications with the smartphone. The ADE 415 also outputs an analysis report 439 describing the results of the static analysis performed on the MMA design. This report 439 can then be used to document application safety, for example, for FDA review or certification for inclusion in an application suite or medical application marketplace.
Although, in the example of FIG. 4, the MMA code includes a combination of developer written code 427 and automatically generated code 437, the degree to which the resulting MMA utilizes automated code can vary in different implementations or can be controlled by developer preferences. For example, in some situations, a developer may choose to manually create the code for the graphical user interface and the control algorithm of the MMA and to use automatically generated code from the ADE 415 only for I/O interface with the TDM. In other situations, a developer may prefer to have the ADE 415 develop all of the code of the MMA without using any developer written code.
Furthermore, the sensor and smartphone code generated by the ADE 415 can then also be passed through a static analyzer to validate the code against data type and memory related errors. The static analyzer, the STHA reachability analysis, sustainable optimized sensor design, and the security primitives are then used to generate the certification report 439 stating the findings and conclusions of the ADE 415. The output code and the certification report can then be reviewed by expert personnel in the field to certify the application. If the MMA fails certification, then the developer can redesign and again use the ADE 415 according to FIG. 4. IN some implementations, the ADE 415 can also be used in a modular fashion so that the user can use different modules individually and generate only partial reports.
As discussed above, the ADE 415 is configured to derive an optimized sustainable design for sensors and actuators including, for example, wearable sensors. Wearable sensors typically scavenge energy from light or human body heat. The availability of scavenging sources is unpredictable. Therefore, operation of such sensors must be optimized to achieve energy neutrality in order to ensure sustainable operation of the sensors. A system is energy neutral when the storage device level remains the same before and after a computation (i.e. energy needed for the computation is solely obtained from a scavenging source).
In this problem formulation, the ADE 415 optimizes the data sending frequency of the sensor depending on the availability of scavenging source. For example, if the sending frequency is fc when the scavenging source is available and fd when scavenging source is unavailable and, to achieve energy neutrality, the sensor battery is to be charged only when the scavenging source is available, the ADE 415 must find values of fc and fd such that the execution should require only the energy obtained from scavenged source. Further, even if the scavenging source is available, the sensor battery is unable to store energy beyond the battery capacity. Given these constraints, the ADE 415 will minimize fc and fd. For problems like this, the ADE 415 may provide a set of time-constrained sustainable designs and the developer can choose a proposed design based on available sensors and their configuration settings.
Furthermore, as also noted above, the ADE 415 is configured to perform safety verification in the design of the smartphone MMA and the TDM. In some implementations, this is accomplished by implementing a theoretical safety verification to prove the design safety using model checking and reachability analysis techniques. The safety verification ensures that the side-effects of interactions between human physiology and sensors are within accepted limits. These interactions are typically governed by smartphone control algorithms when a sensor acts as an actuator. In such a scenario, the developer provides hybrid automata which is embedded in the control algorithm while specifying high-level design. Reachability analysis is then performed on the specified hybrid automata while considering optimized time constrained designs as an initial set.
In some implementations of the ADE 415, the safety verification methods use spatio-temporal hybrid automata (STHA) and a related reachability analysis algorithm. STHA considers the effect of interactions over time as well as over space to provide more accurate results as compared to only time-based analysis. Interactions are considered in the form of equation (1):




  
    
      
        
          
            A
            i
          
          ⁢
          
            
              ∂
              V
            
            
              ∂
              t
            
          
        
        =
        
          
            
              B
              i
            
            ⁢
            
              
                
                  ∂
                  2
                
                ⁢
                V
              
              
                ∂
                
                  x
                  2
                
              
            
          
          +
          
            
              C
              i
            
            ⁢
            V
          
          +
          
            u
            i
          
        
      
    
    
      
        (
        1
        )
      
    
  




In some implementations, the ADE 415 allows the developer to specify requirements for various components such as sensing, computation, and communication. In sensing, the type of sensors, motes, sampling frequency, and sending frequency may be specified. The computation component may include processing of data on both sensors and smartphone which uses various physiological algorithms from a database including, for example, Fast Fourier Transform (FFT), peak detection, and mean. The developer can also add new algorithms as well as modify the inputs of existing available algorithms. Furthermore, as noted above, communication protocol between the sensors and the smartphone, as well as between the smartphone and the cloud, can be specified. The developer can also specify energy management techniques such as duty cycle and radio power level.
The ADE 415 can also provide the developer the ability to specify aspects of the security protocol selected from a security algorithm database (which can also be extended to include new security protocols as defined by a developer). As discussed above, the ADE 415 generates a TDM application, which ensures that wireless communication to and from the smartphone is secure. It includes a security algorithm specified by the developer and maintains a code template for generating the TDM application. The code for the specified security algorithm is accessed from a database and inserted into the code template. The code generator uses Application Programming Interfaces (APIs) to allow communication between external wireless mote and an smartphone, for example, via Bluetooth. The Bluetooth API ensures that a connection is established and that data communication between mote and smartphone while a sensor handler acts as a manager and registers all user assigned sensors, different algorithms associated with each sensor, and handling of data received from the particular sensor. For each of the wireless communication calls, the code generator of the ADE 415 appends the security protocol.
Lastly, the ADE 415 applies static analysis techniques to verify proper operation of the smartphone code and any code that will be run by an external sensor. The quality of application code may be quantified in terms of the number of defects found. The software generated by the ADE 415 may use a high-level language such as java, C#, or objective C. Although compilers for these languages may include advanced features to find bugs or errors in the code, the complexity involved in high-level languages, such as, for example, multithreading, methods, classes, and various design types, may make available compilers inefficient in identifying all bugs. Therefore, the ADE 415 also uses static analysis tools to make the resulting code more robust. Tools such as “Find Bugs” generate unit test cases, compute code metrics, and identify duplicate code, “dead code,” misunderstood API methods, and other performance problems.
Thus, the invention provides, among other things, a combination of mobile medical applications running on a smartphone where all communications and data operations are handled by a separate data management application that is isolated from the code of the mobile medical applications and an automated development environment for assisting with the development of safety-verified code for the mobile medical applications and the separate data management application. Various features and advantages of the invention are set forth in the following claims.

## Claims

1. A method of developing mobile medical software applications including a first mobile medical software application and a data manager software application, the method comprising:
receiving, by a code development system, specification information defining operational characteristics of the first mobile medical software application, the specification information including an identification of at least one external device;
automatically selecting, by the code development system based at least in part on the received specification information, portions of previously written software code stored on a non-transitory computer-readable memory of the code development system;
automatically generating, by the code development system, the data manager software application by arranging the selected portions of previously written software code based on the received specification information; and
generating the first mobile medical software application,
wherein the automatically generated data manager software application is configured to communicate with the first mobile medical software application and with the at least one external devices based on the received specification information, and
wherein the generated first mobile medical software application is configured to communicate with the at least one external device only through the data manager software application.

2. The method of claim 1, wherein the specification information includes an identification of an external medical sensor device from which the first mobile medical software application will receive patient data,
wherein automatically selecting, based on the received specification information, portions of previously written software code includes identifying a previously written sensor interface code segment of a plurality of previously written sensor interface code segments stored on the non-transitory computer-readable memory, the identified previously written sensor interface code being configured to provide for communication with the external sensor device identified by the specification information for the first mobile medical software application, and
wherein automatically generating the data manager software application includes accessing the identified previously written sensor interface code segment from the non-transitory computer-readable memory and including the previously written sensor interface code in the generated data manager software application.

3. The method of claim 1, wherein the specification information further includes data encryption requirements for communicating data between the first mobile medical software application and an external system,
wherein automatically selecting, based on the received specification information, portions of previously written software code includes identifying a previously written data encryption code segment of a plurality of previously written data encryption code segments stored on the non-transitory computer readable memory, the identified previously written data encryption code segment being configured to provide for encrypted data communication according to the data encryption requirements identified by the specification information for the first mobile medical software application, and
wherein automatically generating the data manager software application includes accessing the identified previously written data encryption code segment from the non-transitory computer-readable memory and including the previously written data encryption code segment in the generated data manager software application.

4. The method of claim 1, wherein the specification information includes an identification of a plurality of external devices with which the first mobile medical software application will exchange data, and wherein automatically generating the data manager software application includes:
running a multi-object optimization analysis to determine optimized communication specifications for concurrently communicating with the plurality of external devices,
identifying, based on the multi-object optimization analysis, a subset of previously written code segments from a plurality of previously written code segments stored on the non-transitory computer-readable memory that together will satisfy communication requirements defined by the specification information for the first mobile medical software application,
assembling the subset of previously written code segments and adjusting operating variables of the subset of previously written code segments to generate the data manager software application that is optimized for communicating with the specific plurality of external devices identified by the specification information for the first mobile medical software application.

5. The method of claim 1, wherein generating the first mobile medical software application includes:
automatically generating, by the code development system, a data communication code segment for the first mobile medical software application configured to provide for communication with the automatically generated data manager software application such that the first mobile medical software application will perform all data exchanges defined by the specification information with the automatically generated data manager software application; and
including the automatically generated data communication code segment in the generated first mobile medical software application.

6. The method of claim 5, further comprising receiving, by the code development system, new source code for the first mobile medical software application, and wherein generating the first mobile medical software application includes integrating the new source code and the automatically generated data communication code segment into the first mobile medical software application.

7. The method of claim 6, wherein the new source code received by the code development system includes source code defining one or more data analysis operations to be performed by the first mobile medical software application.

8. The method of claim 6, wherein the new source code received by the code development system includes source code defining a graphical user interface to be displayed on a mobile device during operation of the first mobile medical software application.

9. The method of claim 1, further comprising receiving, by the code development system, new source code for the first mobile medical software application, and wherein generating the first mobile medical software application includes:
running a software optimization analysis on the new source code,
modifying the new source code based on the software optimization analysis, and
generating the first mobile medical software application based on the modified new source code.

10. The method of claim 1, wherein the previously written software code stored on the computer-readable memory has been previously reviewed and certified for use in medical software.

11. The method of claim 1, further comprising:
receiving, by the code development system, specification information for a second mobile medical software application, the specification information for the second mobile medical software application including an identification of at least one additional external device; and
generating the second mobile medical software application
wherein automatically selecting portions of previously written software code includes automatically identifying segments of previously written software code stored on the non-transitory computer-readable memory based on the specification information for the first mobile medical software application and the specification information for the second mobile medical software application,
wherein automatically generating the data manager software application includes arranging the selected portions of previously written software code based on the specification information for the first mobile medical software application and the specification information for the second mobile medical software application,
wherein the automatically generated data manager software application is configured to communicate with the first mobile medical software application, the second mobile medical software application, the at least one external device, and the at least one additional external device, and
wherein the generated second mobile medical software application is configured to communicate with the at least one additional external device only through the data manager software application.

12. A mobile medical system comprising:
a first external medical device;
a second external medical device; and
a mobile device including a processor and a non-transitory memory storing instructions that, when executed by the processor, operate a plurality of software applications including a first mobile medical software application, a second mobile medical software application, and a mobile medical data manager software application,
wherein operating the mobile medical data manager includes providing all communication between the first mobile medical software application, the second mobile medical software application, the first external medical device, and the second external medical device,
wherein operating the first mobile medical software application includes
performing a first data operation related to a first medical function; and
communicating with the mobile medical data manager to transfer data related to the first data operation to or from the first external medical device,

wherein operating the second mobile medical software application includes
performing a second data operation related to a second medical function, and
communicating with the mobile medical data manger to transfer data related to the second data operation to or from the second external medical device, and

wherein the first mobile medical software application and the second mobile medical software application do not communicate directly with any external device.

13. The mobile medical system of claim 12, wherein operating the first mobile medical software application includes communicating with the mobile medical data manager to transfer data related to the first data operation to or from the first external medical device and to or from the second external medical device.

14. The mobile medical system of claim 13, wherein the first external medical device includes a remote health record storage server and the second external medical device includes a medical sensor,
wherein operating the mobile medical data manager includes
receiving data from the medical sensor and providing the data from the medical sensor to the first mobile medical software application, and
receiving output data from the first mobile medical software application and transmitting the output data from the first mobile medical software application to the remote health record storage server, and

wherein operating the first mobile medical software application includes
receiving the medical sensor data from the mobile medical data manager,
performing the first data operation to process the medical sensor data and to generate the output data, and
providing the output data to the mobile medical data manager.

15. The mobile medical system of claim 14, wherein operating the second mobile medical software application includes
receiving the sensor data from the mobile medical data manager,
processing the sensor data, and
displaying information related to the sensor data on a display of the mobile device.

16. The mobile medical system of claim 12, wherein the first medical device includes a medical actuator device,
wherein operating the first mobile medical software application includes generating control data for the medical actuator device and providing the control data to the mobile medical data manager, and
wherein operating the mobile medical data manager includes receiving the control data from the first mobile medical software application and transmitting the control data to the medical actuator device.

17. The mobile medical system of claim 12, wherein the first medical device includes a remote storage server,
wherein operating the first mobile medical software application include providing data to be stored on the remote storage server to the mobile medical data manager, and
wherein operating the mobile medical data manager includes
receiving the data to be stored on the remote storage server from the first mobile medical software application,
encrypting the data to be stored on the remote storage server, and
transmitting the encrypted data to the remote storage server.

18. The mobile medical system of claim 13, wherein the mobile device is one selected from a group consisting of a smart phone and a tablet computer.

19. A code development system comprising:
a non-transitory computer-readable memory storing a plurality of previously written code segments;
a processor configured to
prevent a user from modifying the plurality of previously written code segments stored on the memory,
receive specification information from the user for a first mobile medical software application, wherein the specification information includes an identification of at least one external device,
automatically select, based at least in part on the received specification information, one or more code segments from the plurality of previously written code segments, the one or more code segments including a code segment for communicating with the at least one external device,
automatically generate a data manager software application by arranging the selecting one or more code segments based on the received specification information, and
generate the first mobile medical software application, wherein the first mobile medical software application is capable of communicating with the at least one external device only through the data manager software application.