Requirement Constraints

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, 24 April 2012

ZK MVC Using GenericForwardComposer utility class

Posted on 10:37 by Unknown

Welcome back

This is the 4th post in a series of ZK MVC

Here is the zk documentation and we are following that
and creating new example

http://books.zkoss.org/wiki/Small_Talks/2008/August/ZK_MVC_Made_Easy




Here is the Summary

Method 1 : Implements Composer
We implement Composer interface. Here we used getfellow method to hold the
reference for the UI Components and also we added listener to handle
events

Here is the Link for the first post
http://emrpms.blogspot.in/2012/04/mvc-using-composer-interface.html


Method 2 : extends GenericComposer
Here, we removed all the event lisener by extending the GenericComposer
But remember, we need to call super doaftercompose.

Here is the link for the second post
http://emrpms.blogspot.in/2012/04/zk-mvc-using-genericcomposer-utility.html

Method 3: extends GenericAutowireComposer
Here, we removed all the getfellow methods and let them auto wired
Here we dont need override doaftercompose

http://emrpms.blogspot.in/2012/04/zk-mvc-using-genericautowirecomposer.html

Until now, the previous example codes always use the forward attribute in zul file to forward
event of the button click. Can we remove such forward attributes?"

The org.zkoss.zk.ui.util.GenericForwardComposer utility class is designed to fulfill this requirement. Note that GenericForwardComposer extends the GenericAutowireComposer class, so it has all features of its parent class(GenericAutowireComposer) and grandparent class(GenericComposer).

Here is my zul code

<?page title="Example7" contentType="text/html;charset=UTF-8"?>
<zk>
<label
value=" http://books.zkoss.org/wiki/Small_Talks/2008/August/ZK_MVC_Made_Easy.
Using org.zkoss.zk.ui.util.GenericForwardComposer utility class"
style="font-size : 18px;font-family: verdana,arial,sans-serif;" />
<separator />
<window
title="MVC Pattern Using org.zkoss.zk.ui.util.GenericForwardComposer utility class"
border="normal" width="700px" apply="com.me.Example9">
<grid>
<columns>
<column label="" />
<column label="" />
</columns>
<rows>
<row>
First Name :
<textbox id="firstName" />
</row>
<row>
Last Name :
<textbox id="lastName" />
</row>
<row>
Address :
<textbox id="address" />
</row>
<row>
<button id="Clear" label="Clear" />
</row>

</rows>
</grid>
</window>
</zk>


In the above code, we have used apply attribute of the XML. By this, we are associating
with a component, such that the composer can control the UI rooted the given component.



Here is composer(java file)


package com.me;

import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.util.GenericForwardComposer;
import org.zkoss.zul.Textbox;

@SuppressWarnings("rawtypes")
public class Example9 extends GenericForwardComposer {

private static final long serialVersionUID = 1L;
private Textbox firstName;
private Textbox lastName;
private Textbox address;

public void onClick$Clear(Event event) {
firstName.setValue("");
lastName.setValue("");
address.setValue("");
}
}

Important Notes in the above code.

1. The event handler must be declared as public. Otherwise, they will be ignored from auto-wiring.



Here is the demo
http://zkfiddle.org/direct/3c7jise/2/v6.0.0-MVC-Using-GenericForwardComposer?run=3gbaqbu

Here is the source code
http://zkfiddle.org/sample/3c7jise/2-MVC-Using-GenericForwardComposer

Read More
Posted in ZK MVC | No comments

ZK MVC Using .GenericAutowireComposer utility class

Posted on 07:29 by Unknown

This is the third post in a series of ZK MVC



I am just following the zk documentation and creating another sample 
here is the ZK Documentation url

http://books.zkoss.org/wiki/Small_Talks/2008/August/ZK_MVC_Made_Easy 


Before this, summary of the previous post is

We started with Composer 
http://emrpms.blogspot.in/2012/04/mvc-using-composer-interface.html

Then we removed all the event listeners and it is done by zk automatically by  genericcomposer utility class

http://emrpms.blogspot.in/2012/04/zk-mvc-using-genericcomposer-utility.html

Now we will see how we can remove all those binding using getfellow methods. This can be done
using org.zkoss.zk.ui.util.GenericAutowireComposer utility class which extends GenericComposer class and add the auto-wire features

Here is my zul code

