Thursday, July 25, 2013

PhoneGap 3.0 Setup

Setup Cordova 3.0


As all of you are aware that phonegap has released a new version 3.0, which has incorporated architectural changes in it. And some of the basic things like creating project, building project, adding platform supports, adding PhoneGap API and adding Custom plug-in to the project has changed.
Before you start the installation processes please go through this link: Adobe-phonegap-3.0-released

 

Steps to Configure Cordova 3.0


1.       Make sure you install node.js in Mac/windows machine.
2.       Once you have installednode.js , then open your command line and run the following:
C:\> npm install -g Cordova
3.       Once installation completes, you can invoke Cordova on command line for further help.

List of project command for Cordova


1.       To create a Cordova project
       $ cordova create my-app                                             # create a Cordova project 
2.       Usage of Cordova commands
       $ cordova [options] [commands]

Commands:
                                I.            create <path>        create a phonegap project
                              II.            build <platform>     build a specific platform
                            III.            install <platform>   install a specific platform
                            IV.            run <platform>       build and install a specific platform
                              V.            local [command]      development on local system
                            VI.            remote [command]     development in cloud with phonegap/build
                          VII.            help [command]       output usage information
                        VIII.            version              output version number

 Options:
                                I.            -V, --verbose        allow verbose output
                              II.            -v, --version        output version number
                            III.            -h, --help           output usage information


Examples:
                                I.            To Get the Cordova help type the following command in command line.
$ Cordova help

                              II.            To create Cordova project, first locate the project folder.
$ First redirect to you work space using the cd/ls commands
$ Cordova create FirstApp                                  #Create a Cordova project
$ cd FirstApp                                                         # Change the folder to app location


3.       Platforms Commands
      $ “Cordova platform [ls | list]” list all platforms the project will build to       $ “Cordova platform add <platform> [<platform> ...]” add one (or more) platforms as a build target for the project
      $ “Cordova platform [rm | remove] <platform> [<platform> ...]” removes one (or more) platforms as a build target for the project

4.       Plug-in Commands
      $ “Cordova plugin [ls | list]”   list all plugins added to the project
      $ “Cordova plugin add <path-to-plugin> [<path-to-plugin> ...]” add one (or more) plugins to the project
      $”Cordova  plugin [rm | remove] <plugin-name> [<plugin-name> ...]” remove one (or more) added plugin’s

5.       Build Commands
       $ “Cordova build”   will build added platform projects like iOS, android etc..
       $ “Cordova build  <android/ios etc..>” Will build the specific platform like iOS, Android ect


Project Directory Structure:



A Cordova application built with cordova-cli will have the following directory structure:

.cordova/
This directory identifies a tree as a Cordova project. Simple configuration information is stored in here (such as BlackBerry environment variables).
Commands other than `create` operate against the project directory itself, rather than the current directory - a search up the current directory's parents is made to find the project directory. Thus, any command (other than `create`) can be used from any subdirectory whose parent is a Cordova project directory (same as git).

merges/
Platform-specific web assets (HTML, CSS and JavaScript files) are contained within appropriate subfolders in this directory. These are deployed during a `prepare` to the appropriate native directory.  Files placed under `merges/` will override matching files in the `www/` folder for the relevant platform.

www/
Contain the project resources such as .html, .css and .js files. These are your main application assets. They will be copied on a `cordova prepare` to each platform's www directory.

config.xml
This file is what you should be editing to modify your application's metadata. Any time you run any cordova-cli commands, the tool will look at the contents of `config.xml` and use all relevant info from this file to define native application information. cordova-cli supports changing your application's data via the following elements inside the `config.xml` file:

platforms/
Platforms added to your application will have the native application project structures laid out within this directory.

plugins/

Any added plugins will be extracted or copied into this directory.


References


Monday, July 1, 2013

Hybrid Mobile Development

Introduction

In this article we will see how the different hybrid mobile approach supports for developing mobile application for multiple mobile platforms such as iOS, android and Blackberry etc. In this article I have targeted mostly used hybrid development framework available in market as of now. Hybrid mobile application basically is a power of HTML5, JavaScript and CSS3 as well as Native API for cross platforms.

Hybrid Mobile Development

Hybrid mobile apps combine aspects of the two, written in HTML5, CSS3 and JavaScript, but with access to device functions via a plug-in developed by mobile development framework. Hybrid apps make it possible to embed HTML5 apps inside a thin native container, combining the best (and worst) elements of native and HTML5 apps.

