Java 类ims.core.vo.MemberOfStaffVo 实例源码

项目:AvoinApotti    文件:MOSQueryImpl.java   
private HcpCollection listMOSByPrimaryLocation(HcpCollection collHCPs, LocationLiteVo mosLocation) {

    HcpCollection collHCPsForLocation = new HcpCollection();
    MosAdmin impl = (MosAdmin)getDomainImpl(MosAdminImpl.class);
    for (int i = 0; i < collHCPs.size(); i++)
    {
        MemberOfStaffVo mos = impl.getMemberOfStaff(collHCPs.get(i).getMos());
        for (int j = 0; j < mos.getLocations().size(); j++)
        {
            HcpLocationVo hcpLocation = mos.getLocations().get(j);
            if(hcpLocation.getIsPrimaryIsNotNull() && hcpLocation.getIsPrimary()){

                if(mosLocation.getID_Location().equals(hcpLocation.getLocation().getID_Location()))
                    collHCPsForLocation.add(collHCPs.get(i));
            }
        }
    }

    return collHCPsForLocation;
}
项目:AvoinApotti    文件:Logic.java   
private void populateOrganisationTree() 
{   
    OrganisationVoCollection voColl = domain.listRootOrgs().sort();     
    initializeGrid();
    new OrganisationLocationHelper(form.getImages().Admin.Organisation, form.getImages().Admin.LocationSite, form.getImages().Admin.Location).populatOrganisationLocationDynamicGrid(form.dyngrdOrganisationLocation(), voColl, true);

    fillAccreditationCombos();

    form.dyngrdOrganisationLocation().getRows().expandAll();    

    HcpLocationVoCollection voCollHcpLocations = null;
    MemberOfStaffVo mos = form.getGlobalContext().Admin.getSelectedMos();
    if (mos != null)
    {
        voCollHcpLocations = mos.getLocations();    
        setHcpLocationsInGrid(voCollHcpLocations);
    }       
}
项目:AvoinApotti    文件:Logic.java   
private void open()
{
    // set selection back
    if (form.getGlobalContext().Admin.getSelectedMosIsNotNull() && form.GroupTreeFilter().getValue().equals(GenForm.GroupTreeFilterEnumeration.rdoMemberOfStaff))//WDEV-15437
    {
        form.lyrLHS().tabMos().treMemberOfStaff().clear();
        MemberOfStaffVo MOS = form.getGlobalContext().Admin.getSelectedMos(); //WDEV-15658
        form.lyrLHS().tabMos().customControlMosSearch().setActionEvent(MOSSearchLastAction.CLEAR_CLICKED); //WDEV-15658
        form.lyrLHS().tabMos().customControlMosSearch().clear(); //WDEV-15658
        addMosNode(MOS);
        form.lyrLHS().tabMos().treMemberOfStaff().setValue(MOS);
        selectionChanged(form.lyrLHS().tabMos().treMemberOfStaff().getSelectedNode());
        return;
    }

    if (form.GroupTreeFilter().getValue().equals(GenForm.GroupTreeFilterEnumeration.rdoMemberOfStaff))
    {
        clearMosTree();
        showMosView();
    }
    else
    {
        populateOrganisationTree();
        showOrganisationView();
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onImbSetLocsClick() throws PresentationLogicException
{
    MemberOfStaffShortVo voMos = form.getGlobalContext().Admin.getSelectedMos();

    populateMosVoFromScreen(voMos);// Need to ensure StaffType is set wdev-3971

    if (voMos != null)
    {
        form.getLocalContext().setbAdding(Boolean.FALSE);
        if (voMos.getID_MemberOfStaffIsNotNull())
        {
            MemberOfStaffVo voCouldContainsUnsavedLocationAccreditationMos = form.getGlobalContext().Admin.getSelectedMos();
            //setContextVariables(voMos); WDEV-16222
            mergeSavedAccreditation(voCouldContainsUnsavedLocationAccreditationMos);
        }

        if (ConfigFlag.DOM.ENABLE_EXCHEQUER_CODES_VALIDATION.getValue())
            engine.open(form.getForms().Admin.MOSHospitalAccreditationDialog);
        else
            engine.open(form.getForms().Admin.MosOrganisationDlg, new Object[]{Boolean.FALSE});
    }
}
项目:AvoinApotti    文件:Logic.java   
private void mergeSavedAccreditation(MemberOfStaffVo voCouldContainsUnsavedLocationAccreditationMos)
{
    MemberOfStaffVo voMos = form.getGlobalContext().Admin.getSelectedMos();

    for (int j = 0; voCouldContainsUnsavedLocationAccreditationMos.getLocationsIsNotNull() && j < voCouldContainsUnsavedLocationAccreditationMos.getLocations().size(); j++)
    {
        HcpLocationVo voLoc = voCouldContainsUnsavedLocationAccreditationMos.getLocations().get(j);

        Boolean bFound = false;
        for (int i = 0; voMos.getLocationsIsNotNull() && i < voMos.getLocations().size(); i++)
        {
            if (voLoc.equals(voMos.getLocations().get(i)))
                bFound = true;
        }

        if (!bFound)
        {
            if (form.getGlobalContext().Admin.getSelectedMos().getLocations() == null)
                form.getGlobalContext().Admin.getSelectedMos().setLocations(new HcpLocationVoCollection());

            form.getGlobalContext().Admin.getSelectedMos().getLocations().add(voCouldContainsUnsavedLocationAccreditationMos.getLocations().get(j));
        }
    }

}
项目:AvoinApotti    文件:MosAdminImpl.java   
public MemberOfStaffVo getMemberOfStaff(MemberOfStaffShortVo mos)
{
    MemberOfStaffVo newMosVo = new MemberOfStaffVo();
    if (mos.getID_MemberOfStaff() == null)
    {
        MemberOfStaffShortVoAssembler.copy(newMosVo, mos);
        return newMosVo;
    }

    DomainFactory factory = getDomainFactory();
    MemberOfStaff mosDo = (MemberOfStaff)factory.getDomainObject(MemberOfStaff.class, mos.getID_MemberOfStaff().intValue());
    MemberOfStaffVo mosVo = MemberOfStaffVoAssembler.create(mosDo);
    if (mosVo.getHcpIsNotNull())
    {
        HcpFilter voFilter = new HcpFilter();
        voFilter.setID_Hcp(mosVo.getHcp().getID_Hcp());
        ims.core.vo.Hcp vohcp = getHcp(voFilter);
        mosVo.setHcp(vohcp);
    }
    return mosVo;
}
项目:AvoinApotti    文件:MosAdminImpl.java   
public MemberOfStaffVo getMemberOfStaffByTaxonomyType(String extId, TaxonomyType taxonomyType)
{
    MemberOfStaff domMos = getDomMosByTaxonomyType(extId, taxonomyType);
    if (domMos == null)
        return null;

    MemberOfStaffVo mosVo = MemberOfStaffVoAssembler.create(domMos);
    ims.core.vo.Hcp hcp = null;
    if (domMos.getHcp() instanceof Medic)
    {
        hcp = MedicVoAssembler.create((Medic)domMos.getHcp());
    }
    else if (domMos.getHcp() instanceof Nurse)
    {
        hcp = NurseVoAssembler.create((Nurse)domMos.getHcp());
    }
    else if (domMos.getHcp() instanceof Therapist)
    {
        hcp = TherapistVoAssembler.create((Therapist)domMos.getHcp());
    }
    mosVo.setHcp(hcp);
    return mosVo;       
}
项目:AvoinApotti    文件:Logic.java   
private boolean testDiscipline()
{
    MemberOfStaffVo fullVo = null;
    MemberOfStaffShortVo mos = (MemberOfStaffShortVo)domain.getMosUser();
    if (mos != null)
        fullVo = domain.getMemberOfStaff(mos);

    if (fullVo != null)
    {
        if (fullVo.getHcpIsNotNull())
        {
            if (fullVo.getHcp().getHcpTypeIsNotNull())
            {
                if (form.customControlAuthoring().getValue() != null &&
                        form.customControlAuthoring().getValue().getAuthoringHcpIsNotNull() &&
                            form.customControlAuthoring().getValue().getAuthoringHcp().getHcpTypeIsNotNull())
                {
                    if (form.customControlAuthoring().getValue().getAuthoringHcp().getHcpType().equals(fullVo.getHcp().getHcpType()))
                        return true;
                }                   
            }               
        }
    }
    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean testDiscipline(ClinicalNotesShortVo voNote)
{
    MemberOfStaffVo fullVo = null;
    MemberOfStaffShortVo mos = (MemberOfStaffShortVo)domain.getMosUser();
    if (mos != null)
        fullVo = domain.getMemberOfStaff(mos);

    if (fullVo != null)
    {
        if (fullVo.getHcpIsNotNull())
        {
            if (fullVo.getHcp().getHcpTypeIsNotNull())
            {
                if (voNote.getAuthoringInfoIsNotNull() &&
                        voNote.getAuthoringInfo().getAuthoringHcpIsNotNull() &&
                            voNote.getAuthoringInfo().getAuthoringHcp().getHcpTypeIsNotNull())
                {
                    if (voNote.getAuthoringInfo().getAuthoringHcp().getHcpType().equals(fullVo.getHcp().getHcpType()))
                        return true;
                }
            }
        }
    }
    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean testIpDiscipline()
{
    MemberOfStaffVo fullVo = null;
    MemberOfStaffShortVo mos = (MemberOfStaffShortVo) domain.getMosUser();
    if (mos != null)
        fullVo = domain.getMemberOfStaff(mos);

    if (fullVo != null)
    {
        if (fullVo.getHcpIsNotNull())
        {
            if (fullVo.getHcp().getHcpTypeIsNotNull())
            {
                if (form.lyrTabs().tabClinicalNotes().customControlClinicalNotesAuthoiring().getValue() != null && form.lyrTabs().tabClinicalNotes().customControlClinicalNotesAuthoiring().getValue().getAuthoringHcpIsNotNull() && form.lyrTabs().tabClinicalNotes().customControlClinicalNotesAuthoiring().getValue().getAuthoringHcp().getHcpTypeIsNotNull())
                {
                    if (form.lyrTabs().tabClinicalNotes().customControlClinicalNotesAuthoiring().getValue().getAuthoringHcp().getHcpType().equals(fullVo.getHcp().getHcpType()))
                        return true;
                }
            }
        }
    }
    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean testOpDiscipline()
{
    MemberOfStaffVo fullVo = null;
    MemberOfStaffShortVo mos = (MemberOfStaffShortVo) domain.getMosUser();
    if (mos != null)
        fullVo = domain.getMemberOfStaff(mos);

    if (fullVo != null)
    {
        if (fullVo.getHcpIsNotNull())
        {
            if (fullVo.getHcp().getHcpTypeIsNotNull())
            {
                if (form.lyrTabs().tabOPDNote().customControlOPAuthoring().getValue() != null && form.lyrTabs().tabOPDNote().customControlOPAuthoring().getValue().getAuthoringHcpIsNotNull() && form.lyrTabs().tabOPDNote().customControlOPAuthoring().getValue().getAuthoringHcp().getHcpTypeIsNotNull())
                {
                    if (form.lyrTabs().tabOPDNote().customControlOPAuthoring().getValue().getAuthoringHcp().getHcpType().equals(fullVo.getHcp().getHcpType()))
                        return true;
                }
            }
        }
    }
    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean testDiscipline()
{
    MemberOfStaffVo fullVo = null;
    MemberOfStaffShortVo mos = (MemberOfStaffShortVo)domain.getMosUser();
    if (mos != null)
        fullVo = domain.getMemberOfStaff(mos);

    if (fullVo != null)
    {
        if (fullVo.getHcpIsNotNull())
        {
            if (fullVo.getHcp().getHcpTypeIsNotNull())
            {
                if (form.customControlAuthoring().getValue() != null &&
                        form.customControlAuthoring().getValue().getAuthoringHcpIsNotNull() &&
                            form.customControlAuthoring().getValue().getAuthoringHcp().getHcpTypeIsNotNull())
                {
                    if (form.customControlAuthoring().getValue().getAuthoringHcp().getHcpType().equals(fullVo.getHcp().getHcpType()))
                        return true;
                }                   
            }               
        }
    }
    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean testDiscipline()
{
    MemberOfStaffVo fullVo = null;
    MemberOfStaffShortVo mos = (MemberOfStaffShortVo)domain.getMosUser();
    if (mos != null)
        fullVo = domain.getMemberOfStaff(mos);

    if (fullVo != null)
    {
        if (fullVo.getHcpIsNotNull())
        {
            if (fullVo.getHcp().getHcpTypeIsNotNull())
            {
                if (form.customControlAuthoring().getValue() != null 
                    && form.customControlAuthoring().getValue().getAuthoringHcpIsNotNull() 
                    && form.customControlAuthoring().getValue().getAuthoringHcp().getHcpTypeIsNotNull())
                {
                    if (form.customControlAuthoring().getValue().getAuthoringHcp().getHcpType().equals(fullVo.getHcp().getHcpType()))
                        return true;
                }                   
            }               
        }
    }
    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean testDiscipline(ClinicalNotesShortVo voNote)
{
    MemberOfStaffVo fullVo = null;
    MemberOfStaffShortVo mos = (MemberOfStaffShortVo) domain.getMosUser();
    if (mos != null)
        fullVo = domain.getMemberOfStaff(mos);

    if (fullVo != null)
    {
        if (fullVo.getHcpIsNotNull())
        {
            if (fullVo.getHcp().getHcpTypeIsNotNull())
            {
                if (voNote.getAuthoringInfoIsNotNull() && voNote.getAuthoringInfo().getAuthoringHcpIsNotNull() && voNote.getAuthoringInfo().getAuthoringHcp().getHcpTypeIsNotNull())
                {
                    if (voNote.getAuthoringInfo().getAuthoringHcp().getHcpType().equals(fullVo.getHcp().getHcpType()))
                        return true;
                }
            }
        }
    }
    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean testDiscipline()
{
    MemberOfStaffVo fullVo = null;
    MemberOfStaffShortVo mos = (MemberOfStaffShortVo)domain.getMosUser();
    if (mos != null)
        fullVo = domain.getMemberOfStaff(mos);

    if (fullVo != null)
    {
        if (fullVo.getHcpIsNotNull())
        {
            if (fullVo.getHcp().getHcpTypeIsNotNull())
            {
                if (form.customControlAuthoring().getValue() != null &&
                        form.customControlAuthoring().getValue().getAuthoringHcpIsNotNull() &&
                            form.customControlAuthoring().getValue().getAuthoringHcp().getHcpTypeIsNotNull())
                {
                    if (form.customControlAuthoring().getValue().getAuthoringHcp().getHcpType().equals(fullVo.getHcp().getHcpType()))
                        return true;
                }                   
            }               
        }
    }
    return false;
}
项目:openMAXIMS    文件:PatientClinicalNotesforEvolveIngestionJobImpl.java   
private MemberOfStaffVo getMOSForConfiguredJob(ClinicalNotesForEvolveTaskSettingsVo job)
{
    if ( (job == null)
        || (job != null && job.getSystemInformation() == null)
        || (job != null && job.getSystemInformation().getCreationUser() == null)
        ||  (job != null && job.getSystemInformation().getCreationUser() == "") )
    {
        trace("MOSForConfiguredJob is null");
        return null;
    }

    String query = "select m1_1 from MemberOfStaff as m1_1 left join m1_1.appUser as a1_1 where a1_1.username = :userName";
    DomainFactoryBridge factory = getDomainFactory();
    List<?> results = factory.find(query, new String[] {"userName"}, new Object[] {job.getSystemInformation().getCreationUser()});
    if (results != null && results.size() >0)
        return MemberOfStaffVoAssembler.create((MemberOfStaff)results.get(0));
    else
        return null;
}
项目:openMAXIMS    文件:EDSupplementaryDischargeLetterJobImpl.java   
private MemberOfStaffVo getMOSForConfiguredJob(EDSuppSummaryScheduleVo job)
{
    if ( job == null || job.getSystemInformation() == null  ||  job.getSystemInformation().getCreationUser() == null || job.getSystemInformation().getCreationUser().length() == 0)
    {
        trace("Member of Staff for the configured job is null");
        return null;
    }

    String query = "select mos from MemberOfStaff as mos left join mos.appUser as usr where usr.username = :userName";
    DomainFactoryBridge factory = getDomainFactory();
    List<?> results = factory.find(query, new String[] {"userName"}, new Object[] {job.getSystemInformation().getCreationUser()});
    if (results != null && results.size() >0)
        return MemberOfStaffVoAssembler.create((MemberOfStaff)results.get(0));
    else
        return null;
}
项目:openMAXIMS    文件:MOSQueryImpl.java   
private HcpCollection listMOSByPrimaryLocation(HcpCollection collHCPs, LocationLiteVo mosLocation) {

    HcpCollection collHCPsForLocation = new HcpCollection();
    MosAdmin impl = (MosAdmin)getDomainImpl(MosAdminImpl.class);
    for (int i = 0; i < collHCPs.size(); i++)
    {
        MemberOfStaffVo mos = impl.getMemberOfStaff(collHCPs.get(i).getMos());
        for (int j = 0; j < mos.getLocations().size(); j++)
        {
            HcpLocationVo hcpLocation = mos.getLocations().get(j);
            if(hcpLocation.getIsPrimaryIsNotNull() && hcpLocation.getIsPrimary()){

                if(mosLocation.getID_Location().equals(hcpLocation.getLocation().getID_Location()))
                    collHCPsForLocation.add(collHCPs.get(i));
            }
        }
    }

    return collHCPsForLocation;
}
项目:openmaxims-linux    文件:Logic.java   
private void mergeSavedAccreditation(MemberOfStaffVo voCouldContainsUnsavedLocationAccreditationMos)
{
    MemberOfStaffVo voMos = form.getGlobalContext().Admin.getSelectedMos();

    for (int j = 0; voCouldContainsUnsavedLocationAccreditationMos.getLocationsIsNotNull() && j < voCouldContainsUnsavedLocationAccreditationMos.getLocations().size(); j++)
    {
        HcpLocationVo voLoc = voCouldContainsUnsavedLocationAccreditationMos.getLocations().get(j);

        Boolean bFound = false;
        for (int i = 0; voMos.getLocationsIsNotNull() && i < voMos.getLocations().size(); i++)
        {
            if (voLoc.equals(voMos.getLocations().get(i)))
                bFound = true;
        }

        if (!bFound)
        {
            if (form.getGlobalContext().Admin.getSelectedMos().getLocations() == null)
                form.getGlobalContext().Admin.getSelectedMos().setLocations(new HcpLocationVoCollection());

            form.getGlobalContext().Admin.getSelectedMos().getLocations().add(voCouldContainsUnsavedLocationAccreditationMos.getLocations().get(j));
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateOrganisationTree() 
{   
    OrganisationVoCollection voColl = domain.listRootOrgs().sort();     
    initializeGrid();
    new OrganisationLocationHelper(form.getImages().Admin.Organisation, form.getImages().Admin.LocationSite, form.getImages().Admin.Location).populatOrganisationLocationDynamicGrid(form.dyngrdOrganisationLocation(), voColl, true);

    fillAccreditationCombos();

    form.dyngrdOrganisationLocation().getRows().expandAll();    

    HcpLocationVoCollection voCollHcpLocations = null;
    MemberOfStaffVo mos = form.getGlobalContext().Admin.getSelectedMos();
    if (mos != null)
    {
        voCollHcpLocations = mos.getLocations();    
        setHcpLocationsInGrid(voCollHcpLocations);
    }       
}
项目:openMAXIMS    文件:Logic.java   
protected void onImbSetLocsClick() throws PresentationLogicException
{
    MemberOfStaffShortVo voMos = form.getGlobalContext().Admin.getSelectedMos();

    populateMosVoFromScreen(voMos);// Need to ensure StaffType is set wdev-3971

    if (voMos != null)
    {
        form.getLocalContext().setbAdding(Boolean.FALSE);
        if (voMos.getID_MemberOfStaffIsNotNull())
        {
            MemberOfStaffVo voCouldContainsUnsavedLocationAccreditationMos = form.getGlobalContext().Admin.getSelectedMos();
            //setContextVariables(voMos); WDEV-16222
            mergeSavedAccreditation(voCouldContainsUnsavedLocationAccreditationMos);
        }

        if (ConfigFlag.DOM.ENABLE_EXCHEQUER_CODES_VALIDATION.getValue())
            engine.open(form.getForms().Admin.MOSHospitalAccreditationDialog);
        else
            engine.open(form.getForms().Admin.MosOrganisationDlg, new Object[]{Boolean.FALSE});
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void open()
{
    // set selection back
    if (form.getGlobalContext().Admin.getSelectedMosIsNotNull() && form.GroupTreeFilter().getValue().equals(GenForm.GroupTreeFilterEnumeration.rdoMemberOfStaff))//WDEV-15437
    {
        form.lyrLHS().tabMos().treMemberOfStaff().clear();
        MemberOfStaffVo MOS = form.getGlobalContext().Admin.getSelectedMos(); //WDEV-15658
        form.lyrLHS().tabMos().customControlMosSearch().setActionEvent(MOSSearchLastAction.CLEAR_CLICKED); //WDEV-15658
        form.lyrLHS().tabMos().customControlMosSearch().clear(); //WDEV-15658
        addMosNode(MOS);
        form.lyrLHS().tabMos().treMemberOfStaff().setValue(MOS);
        selectionChanged(form.lyrLHS().tabMos().treMemberOfStaff().getSelectedNode());
        return;
    }

    if (form.GroupTreeFilter().getValue().equals(GenForm.GroupTreeFilterEnumeration.rdoMemberOfStaff))
    {
        clearMosTree();
        showMosView();
    }
    else
    {
        populateOrganisationTree();
        showOrganisationView();
    }
}
项目:openMAXIMS    文件:MosAdminImpl.java   
public MemberOfStaffShortVo deactivateMos(MemberOfStaffShortVo mosVo) throws StaleObjectException
    {
        if (mosVo.getID_MemberOfStaff() == null)
        {
            throw new DomainRuntimeException("Cannot Activate/Deactivate an MOS with NULL id!");
        }
        DomainFactory factory = getDomainFactory();
        MemberOfStaff mosBo = MemberOfStaffShortVoAssembler.extractMemberOfStaff(getDomainFactory(), mosVo);
        mosBo.setIsActive(!(Boolean.TRUE.equals(mosBo.isIsActive())));

        if (mosBo.getHcp() != null)
        {
            mosBo.getHcp().setIsActive(mosBo.isIsActive());
        }


        factory.save(mosBo);

        //WDEV-19576 MOS Master File HL7 message
        MemberOfStaffVo assembledMos = MemberOfStaffVoAssembler.create(mosBo);
        triggerMOSMasterFileEvent(assembledMos);

        return assembledMos;

//      return MemberOfStaffShortVoAssembler.create(mosBo);
    }
项目:openmaxims-linux    文件:MOSQueryImpl.java   
private HcpCollection listMOSByPrimaryLocation(HcpCollection collHCPs, LocationLiteVo mosLocation) {

    HcpCollection collHCPsForLocation = new HcpCollection();
    MosAdmin impl = (MosAdmin)getDomainImpl(MosAdminImpl.class);
    for (int i = 0; i < collHCPs.size(); i++)
    {
        MemberOfStaffVo mos = impl.getMemberOfStaff(collHCPs.get(i).getMos());
        for (int j = 0; j < mos.getLocations().size(); j++)
        {
            HcpLocationVo hcpLocation = mos.getLocations().get(j);
            if(hcpLocation.getIsPrimaryIsNotNull() && hcpLocation.getIsPrimary()){

                if(mosLocation.getID_Location().equals(hcpLocation.getLocation().getID_Location()))
                    collHCPsForLocation.add(collHCPs.get(i));
            }
        }
    }

    return collHCPsForLocation;
}
项目:openMAXIMS    文件:MosAdminImpl.java   
public MemberOfStaffVo getMemberOfStaffByTaxonomyType(String extId, TaxonomyType taxonomyType)
{
    MemberOfStaff domMos = getDomMosByTaxonomyType(extId, taxonomyType);
    if (domMos == null)
        return null;

    MemberOfStaffVo mosVo = MemberOfStaffVoAssembler.create(domMos);
    ims.core.vo.Hcp hcp = null;
    if (domMos.getHcp() instanceof Medic)
    {
        hcp = MedicVoAssembler.create((Medic)domMos.getHcp());
    }
    else if (domMos.getHcp() instanceof Nurse)
    {
        hcp = NurseVoAssembler.create((Nurse)domMos.getHcp());
    }
    else if (domMos.getHcp() instanceof Therapist)
    {
        hcp = TherapistVoAssembler.create((Therapist)domMos.getHcp());
    }
    mosVo.setHcp(hcp);
    return mosVo;       
}
项目:openmaxims-linux    文件:Logic.java   
private boolean testOpDiscipline()
{
    MemberOfStaffVo fullVo = null;
    MemberOfStaffShortVo mos = (MemberOfStaffShortVo) domain.getMosUser();
    if (mos != null)
        fullVo = domain.getMemberOfStaff(mos);

    if (fullVo != null)
    {
        if (fullVo.getHcpIsNotNull())
        {
            if (fullVo.getHcp().getHcpTypeIsNotNull())
            {
                if (form.lyrTabs().tabOPDNote().customControlOPAuthoring().getValue() != null && form.lyrTabs().tabOPDNote().customControlOPAuthoring().getValue().getAuthoringHcpIsNotNull() && form.lyrTabs().tabOPDNote().customControlOPAuthoring().getValue().getAuthoringHcp().getHcpTypeIsNotNull())
                {
                    if (form.lyrTabs().tabOPDNote().customControlOPAuthoring().getValue().getAuthoringHcp().getHcpType().equals(fullVo.getHcp().getHcpType()))
                        return true;
                }
            }
        }
    }
    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean testDiscipline()
{
    MemberOfStaffVo fullVo = null;
    MemberOfStaffShortVo mos = (MemberOfStaffShortVo)domain.getMosUser();
    if (mos != null)
        fullVo = domain.getMemberOfStaff(mos);

    if (fullVo != null)
    {
        if (fullVo.getHcpIsNotNull())
        {
            if (fullVo.getHcp().getHcpTypeIsNotNull())
            {
                if (form.customControlAuthoring().getValue() != null &&
                        form.customControlAuthoring().getValue().getAuthoringHcpIsNotNull() &&
                            form.customControlAuthoring().getValue().getAuthoringHcp().getHcpTypeIsNotNull())
                {
                    if (form.customControlAuthoring().getValue().getAuthoringHcp().getHcpType().equals(fullVo.getHcp().getHcpType()))
                        return true;
                }                   
            }               
        }
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean testDiscipline()
{
    MemberOfStaffVo fullVo = null;
    MemberOfStaffShortVo mos = (MemberOfStaffShortVo)domain.getMosUser();
    if (mos != null)
        fullVo = domain.getMemberOfStaff(mos);

    if (fullVo != null)
    {
        if (fullVo.getHcpIsNotNull())
        {
            if (fullVo.getHcp().getHcpTypeIsNotNull())
            {
                if (form.customControlAuthoring().getValue() != null &&
                        form.customControlAuthoring().getValue().getAuthoringHcpIsNotNull() &&
                            form.customControlAuthoring().getValue().getAuthoringHcp().getHcpTypeIsNotNull())
                {
                    if (form.customControlAuthoring().getValue().getAuthoringHcp().getHcpType().equals(fullVo.getHcp().getHcpType()))
                        return true;
                }                   
            }               
        }
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean testDiscipline()
{
    MemberOfStaffVo fullVo = null;
    MemberOfStaffShortVo mos = (MemberOfStaffShortVo)domain.getMosUser();
    if (mos != null)
        fullVo = domain.getMemberOfStaff(mos);

    if (fullVo != null)
    {
        if (fullVo.getHcpIsNotNull())
        {
            if (fullVo.getHcp().getHcpTypeIsNotNull())
            {
                if (form.customControlAuthoring().getValue() != null &&
                        form.customControlAuthoring().getValue().getAuthoringHcpIsNotNull() &&
                            form.customControlAuthoring().getValue().getAuthoringHcp().getHcpTypeIsNotNull())
                {
                    if (form.customControlAuthoring().getValue().getAuthoringHcp().getHcpType().equals(fullVo.getHcp().getHcpType()))
                        return true;
                }                   
            }               
        }
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean testDiscipline(ClinicalNotesShortVo voNote)
{
    MemberOfStaffVo fullVo = null;
    MemberOfStaffShortVo mos = (MemberOfStaffShortVo)domain.getMosUser();
    if (mos != null)
        fullVo = domain.getMemberOfStaff(mos);

    if (fullVo != null)
    {
        if (fullVo.getHcpIsNotNull())
        {
            if (fullVo.getHcp().getHcpTypeIsNotNull())
            {
                if (voNote.getAuthoringInfoIsNotNull() &&
                        voNote.getAuthoringInfo().getAuthoringHcpIsNotNull() &&
                            voNote.getAuthoringInfo().getAuthoringHcp().getHcpTypeIsNotNull())
                {
                    if (voNote.getAuthoringInfo().getAuthoringHcp().getHcpType().equals(fullVo.getHcp().getHcpType()))
                        return true;
                }
            }
        }
    }
    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean testDiscipline(ClinicalNotesShortVo voNote)
{
    MemberOfStaffVo fullVo = null;
    MemberOfStaffShortVo mos = (MemberOfStaffShortVo)domain.getMosUser();
    if (mos != null)
        fullVo = domain.getMemberOfStaff(mos);

    if (fullVo != null)
    {
        if (fullVo.getHcpIsNotNull())
        {
            if (fullVo.getHcp().getHcpTypeIsNotNull())
            {
                if (voNote.getAuthoringInfoIsNotNull() &&
                        voNote.getAuthoringInfo().getAuthoringHcpIsNotNull() &&
                            voNote.getAuthoringInfo().getAuthoringHcp().getHcpTypeIsNotNull())
                {
                    if (voNote.getAuthoringInfo().getAuthoringHcp().getHcpType().equals(fullVo.getHcp().getHcpType()))
                        return true;
                }
            }
        }
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean testOpDiscipline()
{
    MemberOfStaffVo fullVo = null;
    MemberOfStaffShortVo mos = (MemberOfStaffShortVo) domain.getMosUser();
    if (mos != null)
        fullVo = domain.getMemberOfStaff(mos);

    if (fullVo != null)
    {
        if (fullVo.getHcpIsNotNull())
        {
            if (fullVo.getHcp().getHcpTypeIsNotNull())
            {
                if (form.lyrTabs().tabOPDNote().customControlOPAuthoring().getValue() != null && form.lyrTabs().tabOPDNote().customControlOPAuthoring().getValue().getAuthoringHcpIsNotNull() && form.lyrTabs().tabOPDNote().customControlOPAuthoring().getValue().getAuthoringHcp().getHcpTypeIsNotNull())
                {
                    if (form.lyrTabs().tabOPDNote().customControlOPAuthoring().getValue().getAuthoringHcp().getHcpType().equals(fullVo.getHcp().getHcpType()))
                        return true;
                }
            }
        }
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean testDiscipline()
{
    MemberOfStaffVo fullVo = null;
    MemberOfStaffShortVo mos = (MemberOfStaffShortVo)domain.getMosUser();
    if (mos != null)
        fullVo = domain.getMemberOfStaff(mos);

    if (fullVo != null)
    {
        if (fullVo.getHcpIsNotNull())
        {
            if (fullVo.getHcp().getHcpTypeIsNotNull())
            {
                if (form.customControlAuthoring().getValue() != null &&
                        form.customControlAuthoring().getValue().getAuthoringHcpIsNotNull() &&
                            form.customControlAuthoring().getValue().getAuthoringHcp().getHcpTypeIsNotNull())
                {
                    if (form.customControlAuthoring().getValue().getAuthoringHcp().getHcpType().equals(fullVo.getHcp().getHcpType()))
                        return true;
                }                   
            }               
        }
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean testDiscipline(ClinicalNotesShortVo voNote)
{
    MemberOfStaffVo fullVo = null;
    MemberOfStaffShortVo mos = (MemberOfStaffShortVo) domain.getMosUser();
    if (mos != null)
        fullVo = domain.getMemberOfStaff(mos);

    if (fullVo != null)
    {
        if (fullVo.getHcpIsNotNull())
        {
            if (fullVo.getHcp().getHcpTypeIsNotNull())
            {
                if (voNote.getAuthoringInfoIsNotNull() && voNote.getAuthoringInfo().getAuthoringHcpIsNotNull() && voNote.getAuthoringInfo().getAuthoringHcp().getHcpTypeIsNotNull())
                {
                    if (voNote.getAuthoringInfo().getAuthoringHcp().getHcpType().equals(fullVo.getHcp().getHcpType()))
                        return true;
                }
            }
        }
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean testDiscipline()
{
    MemberOfStaffVo fullVo = null;
    MemberOfStaffShortVo mos = (MemberOfStaffShortVo)domain.getMosUser();
    if (mos != null)
        fullVo = domain.getMemberOfStaff(mos);

    if (fullVo != null)
    {
        if (fullVo.getHcpIsNotNull())
        {
            if (fullVo.getHcp().getHcpTypeIsNotNull())
            {
                if (form.customControlAuthoring().getValue() != null &&
                        form.customControlAuthoring().getValue().getAuthoringHcpIsNotNull() &&
                            form.customControlAuthoring().getValue().getAuthoringHcp().getHcpTypeIsNotNull())
                {
                    if (form.customControlAuthoring().getValue().getAuthoringHcp().getHcpType().equals(fullVo.getHcp().getHcpType()))
                        return true;
                }                   
            }               
        }
    }
    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private void populateOrganisationTree() 
{   
    OrganisationVoCollection voColl = domain.listRootOrgs().sort();     
    initializeGrid();
    new OrganisationLocationHelper(form.getImages().Admin.Organisation, form.getImages().Admin.LocationSite, form.getImages().Admin.Location).populatOrganisationLocationDynamicGrid(form.dyngrdOrganisationLocation(), voColl, true);

    fillAccreditationCombos();

    form.dyngrdOrganisationLocation().getRows().expandAll();    

    HcpLocationVoCollection voCollHcpLocations = null;
    MemberOfStaffVo mos = form.getGlobalContext().Admin.getSelectedMos();
    if (mos != null)
    {
        voCollHcpLocations = mos.getLocations();    
        setHcpLocationsInGrid(voCollHcpLocations);
    }       
}
项目:openMAXIMS    文件:MOSQueryImpl.java   
private HcpCollection listMOSByPrimaryLocation(HcpCollection collHCPs, LocationLiteVo mosLocation) {

    HcpCollection collHCPsForLocation = new HcpCollection();
    MosAdmin impl = (MosAdmin)getDomainImpl(MosAdminImpl.class);
    for (int i = 0; i < collHCPs.size(); i++)
    {
        MemberOfStaffVo mos = impl.getMemberOfStaff(collHCPs.get(i).getMos());
        for (int j = 0; j < mos.getLocations().size(); j++)
        {
            HcpLocationVo hcpLocation = mos.getLocations().get(j);
            if(hcpLocation.getIsPrimaryIsNotNull() && hcpLocation.getIsPrimary()){

                if(mosLocation.getID_Location().equals(hcpLocation.getLocation().getID_Location()))
                    collHCPsForLocation.add(collHCPs.get(i));
            }
        }
    }

    return collHCPsForLocation;
}
项目:openmaxims-linux    文件:MosAdminImpl.java   
public MemberOfStaffVo getMemberOfStaff(MemberOfStaffShortVo mos)
{
    MemberOfStaffVo newMosVo = new MemberOfStaffVo();
    if (mos.getID_MemberOfStaff() == null)
    {
        MemberOfStaffShortVoAssembler.copy(newMosVo, mos);
        return newMosVo;
    }

    DomainFactory factory = getDomainFactory();
    MemberOfStaff mosDo = (MemberOfStaff)factory.getDomainObject(MemberOfStaff.class, mos.getID_MemberOfStaff().intValue());
    MemberOfStaffVo mosVo = MemberOfStaffVoAssembler.create(mosDo);
    if (mosVo.getHcpIsNotNull())
    {
        HcpFilter voFilter = new HcpFilter();
        voFilter.setID_Hcp(mosVo.getHcp().getID_Hcp());
        ims.core.vo.Hcp vohcp = getHcp(voFilter);
        mosVo.setHcp(vohcp);
    }
    return mosVo;
}
项目:openMAXIMS    文件:Logic.java   
private void populateOrganisationTree() 
{   
    OrganisationVoCollection voColl = domain.listRootOrgs().sort();     
    initializeGrid();
    new OrganisationLocationHelper(form.getImages().Admin.Organisation, form.getImages().Admin.LocationSite, form.getImages().Admin.Location).populatOrganisationLocationDynamicGrid(form.dyngrdOrganisationLocation(), voColl, true);

    fillAccreditationCombos();

    form.dyngrdOrganisationLocation().getRows().expandAll();    

    HcpLocationVoCollection voCollHcpLocations = null;
    MemberOfStaffVo mos = form.getGlobalContext().Admin.getSelectedMos();
    if (mos != null)
    {
        voCollHcpLocations = mos.getLocations();    
        setHcpLocationsInGrid(voCollHcpLocations);
    }       
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{
    // set selection back
    if (form.getGlobalContext().Admin.getSelectedMosIsNotNull() && form.GroupTreeFilter().getValue().equals(GenForm.GroupTreeFilterEnumeration.rdoMemberOfStaff))//WDEV-15437
    {
        form.lyrLHS().tabMos().treMemberOfStaff().clear();
        MemberOfStaffVo MOS = form.getGlobalContext().Admin.getSelectedMos(); //WDEV-15658
        form.lyrLHS().tabMos().customControlMosSearch().setActionEvent(MOSSearchLastAction.CLEAR_CLICKED); //WDEV-15658
        form.lyrLHS().tabMos().customControlMosSearch().clear(); //WDEV-15658
        addMosNode(MOS);
        form.lyrLHS().tabMos().treMemberOfStaff().setValue(MOS);
        selectionChanged(form.lyrLHS().tabMos().treMemberOfStaff().getSelectedNode());
        return;
    }

    if (form.GroupTreeFilter().getValue().equals(GenForm.GroupTreeFilterEnumeration.rdoMemberOfStaff))
    {
        clearMosTree();
        showMosView();
    }
    else
    {
        populateOrganisationTree();
        showOrganisationView();
    }
}