<commit_before><?xml version="1.0" encoding="UTF-8"?>
<openerp>
	<data>
 		<record id="view_oemedical_patient_tree" model="ir.ui.view"> 
 			<field name="name">oemedical.patient.tree</field> 
 			<field name="model">oemedical.patient</field> 
 			<field name="priority" eval="8" /> 
 			<field name="arch" type="xml"> 
 				<tree string="Oemedical Patient"> 
 					<field name="first_name" /> 
 					<field name="lastname" /> 
 					<field name="slastname" />
 					<field name="age" />
 					<field name="ssn" /> 
 					<field name="identification_code" /> 
 					<field name="sex" /> 
 				</tree> 
 			</field> 
 		</record> 

 		<record id="view_oemedical_patient_form" model="ir.ui.view"> 
 			<field name="name">oemedical.patient.form</field> 
 			<field name="model">oemedical.patient</field> 
 			<field name="priority" eval="8" /> 
 			<field name="arch" type="xml"> 
 			 <form string="Patient" version="7.0"> 
                    <sheet> 
                        <div>
                            <field name="photo" widget='image' class="oe_left oe_avatar"/> 
                            <div> 
                                 <h1> 
		                            <field name="first_name" placeholder="First Name" style="width: 20%%" on_change="onchange_name(first_name, lastname, slastname, context)"  /> 
		                            <field name="lastname" placeholder="Last Name" style="width: 20%%" on_change="onchange_name(first_name, lastname, slastname, context)" /> 
		                            <field name="slastname" placeholder="S Last Name" style="width: 20%%" on_change="onchange_name(first_name, lastname, slastname, context)" /> 
	                            </h1> 
                            </div> 
     						<div> 
     							<label for="sex" class="oe_edit_only"/> 
     							<field name="sex" style="width: 30%%"/> 
     							<label for="ssn"/> 
     							<field name="ssn" style="width: 20%%"/> 
     							<label for="identification_code"/> 
     							<field name="identification_code" style="width: 17%%"/> 
     						</div> 
     						<div> 
     							<field name="name" invisible="1"/> 
     						</div> 
                            <div>
     							<label for="dob"/> 
     							<field name="dob" style="width: 30%%"/> 
     							<label for="age"/> 
     							<field name="age" style="width: 30%%"/> 
                            </div> 
                        </div>
                    <notebook> 
                        <page string="General Information"> 
                            <group  col="6" colspan="4"> 
     							<field name="blood_type" style="width: 8%%"/> 
     							<field name="rh" nolabel="1"/> 
               					<field name="ethnic_group" /> 
                            </group>
                            <group string="Contact Information">
                                <group>
                                    <label for="street" string="Address"/>
                                    <div>
                                        <field name="use_parent_address" class="oe_edit_only oe_inline" invisible="1"/>
                                        <label for="use_parent_address" class="oe_edit_only" invisible="1"/>
                                        <field name="street" placeholder="Street..." />
                                        <field name="street2" />
                                        <div class="address_format">
                                            <field name="city" placeholder="City" style="width: 40%%" />
                                            <field name="state_id" class="oe_no_button" placeholder="State" style="width: 37%%" options='{"no_open": True}' />
                                            <field name="zip" placeholder="ZIP" style="width: 20%%" />
                                        </div>
                                        <field name="country_id" placeholder="Country" class="oe_no_button" options='{"no_open": True}' />
                                    </div>
                                    <field name="website" widget="url" placeholder="e.g. www.openerp.com"/>
                                </group>
                                <group>
                                    <field name="phone" placeholder="e.g. +32.81.81.37.00"/>
                                    <field name="mobile"/>
                                    <field name="fax"/>
                                    <field name="email" widget="email"/>
                                </group>
                            </group>
                            <group  col="4" colspan="4"> 
             					<field name="marital_status" colspan="2"/> 
             					<field name="family" invisivle="1" colspan="2"/> 
                                <group colspan="4" col="4">
                 					<field name="primary_care_doctor" />
                 					<field name="current_insurance" /> 
                                </group>
                                <separator colspan="4" string="Patient Allergies and Critical Information"/>
             					<field name="critical_info" colspan="4" nolabel="1"/> 
             				</group> 
         				</page> 
                        <page string="Misc">
                            <group colspan="4" col="4">
                                <separator colspan="4" string="Patient Extra Information"/>
              					<field name="general_info" nolabel="1"  colspan="4"/> 
                            </group>
                            <newline/>
                            <group colspan="4" col="6">
                                <field name="deceased"/>
                                <field name="dod"/>
                                <field name="cod"/>
                            </group>
                        </page>
                        <page string="Medication" >
<!-- Patient Medications -->
                            <separator string="Medications" colspan="4"/>
          					<field name="medications"  nolabel="1" colspan="4">  
			                    <tree string="Oemedical Patient Medication">
				                    <field name="doctor" />
				                    <field name="adverse_reaction" />
				                    <field name="notes" />
				                    <field name="is_active" />
				                    <field name="course_completed" />
				                    <field name="template" />
				                    <field name="discontinued_reason" />
				                    <field name="discontinued" />
			                    </tree>
			                    <form string="Oemedical Patient Medication"><commit_msg>[IMP] Improve patient view ( invisible dod and cod when deceased = False )<commit_after><?xml version="1.0" encoding="UTF-8"?>
