| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239 |
- <?xml version="1.0" encoding="utf-8"?>
- <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
- xmlns:helpers="com.imt.intimamedia.helpers.*"
- xmlns:local="*"
- width="100%" height="100%"
- styleName="containerZoneWithTitleAndBackground"
- horizontalScrollPolicy="off" verticalScrollPolicy="off"
- show="loadKeyboardListeners()"
- creationComplete="creationCompleteHandler()"
- showEffect="showBox" hideEffect="hideBox">
-
- <mx:Script source="../../../scripts/physician/patient/patientFile.as" />
-
- <mx:Image id="searchPatientHelp" visible="false" includeInLayout="false" />
- <mx:Image id="createPatientHelp" visible="false" includeInLayout="false" />
- <mx:Image id="patientTabHelp" visible="false" includeInLayout="false" />
-
- <mx:StringValidator id="firstNameValidator" source="{firstNameTextInput}" property="text" trigger="{firstNameTextInput}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
- <mx:StringValidator id="lastNameValidator" source="{lastNameTextInput}" property="text" trigger="{lastNameTextInput}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
- <mx:StringValidator id="sexValidator" source="{sexRadioButtonGroup}" property="selectedValue" required="true" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
- <mx:DateValidator id="dateOfBirthValidator" source="{dateOfBirthDateField}" property="text" required="true" inputFormat="{resourceManager.getString( 'labels', 'date' )}" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
-
- <mx:DateFormatter id="dateFormatter" formatString="{resourceManager.getString( 'labels', 'date' )}" />
-
- <mx:Zoom id="zoomHelpAdd" startDelay="50"/>
-
- <mx:Parallel id="zoomHelpRemove">
- <mx:Zoom />
- <mx:Fade />
- </mx:Parallel>
-
- <mx:Canvas>
- <mx:Image source="@Embed('images/general/leftTitle.png')" />
- <mx:Label text="{resourceManager.getString( 'labels', 'title.patientFile' )}" styleName="titlePanel" />
- </mx:Canvas>
-
- <mx:HBox width="100%" height="100%" paddingBottom="5" paddingLeft="10" paddingRight="10">
- <mx:Canvas width="100%" height="100%" horizontalScrollPolicy="off">
- <mx:VBox width="100%" height="90%" verticalAlign="top" horizontalAlign="center">
- <mx:HBox paddingBottom="15">
- <mx:Image source="@Embed('images/general/question_mark.png')" click="HelpUtils.loadPatientHelp(searchPatientHelp)" buttonMode="true" useHandCursor="true" />
-
- <mx:Label text="{resourceManager.getString( 'labels', 'label.search' )}" fontSize="18" styleName="redText" />
- </mx:HBox>
- <mx:FormItem label="{resourceManager.getString( 'labels', 'search.patient' )}" width="100%">
- <mx:HBox width="100%">
- <mx:TextInput id="criteria" paddingLeft="5" width="100%" text="{resourceManager.getString( 'labels', 'search.patient.info')}" toolTip="{resourceManager.getString( 'labels', 'search.patient.info')}" enter="searchPatient()" click="removeSearchPatientText()" />
- <mx:Button id="searchButton" label="{resourceManager.getString( 'labels', 'button.search' )}" click="searchPatient()" />
- </mx:HBox>
- </mx:FormItem>
-
- <mx:Spacer height="10" />
-
- <mx:DataGrid id="dg" width="100%" height="85%"
- dataProvider="{ApplicationModelLocator.getInstance().listOfDisplayedPatients}"
- verticalScrollPolicy="on"
- editable="false"
- doubleClickEnabled="false"
- itemClick="selectPatient(event)"
- tabEnabled="false"
- draggableColumns="false">
- <mx:columns>
- <mx:DataGridColumn headerText="{resourceManager.getString( 'labels', 'datagrid.lastName' )}" dataField="lastName" />
- <mx:DataGridColumn headerText="{resourceManager.getString( 'labels', 'datagrid.firstName' )}" dataField="firstName"/>
- <mx:DataGridColumn headerText="{resourceManager.getString( 'labels', 'datagrid.sex' )}" width="80" dataField="sex" itemRenderer="com.imt.intimamedia.views.physician.patient.SexRenderer" />
- <mx:DataGridColumn headerText="{resourceManager.getString( 'labels', 'datagrid.birthDate' )}" dataField="birthDate" labelFunction="formatBirthDate" />
- <mx:DataGridColumn headerText="{resourceManager.getString( 'labels', 'datagrid.lastVisit' )}" dataField="lastVisit" labelFunction="formatLastVisit" />
- </mx:columns>
- </mx:DataGrid>
-
- <mx:HBox id="actionOnSearch" visible="false" includeInLayout="true" width="100%" hideEffect="Fade" showEffect="Fade">
- <mx:HBox left="5" width="50%">
- <mx:Button label="{resourceManager.getString( 'labels', 'title.patientCreate' )}" click="resetCreatePatientForm()" includeInLayout="{(_model.patientActive && !_model.viewPatient) || _model.viewPatient}" visible="{(_model.patientActive && !_model.viewPatient) || _model.viewPatient}" hideEffect="Fade" showEffect="Fade" />
- </mx:HBox>
-
- <mx:HBox right="5" width="50%">
- <mx:Button label="{resourceManager.getString( 'labels', 'button.createAppointment' )}" click="prepareCreateAppointment(event)" />
- <mx:Spacer />
- <mx:ComboBox
- id="comboBoxAppointmentSelected"
- prompt="{resourceManager.getString( 'labels', 'button.chooseAppointment' )}"
- dataProvider="{_model.listOfAppointments}"
- labelFunction="formatAppointment"
- selectedIndex="0"
- change="selectAppointment(event)"/>
- </mx:HBox>
- </mx:HBox>
-
- </mx:VBox>
-
- </mx:Canvas>
-
-
- <mx:VRule left="15" height="100%" />
-
- <mx:Canvas width="100%" height="100%" horizontalScrollPolicy="off">
- <mx:VBox width="100%" height="100%" verticalAlign="top" horizontalAlign="center" horizontalScrollPolicy="off">
- <mx:HBox paddingBottom="15">
- <mx:Image source="@Embed('images/general/question_mark.png')" click="HelpUtils.loadPatientHelp(createPatientHelp)" buttonMode="true" useHandCursor="true" />
-
- <mx:Label text="{resourceManager.getString( 'labels', 'title.patientCreate' )}" styleName="redText" hideEffect="Fade" fontSize="18" showEffect="Fade" includeInLayout="{!_model.patientActive}" visible="{!_model.patientActive}" />
- <mx:Label text="{resourceManager.getString( 'labels', 'title.patientView' )}" styleName="redText" hideEffect="Fade" fontSize="18" showEffect="Fade" includeInLayout="{_model.viewPatient && !_model.updatePatient}" visible="{_model.viewPatient && !_model.updatePatient}" />
- <mx:Label text="{resourceManager.getString( 'labels', 'title.selectedPatient' )}" styleName="redText" hideEffect="Fade" fontSize="18" showEffect="Fade" includeInLayout="{_model.patientActive && !_model.viewPatient && !_model.updatePatient}" visible="{_model.patientActive && !_model.viewPatient && !_model.updatePatient}" />
- <mx:Label text="{resourceManager.getString( 'labels', 'title.selectedPatient' )}" styleName="redText" hideEffect="Fade" fontSize="18" showEffect="Fade" includeInLayout="{_model.patientActive && _model.updatePatient}" visible="{_model.patientActive && _model.updatePatient}" />
- </mx:HBox>
-
- <mx:VBox paddingTop="20" horizontalAlign="left">
-
- <mx:VBox visible="{!_model.patientActive || _model.updatePatient}" includeInLayout="{!_model.patientActive || _model.updatePatient}" hideEffect="Fade" showEffect="Fade">
- <mx:FormItem id="lastNameLabel" label="{resourceManager.getString( 'labels', 'label.lastName' )}" required="true" labelWidth="150">
- <helpers:TextInputWithSkin id="lastNameTextInput" maxChars="49" styleName="textInput"/>
- </mx:FormItem>
- <mx:FormItem id="firstNameLabel" label="{resourceManager.getString( 'labels', 'label.firstName' )}" required="true" labelWidth="150">
- <helpers:TextInputWithSkin id="firstNameTextInput" maxChars="49" styleName="textInput" />
- </mx:FormItem>
- </mx:VBox>
-
- <mx:VBox visible="{_model.patientActive && !_model.updatePatient}" includeInLayout="{_model.patientActive && !_model.updatePatient}" hideEffect="Fade" showEffect="Fade">
- <mx:FormItem label="{resourceManager.getString( 'labels', 'label.lastName' )}" labelWidth="150">
- <mx:Label text="{_model.patientSelected.lastName}" styleName="fontBold" />
- </mx:FormItem>
- <mx:FormItem label="{resourceManager.getString( 'labels', 'label.firstName' )}" labelWidth="150">
- <mx:Label text="{_model.patientSelected.firstName}" styleName="fontBold" />
- </mx:FormItem>
- </mx:VBox>
-
- <mx:VBox visible="{!_model.patientActive || _model.updatePatient}" includeInLayout="{!_model.patientActive || _model.updatePatient}" hideEffect="Fade" showEffect="Fade">
- <mx:FormItem id="sexLabel" label="{resourceManager.getString( 'labels', 'label.sex' )}" required="true" labelWidth="150" >
- <mx:RadioButtonGroup id="sexRadioButtonGroup" />
- <mx:HBox paddingLeft="10">
- <mx:RadioButton label="{resourceManager.getString( 'labels', 'label.man' )}" group="{sexRadioButtonGroup}" value="M" />
- <mx:RadioButton label="{resourceManager.getString( 'labels', 'label.woman' )}" group="{sexRadioButtonGroup}" value="F" />
- </mx:HBox>
- </mx:FormItem>
- </mx:VBox>
-
- <mx:VBox visible="{_model.patientActive && !_model.updatePatient}" includeInLayout="{_model.patientActive && !_model.updatePatient}" hideEffect="Fade" showEffect="Fade">
- <mx:FormItem label="{resourceManager.getString( 'labels', 'label.sex' )}" labelWidth="150">
- <mx:Label text="{resourceManager.getString( 'labels', _model.patientSelected.sex )}" styleName="fontBold" />
- </mx:FormItem>
- </mx:VBox>
- <mx:VBox visible="{(!_model.patientActive || _model.updatePatient) && _model.connectedUser.hospital.country != 'FR'}" includeInLayout="{(!_model.patientActive || _model.updatePatient) && _model.connectedUser.hospital.country != 'FR'}" hideEffect="Fade" showEffect="Fade">
- <mx:FormItem label="{resourceManager.getString( 'labels', 'label.ethnicGroup' )}" labelWidth="150">
- <mx:ComboBox id="ethnicGroupComboBox" prompt="{resourceManager.getString('labels', 'choose.ethnic.group')}" selectedIndex="-1" dataProvider="{_model.ethnic}" width="100%" />
- </mx:FormItem>
- </mx:VBox>
-
- <mx:VBox visible="{(_model.patientActive && !_model.updatePatient) && _model.connectedUser.hospital.country != 'FR'}" includeInLayout="{(_model.patientActive && !_model.updatePatient) && _model.connectedUser.hospital.country != 'FR'}" hideEffect="Fade" showEffect="Fade">
- <mx:FormItem label="{resourceManager.getString( 'labels', 'label.ethnicGroup' )}" labelWidth="150">
- <mx:Label text="{resourceManager.getString( 'ethnic', _model.patientSelected.ethnicGroup )}" styleName="fontBold" />
- </mx:FormItem>
- </mx:VBox>
-
- <mx:VBox visible="{!_model.patientActive || _model.updatePatient}" includeInLayout="{!_model.patientActive || _model.updatePatient}" hideEffect="Fade" showEffect="Fade">
- <mx:FormItem id="dateOfBirthDateText" label="{resourceManager.getString( 'labels', 'label.birthDate' )}" required="true" labelWidth="150">
- <mx:HBox>
- <mx:DateField id="dateOfBirthDateField"
- yearNavigationEnabled="true"
- editable="true"
- firstDayOfWeek="{resourceManager.getInt( 'labels', 'firstDay' )}"
- monthNames="{resourceManager.getStringArray( 'labels', 'monthNames' )}"
- dayNames="{resourceManager.getStringArray( 'labels', 'dayNames' )}"
- formatString="{resourceManager.getString( 'labels', 'date' )}"
- displayedYear="1960"
- disabledRanges="{_disabledRangesDateOfBirth}"
- minYear="{_minYearOfBirth}"
- maxYear="{_maxYearOfBirth}" />
- <mx:Label text="{resourceManager.getString( 'labels', 'formatDate' )}" />
- </mx:HBox>
- </mx:FormItem>
- </mx:VBox>
-
- <mx:VBox visible="{_model.patientActive && !_model.updatePatient}" includeInLayout="{_model.patientActive && !_model.updatePatient}" hideEffect="Fade" showEffect="Fade">
- <mx:FormItem label="{resourceManager.getString( 'labels', 'label.birthDate' )}" labelWidth="150">
- <mx:Label text="{dateFormatter.format( _model.patientSelected.birthDate )}" styleName="fontBold" />
- </mx:FormItem>
- </mx:VBox>
- <mx:VBox paddingTop="10" visible="{!_model.updatePatient}" includeInLayout="{!_model.updatePatient}" hideEffect="Fade" showEffect="Fade">
- <mx:FormItem label="{resourceManager.getString( 'labels', 'label.appointment.number' )}" labelWidth="150">
- <mx:Label id="visitNumberLabel" text="{_currentPatientVisit}" styleName="fontBold" />
- </mx:FormItem>
- </mx:VBox>
-
- <mx:VBox visible="{!_model.patientActive}" includeInLayout="{!_model.patientActive}" paddingBottom="15" hideEffect="Fade" showEffect="Fade">
- <mx:FormItem label="{resourceManager.getString( 'labels', 'label.visitDate' )}" labelWidth="150">
- <mx:DateField id="visitDateField"
- yearNavigationEnabled="false"
- editable="false"
- minYear="{_currentYear}"
- firstDayOfWeek="{resourceManager.getInt( 'labels', 'firstDay' )}"
- monthNames="{resourceManager.getStringArray( 'labels', 'monthNames' )}"
- dayNames="{resourceManager.getStringArray( 'labels', 'dayNames' )}"
- formatString="{resourceManager.getString( 'labels', 'date' )}"
- selectedDate="{new Date()}"
- disabledRanges="{_disabledRangesVisitDate}" />
- </mx:FormItem>
- </mx:VBox>
- <mx:VBox visible="{_model.patientActive && !_model.updatePatient}" includeInLayout="{_model.patientActive && !_model.updatePatient}" paddingBottom="15" hideEffect="Fade" showEffect="Fade">
- <mx:FormItem label="{resourceManager.getString( 'labels', 'label.visitDate' )}" labelWidth="150">
- <mx:Label id="dateAppointment" text="{dateFormatter.format( _model.appointmentSelected.date )}" styleName="fontBold" />
- </mx:FormItem>
- </mx:VBox>
-
- <mx:VBox visible="{!_model.patientActive && !_model.updatePatient}" includeInLayout="{!_model.patientActive && !_model.updatePatient}" hideEffect="Fade" showEffect="Fade">
- <mx:FormItem label="{resourceManager.getString( 'labels', 'label.ID' )}" labelWidth="150">
- <mx:Label id="uidPatientLabel" text="{FormatString.generateRandomUID()}" />
- </mx:FormItem>
- </mx:VBox>
-
- <mx:Spacer height="60" />
-
- <mx:Box horizontalAlign="center" paddingTop="50" width="100%">
- <mx:Button label="{resourceManager.getString( 'labels', 'button.createPatient' )}" keyDown="createPatient()" click="createPatient()" includeInLayout="{!_model.patientActive}" visible="{!_model.patientActive}" hideEffect="Fade" showEffect="Fade" />
- <mx:Button label="{resourceManager.getString( 'labels', 'modify' )}" click="modifyPatient()" includeInLayout="{_model.patientActive && !_model.updatePatient}" visible="{_model.patientActive && !_model.updatePatient}" hideEffect="Fade" showEffect="Fade" />
- <mx:Button label="{resourceManager.getString( 'labels', 'update' )}" click="updatePatient()" includeInLayout="{_model.patientActive && _model.updatePatient}" visible="{_model.patientActive && _model.updatePatient}" hideEffect="Fade" showEffect="Fade" />
- </mx:Box>
-
- </mx:VBox>
-
- </mx:VBox>
-
- </mx:Canvas>
- <!-- navigation link Vbox -->
- <mx:VBox height="100%" paddingRight="10" verticalAlign="middle">
- <mx:HBox click="navigationNext()" horizontalGap="0">
- <mx:HBox height="43" styleName="backgroundGreyTimeLine" verticalAlign="middle">
- <mx:LinkButton styleName="linkButtonGreyTimeLine" label="{resourceManager.getString( 'labels', 'timeline.ats' )}" />
- </mx:HBox>
- <mx:Image source="@Embed('images/patient/endArrowGreyTimeLine.png')" horizontalCenter="0" />
- </mx:HBox>
- </mx:VBox>
- </mx:HBox>
-
-
- </mx:VBox>
|