Hybrid Frameworks
There are lot of hybrid mobile development frameworks available in the market. We will see in brief some of the widely used frameworks.

PhoneGap/Cordova:

PhoneGap is an open source framework for quickly building cross-platform mobile apps using HTML5, Javascript and CSS. When we want to develop application for Android, iOS, Blackberry and windows phone etc, we need to have the understanding of all the languages that each of the platform uses. PhoneGap solves this by using standards-based web technologies to bridge web applications and mobile devices.
·         http://phonegap.com/

Dojo:

Dojo is a JavaScript framework, a collection of utilities written to ease development of client-side Mobile/Desktop applications. Dojo is one of several such libraries. It is composed of a collection of JavaScript functions that cover DOM operations to perform useful operations frequently needed by developers. It establishes a framework for defining modules of code and managing their interdependencies; it provides build tools for optimizing JavaScript and CSS, generating documentation, and unit testing; it supports internationalization, localization, and accessibility.

The Dojo Toolkit is organized as –
Dojo: Contains the core and most non-visual modules.
Dijit: Is a library of user-interface modules for widgets and layout.
Dojox: holds assorted modules not yet considered stable enough to include in dojo or dijit.
Util: includes build tools such as optimization, documentation, style-checking, and testing.

·         http://dojocampus.org/
·         http://www.classdojo.com/

Sencha Touch:

 JavaScript library or framework, specifically built for the mobile devices. It is fully based on web standards such as HTML5CSS3 and JavaScript. Sencha Touch we can integrate with the PhoneGap and easily create HTML5 based mobile apps that work on Android, iOS and BlackBerry devices, and produce a native-app-like experience inside a browser. Sencha touch has set of Control defined which we can use in the mobile development. All the controls are enabled with the touch events/features.


JQuery Mobile:

JQuery Mobile is a user interface framework based on jQuery that works across all popular phones, tablet and desktop platforms. JQuery is developed to meet the responsive web design (RWD) principles. JQuery mobile framework allows user to design a single highly-branded web site or application that will work on all popular Smartphone, tablet, and desktop platforms.

·         http://jquerymobile.com/


Hybrid Frameworks Comparison   



Hybrid Mobile App Pros and Cons

Pros

ü  Faster time to market.
ü  Hybrid app development enables seasoned developers with the knowledge of traditional technologies like HTML5 and CSS to build quality apps without having to learn native app development.
ü  A reduction in native coding usually results in more reusable code across platforms as the HTML5/JS/CSS code base can be utilized across platforms
ü  Maintenance costs are usually lower
ü  Targeting multiple platforms without writing multiple apps from scratch
ü  Not having to maintain multiple codebases in the future.

Cons

ü  There are several layers of abstraction that tend to slow down the application.
ü  It is a lot more difficult to debug a hybrid app than it is to do the same to a native app.
ü  It is not possible to use a lot of native features – especially the cutting-edge features that have just been released.
ü  Potential performance issues.
ü  HTML5 doesn’t work for everything.
ü  Native frameworks can provide advanced functionality that cannot always be easily replicated on the HTML5/CSS/JS side




Conclusion

The best choice would depend on the type of application you are developing.  For example, animation-intensive apps such as games or Device specific functionality would favour native apps, while hybrid applications may be better suited for simple and small apps or enterprise mobile apps because they provide multi-platform support.


The rule for Hybrid Development “Build once and deploy to multiple platforms”.


Friday, June 21, 2013

HEALTH CARE DOMAIN

The prevention, treatment, and management of illness and the preservation of mental and physical well-being through the services offered by the medical and allied health professions

Health care embraces all the goods and services designed to promote health, including “preventive, curative and palliative interventions, whether directed to individuals or to populations”.


Specialities in medicine

Anesthesia     The branch of medicine which deals with anesthesia and anesthetics
Cardiology :  Specializes in disorders of the Heart and associated structures
Dermatology : Deals with the skin and its appendages (hair, nails, sweat glands etc).
Endocrinology : Concerned with the endocrine system (i.e. endocrine glands and hormones) and its diseases, including diabetes and thyroid diseases.
Gastroenterology : Concerned with the alimentary tract
Nephrology : Concerned with diseases of the kidneys.
Pulmonology : Concerned with diseases of the lungs and the respiratory system.
Neurology : Treating central, peripheral nervous system, and spinal column diseases
Obstetrics and gynecology : The branches of medicine which deals with female reproductive organs, pregnancy, and childbirth
Ophthalmology : Branch of medical practice dealing with the diseases and surgery of the visual pathways, including the eyes, brain etc.
Pediatrics : Deals with the medical care of infants, children, and adolescents (from newborn to age 16-21, depending on the country).   
Oncology : Devoted to the study, diagnosis, and treatment of cancer and other malignant diseases
Psychiatry : Devoted to the treatment and study of mental disorder.
Family Medicine :  This provides continuing, comprehensive health care for the individual and family.


