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

项目:AvoinApotti    文件:Logic.java   
private LocSiteShortVoCollection getHeartsSurgery(LocSiteShortVoCollection surgeries,String gMCCode)
{
    if(ConfigFlag.HL7.HEARTS_GP_MODEL.getValue()&&surgeries!=null)
    {
        LocSiteShortVoCollection surgeriesForGp = new LocSiteShortVoCollection();
        for (LocSiteShortVo surgery : surgeries)
        {
            if(surgery.getIsActiveIsNotNull() && 
                    surgery.getIsActive().equals(Boolean.TRUE)&&
                    surgery.getPasCode()!=null&&
                    gMCCode!=null&&
                    gMCCode.trim()!=null&&
                    surgery.getPasCode().toUpperCase().matches("\\S+_"+gMCCode.trim().toUpperCase()+"_\\S+")) //http://jira/browse/WDEV-15535 changed filter from PAS to GMC 
            {
                surgeriesForGp.add(surgery);
            }
        }
        return surgeriesForGp;
    }
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void populateLocations()
{
    form.cmbSite().clear();

    LocSiteShortVoCollection locations = domain.getLocations();
    if(locations != null)
    {
        locations.sort();           
        for(int x = 0; x < locations.size(); x++)
        {
            LocSiteShortVo location = locations.get(x);
            if(location.getID_LocationIsNotNull() && location.getID_Location().intValue() != 0)
                form.cmbSite().newRow(location, location.getName(), form.getImages().Admin.LocationSite);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private LocSiteShortVoCollection getHeartsSurgery(LocSiteShortVoCollection surgeries, String gMCCode)
{
    if (ConfigFlag.HL7.HEARTS_GP_MODEL.getValue()&& surgeries != null)
    {
        LocSiteShortVoCollection surgeriesForGp = new LocSiteShortVoCollection();
        for (LocSiteShortVo surgery : surgeries)
        {
            if(surgery.getIsActiveIsNotNull() && 
                    surgery.getIsActive().equals(Boolean.TRUE)&&
                    surgery.getPasCode()!=null&&
                    gMCCode!=null&&
                    gMCCode.trim()!=null&&
                    surgery.getPasCode().toUpperCase().matches("\\S+_"+gMCCode.trim().toUpperCase()+"_\\S+")) //http://jira/browse/WDEV-15535 changed filter from PAS to GMC 
            {
                surgeriesForGp.add(surgery);
            }
        }
        return surgeriesForGp;
    }
    return null;
}
项目:openMAXIMS    文件:GPSearchImpl.java   
private LocSiteShortVoCollection getHeartsSurgery(LocSiteShortVoCollection surgeries, String gMCCode)
{
    if (ConfigFlag.HL7.HEARTS_GP_MODEL.getValue()&& surgeries != null)
    {
        LocSiteShortVoCollection surgeriesForGp = new LocSiteShortVoCollection();
        for (LocSiteShortVo surgery : surgeries)
        {
            if(surgery.getIsActiveIsNotNull() && 
                    surgery.getIsActive().equals(Boolean.TRUE)&&
                    surgery.getPasCode()!=null&&
                    gMCCode!=null&&
                    gMCCode.trim()!=null&&
                    surgery.getPasCode().toUpperCase().matches("\\S+_"+gMCCode.trim().toUpperCase()+"_\\S+")) //http://jira/browse/WDEV-15535 changed filter from PAS to GMC 
            {
                surgeriesForGp.add(surgery);
            }
        }
        return surgeriesForGp;
    }
    return null;

}
项目:openMAXIMS    文件:Logic.java   
private void populateLocations()
{
    form.cmbSite().clear();

    LocSiteShortVoCollection locations = domain.getLocations();
    if(locations != null)
    {
        locations.sort();           
        for(int x = 0; x < locations.size(); x++)
        {
            LocSiteShortVo location = locations.get(x);
            if(location.getID_LocationIsNotNull() && location.getID_Location().intValue() != 0)
                form.cmbSite().newRow(location, location.getName(), form.getImages().Admin.LocationSite);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private LocSiteShortVoCollection getHeartsSurgery(LocSiteShortVoCollection surgeries,String gMCCode)
{
    if(ConfigFlag.HL7.HEARTS_GP_MODEL.getValue()&&surgeries!=null)
    {
        LocSiteShortVoCollection surgeriesForGp = new LocSiteShortVoCollection();
        for (LocSiteShortVo surgery : surgeries)
        {
            if(surgery.getIsActiveIsNotNull() && 
                    surgery.getIsActive().equals(Boolean.TRUE)&&
                    surgery.getPasCode()!=null&&
                    gMCCode!=null&&
                    gMCCode.trim()!=null&&
                    surgery.getPasCode().toUpperCase().matches("\\S+_"+gMCCode.trim().toUpperCase()+"_\\S+")) //http://jira/browse/WDEV-15535 changed filter from PAS to GMC 
            {
                surgeriesForGp.add(surgery);
            }
        }
        return surgeriesForGp;
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void populateLocations()
{
    form.cmbSite().clear();

    LocSiteShortVoCollection locations = domain.getLocations();
    if(locations != null)
    {
        locations.sort();           
        for(int x = 0; x < locations.size(); x++)
        {
            LocSiteShortVo location = locations.get(x);
            if(location.getID_LocationIsNotNull() && location.getID_Location().intValue() != 0)
                form.cmbSite().newRow(location, location.getName(), form.getImages().Admin.LocationSite);
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private LocSiteShortVoCollection getHeartsSurgery(LocSiteShortVoCollection surgeries,String gMCCode)
{
    if(ConfigFlag.HL7.HEARTS_GP_MODEL.getValue()&&surgeries!=null)
    {
        LocSiteShortVoCollection surgeriesForGp = new LocSiteShortVoCollection();
        for (LocSiteShortVo surgery : surgeries)
        {
            if(surgery.getIsActiveIsNotNull() && 
                    surgery.getIsActive().equals(Boolean.TRUE)&&
                    surgery.getPasCode()!=null&&
                    gMCCode!=null&&
                    gMCCode.trim()!=null&&
                    surgery.getPasCode().toUpperCase().matches("\\S+_"+gMCCode.trim().toUpperCase()+"_\\S+")) //http://jira/browse/WDEV-15535 changed filter from PAS to GMC 
            {
                surgeriesForGp.add(surgery);
            }
        }
        return surgeriesForGp;
    }
    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void populateLocations()
{
    form.cmbSite().clear();

    LocSiteShortVoCollection locations = domain.getLocations();
    if(locations != null)
    {
        locations.sort();           
        for(int x = 0; x < locations.size(); x++)
        {
            LocSiteShortVo location = locations.get(x);
            if(location.getID_LocationIsNotNull() && location.getID_Location().intValue() != 0)
                form.cmbSite().newRow(location, location.getName(), form.getImages().Admin.LocationSite);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void loadLocations()
{
    LocSiteShortVoCollection locations = domain.getLocations();
    form.lyrDetails().tabLocations().grdLocations().getRows().clear();

    if(locations == null)
        return;

    locations.sort();       
    for(int x = 0; x < locations.size(); x++)
    {
        addLocationSite(locations.get(x));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateSurgeriesInGrid(GPLiteWithPracticesVo voGpWithPractice, GpPracticeLiteVo gppractice, DynamicGridRow row)
{
    String gMCCode = null;

    if (voGpWithPractice != null)
    {
        if(voGpWithPractice.getCodeMappingsIsNotNull())
        {
            gMCCode = voGpWithPractice.getCodeMappings().getMappingValue(TaxonomyType.NAT_GP_CODE);
        }
    }

    if (gppractice.getSurgeries() != null && gppractice.getSurgeries().size() > 0)
    {   

        LocSiteShortVoCollection heartsSurgeries = getHeartsSurgery(gppractice.getSurgeries(), gMCCode);

        if (heartsSurgeries != null && heartsSurgeries.size() > 0)
        {
            populateSurgeriesFromCollection(voGpWithPractice, gppractice, row, heartsSurgeries);          
        }   

        else
        {   
            populateSurgeriesFromCollection(voGpWithPractice, gppractice, row, gppractice.getSurgeries()); 
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateSurgeriesFromCollection(GPLiteWithPracticesVo voGpWithPractice,    GpPracticeLiteVo gppractice, DynamicGridRow row, LocSiteShortVoCollection surgeries)
{
    for (LocSiteShortVo surgery : surgeries)
    {   
        if (surgery == null || (surgery != null && !(Boolean.TRUE.equals(surgery.getIsActive()))))
            continue;   

        addSurgeryRow(voGpWithPractice, gppractice, row, surgery);

        row = null;
    }
}
项目:openMAXIMS    文件:GPSearchImpl.java   
private GPLiteWithPracticesVoCollection filterGpsForGMCNumberAndPasCode(GPLiteWithPracticesVoCollection gpColl)
{
    if (gpColl == null || gpColl.size() == 0)
        return null;
    String gMCCode = null;
    GPLiteWithPracticesVoCollection filteredGps = new GPLiteWithPracticesVoCollection();

    for (int i=0;i<gpColl.size();i++)
    {   
        GPLiteWithPracticesVo voGpWithPractice = gpColl.get(i);

        if (voGpWithPractice != null)
        {
            if(voGpWithPractice.getCodeMappingsIsNotNull())
            {
                gMCCode = voGpWithPractice.getCodeMappings().getMappingValue(TaxonomyType.NAT_GP_CODE);
            }
            GpLiteToPracticeLiteVoCollection voPractices = voGpWithPractice.getPractices();
            for (int j=0;j<voPractices.size();j++)
            {
                GpLiteToPracticeLiteVo practiceWithSurg = voPractices.get(j);
                if (practiceWithSurg != null && practiceWithSurg.getPracticeIsNotNull() && practiceWithSurg.getPractice().getSurgeries() != null && practiceWithSurg.getPractice().getSurgeries().size() > 0)
                {   

                    LocSiteShortVoCollection heartsSurgeries = getHeartsSurgery(practiceWithSurg.getPractice().getSurgeries(), gMCCode);
                    if (heartsSurgeries != null && heartsSurgeries.size() > 0)
                        filteredGps.add(voGpWithPractice);
                }
            }
        }
    }
    return filteredGps;

}
项目:openMAXIMS    文件:Logic.java   
private void loadLocations()
{
    LocSiteShortVoCollection locations = domain.getLocations();
    form.lyrDetails().tabLocations().grdLocations().getRows().clear();

    if(locations == null)
        return;

    locations.sort();       
    for(int x = 0; x < locations.size(); x++)
    {
        addLocationSite(locations.get(x));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadLocations()
{
    LocSiteShortVoCollection locations = domain.getLocations();
    form.lyrDetails().tabLocations().grdLocations().getRows().clear();

    if(locations == null)
        return;

    locations.sort();       
    for(int x = 0; x < locations.size(); x++)
    {
        addLocationSite(locations.get(x));
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void loadLocations()
{
    LocSiteShortVoCollection locations = domain.getLocations();
    form.lyrDetails().tabLocations().grdLocations().getRows().clear();

    if(locations == null)
        return;

    locations.sort();       
    for(int x = 0; x < locations.size(); x++)
    {
        addLocationSite(locations.get(x));
    }
}
项目:AvoinApotti    文件:DemographicsImpl.java   
public GpLiteToPracticeLiteVo synchronizeGPPracticeDetails(String strGPCode)  throws StaleObjectException, UniqueKeyViolationException
{
    Gp_practice gpPracticeRecord = (Gp_practice) getDTOInstance(Gp_practice.class);
    gpPracticeRecord.Filter.Gp_code = strGPCode;
    GP voGP = null;

    Result gpPracticeGetResult = gpPracticeRecord.get();
    if (gpPracticeGetResult != null)
        return null;

    Gp_practiceRecord gp_practice_record = gpPracticeRecord.DataCollection.get(0);
    OrganisationVo voSavedPractice = null;
    if (gpPracticeGetResult == null && gp_practice_record != null) 
    {
        // Extract the organisation which is in effect the practice and the location site
        // which is in effect the surgery and synchronise them withthe current date.            

        // If the Practice is in csp, get it and populate from dto, otherwise just populate from dto.
        try
        {
            voSavedPractice = saveOrganisation(populatePracticeFromDTORecord(gp_practice_record));
        }
        catch (UniqueKeyViolationException e)
        {
            // DARA TODO Comm Channels
        }

        voGP =  saveGP(populateGpFromDTORecord(gp_practice_record, voSavedPractice));

        GpLiteToPracticeLiteVo voGpLiteToPracticeLite = new GpLiteToPracticeLiteVo();
        // Just need a get here to see if you already have a gppracticeslite record.

        GpPracticeLiteVo voGpPracticeLite = new GpPracticeLiteVo();
        voGpPracticeLite.setAddress(voSavedPractice.getAddress());
        voGpPracticeLite.setID_Organisation(voSavedPractice.getID_Organisation());
        voGpPracticeLite.setIsActive(voSavedPractice.getIsActive());
        voGpPracticeLite.setName(voSavedPractice.getName());
        voGpPracticeLite.setType(OrganisationType.GPP);

        LocSiteShortVo voLocSiteShort = getLocSiteShortByTaxonomyType(gp_practice_record.Gp_practice_id, TaxonomyType.PAS);
        LocSiteShortVoCollection voCollLocations = new LocSiteShortVoCollection();
        voCollLocations.add(voLocSiteShort);
        voGpPracticeLite.setSurgeries(voCollLocations);

        voGpLiteToPracticeLite.setGp(voGP == null ? null : voGP);
        voGpLiteToPracticeLite.setPractice(voGpPracticeLite);
        return voGpLiteToPracticeLite;

    }

    return null;


}
项目:openMAXIMS    文件:DemographicsImpl.java   
public GpLiteToPracticeLiteVo synchronizeGPPracticeDetails(String strGPCode)  throws StaleObjectException, UniqueKeyViolationException
{
    if (Boolean.TRUE.equals(ConfigFlag.GEN.USE_ELECTIVE_LIST_FUNCTIONALITY.getValue()))
        return null;

    Gp_practice gpPracticeRecord = (Gp_practice) getDTOInstance(Gp_practice.class);
    gpPracticeRecord.Filter.Gp_code = strGPCode;
    GP voGP = null;

    Result gpPracticeGetResult = gpPracticeRecord.get();
    if (gpPracticeGetResult != null)
        return null;

    Gp_practiceRecord gp_practice_record = gpPracticeRecord.DataCollection.get(0);
    OrganisationVo voSavedPractice = null;
    if (gpPracticeGetResult == null && gp_practice_record != null) 
    {
        // Extract the organisation which is in effect the practice and the location site
        // which is in effect the surgery and synchronise them withthe current date.            

        // If the Practice is in csp, get it and populate from dto, otherwise just populate from dto.
        try
        {
            voSavedPractice = saveOrganisation(populatePracticeFromDTORecord(gp_practice_record));
        }
        catch (UniqueKeyViolationException e)
        {
            // DARA TODO Comm Channels
        }

        voGP =  saveGP(populateGpFromDTORecord(gp_practice_record, voSavedPractice));

        GpLiteToPracticeLiteVo voGpLiteToPracticeLite = new GpLiteToPracticeLiteVo();
        // Just need a get here to see if you already have a gppracticeslite record.

        GpPracticeLiteVo voGpPracticeLite = new GpPracticeLiteVo();
        voGpPracticeLite.setAddress(voSavedPractice.getAddress());
        voGpPracticeLite.setID_Organisation(voSavedPractice.getID_Organisation());
        voGpPracticeLite.setIsActive(voSavedPractice.getIsActive());
        voGpPracticeLite.setName(voSavedPractice.getName());
        voGpPracticeLite.setType(OrganisationType.GPP);

        LocSiteShortVo voLocSiteShort = getLocSiteShortByTaxonomyType(gp_practice_record.Gp_practice_id, TaxonomyType.PAS);
        LocSiteShortVoCollection voCollLocations = new LocSiteShortVoCollection();
        voCollLocations.add(voLocSiteShort);
        voGpPracticeLite.setSurgeries(voCollLocations);

        voGpLiteToPracticeLite.setGp(voGP == null ? null : voGP);
        voGpLiteToPracticeLite.setPractice(voGpPracticeLite);
        return voGpLiteToPracticeLite;

    }

    return null;


}
项目:openMAXIMS    文件:PDSDemographicsImpl.java   
public GpLiteToPracticeLiteVo synchronizeGPPracticeDetails(String strGPCode)  throws StaleObjectException, UniqueKeyViolationException
{
    if (Boolean.TRUE.equals(ConfigFlag.GEN.USE_ELECTIVE_LIST_FUNCTIONALITY.getValue()))
        return null;

    Gp_practice gpPracticeRecord = (Gp_practice) getDTOInstance(Gp_practice.class);
    gpPracticeRecord.Filter.Gp_code = strGPCode;
    GP voGP = null;

    Result gpPracticeGetResult = gpPracticeRecord.get();
    if (gpPracticeGetResult != null)
        return null;

    Gp_practiceRecord gp_practice_record = gpPracticeRecord.DataCollection.get(0);
    OrganisationVo voSavedPractice = null;
    if (gpPracticeGetResult == null && gp_practice_record != null) 
    {
        // Extract the organisation which is in effect the practice and the location site
        // which is in effect the surgery and synchronise them withthe current date.            

        // If the Practice is in csp, get it and populate from dto, otherwise just populate from dto.
        try
        {
            voSavedPractice = saveOrganisation(populatePracticeFromDTORecord(gp_practice_record));
        }
        catch (UniqueKeyViolationException e)
        {
            // DARA TODO Comm Channels
        }

        voGP =  saveGP(populateGpFromDTORecord(gp_practice_record, voSavedPractice));

        GpLiteToPracticeLiteVo voGpLiteToPracticeLite = new GpLiteToPracticeLiteVo();
        // Just need a get here to see if you already have a gppracticeslite record.

        GpPracticeLiteVo voGpPracticeLite = new GpPracticeLiteVo();
        voGpPracticeLite.setAddress(voSavedPractice.getAddress());
        voGpPracticeLite.setID_Organisation(voSavedPractice.getID_Organisation());
        voGpPracticeLite.setIsActive(voSavedPractice.getIsActive());
        voGpPracticeLite.setName(voSavedPractice.getName());
        voGpPracticeLite.setType(OrganisationType.GPP);

        LocSiteShortVo voLocSiteShort = getLocSiteShortByTaxonomyType(gp_practice_record.Gp_practice_id, TaxonomyType.PAS);
        LocSiteShortVoCollection voCollLocations = new LocSiteShortVoCollection();
        voCollLocations.add(voLocSiteShort);
        voGpPracticeLite.setSurgeries(voCollLocations);

        voGpLiteToPracticeLite.setGp(voGP == null ? null : voGP);
        voGpLiteToPracticeLite.setPractice(voGpPracticeLite);
        return voGpLiteToPracticeLite;

    }

    return null;


}
项目:openMAXIMS    文件:DemographicsImpl.java   
public GpLiteToPracticeLiteVo synchronizeGPPracticeDetails(String strGPCode)  throws StaleObjectException, UniqueKeyViolationException
{
    Gp_practice gpPracticeRecord = (Gp_practice) getDTOInstance(Gp_practice.class);
    gpPracticeRecord.Filter.Gp_code = strGPCode;
    GP voGP = null;

    Result gpPracticeGetResult = gpPracticeRecord.get();
    if (gpPracticeGetResult != null)
        return null;

    Gp_practiceRecord gp_practice_record = gpPracticeRecord.DataCollection.get(0);
    OrganisationVo voSavedPractice = null;
    if (gpPracticeGetResult == null && gp_practice_record != null) 
    {
        // Extract the organisation which is in effect the practice and the location site
        // which is in effect the surgery and synchronise them withthe current date.            

        // If the Practice is in csp, get it and populate from dto, otherwise just populate from dto.
        try
        {
            voSavedPractice = saveOrganisation(populatePracticeFromDTORecord(gp_practice_record));
        }
        catch (UniqueKeyViolationException e)
        {
            // DARA TODO Comm Channels
        }

        voGP =  saveGP(populateGpFromDTORecord(gp_practice_record, voSavedPractice));

        GpLiteToPracticeLiteVo voGpLiteToPracticeLite = new GpLiteToPracticeLiteVo();
        // Just need a get here to see if you already have a gppracticeslite record.

        GpPracticeLiteVo voGpPracticeLite = new GpPracticeLiteVo();
        voGpPracticeLite.setAddress(voSavedPractice.getAddress());
        voGpPracticeLite.setID_Organisation(voSavedPractice.getID_Organisation());
        voGpPracticeLite.setIsActive(voSavedPractice.getIsActive());
        voGpPracticeLite.setName(voSavedPractice.getName());
        voGpPracticeLite.setType(OrganisationType.GPP);

        LocSiteShortVo voLocSiteShort = getLocSiteShortByTaxonomyType(gp_practice_record.Gp_practice_id, TaxonomyType.PAS);
        LocSiteShortVoCollection voCollLocations = new LocSiteShortVoCollection();
        voCollLocations.add(voLocSiteShort);
        voGpPracticeLite.setSurgeries(voCollLocations);

        voGpLiteToPracticeLite.setGp(voGP == null ? null : voGP);
        voGpLiteToPracticeLite.setPractice(voGpPracticeLite);
        return voGpLiteToPracticeLite;

    }

    return null;


}
项目:openmaxims-linux    文件:DemographicsImpl.java   
public GpLiteToPracticeLiteVo synchronizeGPPracticeDetails(String strGPCode)  throws StaleObjectException, UniqueKeyViolationException
{
    Gp_practice gpPracticeRecord = (Gp_practice) getDTOInstance(Gp_practice.class);
    gpPracticeRecord.Filter.Gp_code = strGPCode;
    GP voGP = null;

    Result gpPracticeGetResult = gpPracticeRecord.get();
    if (gpPracticeGetResult != null)
        return null;

    Gp_practiceRecord gp_practice_record = gpPracticeRecord.DataCollection.get(0);
    OrganisationVo voSavedPractice = null;
    if (gpPracticeGetResult == null && gp_practice_record != null) 
    {
        // Extract the organisation which is in effect the practice and the location site
        // which is in effect the surgery and synchronise them withthe current date.            

        // If the Practice is in csp, get it and populate from dto, otherwise just populate from dto.
        try
        {
            voSavedPractice = saveOrganisation(populatePracticeFromDTORecord(gp_practice_record));
        }
        catch (UniqueKeyViolationException e)
        {
            // DARA TODO Comm Channels
        }

        voGP =  saveGP(populateGpFromDTORecord(gp_practice_record, voSavedPractice));

        GpLiteToPracticeLiteVo voGpLiteToPracticeLite = new GpLiteToPracticeLiteVo();
        // Just need a get here to see if you already have a gppracticeslite record.

        GpPracticeLiteVo voGpPracticeLite = new GpPracticeLiteVo();
        voGpPracticeLite.setAddress(voSavedPractice.getAddress());
        voGpPracticeLite.setID_Organisation(voSavedPractice.getID_Organisation());
        voGpPracticeLite.setIsActive(voSavedPractice.getIsActive());
        voGpPracticeLite.setName(voSavedPractice.getName());
        voGpPracticeLite.setType(OrganisationType.GPP);

        LocSiteShortVo voLocSiteShort = getLocSiteShortByTaxonomyType(gp_practice_record.Gp_practice_id, TaxonomyType.PAS);
        LocSiteShortVoCollection voCollLocations = new LocSiteShortVoCollection();
        voCollLocations.add(voLocSiteShort);
        voGpPracticeLite.setSurgeries(voCollLocations);

        voGpLiteToPracticeLite.setGp(voGP == null ? null : voGP);
        voGpLiteToPracticeLite.setPractice(voGpPracticeLite);
        return voGpLiteToPracticeLite;

    }

    return null;


}