<?page title="Example7" contentType="text/html;charset=UTF-8"?>
<zk>
<label
value=" http://books.zkoss.org/wiki/Small_Talks/2008/August/ZK_MVC_Made_Easy.
org.zkoss.zk.ui.util.GenericAutowireComposer"
style="font-size : 18px;font-family: verdana,arial,sans-serif;" />
<separator />
<window title="MVC Pattern using org.zkoss.zk.ui.util.GenericAutowireComposer" border="normal" width="700px"  apply="com.me.Example8">
<grid>
<columns>
<column label="" />
<column label="" />
</columns>
<rows>
<row>
First Name :
<textbox id="firstName" />
</row>
<row>
Last Name :
<textbox id="lastName" />
</row>
<row>
Address :
<textbox id="address" />
</row>
<row>
<button id="Clear" label="Clear" forward="onClick=onClear_btn"/>
</row>

</rows>
</grid>
</window>
</zk>


Here is my Composer java file


package com.me;


import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.util.GenericAutowireComposer;
import org.zkoss.zul.Textbox;


@SuppressWarnings("rawtypes")
public class Example8 extends GenericAutowireComposer {


private static final long serialVersionUID = 1L;
private Textbox firstName; //auto-wired
private Textbox lastName; //auto-wired
private Textbox address; //auto-wired


//all getFellow() codes are removed

public void onClear_btn(Event event) {
firstName.setValue("");
lastName.setValue("");
address.setValue("");
}
}

Again here is the source code and demo
http://zkfiddle.org/direct/3hjk8af/5/v6.0.0-MVC-Using-GenericAutowireComposer?run=3gbaqbu

In the next post, we will see how to Get Rid of Those "forward" Attributes
using GenericForwardComposer



Read More
Posted in ZK MVC | No comments

ZK MVC Using .GenericComposer utility class

Posted on 04:00 by Unknown

This is the second post in a series of ZK MVC




This post is continuation of previous post

ZK Documentation is here
http://books.zkoss.org/wiki/Small_Talks/2008/August/ZK_MVC_Made_Easy

Now we will use Genericcomposer class to reduce some code from my previous post



Here is my zul file

<?page title="Example7" contentType="text/html;charset=UTF-8"?>
<zk>
<label
value=" http://books.zkoss.org/wiki/Small_Talks/2008/August/ZK_MVC_Made_Easy.
org.zkoss.zk.ui.util.GenericComposer utility class"
style="font-size : 18px;font-family: verdana,arial,sans-serif;" />
<separator />
<window title="MVC Pattern using org.zkoss.zk.ui.util.GenericComposer utility class" border="normal" width="300px"  apply="com.me.Example7">
<grid>
<columns>
<column label="" />
<column label="" />
</columns>
<rows>
<row>
First Name :
<textbox id="firstName" />
</row>
<row>
Last Name :
<textbox id="lastName" />
</row>
<row>
Address :
<textbox id="address" />
</row>
<row>
<button id="Clear" label="Clear" forward="onClick=onClear_btn"/>
</row>

</rows>
</grid>
</window>
</zk>


Here is my Composer



package com.me;

import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.util.GenericComposer;
import org.zkoss.zul.Textbox;

@SuppressWarnings("rawtypes")
public class Example7 extends GenericComposer {

/**
*
*/
private static final long serialVersionUID = 1L;
private Textbox firstName;
private Textbox lastName;
private Textbox address;

public void doAfterCompose(Component comp) throws Exception {
/**
* Dont forget to call super doaftercomposer. By calling this, it will add the event listner for us
*/
super.doAfterCompose(comp);
// locate ZK components
firstName = (Textbox) comp.getFellow("firstName");
lastName = (Textbox) comp.getFellow("lastName");
address = (Textbox) comp.getFellow("address");

// all addEventListener and new EventListener() codes are removed
}

public void onClear_btn(Event event) {
firstName.setValue("");
lastName.setValue("");
address.setValue("");
}
}

Here is the demo with source code download.......
Demo

Read More
Posted in ZK MVC | No comments

ZK MVC Using composer interface

Posted on 03:11 by Unknown

This is the first post in a series of ZK MVC

Just going thru the following link to get some idea about MVC
http://books.zkoss.org/wiki/Small_Talks/2008/August/ZK_MVC_Made_Easy

Everything went fine as long as i copied and paste from the examples
But when i started my own example, got into problem and came to know some concepts or tricks or whatever be


Here is my first example on MVC using composer interface. Later on i will post how we can do this with other ways

This example simply clearly all the values in the form.

Here is my Zul File

