/** * Function used to initialize the form * Clear local context, clear global context, hide context menu options, etc * Initialize components */ public void initialize() throws FormOpenException { form.getLocalContext().setSelectedRecord(null); form.getLocalContext().setCurrentEditableRecord(null); form.getLocalContext().setUnendedRecordsExist(Boolean.FALSE); form.getLocalContext().setSelectedDiagnosisForPrimaryTumourDetails(null); form.getLocalContext().setSelectedGroup(null); form.getLocalContext().setSelectedSite(null); form.getLocalContext().setDataWasImported(Boolean.FALSE); // Initialize authoring component as required form.lyrMain().tabTumourDetails().ccAuthoring().setIsRequiredPropertyToControls(true); form.lyrMain().tabTumourDetails().ccAuthoring().setHcpType(HcpDisType.MEDICAL); // Initialize dynamic grid for TNM Pre Treatment staging initialiseDynamicGrdPreTreatment(); // Initialize dynamic grid for Overall initialiseDynamicGrdPrognostic(); // Initialize assessment custom control form.lyrMain().tabAssessment().ccTumourGroupAssessment().setReadOnly(true); }
public void initializeComponent() { setTooltips(); populateWards(); form.ccDischCons().initialize(MosType.MEDIC); form.ccAuthoring().setIsRequiredPropertyToControls(true); form.ccAuthoring().initializeComponent(HcpDisType.MEDICAL); clearInstanceControls(); form.getGlobalContext().Clinical.seteDischargeCompleted(false); form.getLocalContext().setisReadonly(false); form.getLocalContext().setbInitialised(null); }
protected void onCmbHCPTextSubmited(String value) throws PresentationLogicException { if (form.cmbDiscipline().getValue() != null) { PersonName voPname = new PersonName(); voPname.setSurname(value); HcpDisType voHCPDisciplineInstance = form.cmbDiscipline().getValue(); HcpLiteVoCollection hcpLiteColl = domain.listHcpLiteByNameAndDisciplineType(voPname.getSurname(), voHCPDisciplineInstance); if (hcpLiteColl != null) { form.cmbHCP().clear(); for (int i = 0; i < hcpLiteColl.size(); i++) { form.cmbHCP().newRow(hcpLiteColl.get(i), hcpLiteColl.get(i).getName().toString()); } if (hcpLiteColl.size() == 1) form.cmbHCP().setValue(hcpLiteColl.get(0)); else if (hcpLiteColl.size() > 1) form.cmbHCP().showOpened(); } } }
@Override protected void onQmbConsultantTextSubmited(String value) throws PresentationLogicException { if (value != null) { HcpFilter voHCPFilter = new HcpFilter(); PersonName name = new PersonName(); name.setSurname(value); voHCPFilter.setQueryName(name); voHCPFilter.setHcpType(HcpDisType.MEDICAL); HcpLiteVoCollection voColl = domain.listHCPs(voHCPFilter); voColl.sort(); form.qmbConsultant().clear(); for (int i = 0; i < voColl.size(); i++) { form.qmbConsultant().newRow(voColl.get(i), voColl.get(i).getIHcpName()); } if (voColl.size() == 1) form.qmbConsultant().setValue(voColl.get(0)); else if (voColl.size() > 1) form.qmbConsultant().showOpened(); } }
@Override protected void onQmbConsTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException { if (value != null) { HcpFilter voHCPFilter = new HcpFilter(); PersonName name = new PersonName(); name.setSurname(value); voHCPFilter.setQueryName(name); voHCPFilter.setHcpType(HcpDisType.MEDICAL); HcpLiteVoCollection voColl = domain.listHCPs(voHCPFilter); voColl.sort(); form.qmbCons().clear(); for (int i = 0; i < voColl.size(); i++) { form.qmbCons().newRow(voColl.get(i), voColl.get(i).getIHcpName()); } if (voColl.size() == 1) form.qmbCons().setValue(voColl.get(0)); else if (voColl.size() > 1) form.qmbCons().showOpened(); } }
@Override protected void onQmbConsultantTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException { if (value != null) { HcpFilter voHCPFilter = new HcpFilter(); PersonName name = new PersonName(); name.setSurname(value); voHCPFilter.setQueryName(name); voHCPFilter.setHcpType(HcpDisType.MEDICAL); HcpLiteVoCollection voColl = domain.listHCPs(voHCPFilter); voColl.sort(); form.qmbConsultant().clear(); for (int i = 0; i < voColl.size(); i++) { form.qmbConsultant().newRow(voColl.get(i), voColl.get(i).getName().toString()); } if (voColl.size() == 1) form.qmbConsultant().setValue(voColl.get(0)); else if (voColl.size() > 1) form.qmbConsultant().showOpened(); } }
private void cmbProfSerChangedValue() { form.lyrProServices().tabProfessional().cmbHcpSubType().clear(); form.lyrProServices().tabProfessional().qmbHcpName().clear(); form.getGlobalContext().COE.setSupportNetworkSelectedLocation(null); form.lyrProServices().tabProfessional().qmbHcpName().setEnabled(false); setProfessionAddress(null); clearProfessionalReadOnlyDetails(); if (form.lyrProServices().tabProfessional().cmbProfessional().getValue() == null) { return; } TreeNode[] childNodes = form.lyrProServices().tabProfessional().cmbProfessional().getValue().getChildren(); if (childNodes != null) { for (int p = 0; p < childNodes.length; p++) { HcpDisType lkChild = (HcpDisType) childNodes[p]; if (lkChild.isActive() == true) { form.lyrProServices().tabProfessional().cmbHcpSubType().newRow(lkChild, lkChild.getText()); } } } }
/** * WDEV-13876 * List reviewing HCP (only active HCP marked as responsible HCP) */ public HcpLiteVoCollection listReviewingHCP(String name) { if (name == null || name.length() == 0) return null; ArrayList<String> paramNames = new ArrayList<String>(); ArrayList<Object> paramValues = new ArrayList<Object>(); String query = "SELECT hcp FROM Hcp AS hcp LEFT JOIN hcp.mos AS mos WHERE mos.name.upperSurname LIKE :HCP_NAME AND hcp.isActive = 1 AND hcp.hcpType.id = :MEDIC_TYPE ORDER BY mos.name.upperSurname"; paramNames.add("HCP_NAME"); paramValues.add(name.toUpperCase() + "%"); paramNames.add("MEDIC_TYPE"); paramValues.add(HcpDisType.MEDICAL.getID()); return HcpLiteVoAssembler.createHcpLiteVoCollectionFromHcp(getDomainFactory().find(query, paramNames, paramValues)); }
private void populateDataFromScreenVoSpecific(Hcp value) { if (value instanceof NurseVo) { populateDataFromScreenVoSpecific((NurseVo)value); } else if (value instanceof MedicVo) { populateDataFromScreenVoSpecific((MedicVo)value); } else if (value instanceof TherapistVo) { populateDataFromScreenVoSpecific((TherapistVo)value); } else { value.setHcpType(form.lyrDetails().tabHcp().cmbHcpType().getValue()!=null?form.lyrDetails().tabHcp().cmbHcpType().getValue():HcpDisType.OTHER); // WDEV-13888 value.setIsHCPaResponsibleHCP(form.lyrDetails().tabHcp().chkIsOtherDisciplineResponsibleHCP().getValue()); } }
private void updateControlsState() { form.getContextMenus().getFluidBalanceNEW_FLUIDItem().setVisible(true); form.getContextMenus().getFluidBalanceUPDATE_FLUIDItem().setVisible(form.grdDetails().getValue() instanceof FluidBalanceInstanceVo); form.getContextMenus().getFluidBalanceCONFIRMItem().setVisible(form.grdDetails().getValue() instanceof SignatoryShiftDetailsVo); //Cant be a student nurse MemberOfStaffShortVo mos = (MemberOfStaffShortVo)domain.getMosUser(); if (mos != null && mos.getHcpIsNotNull()) { if (mos.getHcp() instanceof NurseVo) { if (HcpDisType.STUDENTNURSE.equals(((NurseVo) mos.getHcp()).getNurseType())) form.getContextMenus().getFluidBalanceCONFIRMItem().setVisible(false); } } //Check is already confirmed if (form.grdDetails().getValue() instanceof SignatoryShiftDetailsVo && ((SignatoryShiftDetailsVo)form.grdDetails().getValue()).getDateTimeSignedIsNotNull()) form.getContextMenus().getFluidBalanceCONFIRMItem().setVisible(false); }
@Override protected void onQmbHCPTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException { if (value != null) { HcpFilter voHCPFilter = new HcpFilter(); PersonName name = new PersonName(); name.setSurname(value); voHCPFilter.setQueryName(name); voHCPFilter.setHcpType(HcpDisType.MEDICAL); HcpLiteVoCollection voColl = domain.listHCPs(voHCPFilter); voColl.sort(); form.qmbHCP().clear(); for (int i = 0; i < voColl.size(); i++) { form.qmbHCP().newRow(voColl.get(i), voColl.get(i).getIHcpName()); } if (voColl.size() == 1) form.qmbHCP().setValue(voColl.get(0)); else if (voColl.size() > 1) form.qmbHCP().showOpened(); } }
private void populateDataFromScreenVoSpecific(MedicVo value) { value.setHcpType(HcpDisType.MEDICAL); value.setMedicType(form.lyrDetails().tabMedic().cmbMedicType().getValue()); value.setSpecialty(form.lyrDetails().tabMedic().cmbMedicSpecialty().getValue()); value.setGrade(form.lyrDetails().tabMedic().cmbMedicGrade().getValue()); // WDEV-13888 value.setIsHCPaResponsibleHCP(form.lyrDetails().tabMedic().chkIsMedicResponsibleHCP().getValue()); //WDEV-15544 value.setIsALocalConsultant(form.lyrDetails().tabMedic().chkIsLocalConsultant().getValue()); //WDEV-15899 value.setIsAResponsibleEDClinician(form.lyrDetails().tabMedic().chkEdResponsibleTabMedic().getValue()); //WDEV-12587 if(value.getMosIsNotNull()) value.getMos().setCanReferPatient(form.lyrDetails().tabMedic().chkCanReferPatient().getValue()); else form.getGlobalContext().Admin.setCanReferPatient(form.lyrDetails().tabMedic().chkCanReferPatient().getValue()); }
public void initialize() throws ims.framework.exceptions.FormOpenException { super.initialize(); // ------------------------------------------- form.getLocalContext().setCurrentRecord(null); // ------------------------------------------- form.ccAuthInfo().setIsRequiredPropertyToControls(true); form.getLocalContext().setisAnaesthetist(false); Object medic = domain.getHcpUser(); if (medic instanceof MedicVo) { if (((MedicVo) medic).getMedicTypeIsNotNull() && ((MedicVo) medic).getMedicType().equals(HcpDisType.ANAESTHETIST)) { form.getLocalContext().setisAnaesthetist(true); } } form.getLocalContext().setLoggedInHcp(medic instanceof HcpRefVo ? (HcpRefVo) medic : null); initGridComments(); }
public IMos[] listMOS(String name, MosType mosType, HcpDisType mosDiscipline, Integer mosLocation, Boolean canReferPatient,Boolean isALocalConsultant,Boolean isResponsibleHcp) { if(name == null || (name != null && name.length() == 0)) throw new DomainRuntimeException("Can not search on null name."); if(mosType == null) mosType = MosType.ALL; if(mosType.equals(MosType.HCP)) { return listHCP(name, null, mosDiscipline, mosLocation, canReferPatient,isALocalConsultant,isResponsibleHcp);//WDEV-15544 //WDEV-15194 } if(mosType.equals(MosType.MEDIC)) { return listHCP(name, MEDIC, null, mosLocation, canReferPatient,isALocalConsultant,isResponsibleHcp);//WDEV-15544 //WDEV-15194 } return listAllMOS(name); }
private IMos[] listHCP(String name, String subClass, HcpDisType mosDiscipline, Integer mosLocation, Boolean canReferPatient,Boolean isALocalConsultant,Boolean isResponsibleHcp) { List hcps = listHCPList(name, subClass, mosDiscipline, mosLocation, canReferPatient,isALocalConsultant,isResponsibleHcp);//WDEV-15544 //WDEV-15194 if(mosDiscipline != null || subClass != null) { return listByDiscipline(hcps, name, mosDiscipline); } /*if(mosLocation!=null){ HcpCollection collHcps = listMOSByPrimaryLocation(HcpAssembler.createHcpCollectionFromHcp(hcps), mosLocation); DomainFactory factory = getDomainFactory(); hcps = HcpAssembler.extractHcpList(factory, collHcps); } */ return (HcpLiteVoAssembler.createHcpLiteVoCollectionFromHcp(hcps)).sort().toIMosArray(); }
public ims.core.vo.HcpLiteVoCollection listReviewingHCP(String name) { if (name == null || name.length() == 0) return null; ArrayList<String> paramNames = new ArrayList<String>(); ArrayList<Object> paramValues = new ArrayList<Object>(); String query = "SELECT hcp FROM Hcp AS hcp LEFT JOIN hcp.mos AS mos WHERE (mos.name.upperSurname LIKE :HCP_NAME OR mos.name.upperForename LIKE :HCP_NAME) AND hcp.isActive = 1 AND hcp.hcpType.id = :MEDIC_TYPE ORDER BY mos.name.upperSurname"; paramNames.add("HCP_NAME"); paramValues.add(name.toUpperCase() + "%"); paramNames.add("MEDIC_TYPE"); paramValues.add(HcpDisType.MEDICAL.getID()); return HcpLiteVoAssembler.createHcpLiteVoCollectionFromHcp(getDomainFactory().find(query, paramNames, paramValues)); }
private void startClinicianAssessment(TrackingForClinicianWorklistVo tracking) { if (tracking == null) return; HcpLiteVo hcpUser = (HcpLiteVo) domain.getHcpLiteUser(); if (hcpUser == null || !HcpDisType.MEDICAL.equals(hcpUser.getHcpType())) { engine.open(form.getForms().Emergency.EDSeenByAndCompleteDialog);//WDEV-16816 return; } else { //WDEV-16816 // Attempt to save created SeenByHcp to tracking if (saveSeenByHcp(tracking, new MedicRefVo(hcpUser.getID_Hcp(), hcpUser.getVersion_Hcp()))) { // Refresh screen open(); } } }
private void startClinicianAssessment(TrackingForClinicianWorklistAndTriageVo tracking) { if (tracking == null) return; HcpLiteVo hcpUser = (HcpLiteVo) domain.getHcpLiteUser(); if (hcpUser == null || !HcpDisType.MEDICAL.equals(hcpUser.getHcpType())) { //engine.open(form.getForms().Emergency.AllocatedMedicDialog); return; } else { // Attempt to save created AllocatedMedic to tracking if (saveSeenByHcp(tracking, new MedicRefVo(hcpUser.getID_Hcp(), hcpUser.getVersion_Hcp())))//WDEV-16816 { // Refresh screen open(); } } }
@Override protected void onBtnStartTriageClick() throws PresentationLogicException { //wdev-15930 form.getLocalContext().setAllocatedNurse(null); if(domain.getHcpUser() instanceof Hcp) { Hcp temp = (Hcp)domain.getHcpUser(); if(temp != null) { HcpDisType hcptype =getParentNodeHcp(temp.getHcpType()); if( hcptype != null && hcptype.equals(HcpDisType.NURSING)) form.getLocalContext().setAllocatedNurse(new SeenByHCPVo());//wdev-16816 } } //--------- if( saveTracking()) { open(); //wdev-15930 if( form.getLocalContext().getAllocatedNurse() == null ) engine.open(form.getForms().Emergency.EDSeenByAndCompleteDialog, new Object[]{Boolean.TRUE}); //wdev-15930 //WDEV-16816 } }
private void cmbProfSerChangedValue() { form.lyrSupportServices().tabPageProf().cmbHcpSubType().clear(); form.lyrSupportServices().tabPageProf().qmbHcpName().clear(); form.getGlobalContext().COE.setSupportNetworkSelectedLocation(null); form.lyrSupportServices().tabPageProf().qmbHcpName().setEnabled(false); setProfessionAddress(null); clearProfessionalReadOnlyDetails(); if (form.lyrSupportServices().tabPageProf().cmbProfessional().getValue() == null) { return; } TreeNode[] childNodes = form.lyrSupportServices().tabPageProf().cmbProfessional().getValue().getChildren(); if (childNodes != null) { for (int p = 0; p < childNodes.length; p++) { HcpDisType lkChild = (HcpDisType) childNodes[p]; if (lkChild.isActive() == true) { form.lyrSupportServices().tabPageProf().cmbHcpSubType().newRow(lkChild, lkChild.getText()); } } } }
private void loadTherapistPresentCombo() { form.cmbTherapistPresent().clear(); Hcp filter = new Hcp(); filter.setHcpType(HcpDisType.THERAPY); HcpCollection collVoHcp = domain.listHcps(filter); if(collVoHcp != null) { for (int i = 0; i < collVoHcp.size(); i++) { form.cmbTherapistPresent().newRow(collVoHcp.get(i), collVoHcp.get(i).getName().toString()); } } }
/** * Function used to present the form */ public void open(HcpDisType discipline) { // Clear screen clearScreen(); // Set discipline to combobox form.cmbDiscipline().setValue(discipline); // Populate the screen with Patient ICP populateICP(form.getLocalContext().getICP(), discipline); // Reselect form.dyngrdICP().setValue(form.getLocalContext().getSelection()); // Update controls state updateControlsState(); }
private void loadHcps(grdFuturePlanRow row, String text) { HcpFilter voFilter = new HcpFilter(); PersonName voName = new PersonName(); voName.setSurname(text); voFilter.setQueryName(voName); voFilter.setHcpType(HcpDisType.MEDICAL); HcpLiteVoCollection voColl = domain.listHCPs(voFilter); row.getColHCP().clear(); for (int i = 0; voColl != null && i < voColl.size(); i++) row.getColHCP().newRow(voColl.get(i), voColl.get(i).getName().toString()); if (voColl != null && voColl.size() == 1) row.getColHCP().setValue(voColl.get(0)); else if (voColl != null && voColl.size() > 1) row.getColHCP().showOpened(); }
/** * Function used to initialize the ICP Action Discipline combobox Will only * permit selection of top level ICP Action discipline */ private void initializeICPActionDisciplineComboBox() { // Clear disciplines from check list form.ctnConfiguration().lyrICPTabs().Action().chklistActionDiscipline().clear(); // Get all the values for ICP Action discipline HcpDisTypeCollection disciplines = LookupHelper.getHcpDisType(domain.getLookupService()); if (disciplines == null) return; // Populate the check list with discipline for (int i = 0; i < disciplines.size(); i++) { HcpDisType discipline = disciplines.get(i); // Skip null disciplines or disciplines that are not root nodes if (discipline == null || discipline.getParent() != null) continue; form.ctnConfiguration().lyrICPTabs().Action().chklistActionDiscipline().newRow(discipline); } }
private void initializeDisciplineCombobox() { // Clear disciplines from combo-box list form.lyrMain().tabPageActions().cmbDiscipline().clear(); // Get all the values for ICP Action discipline HcpDisTypeCollection disciplines = LookupHelper.getHcpDisType(domain.getLookupService()); if (disciplines == null) return; // Populate the check list with discipline for (int i = 0; i < disciplines.size(); i++) { HcpDisType discipline = disciplines.get(i); // Skip null disciplines or disciplines that are not root nodes if (discipline == null || discipline.getParent() != null) continue; form.lyrMain().tabPageActions().cmbDiscipline().newRow(discipline, discipline.getText()); } }
private boolean isActionEditable(PatientICPActionLiteVo action) { if (action == null) return false; HcpDisType disciplineType = form.getLocalContext().getDisciplineType(); if (disciplineType == null || !action.getActionIsNotNull() || !action.getAction().getDisciplineIsNotNull()) return false; for (int i = 0; i < action.getAction().getDiscipline().size(); i++) { HcpDisType actionDiscipline = action.getAction().getDiscipline().get(i); if (actionDiscipline.getID() == disciplineType.getID()) return true; if (disciplineType.getParent() != null && actionDiscipline.getID() == disciplineType.getParent().getID()) return true; } return false; }
/** * Checks if the provided action can be edited by current user * * @param action * - Action to be checked; if the action passed is null the function will return false * @return - returns true if the current user has the same discipline */ private boolean isActionEditable(PatientICPActionViewVo action) { if (action == null) return false; HcpDisType disciplineType = form.getLocalContext().getDisciplineType(); if (disciplineType == null || !action.getActionIsNotNull() || !action.getAction().getDisciplineIsNotNull()) return false; for (int i = 0; i < action.getAction().getDiscipline().size(); i++) { HcpDisType actionDiscipline = action.getAction().getDiscipline().get(i); if (actionDiscipline.getID() == disciplineType.getID()) return true; if (disciplineType.getParent() != null && actionDiscipline.getID() == disciplineType.getParent().getID()) return true; } return false; }
private void newInstance() { if(isRACPCComplete())// WDEV-13662 return; // populate Cardiologist and Clinic Doctor Object objectHcpUser = domain.getHcpUser(); if (objectHcpUser instanceof Hcp) { Hcp hcpUser = (Hcp) objectHcpUser; if(HcpDisType.MEDICAL.equals(hcpUser.getHcpType())) { form.ccClinicDoctor().setValue(hcpUser); form.ccCardiologist().setValue(hcpUser); } } CareContextForRACPCReferralVo objRACPCReferralCareContext = domain.getCareContext(form.getGlobalContext().Core.getCurrentCareContext()); if (objRACPCReferralCareContext != null) if (objRACPCReferralCareContext.getPasEvent() != null) populateFromPASEvent(objRACPCReferralCareContext.getPasEvent()); form.getLocalContext().setCurrentRecord(null); form.setMode(FormMode.EDIT); }
private void loadTherapistCombo() { form.cboTherapist().clear(); HcpLiteVoCollection voHCPColl = domain.listHcpLiteByDisciplineType(HcpDisType.THERAPY); if(voHCPColl != null) { for (int i = 0; i < voHCPColl.size(); i++) { addNewTherapist(voHCPColl.get(i)); } } }
private void initialise() { // WDEV-12293 - Get service for CatsReferral (but we need to pass the CareContext id as the CatsReferral is not available in context) // and default the speciality combo box to it Specialty specialty = domain.getReferralSpecialty(form.getGlobalContext().Scheduling.getBookingAppointmentRef()); form.cmbSpecialty().setValue(specialty); if (form.getGlobalContext().RefMan.getDayCaseAdmApptDateIsNotNull() && form.getGlobalContext().RefMan.getDayCaseAdmApptTimeIsNotNull()) form.dtimAdmDateTime().setValue(new DateTime(form.getGlobalContext().RefMan.getDayCaseAdmApptDate(), new Time(form.getGlobalContext().RefMan.getDayCaseAdmApptTime()))); else if (form.getGlobalContext().RefMan.getDayCaseAdmApptDateIsNotNull() && form.getGlobalContext().RefMan.getDayCaseAdmApptTime() == null) form.dtimAdmDateTime().setValue(new DateTime(form.getGlobalContext().RefMan.getDayCaseAdmApptDate(), new Time())); else form.dtimAdmDateTime().setValue(new DateTime()); populateWardCombo(); HcpLiteVo hcpLiteVo = (HcpLiteVo) domain.getHcpLiteUser(); if (hcpLiteVo != null && hcpLiteVo.getHcpTypeIsNotNull() && hcpLiteVo.getHcpType().equals(HcpDisType.MEDICAL)) { MedicLiteVo vo = new MedicLiteVo(hcpLiteVo.getID_Hcp(), hcpLiteVo.getVersion_Hcp()); form.qmbConsultant().newRow( vo, hcpLiteVo.getName().toString()); form.qmbConsultant().setValue(vo); } }
private HcpDisType getParentNodeHcp(HcpDisType hcpvo) { if(hcpvo == null) return null; if(hcpvo.getParent() == null) return hcpvo; else return getParentNodeHcp(hcpvo.getParent()); }
private void initialize() { form.ccAdmittingNurse().initialize(MosType.HCP,HcpDisType.NURSING); form.ccConfirmedBy().initialize(MosType.ALL); form.ccDischarged().initialize(MosType.ALL); //form.getLocalContext().setisOpenCarePlan(false); CarePlanCollection carePlColl = domain.getCareplans(form.getGlobalContext().Core.getCurrentCareContext()); form.getLocalContext().setisOpenCarePlan(iterateCarePlanCollection(carePlColl)); //WDEV-13846 form.getLocalContext().setclinicalAdmission(null); form.getLocalContext().setlocalContextForRie(null); }
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException { if(!isCurrentCCLinkedToPASEvent()) { engine.showMessage("Patient is not a current inpatient"); } form.setMode(FormMode.EDIT); form.getLocalContext().setbuttonAction(1); clearInstanceControls(); populateGridAction(null); form.getLocalContext().setclinicalAdmission(null); form.getLocalContext().setlocalContextForRie(null);//WDEV-13846 populatePASEventDetails(getPASDetails()); // WDEV-10976 updateControlsState(); //wdev-11945 if(domain.getHcpUser() instanceof Hcp) { Hcp temp = (Hcp)domain.getHcpUser(); if(temp != null) { HcpDisType hcptype =getParentNodeHcp(temp.getHcpType()); if( hcptype != null && hcptype.equals(HcpDisType.NURSING)) form.ccAdmittingNurse().setValue((NurseVo)domain.getNurse(temp)); } } //------ }
public void initialize() throws ims.framework.exceptions.FormOpenException { form.lyrMain().tabCareRecord().ccActualProcedurePerformed().setCodingItemType(CodingItemType.PROCEDURE); form.lyrMain().tabCareRecord().ccActualProcedurePerformed().setHotlist(new Boolean(false)); form.lyrMain().tabCareRecord().ccActualProcedurePerformed().setIsRequired(true); form.lyrMain().tabCareRecord().ccPlannedProcedure().setCodingItemType(CodingItemType.PROCEDURE); form.lyrMain().tabCareRecord().ccPlannedProcedure().setHotlist(new Boolean(false)); form.lyrMain().tabCareRecord().ccPlannedProcedure().setIsRequired(true); form.lyrMain().tabCareRecord().ccSurgeon().initialize(MosType.HCP); form.lyrMain().tabCareRecord().ccSurgeonAssistant().initialize(MosType.HCP); form.lyrMain().tabCareRecord().ccAnaesthetist().initialize(MosType.HCP); form.lyrMain().tabCareRecord().ccODAODP().initialize(MosType.HCP); form.lyrMain().tabCareRecord().ccScrubNurse().initialize(MosType.HCP, HcpDisType.NURSING); form.lyrMain().tabCareRecord().ccCirculatingNurse().initialize(MosType.HCP, HcpDisType.NURSING); form.getLocalContext().setAllMedications(domain.listMedicationsForSpeciality(Specialty.CATARACT)); form.getLocalContext().setAllAnaesthetics(LookupHelper.getLocalAnaesthetic(domain.getLookupService())); form.getLocalContext().setAllSkinPreparations(LookupHelper.getSkinPreparationused(domain.getLookupService())); initDynGridMedication(); initDynGridAnaesthetic(); initDynGridSkinPreparation(); loadTheatreCombo(); populateCataractIntraOperativeDetails(null); // rebindColMedication(); }
protected void onDyngrdDosesCellTextSubmited(DynamicGridCell cell) { if(cell.getType().getID() == DynamicCellType.QUERYCOMBOBOX.getID()) { cell.getItems().clear(); HcpFilter filter = new HcpFilter(); PersonName name = new PersonName(); name.setSurname(cell.getTypedText()); filter.setQueryName(name); filter.setHcpType(HcpDisType.MEDICAL); HcpCollection voHCPColl = domain.listHcps(filter); if(voHCPColl != null) { for (int i = 0; i < voHCPColl.size(); i++) { cell.getItems().newItem(voHCPColl.get(i)); } if (voHCPColl.size() == 1) { cell.setValue(voHCPColl.get(0)); } else if (voHCPColl.size() > 1) { cell.showOpened(); } } } }
private void listHCPs(String value) { form.ctnDetails().lyrDetails().tabDetailsTeam().qmbTeamLead().clear(); MemberOfStaffShortVo voFilter = new MemberOfStaffShortVo(); if (value != null) { PersonName voName = new PersonName(); voName.setSurname(value); voFilter.setName(voName); } HcpLiteVoCollection voCollHCPLites = new HcpLiteVoCollection(); if (form.ctnDetails().lyrDetails().tabDetailsTeam().cmbTeamType().getValue() != null && form.ctnDetails().lyrDetails().tabDetailsTeam().cmbTeamType().getValue().equals(ClinicalTeamType.CONSULTANTTEAM)) { Hcp voHcp = new Hcp(); voHcp.setHcpType(HcpDisType.MEDICAL); voFilter.setHcp(voHcp); } voCollHCPLites = domain.listHcpLites(voFilter); for (int i = 0; i < voCollHCPLites.size(); i++) form.ctnDetails().lyrDetails().tabDetailsTeam().qmbTeamLead().newRow(voCollHCPLites.get(i), voCollHCPLites.get(i).getMos().getName().toString()); if (voCollHCPLites.size() == 1) { form.ctnDetails().lyrDetails().tabDetailsTeam().qmbTeamLead().setValue(voCollHCPLites.get(0)); } else if (voCollHCPLites.size() > 1) form.ctnDetails().lyrDetails().tabDetailsTeam().qmbTeamLead().showOpened(); }
@Override protected void onSurgeonComboTextSubmitted(String value) throws ims.framework.exceptions.PresentationLogicException { form.qmbOpSurgeon().clear(); HcpLiteVoCollection result = domain.listHCPS(HcpDisType.MEDICAL, value); if (result == null ) return; for (int i=0 ; i< result.size() ; i++) { form.qmbOpSurgeon().newRow(result.get(i), result.get(i).getIMosName()); } if (result.size()==1) { form.qmbOpSurgeon().setValue(result.get(0)); // WDEV-11862 // Clear procedures not saved yet clearUnsavedProcedures(); updateControlsState(); } else { form.qmbOpSurgeon().showOpened(); } }