<openerp>
	<data>
 		<record id="view_oemedical_patient_tree" model="ir.ui.view"> 
 			<field name="name">oemedical.patient.tree</field> 
 			<field name="model">oemedical.patient</field> 
 			<field name="priority" eval="8" /> 
 			<field name="arch" type="xml"> 
 				<tree string="Oemedical Patient"> 
 					<field name="first_name" /> 
 					<field name="lastname" /> 
 					<field name="slastname" />
 					<field name="age" />
 					<field name="ssn" /> 
 					<field name="identification_code" /> 
 					<field name="sex" /> 
 				</tree> 
 			</field> 
 		</record> 

 		<record id="view_oemedical_patient_form" model="ir.ui.view"> 
 			<field name="name">oemedical.patient.form</field> 
 			<field name="model">oemedical.patient</field> 
 			<field name="priority" eval="8" /> 
 			<field name="arch" type="xml"> 
 			 <form string="Patient" version="7.0"> 
                    <sheet> 
                        <div>
                            <field name="photo" widget='image' class="oe_left oe_avatar"/> 
                            <div> 
                                 <h1> 
		                            <field name="first_name" placeholder="First Name" style="width: 20%%" on_change="onchange_name(first_name, lastname, slastname, context)"  /> 
		                            <field name="lastname" placeholder="Last Name" style="width: 20%%" on_change="onchange_name(first_name, lastname, slastname, context)" /> 
		                            <field name="slastname" placeholder="S Last Name" style="width: 20%%" on_change="onchange_name(first_name, lastname, slastname, context)" /> 
	                            </h1> 
                            </div> 
     						<div> 
     							<label for="sex" class="oe_edit_only"/> 
     							<field name="sex" style="width: 30%%"/> 
     							<label for="ssn"/> 
     							<field name="ssn" style="width: 20%%"/> 
     							<label for="identification_code"/> 
     							<field name="identification_code" style="width: 17%%"/> 
     						</div> 
     						<div> 
     							<field name="name" invisible="1"/> 
     						</div> 
                            <div>
     							<label for="dob"/> 
     							<field name="dob" style="width: 30%%"/> 
     							<label for="age"/> 
     							<field name="age" style="width: 30%%"/> 
                            </div> 
                        </div>
                    <notebook> 
                        <page string="General Information"> 
                            <group  col="6" colspan="4"> 
     							<field name="blood_type" style="width: 8%%"/> 
     							<field name="rh" nolabel="1"/> 
               					<field name="ethnic_group" /> 
                            </group>
                            <group string="Contact Information">
                                <group>
                                    <label for="street" string="Address"/>
                                    <div>
                                        <field name="use_parent_address" class="oe_edit_only oe_inline" invisible="1"/>
                                        <label for="use_parent_address" class="oe_edit_only" invisible="1"/>
                                        <field name="street" placeholder="Street..." />
                                        <field name="street2" />
                                        <div class="address_format">
                                            <field name="city" placeholder="City" style="width: 40%%" />
                                            <field name="state_id" class="oe_no_button" placeholder="State" style="width: 37%%" options='{"no_open": True}' />
                                            <field name="zip" placeholder="ZIP" style="width: 20%%" />
                                        </div>
                                        <field name="country_id" placeholder="Country" class="oe_no_button" options='{"no_open": True}' />
                                    </div>
                                    <field name="website" widget="url" placeholder="e.g. www.openerp.com"/>
                                </group>
                                <group>
                                    <field name="phone" placeholder="e.g. +32.81.81.37.00"/>
                                    <field name="mobile"/>
                                    <field name="fax"/>
                                    <field name="email" widget="email"/>
                                </group>
                            </group>
                            <group  col="4" colspan="4"> 
             					<field name="marital_status" colspan="2"/> 
             					<field name="family" invisivle="1" colspan="2"/> 
                                <group colspan="4" col="4">
                 					<field name="primary_care_doctor" />
                 					<field name="current_insurance" /> 
                                </group>
                                <separator colspan="4" string="Patient Allergies and Critical Information"/>
             					<field name="critical_info" colspan="4" nolabel="1"/> 
             				</group> 
         				</page> 
                        <page string="Misc">
                            <group colspan="4" col="4">
                                <separator colspan="4" string="Patient Extra Information"/>
              					<field name="general_info" nolabel="1"  colspan="4"/> 
                            </group>
                            <newline/>
                            <group colspan="4" col="6">
                                <field name="deceased"/>
                                <field name="dod" attrs="{'invisible':[('deceased','=',False)],'required':[('deceased','=',True)]}"/>
                                <field name="cod" attrs="{'invisible':[('deceased','=',False)]}"/>
                            </group>
                        </page>
                        <page string="Medication" >
<!-- Patient Medications -->
                            <separator string="Medications" colspan="4"/>
          					<field name="medications"  nolabel="1" colspan="4">  
			                    <tree string="Oemedical Patient Medication">
				                    <field name="doctor" />
				                    <field name="adverse_reaction" />
				                    <field name="notes" />
				                    <field name="is_active" />
				                    <field name="course_completed" />
				                    <field name="template" />
				                    <field name="discontinued_reason" />
				                    <field name="discontinued" />
			                    </tree>
			                    <form string="Oemedical Patient Medication">
{'fraction_non_alphanumeric': 0.13565319964612207, 'fraction_numerical': 0.010173989973459157, 'mean_word_length': 1.1710947503201024, 'pattern_counts': {'":': 4, '<': 255, '<?xml version=': 2, '>': 255, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 46, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3104141', 'n_tokens_mistral': 4067, 'n_tokens_neox': 3306, 'n_words': 648}