<?page title="Example1" contentType="text/html;charset=UTF-8"?>
<zk>
<label
value=" http://books.zkoss.org/wiki/Small_Talks/2008/August/ZK_MVC_Made_Easy.
Using implements Composer"
style="font-size : 18px;font-family: verdana,arial,sans-serif;" />
<separator />
<window title="MVC Pattern" border="normal" width="300px"  apply="com.me.Example6">
<grid>
<columns>
<column label="" />
<column label="" />
</columns>
<rows>
<row>
First Name :
<textbox id="firstName" />
</row>
<row>
Last Name :
<textbox id="lastName" />
</row>
<row>
Address :
<textbox id="address" />
</row>
<row>
<button id="Clear" label="Clear" forward="onClick=onClear_btn"/>
</row>

</rows>
</grid>
</window>
</zk>


Here is my composer


package com.me;

import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.util.Composer;
import org.zkoss.zul.Textbox;
import org.zkoss.zul.Window;

public class Example6 implements Composer {

private Textbox firstName;
private Textbox lastName;
private Textbox address;

public void doAfterCompose(Component comp) throws Exception {


firstName = (Textbox) comp.getFellow("firstName");
lastName = (Textbox) comp.getFellow("lastName");
address = (Textbox) comp.getFellow("address");

// define and register event listeners
comp.addEventListener("onClear_btn", new EventListener() {
public void onEvent(Event event) throws Exception {
firstName.setValue("");
lastName.setValue("");
address.setValue("");
}
});
}

}




Here is the demo with source code download
Demo



Here the composer1.zul defines the View of the application while the MyComposer1 class intervenes in the life cycle of the window creation and is responsible for the definition and registration of the event listener. However, the more you write these codes, the more you will find the same addEventListener pattern occurs repeatedly. So..., "Can we take away those addEventListener codes?"


The org.zkoss.zk.ui.util.GenericComposer utility class is ZK's response to this question.



Read More
Posted in ZK MVC | No comments

Posted on 03:00 by Unknown
Hi
Slowly moving as  a techie guys to come up good product for EMR and PMS

Here is the technology mixture which i have started

ZK 6  + Spring + Hibernate + java ee + Maven + ???????  some more !!! No idea, so far this.

You can see some stupid and simple examples in ZK framework going forward

Have fun


Read More
Posted in ZK Framework | No comments

Thursday, 1 March 2012

Medical Billing

Posted on 03:06 by Unknown

 

I strongly feel that Development of PMS Product is more on the domain/business logic other than the technology. So would to like to share the information in PMS thru my blog

There are lot of articles/books/document sitting on my desk which I have collected from various sources for the past 10 years. From that, so I will try to educate on that in a simple and easy to understandable way with an example where never necessary.

Chapter 1: Introduction
1. What is Medical Billing Process ?
2. Different Format of Medical Form.
3. Patient Insurance
4. Electronic Claim Transmission
5. Medical Billing Clearing house
6. Medical Billing Process in detail
7. Healthcare Coding system.
8. Maintaining Patient Insurance in the software.

Chapter 2:  EDI Transactions

1. What is an EDI ?
2. EDI Transactions 

3. Understanding EDI Structure
4. EDI Instruction

 

 

Chapter 3: Payment
1.
Types of Reimbursement


Chapter 4: Claim Submission after Primary Insurance
1. How to submit the claims after primary insurance ?


Chapter 5: Claim Processing by the insurance company

1. Claims adjudication and Payment process.?


 

New to Health care Domain ?  Here are some documents which can help you to understand the basics.  I am trying to refer to official link(where i downloaded the document)   and as well as link to my server(some time, official links are broken).

1. Introduction_to_Health_Care_in_USA   (or you can click here to download)
2.
Medicare Incentive Program Beginners guide MU Stage 1 ( or you can click here to download)


All about Prescription

  •  An Introduction to ePrescription
  •  How ePrescribing works
  •  Paper Prescription workflow
  •  Electronic Prescription workflow
  •  Refill Paper Prescription workflow
  •  Refill Electronic Prescription workflow

Flow charts

  •  Medical Billing Overview 
  •  Rooming Overview
  •  Medical Billing Flow chart
  •  EMR Test Visit Flow chart
  •  EMR Patient Examination Flow chart
  •  EMR Office visit Flow chart
  •  Medical Claim Life Cycle
  •  Claim Adjudication and Payment Flow chart
  •  EMR Office Visit
  •  Billing Flow chart


Medical Billing blogs

  • Blog on Medical Billing – Revenue Cycle Management
  • Medical Billing and Coding
  • Medical billing CPT modifiers
  • CMS 1500 claim and UB 04 form
  • Medicare Fee Schedule, Payment and Reimbursement
  • Insurance claim denial and appeal