Types of Hospitals

General

            The best-known type of hospital is the general hospital, which is set up to deal with many kinds of disease and injury.
            A general hospital is typically the major health care facility in its region, with large numbers of beds for intensive care and long-term care

Specialized

            Hospitals for dealing with specific medical needs, certain disease categories, and so forth

Teaching

            A teaching hospital (or university hospital) combines assistance to patients with teaching to medical students and is often linked to a medical school.

Clinics

            A medical facility smaller than a hospital is generally called a clinic, Clinics generally provide only outpatient services.

Kind of patients

Outpatient

            a patient who is not hospitalized overnight but who visits a hospital, clinic, or associated facility for diagnosis or treatment

Inpatient

            An inpatient on the other hand is "admitted" to the hospital and stays overnight or for an indeterminate time, usually several days or weeks.



Health Care Team

Attending Physicians

            The attending Physicians examines patients, monitors daily progress, plans care, and oversees treatment

Residents

            Residents are licensed doctors who are receiving additional specialty training. During their residency program, they provide care under the supervision of the attending doctor

Physician Assistants

            Physician assistants are health professionals certified to practice medicine with doctor supervision. They make medical decisions and provide a broad range of diagnostic and therapeutic services.

Nurses

            Many types of nurses will help care for patients. They provide care and treatment and will be a very important part of your daily experience.

Dietitians

            Dietitians help ensure that patient receive appropriate nutrition to support healing. They are available to explain special diets if needed..

Pharmacists        

            Pharmacists prepare and dispense medications. They work closely with doctors and nurses to monitor drug therapies and to prevent or correct drug interactions.

Phlebotomists

            These staff members draw blood for laboratory tests.

Physical Therapists

            Physical therapists evaluate the patient’s developmental and functional skills. They treat physical, developmental, and neurological problems, and help you learn to use your body through exercise.


Glossary

Chief complaint

             Concise statement describing the symptom, problem, condition. Or other factor that is the reason for a medical encounter.

History of the present illness

             Refers to a detailed interview prompted by the chief complaint or presenting symptom (for example, pain).

Signs versus symptoms

             A symptom is experienced and reported by the patient
             A sign is discovered by the physician during                                        examination of the patient

Review of systems

             A review of systems is a component of an encounter note covering the organ systems, with a focus upon the subjective symptoms perceived by the patient.

Physical examination

             Is the process by which a health care provider investigates the body of a patient for signs of disease.

Diagnosis

             Is the process of identifying a medical condition or disease by its signs, symptoms, and from the results of various diagnostic procedures.

ICD (International Statistical Classification of Diseases and Related Health Problems)

             Provides codes to classify diseases and a wide variety of signs, symptoms, abnormal findings, complaints, social circumstances, and external causes of injury or disease

Current Procedural Terminology (CPT)

             The CPT code set accurately describes medical, surgical, and diagnostic services and is designed to communicate uniform information about medical services and procedures among physicians, coders, patients, accreditation organizations, and payers for administrative, financial, and analytical purposes.

OD

             omne in die – Once-daily

BD

            bis in die Twice-daily

TID

             ter in die – Thrice-daily

Pro re nata

            as needed

DAW

            Dispense as written

SOAP note

            The SOAP note (an acronym for subjective, objective, assessment, and plan) is a method of documentation employed by health care providers to write out notes in a patient's chart

Subjective component

            This describes the patient's current condition in narrative form recorded in the patient's own words.

Objective component

            Vital signs
            Findings from physical examinations, such as posture, bruising, and abnormalities
            Results from laboratory tests
            Measurements, such as age and weight of the patient.

Assessment

            Is a quick summary of the patient with main symptoms/diagnosis including a differential diagnosis

Plan

            This is what the health care provider will do to treat the patient's concerns. Advised with the patient as well as timings for further review or follow-up.


OUT PATIENT FLOW IN CLINIC