private void treatmentPage(){
		
		TTP_remark.setText(null);
		
		TreatmentRec treatmentRec = new TreatmentRec(db,patient,doctorID);
		
		if (patient != null){
			patient.addTreatmentRec(treatmentRec);
			TTP_remark.setText(patient.getTreatmentRec(patient.getTreatmentRecSize()-1).getCondition());
			patient.getTreatmentRec(patient.getTreatmentRecSize()-1).setRemarks(TTP_remark.getText());
		}
		
		treatmentPane = new JPanel();
		treatmentPane.setBackground(SystemColor.activeCaption);
		treatmentPane.setLayout(null);
		
		JLabel lblTreatment = new JLabel("Treatment");
		lblTreatment.setHorizontalAlignment(SwingConstants.CENTER);
		lblTreatment.setFont(new Font("Arial", Font.BOLD, 30));
		lblTreatment.setBounds(349, 20, 286, 47);
		treatmentPane.add(lblTreatment);
		
		JLabel lbl_Tt = new JLabel("Enter treatment type");
		lbl_Tt.setFont(new Font("Arial", Font.PLAIN, 20));
		lbl_Tt.setBounds(10, 10, 193, 24);
		JP_treatmentType.add(lbl_Tt);

		TtCB_text.removeAllItems();
		TreatmentMeta.addCombo(db, TtCB_text);

		TtL_model.removeAllElements();
		TbL_model.removeAllElements();

		TtL_list.getSelectionModel().addListSelectionListener(new ListSelectionListener(){
			@Override
			public void valueChanged(ListSelectionEvent arg0) {
				if (TtL_list.getSelectedIndex()!=-1){
					Tlbl_total.setText(Float.toString(patient.getTreatmentRec(patient.getTreatmentRecSize()-1).getTreatment(TtL_list.getSelectedIndex()).getPrice()));
					TbL_model.removeAllElements();
					if (TtL_list.getSelectedIndex()!=-1)
						for (int i=0; i<patient.getTreatmentRec(patient.getTreatmentRecSize()-1).getTreatment(TtL_list.getSelectedIndex()).getPartsSize(); i++){
							TbL_model.add(i, patient.getTreatmentRec(patient.getTreatmentRecSize()-1).getTreatment(TtL_list.getSelectedIndex()).getParts(i));
						}
				}
			}});

		
		
		
		if (patient!=null){
			final float discount = patient.getTreatmentRec(patient.getTreatmentRecSize()-1).getDiscount();
		
			
			
		JButton TtB_save = new JButton("Save");
		TtB_save.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				int cur_rec = patient.getTreatmentRecSize()-1;
				float tmp_price;
				float tmp_sub_price;
				//add treatment
				Treatment treatment = new Treatment();
				treatment.setType(db.getClinic().getTreatmentMeta(TtCB_text.getSelectedIndex()).getType());
				patient.getTreatmentRec(patient.getTreatmentRecSize()-1).addTreatment(treatment);
				//update list
				TtL_model.add(patient.getTreatmentRec(patient.getTreatmentRecSize()-1).getTreatmentSize()-1,
						patient.getTreatmentRec(patient.getTreatmentRecSize()-1).getTreatment(patient.getTreatmentRec(patient.getTreatmentRecSize()-1).getTreatmentSize()-1).getType());
				if (!(db.getClinic().getTreatmentMeta(TtCB_text.getSelectedIndex()).isBodyPart())){
					//calculate price
					tmp_sub_price = patient.getTreatmentRec(cur_rec).getTotalPrice() + db.getClinic().getTreatmentMeta(TtCB_text.getSelectedIndex()).getFpp()*discount;
					patient.getTreatmentRec(cur_rec).setTotalPrice(tmp_sub_price);
					tmp_price = db.getClinic().getTreatmentMeta(TtCB_text.getSelectedIndex()).getFpp()*discount;
					patient.getTreatmentRec(cur_rec).getTreatment(patient.getTreatmentRec(cur_rec).getTreatmentSize()-1).setPrice(tmp_price);
					//update price
					Tlbl_total.setText(Float.toString(tmp_price));
					Tlbl_Sub_total.setText(Float.toString(tmp_sub_price));
				}
			}
		});
		TtB_save.setFont(new Font("Arial", Font.PLAIN, 20));
		TtB_save.setBounds(39, 90, 79, 33);
		JP_treatmentType.add(TtB_save);

		JButton Ttb_clear = new JButton("Clear");
		Ttb_clear.setFont(new Font("Arial", Font.PLAIN, 20));
		Ttb_clear.setBounds(157, 90, 90, 33);
		JP_treatmentType.add(Ttb_clear);



		JLabel lbl_Tb = new JLabel("Enter Body part");
		lbl_Tb.setFont(new Font("Arial", Font.PLAIN, 20));
		lbl_Tb.setBounds(10, 10, 155, 24);
		JP_bodyPart.add(lbl_Tb);

		JButton TbB_save = new JButton("Save");
		TbB_save.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				if ((db.getClinic().getTreatmentMeta(TtCB_text.getSelectedIndex()).isBodyPart())){
					if (!TbT_text.getText().equals("")){
						int cur_rec = patient.getTreatmentRecSize()-1;
						int cur_treat = TtL_list.getSelectedIndex();
						float tmp_price;
						float tmp_sub_price;

						if (cur_treat!=-1){
							//add parts
							patient.getTreatmentRec(cur_rec).getTreatment(cur_treat).addParts(TbT_text.getText());
							//update list
							TbL_model.add(patient.getTreatmentRec(cur_rec).getTreatment(cur_treat).getPartsSize()-1, patient.getTreatmentRec(cur_rec).getTreatment(cur_treat).getParts(patient.getTreatmentRec(cur_rec).getTreatment(cur_treat).getPartsSize()-1));
							//clear textField
							TbT_text.setText(null);
							//calculate price
							tmp_sub_price = patient.getTreatmentRec(cur_rec).getTotalPrice() +
									db.getClinic().getTreatmentMeta(db.getClinic().searchType(patient.getTreatmentRec(cur_rec).getTreatment(cur_treat).getType())).getFpp()*discount;
							patient.getTreatmentRec(cur_rec).setTotalPrice(tmp_sub_price);
							tmp_price = patient.getTreatmentRec(cur_rec).getTreatment(cur_treat).getPrice() +
									db.getClinic().getTreatmentMeta(db.getClinic().searchType(patient.getTreatmentRec(cur_rec).getTreatment(cur_treat).getType())).getFpp()*discount;
							patient.getTreatmentRec(cur_rec).getTreatment(cur_treat).setPrice(tmp_price);
							//update price
							Tlbl_total.setText(Float.toString(tmp_price));
							Tlbl_Sub_total.setText(Float.toString(tmp_sub_price));
						} else{
							JOptionPane.showMessageDialog(null, "Please select a Treatment type from the Type of treatment list","Body Parts", JOptionPane.WARNING_MESSAGE);
						}
					} else{
						JOptionPane.showMessageDialog(null, "Please enter body part","Body Parts", JOptionPane.WARNING_MESSAGE);
					}
				}else{
					JOptionPane.showMessageDialog(null, "No body parts should be entered.","Body Parts", JOptionPane.WARNING_MESSAGE);
					TbT_text.setText(null);
				}
			}
		});
		TbB_save.setFont(new Font("Arial", Font.PLAIN, 20));
		TbB_save.setBounds(39, 90, 79, 33);
		JP_bodyPart.add(TbB_save);
		
		
		
		}
		
		
		
		JButton TbB_clear = new JButton("Clear");
		TbB_clear.setFont(new Font("Arial", Font.PLAIN, 20));
		TbB_clear.setBounds(157, 90, 90, 33);
		JP_bodyPart.add(TbB_clear);
		
		JLabel lbl_remark = new JLabel("Remark:");
		lbl_remark.setFont(new Font("Arial", Font.PLAIN, 20));
		lbl_remark.setBounds(10, 15, 85, 24);
		JP_remark.add(lbl_remark);
		
		JButton TB_patient = new JButton("Patient");
		TB_patient.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				cardLayout.show(contentPane, "Patient");
			}
		});
		TB_patient.setFont(new Font("Arial", Font.PLAIN, 20));
		TB_patient.setBackground(new Color(255, 192, 203));
		TB_patient.setBounds(808, 566, 143, 47);
		treatmentPane.add(TB_patient);
		
		JButton TB_save = new JButton("Save");
		TB_save.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				patient.getTreatmentRec(patient.getTreatmentRecSize()-1).setRemarks(TTP_remark.getText());
			}
		});
		TB_save.setFont(new Font("Arial", Font.PLAIN, 20));
		TB_save.setBounds(529, 565, 143, 48);
		treatmentPane.add(TB_save);
		
		JLabel lbl_total = new JLabel("Total");
		lbl_total.setFont(new Font("Arial", Font.PLAIN, 20));
		lbl_total.setBounds(10, 48, 123, 24);
		JP_fee.add(lbl_total);
		
		JLabel lblSubtotal = new JLabel("Sub-Total");
		lblSubtotal.setFont(new Font("Arial", Font.PLAIN, 20));
		lblSubtotal.setBounds(10, 14, 123, 24);
		JP_fee.add(lblSubtotal);
		
		
	}