Read More
Posted in Billing Process | No comments

Monday, 9 January 2012

Patient Demographics

Posted on 09:18 by Unknown
Patient browse (search) is the key element for any EMR / PMS Software. In my past 15 years experience, i involved more than 5 times in design/development (using VB6, VB.NET) / test the Patient demographics search and patient demographics page.

Here is the excellent UI which shows how to design patient search window
Patient Search window
or you can see the screen shot here


Read More
Posted in | No comments
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • Understanding EDI Structure
    EDI Structure Primary Levels are 1. Interchange Envelops 2. Functional Group 3. Transaction set Data Element A data element is equival...
  • EDI 270–5010 Documentation - ISA – Interchange Control Header
    ISA – Interchange Control Header ISA – Interchange Control Header   The ISA is a fixed record length segment and all positions within ea...
  • Types of Reimbursement
    Fee-For-Service Fee-for-service is a method of payment where the provider is paid a fee for each procedure performed and billed.Most payer ...
  • ZK Example for inline Editing with Add New and Delete
    I am quite impressed on this demo from ZK . But adding new record and delete existing record is missing as part of typical CRUD. So i thoug...
  • ZK ListBox
    Let us first design a simple  static list box with crud Buttons as last column. Here is the code <?page title="Practice List" c...
  • EDI Instructions
    HIPAA Compliant Codes All the Health care EDI Transaction set should use only the following HIPAA Compliant Codes Physicians Current Pro...
  • Java Static Import
    This is one of feature in Java 5. In order to access static members, it is necessary to qualify references with the class they came from. ...
  • List Item Connected with Hibernate and Search Parameter
      Summary This example contains one list box with First name and Last Name as search Field. If the user do not give any values for first n...
  • Hibernate Validator Example 2
    In this example, we will see some more validation constraints such as @email, @past, @length, etc. And also we will also define custom error...
  • ZK Quick InputBox
    Just to get String input before do some process. For example, we will normally ask the reason to delete any record. <?xml version=...

Categories

  • Billing Process
  • C Workbook
  • C++ Workbook
  • Eclipse Tips
  • EDI 5010
  • EMR Appointment Features
  • EMR Labs Stuff
  • EMR PMS Links
  • EMR Use cases
  • EMR Vital Sign
  • Good Website Design
  • Hibernate Criteria Queries
  • Hibernate Introduction
  • Hibernate Introduction Setup
  • Hibernate Mapping
  • Hibernate POC
  • Hibernate Validator
  • Hibernate–Java Environment setup
  • HPI
  • Java
  • Maven
  • MU Certification
  • NPI
  • PQRS
  • Practice Management System
  • Spring Security
  • Tech Links
  • Today Tech Stuff
  • zk
  • ZK Hibernate
  • ZK 5 Databinding
  • ZK Application
  • ZK Calling Another ZUL
  • ZK CheckBox
  • ZK CreateComponents
  • ZK CSS
  • ZK extended Components
  • ZK Foreach
  • ZK Forum Posts
  • ZK Framework
  • ZK Hibernate Setup
  • ZK ID Space
  • ZK Include
  • ZK Installation
  • ZK iReport
  • ZK Layout
  • ZK Listitem Pagination
  • ZK Message Box
  • ZK MVC
  • ZK MVC Combox Box
  • ZK MVC CRUD Examples
  • ZK MVC Listbox
  • ZK MVVM
  • ZK MVVM Combo
  • ZK MVVM CRUD
  • ZK MVVM ListBox
  • ZK Spring
  • ZK TextBox

Blog Archive

  • ▼  2013 (105)
    • ▼  December (3)
      • EDI Instructions
      • Understanding EDI Structure
      • What is an EDI ?
    • ►  September (7)
    • ►  August (13)
    • ►  July (1)
    • ►  June (11)
    • ►  May (3)
    • ►  April (14)
    • ►  March (19)
    • ►  February (21)
    • ►  January (13)
  • ►  2012 (177)
    • ►  December (1)
    • ►  November (13)
    • ►  October (19)
    • ►  September (24)
    • ►  August (26)
    • ►  July (6)
    • ►  June (37)
    • ►  May (30)
    • ►  April (16)
    • ►  March (1)
    • ►  January (4)
  • ►  2011 (5)
    • ►  December (1)
    • ►  November (1)
    • ►  July (1)
    • ►  June (1)
    • ►  April (1)
  • ►  2010 (1)
    • ►  September (1)
Powered by Blogger.

About Me

Unknown
View my complete profile