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

项目:AvoinApotti    文件:Logic.java   
private void browseRecord()
{
    updateBrowseInformation();
    if(form.recbrSpacticityAssess().getValue() != null)
    {           
        CareContextShortVo voCareContextShort = (CareContextShortVo)form.recbrSpacticityAssess().getValue();

        OPDSpasticityAssessTreatVoCollection coll = domain.getAssessTreatByCareContext((CareContextLiteVo) form.recbrSpacticityAssess().getValue());
        OPDSpasticityAssessTreatVo voOpdSpastAssessTreat = null;
        if(coll!=null && coll.size()>0)
            voOpdSpastAssessTreat  = coll.get(0);
        form.getLocalContext().setSelectedCareContextShort(voCareContextShort);
        form.getLocalContext().setvoOpdSpastAssessTreat(voOpdSpastAssessTreat);

        populateScreenFromData();
        checkRecordIsEditable(voOpdSpastAssessTreat, voCareContextShort);
    }

}
项目:AvoinApotti    文件:Logic.java   
private void browseRecord()
{
    updateBrowseInformation();

    if(form.recbrSleepAssessment().getValue() != null)
    {           
        form.getLocalContext().setvoSleep(domain.getSleepAssessmentByCareContext((CareContextLiteVo) form.recbrSleepAssessment().getValue()));
        form.getLocalContext().setvoVitals(domain.getVitalSignsByCareContext((CareContextLiteVo) form.recbrSleepAssessment().getValue()));

        if (form.getLocalContext().getvoSleepIsNotNull() || form.getLocalContext().getvoVitalsIsNotNull())
            populateScreenFromData();
        else
        {
            clearScreen();
            clearGrids();
        }
    }

    updateControlsState();      
}
项目:AvoinApotti    文件:Logic.java   
private void browseRecord()
{
    updateBrowseInformation();
    if (form.recbrOPDEDClinicNotes().getValue() != null)
    {
        CareContextShortVo voCareContextShort = (CareContextShortVo) form.recbrOPDEDClinicNotes().getValue();

        OPDErectDysfxnVoCollection coll = domain.getOPDErectDysfxnByCareContext((CareContextLiteVo) form.recbrOPDEDClinicNotes().getValue());
        OPDErectDysfxnVo voOPDErectDysfxnVo = null;
        if(coll!=null && coll.size()>0)
            voOPDErectDysfxnVo = coll.get(0);
        form.getLocalContext().setvoOPDErectDysfxn(voOPDErectDysfxnVo);
        form.getLocalContext().setMedSocialHistory(domain.getMedSocialHistoryByCareContext((CareContextLiteVo) form.recbrOPDEDClinicNotes().getValue()));

        populateScreenFromData();

        populateSocialHistoryScreenFromData();

        checkRecordIsEditable(voOPDErectDysfxnVo, voCareContextShort);
    }
}
项目:AvoinApotti    文件:OPDEDClinicNotesImpl.java   
public OPDErectDysfxnVoCollection getOPDErectDysfxnByCareContext(CareContextLiteVo voCareContext)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from OPDErectDysfxn ed ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContext.getEpisodeOfCareIsNotNull())
    {
        hql.append(andStr + " ed.careContext.id = :ec");
        markers.add("ec");
        values.add(voCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List edList = factory.find(query,markers,values);
    OPDErectDysfxnVoCollection voOPDErectDysfxnVoColl = OPDErectDysfxnVoAssembler.createOPDErectDysfxnVoCollectionFromOPDErectDysfxn(edList);

    return voOPDErectDysfxnVoColl;
}
项目:AvoinApotti    文件:OPDSpasticityAssessImpl.java   
public OPDSpasticityAssessTreatVoCollection getAssessTreatByCareContext(CareContextLiteVo voCareContext)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = " from OPDSpasticityAssessTreat sat ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContext.getEpisodeOfCareIsNotNull())
    {
        hql.append(andStr + " sat.careContext.id = :ec");
        markers.add("ec");
        values.add(voCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List satList = factory.find(query,markers,values);
    OPDSpasticityAssessTreatVoCollection collOPDSpasticityAssessTreat = OPDSpasticityAssessTreatVoAssembler.createOPDSpasticityAssessTreatVoCollectionFromOPDSpasticityAssessTreat(satList);

    return collOPDSpasticityAssessTreat;
}
项目:AvoinApotti    文件:SleepAssessmentImpl.java   
public SleepReferralVo getSleepAssessmentByCareContext(CareContextLiteVo voCareContext)
{
     if (voCareContext == null)
            throw new RuntimeException("Cannot get SleepReferralVo for null CareContextLiteVo");

        StringBuffer hql = new StringBuffer("from SleepReferral as o1_1 where o1_1.careContext.id = :CCID and o1_1.isRIE is null");
        List list = getDomainFactory().find(hql.toString(), "CCID", voCareContext.getID_CareContext());

        if (list == null || list.size() == 0)
            return null;
        else if (list.size() > 1)
            throw new RuntimeException("More than one SleepReferral found for the current Care Context");

        SleepReferralVoCollection voList = SleepReferralVoAssembler.createSleepReferralVoCollectionFromSleepReferral(list);;
        if (voList.size() > 0)
            return voList.get(0);

        return null;  
}
项目:AvoinApotti    文件:NursingAdmissionImpl.java   
public AdmissionDetailsVo getNursingAdmission(CareContextLiteVo voCareContextLite) 
    {
    if(voCareContextLite == null)
        throw new CodingRuntimeException("Contact not Provided");

    DomainFactory factory = getDomainFactory();

    //the following query retrievs the one and only contact of type spinalmedicaladmission if it has been instantiated
    List admisDetails =   factory.find(" from AdmissionDetails ad where ad.careContext.id = :idCareContext )",
            new String[]{"idCareContext" },
            new Object[]{ voCareContextLite.getID_CareContext()});

    AdmissionDetailsVoCollection voAdmisDetails = AdmissionDetailsVoAssembler.createAdmissionDetailsVoCollectionFromAdmissionDetails(admisDetails); 

    if(voAdmisDetails.size()>0)
        return voAdmisDetails.get(0);
    else 
        return null;
}
项目:AvoinApotti    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVoCollection listGoalPlanningMeetings(CareContextLiteVo voCareContextLite) 
{
    if (voCareContextLite == null)
        throw new CodingRuntimeException("Care Context is a mandatory argument");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from GoalPlanning p ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    hql.append(andStr + " p.careContext.id = :careContext");
    markers.add("careContext");
    values.add(voCareContextLite.getID_CareContext());          
    andStr = " and ";


    if (markers.size() > 0) query += " where ";
    query += hql.toString();

    List goalPlanning = factory.find(query, markers, values, 200);  
    return GoalPlanningVoAssembler.createGoalPlanningVoCollectionFromGoalPlanning(goalPlanning).sort();
}
项目:openMAXIMS    文件:Logic.java   
private void browseRecord()
{
    updateBrowseInformation();
    if(form.recbrSpacticityAssess().getValue() != null)
    {           
        CareContextShortVo voCareContextShort = (CareContextShortVo)form.recbrSpacticityAssess().getValue();

        OPDSpasticityAssessTreatVoCollection coll = domain.getAssessTreatByCareContext((CareContextLiteVo) form.recbrSpacticityAssess().getValue());
        OPDSpasticityAssessTreatVo voOpdSpastAssessTreat = null;
        if(coll!=null && coll.size()>0)
            voOpdSpastAssessTreat  = coll.get(0);
        form.getLocalContext().setSelectedCareContextShort(voCareContextShort);
        form.getLocalContext().setvoOpdSpastAssessTreat(voOpdSpastAssessTreat);

        populateScreenFromData();
        checkRecordIsEditable(voOpdSpastAssessTreat, voCareContextShort);
    }

}
项目:openMAXIMS    文件:Logic.java   
private void browseRecord()
{
    updateBrowseInformation();

    if(form.recbrSleepAssessment().getValue() != null)
    {           
        form.getLocalContext().setvoSleep(domain.getSleepAssessmentByCareContext((CareContextLiteVo) form.recbrSleepAssessment().getValue()));
        form.getLocalContext().setvoVitals(domain.getVitalSignsByCareContext((CareContextLiteVo) form.recbrSleepAssessment().getValue()));

        if (form.getLocalContext().getvoSleepIsNotNull() || form.getLocalContext().getvoVitalsIsNotNull())
            populateScreenFromData();
        else
        {
            clearScreen();
            clearGrids();
        }
    }

    updateControlsState();      
}
项目:openMAXIMS    文件:Logic.java   
private void browseRecord()
{
    updateBrowseInformation();
    if (form.recbrOPDEDClinicNotes().getValue() != null)
    {
        CareContextShortVo voCareContextShort = (CareContextShortVo) form.recbrOPDEDClinicNotes().getValue();

        OPDErectDysfxnVoCollection coll = domain.getOPDErectDysfxnByCareContext((CareContextLiteVo) form.recbrOPDEDClinicNotes().getValue());
        OPDErectDysfxnVo voOPDErectDysfxnVo = null;
        if(coll!=null && coll.size()>0)
            voOPDErectDysfxnVo = coll.get(0);
        form.getLocalContext().setvoOPDErectDysfxn(voOPDErectDysfxnVo);
        form.getLocalContext().setMedSocialHistory(domain.getMedSocialHistoryByCareContext((CareContextLiteVo) form.recbrOPDEDClinicNotes().getValue()));

        populateScreenFromData();

        populateSocialHistoryScreenFromData();

        checkRecordIsEditable(voOPDErectDysfxnVo, voCareContextShort);
    }
}
项目:openMAXIMS    文件:OPDEDClinicNotesImpl.java   
public OPDErectDysfxnVoCollection getOPDErectDysfxnByCareContext(CareContextLiteVo voCareContext)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from OPDErectDysfxn ed ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContext.getEpisodeOfCareIsNotNull())
    {
        hql.append(andStr + " ed.careContext.id = :ec");
        markers.add("ec");
        values.add(voCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List edList = factory.find(query,markers,values);
    OPDErectDysfxnVoCollection voOPDErectDysfxnVoColl = OPDErectDysfxnVoAssembler.createOPDErectDysfxnVoCollectionFromOPDErectDysfxn(edList);

    return voOPDErectDysfxnVoColl;
}
项目:openmaxims-linux    文件:NursingAdmissionImpl.java   
public AdmissionDetailsVo getNursingAdmission(CareContextLiteVo voCareContextLite) 
    {
    if(voCareContextLite == null)
        throw new CodingRuntimeException("Contact not Provided");

    DomainFactory factory = getDomainFactory();

    //the following query retrievs the one and only contact of type spinalmedicaladmission if it has been instantiated
    List admisDetails =   factory.find(" from AdmissionDetails ad where ad.careContext.id = :idCareContext )",
            new String[]{"idCareContext" },
            new Object[]{ voCareContextLite.getID_CareContext()});

    AdmissionDetailsVoCollection voAdmisDetails = AdmissionDetailsVoAssembler.createAdmissionDetailsVoCollectionFromAdmissionDetails(admisDetails); 

    if(voAdmisDetails.size()>0)
        return voAdmisDetails.get(0);
    else 
        return null;
}
项目:openMAXIMS    文件:NursingAdmissionImpl.java   
public AdmissionDetailsVo getNursingAdmission(CareContextLiteVo voCareContextLite) 
    {
    if(voCareContextLite == null)
        throw new CodingRuntimeException("Contact not Provided");

    DomainFactory factory = getDomainFactory();

    //the following query retrievs the one and only contact of type spinalmedicaladmission if it has been instantiated
    List admisDetails =   factory.find(" from AdmissionDetails ad where ad.careContext.id = :idCareContext )",
            new String[]{"idCareContext" },
            new Object[]{ voCareContextLite.getID_CareContext()});

    AdmissionDetailsVoCollection voAdmisDetails = AdmissionDetailsVoAssembler.createAdmissionDetailsVoCollectionFromAdmissionDetails(admisDetails); 

    if(voAdmisDetails.size()>0)
        return voAdmisDetails.get(0);
    else 
        return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void browseRecord()
{
    updateBrowseInformation();
    if(form.recbrSpacticityAssess().getValue() != null)
    {           
        CareContextShortVo voCareContextShort = (CareContextShortVo)form.recbrSpacticityAssess().getValue();

        OPDSpasticityAssessTreatVoCollection coll = domain.getAssessTreatByCareContext((CareContextLiteVo) form.recbrSpacticityAssess().getValue());
        OPDSpasticityAssessTreatVo voOpdSpastAssessTreat = null;
        if(coll!=null && coll.size()>0)
            voOpdSpastAssessTreat  = coll.get(0);
        form.getLocalContext().setSelectedCareContextShort(voCareContextShort);
        form.getLocalContext().setvoOpdSpastAssessTreat(voOpdSpastAssessTreat);

        populateScreenFromData();
        checkRecordIsEditable(voOpdSpastAssessTreat, voCareContextShort);
    }

}
项目:openmaxims-linux    文件:OPDSpasticityAssessImpl.java   
public OPDSpasticityAssessTreatVoCollection getAssessTreatByCareContext(CareContextLiteVo voCareContext)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = " from OPDSpasticityAssessTreat sat ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContext.getEpisodeOfCareIsNotNull())
    {
        hql.append(andStr + " sat.careContext.id = :ec");
        markers.add("ec");
        values.add(voCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List satList = factory.find(query,markers,values);
    OPDSpasticityAssessTreatVoCollection collOPDSpasticityAssessTreat = OPDSpasticityAssessTreatVoAssembler.createOPDSpasticityAssessTreatVoCollectionFromOPDSpasticityAssessTreat(satList);

    return collOPDSpasticityAssessTreat;
}
项目:openMAXIMS    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVoCollection listGoalPlanningMeetings(CareContextLiteVo voCareContextLite) 
{
    if (voCareContextLite == null)
        throw new CodingRuntimeException("Care Context is a mandatory argument");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from GoalPlanning p ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    hql.append(andStr + " p.careContext.id = :careContext");
    markers.add("careContext");
    values.add(voCareContextLite.getID_CareContext());          
    andStr = " and ";


    if (markers.size() > 0) query += " where ";
    query += hql.toString();

    List goalPlanning = factory.find(query, markers, values, 200);  
    return GoalPlanningVoAssembler.createGoalPlanningVoCollectionFromGoalPlanning(goalPlanning).sort();
}
项目:openMAXIMS    文件:Logic.java   
private void browseRecord()
{
    updateBrowseInformation();

    if(form.recbrSleepAssessment().getValue() != null)
    {           
        form.getLocalContext().setvoSleep(domain.getSleepAssessmentByCareContext((CareContextLiteVo) form.recbrSleepAssessment().getValue()));
        form.getLocalContext().setvoVitals(domain.getVitalSignsByCareContext((CareContextLiteVo) form.recbrSleepAssessment().getValue()));

        if (form.getLocalContext().getvoSleepIsNotNull() || form.getLocalContext().getvoVitalsIsNotNull())
            populateScreenFromData();
        else
        {
            clearScreen();
            clearGrids();
        }
    }

    updateControlsState();      
}
项目:openmaxims-linux    文件:Logic.java   
private void browseRecord()
{
    updateBrowseInformation();

    if(form.recbrSleepAssessment().getValue() != null)
    {           
        form.getLocalContext().setvoSleep(domain.getSleepAssessmentByCareContext((CareContextLiteVo) form.recbrSleepAssessment().getValue()));
        form.getLocalContext().setvoVitals(domain.getVitalSignsByCareContext((CareContextLiteVo) form.recbrSleepAssessment().getValue()));

        if (form.getLocalContext().getvoSleepIsNotNull() || form.getLocalContext().getvoVitalsIsNotNull())
            populateScreenFromData();
        else
        {
            clearScreen();
            clearGrids();
        }
    }

    updateControlsState();      
}
项目:openMAXIMS    文件:Logic.java   
private void browseRecord()
{
    updateBrowseInformation();
    if (form.recbrOPDEDClinicNotes().getValue() != null)
    {
        CareContextShortVo voCareContextShort = (CareContextShortVo) form.recbrOPDEDClinicNotes().getValue();

        OPDErectDysfxnVoCollection coll = domain.getOPDErectDysfxnByCareContext((CareContextLiteVo) form.recbrOPDEDClinicNotes().getValue());
        OPDErectDysfxnVo voOPDErectDysfxnVo = null;
        if(coll!=null && coll.size()>0)
            voOPDErectDysfxnVo = coll.get(0);
        form.getLocalContext().setvoOPDErectDysfxn(voOPDErectDysfxnVo);
        form.getLocalContext().setMedSocialHistory(domain.getMedSocialHistoryByCareContext((CareContextLiteVo) form.recbrOPDEDClinicNotes().getValue()));

        populateScreenFromData();

        populateSocialHistoryScreenFromData();

        checkRecordIsEditable(voOPDErectDysfxnVo, voCareContextShort);
    }
}
项目:openmaxims-linux    文件:OPDEDClinicNotesImpl.java   
public OPDErectDysfxnVoCollection getOPDErectDysfxnByCareContext(CareContextLiteVo voCareContext)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from OPDErectDysfxn ed ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContext.getEpisodeOfCareIsNotNull())
    {
        hql.append(andStr + " ed.careContext.id = :ec");
        markers.add("ec");
        values.add(voCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List edList = factory.find(query,markers,values);
    OPDErectDysfxnVoCollection voOPDErectDysfxnVoColl = OPDErectDysfxnVoAssembler.createOPDErectDysfxnVoCollectionFromOPDErectDysfxn(edList);

    return voOPDErectDysfxnVoColl;
}
项目:openMAXIMS    文件:OPDEDClinicNotesImpl.java   
public OPDErectDysfxnVoCollection getOPDErectDysfxnByCareContext(CareContextLiteVo voCareContext)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from OPDErectDysfxn ed ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContext.getEpisodeOfCareIsNotNull())
    {
        hql.append(andStr + " ed.careContext.id = :ec");
        markers.add("ec");
        values.add(voCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List edList = factory.find(query,markers,values);
    OPDErectDysfxnVoCollection voOPDErectDysfxnVoColl = OPDErectDysfxnVoAssembler.createOPDErectDysfxnVoCollectionFromOPDErectDysfxn(edList);

    return voOPDErectDysfxnVoColl;
}
项目:openMAXIMS    文件:OPDSpasticityAssessImpl.java   
public OPDSpasticityAssessTreatVoCollection getAssessTreatByCareContext(CareContextLiteVo voCareContext)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = " from OPDSpasticityAssessTreat sat ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContext.getEpisodeOfCareIsNotNull())
    {
        hql.append(andStr + " sat.careContext.id = :ec");
        markers.add("ec");
        values.add(voCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List satList = factory.find(query,markers,values);
    OPDSpasticityAssessTreatVoCollection collOPDSpasticityAssessTreat = OPDSpasticityAssessTreatVoAssembler.createOPDSpasticityAssessTreatVoCollectionFromOPDSpasticityAssessTreat(satList);

    return collOPDSpasticityAssessTreat;
}
项目:openMAXIMS    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVoCollection listGoalPlanningMeetings(CareContextLiteVo voCareContextLite) 
{
    if (voCareContextLite == null)
        throw new CodingRuntimeException("Care Context is a mandatory argument");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from GoalPlanning p ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    hql.append(andStr + " p.careContext.id = :careContext");
    markers.add("careContext");
    values.add(voCareContextLite.getID_CareContext());          
    andStr = " and ";


    if (markers.size() > 0) query += " where ";
    query += hql.toString();

    List goalPlanning = factory.find(query, markers, values, 200);  
    return GoalPlanningVoAssembler.createGoalPlanningVoCollectionFromGoalPlanning(goalPlanning).sort();
}
项目:openmaxims-linux    文件:Logic.java   
private void browseRecord()
{
    updateBrowseInformation();
    if (form.recbrOPDEDClinicNotes().getValue() != null)
    {
        CareContextShortVo voCareContextShort = (CareContextShortVo) form.recbrOPDEDClinicNotes().getValue();

        OPDErectDysfxnVoCollection coll = domain.getOPDErectDysfxnByCareContext((CareContextLiteVo) form.recbrOPDEDClinicNotes().getValue());
        OPDErectDysfxnVo voOPDErectDysfxnVo = null;
        if(coll!=null && coll.size()>0)
            voOPDErectDysfxnVo = coll.get(0);
        form.getLocalContext().setvoOPDErectDysfxn(voOPDErectDysfxnVo);
        form.getLocalContext().setMedSocialHistory(domain.getMedSocialHistoryByCareContext((CareContextLiteVo) form.recbrOPDEDClinicNotes().getValue()));

        populateScreenFromData();

        populateSocialHistoryScreenFromData();

        checkRecordIsEditable(voOPDErectDysfxnVo, voCareContextShort);
    }
}
项目:openMAXIMS    文件:NursingAdmissionImpl.java   
public AdmissionDetailsVo getNursingAdmission(CareContextLiteVo voCareContextLite) 
    {
    if(voCareContextLite == null)
        throw new CodingRuntimeException("Contact not Provided");

    DomainFactory factory = getDomainFactory();

    //the following query retrievs the one and only contact of type spinalmedicaladmission if it has been instantiated
    List admisDetails =   factory.find(" from AdmissionDetails ad where ad.careContext.id = :idCareContext )",
            new String[]{"idCareContext" },
            new Object[]{ voCareContextLite.getID_CareContext()});

    AdmissionDetailsVoCollection voAdmisDetails = AdmissionDetailsVoAssembler.createAdmissionDetailsVoCollectionFromAdmissionDetails(admisDetails); 

    if(voAdmisDetails.size()>0)
        return voAdmisDetails.get(0);
    else 
        return null;
}
项目:openmaxims-linux    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVoCollection listGoalPlanningMeetings(CareContextLiteVo voCareContextLite) 
{
    if (voCareContextLite == null)
        throw new CodingRuntimeException("Care Context is a mandatory argument");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from GoalPlanning p ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    hql.append(andStr + " p.careContext.id = :careContext");
    markers.add("careContext");
    values.add(voCareContextLite.getID_CareContext());          
    andStr = " and ";


    if (markers.size() > 0) query += " where ";
    query += hql.toString();

    List goalPlanning = factory.find(query, markers, values, 200);  
    return GoalPlanningVoAssembler.createGoalPlanningVoCollectionFromGoalPlanning(goalPlanning).sort();
}
项目:AvoinApotti    文件:Logic.java   
private void browseRecord()
{
    clearControls();
    form.drawingBack().clearShapes();

    updateBrowseInformation();

    if(form.recbrExam().getValue() != null)
    {           
        if(form.recbrExam().getValue() instanceof ClinicalContactShortVo)
        {
            form.getLocalContext().setadmisSpineExam(domain.getAdmisSpineExamination((ClinicalContactShortVo) form.recbrExam().getValue(), null));
        }
        else if(form.recbrExam().getValue() instanceof MskSpineExamFindingShortVo)
        {
            MskSpineExamFindingShortVo voSpineExam = (MskSpineExamFindingShortVo) form.recbrExam().getValue();

            if(voSpineExam.getClinicalContact() == null)
                form.getLocalContext().setadmisSpineExam(domain.getAdmisSpineExamByCareContext(voSpineExam.getCareContext(), voSpineExam));
            else
                form.getLocalContext().setadmisSpineExam(domain.getAdmisSpineExamination(voSpineExam.getClinicalContact(), voSpineExam));
        }
        else
        {
            form.getLocalContext().setadmisSpineExam(domain.getAdmisSpineExamByCareContext((CareContextLiteVo) form.recbrExam().getValue(), null));
        }
        populateScreenFromData(form.getLocalContext().getadmisSpineExam(), false);
    }
    checkRecordIsEditable();
}
项目:AvoinApotti    文件:Logic.java   
private void browseRecord()
{
    updateBrowseInformation();

    if(form.recbrOPDMedExam().getValue() != null)
    {           
        form.getLocalContext().setvoMedExamGeneral(domain.getMedExamGeneralVoByCareContext((CareContextLiteVo) form.recbrOPDMedExam().getValue()));
        form.getLocalContext().setvoVitals(domain.getVitalsVoByCareContext((CareContextLiteVo) form.recbrOPDMedExam().getValue()));

        populateScreenFromData();
    }
    checkRecordIsEditable();
}
项目:AvoinApotti    文件:Logic.java   
private void browseRecord()
{
    clearScreen();
    clearGrids();
    loadLookupsIntoGrids();

    updateBrowseInformation();

    if(form.recbrReflexes().getValue() != null)
    {           
        if(form.recbrReflexes().getValue() instanceof ClinicalContactShortVo)
        {
            form.getLocalContext().setReflexRecord(domain.getNeuroReflexRecord((ClinicalContactShortVo) form.recbrReflexes().getValue(), null));
        }
        else if(form.recbrReflexes().getValue() instanceof NeuroReflexesShortVo)
        {
            NeuroReflexesShortVo voReflexes = (NeuroReflexesShortVo) form.recbrReflexes().getValue();

            if(voReflexes.getClinicalContact() == null)
                form.getLocalContext().setReflexRecord(domain.getNeuroReflexByCareContext(voReflexes.getCareContext(), voReflexes));
            else
                form.getLocalContext().setReflexRecord(domain.getNeuroReflexRecord(voReflexes.getClinicalContact(), voReflexes));
        }
        else
        {
            form.getLocalContext().setReflexRecord(domain.getNeuroReflexByCareContext((CareContextLiteVo) form.recbrReflexes().getValue(), null));
        }
        populateScreenFromData();
    }
    checkRecordIsEditable();

}
项目:AvoinApotti    文件:Logic.java   
private void browseRecord()
{
    clearForm(true);

    form.btnUpdate().setVisible(false);
    form.ccAuthoring().setValue(null); //WDEV-15172

    updateBrowseInformation();

    if(form.recbrPathology().getValue() != null)
    {           
        if(form.recbrPathology().getValue() instanceof ClinicalContactShortVo)
        {
            if(form.chkActiveOnly().getValue())
                form.getLocalContext().setSpinePathologyFindingColl(domain.getMskSpinePath((ClinicalContactShortVo) form.recbrPathology().getValue(), Boolean.TRUE));
            else
                form.getLocalContext().setSpinePathologyFindingColl(domain.getMskSpinePath((ClinicalContactShortVo) form.recbrPathology().getValue(), null));
        }
        else
        {
            if(form.chkActiveOnly().getValue())
                form.getLocalContext().setSpinePathologyFindingColl(domain.getByCareContext((CareContextLiteVo) form.recbrPathology().getValue(), Boolean.TRUE));
            else
                form.getLocalContext().setSpinePathologyFindingColl(domain.getByCareContext((CareContextLiteVo) form.recbrPathology().getValue(), null));
        }
        populateScreenFromData();
    }
    checkRecordIsEditable();
}
项目:AvoinApotti    文件:Logic.java   
private void browseRecord()
{
    clear();

    updateBrowseInformation();
    if (form.recbrJointBone().getValue() != null)
    {
        if (form.recbrJointBone().getValue() instanceof ClinicalContactShortVo)
        {
            form.getLocalContext().setSelectedRecord(domain.getBoneJointsRecords((ClinicalContactShortVo) form.recbrJointBone().getValue(), null));
        }
        else if (form.recbrJointBone().getValue() instanceof MskBoneJointShortVo)
        {
            MskBoneJointShortVo voBoneJoint = (MskBoneJointShortVo) form.recbrJointBone().getValue();

            if (voBoneJoint.getClinicalContact() == null)
                form.getLocalContext().setSelectedRecord(domain.getBoneJointByCareContext(voBoneJoint.getCareContext(), voBoneJoint));
            else
                form.getLocalContext().setSelectedRecord(domain.getBoneJointsRecords(voBoneJoint.getClinicalContact(), voBoneJoint));
        }
        else
        {
            form.getLocalContext().setSelectedRecord(domain.getBoneJointByCareContext((CareContextLiteVo) form.recbrJointBone().getValue(), null));

            CareContextShortVo voCareContext = (CareContextShortVo) form.recbrJointBone().getValue();
            ClinicalContactShortVo voClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact();
            if (voClinicalContact == null && voCareContext.getID_CareContext().equals(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext()))
                prepareForCareContext(true);
            else
                prepareForCareContext(false);

        }
        populateControls(form.getLocalContext().getSelectedRecord());
    }
    checkRecordIsEditable();

}
项目:AvoinApotti    文件:Logic.java   
private void browseRecord()
{
    clearScreen();
    updateBrowseInformation();

    if(form.recbrOPDMedicalNotes().getValue() != null)
    {           
        if(form.recbrOPDMedicalNotes().getValue() instanceof CareContextShortVo)
            form.getLocalContext().setvoOPDGenNotes(domain.getOPDGenNotesByCareContext((CareContextLiteVo) form.recbrOPDMedicalNotes().getValue()));

        populateScreenFromData();
    }
    checkRecordIsEditable();
}
项目:AvoinApotti    文件:MedMskSpineExamImpl.java   
public MskSpineExamFindingShortVoCollection listByCareContext(CareContextLiteVo voCareContext)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from MskSpineExam mse ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContext != null)
    {
        hql.append(andStr + " mse.careContext.id = :cc");
        markers.add("cc");
        values.add(voCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    List mskSpine = factory.find(query,markers,values);
    MskSpineExamFindingShortVoCollection voSpineExamFindingShortColl = MskSpineExamFindingShortVoAssembler.createMskSpineExamFindingShortVoCollectionFromMskSpineExam(mskSpine);
    if(voSpineExamFindingShortColl != null)
        return voSpineExamFindingShortColl.sort(SortOrder.DESCENDING);
    else    
        return null;
}
项目:AvoinApotti    文件:MedMskSpinePathImpl.java   
public MSKSpinePathologyFindingShortVoCollection listByCareContext(CareContextLiteVo voCareContext)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from MskSpinePath msp";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContext != null)
    {
        hql.append(andStr + " msp.careContext.id = :cc");
        markers.add("cc");
        values.add(voCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    List spine = factory.find(query,markers,values);

    MSKSpinePathologyFindingShortVoCollection voSpinePathologyFinding = MSKSpinePathologyFindingShortVoAssembler.createMSKSpinePathologyFindingShortVoCollectionFromMskSpinePath(spine);
    if(voSpinePathologyFinding != null && voSpinePathologyFinding.size()>0)
        return voSpinePathologyFinding;
    else
        return null;

}
项目:AvoinApotti    文件:MedMskSpinePathImpl.java   
public MSKSpinePathologyFindingVoCollection getByCareContext(CareContextLiteVo voCareContext, Boolean active)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from MskSpinePath msp ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContext != null)
    {
        hql.append(andStr + " msp.careContext.id = :cc");
        markers.add("cc");
        values.add(voCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (active != null)
    {
        hql.append(andStr + " msp.isActive = :active");
        markers.add("active");
        values.add(active);
        andStr = " and ";
    }

    hql.append(andStr + "msp.clinicalContact is null");

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    List neuros = factory.find(query,markers,values);
    MSKSpinePathologyFindingVoCollection voSpinePathologyFindingColl = MSKSpinePathologyFindingVoAssembler.createMSKSpinePathologyFindingVoCollectionFromMskSpinePath(neuros);
    if(voSpinePathologyFindingColl != null && voSpinePathologyFindingColl.size()>0)
        return voSpinePathologyFindingColl.sort(SortOrder.DESCENDING);
    else    
        return null;
}
项目:AvoinApotti    文件:OPDEDClinicNotesImpl.java   
public OPDErectDysfxnVoCollection listByCareContext(CareContextLiteVo voCareContext)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from OPDErectDysfxn ed ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContext.getEpisodeOfCareIsNotNull())
    {
        hql.append(andStr + " ed.careContext.id = :ec");
        markers.add("ec");
        values.add(voCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List edList = factory.find(query,markers,values);
    OPDErectDysfxnVoCollection voOPDErectDysfxnVoColl = OPDErectDysfxnVoAssembler.createOPDErectDysfxnVoCollectionFromOPDErectDysfxn(edList);

    if(voOPDErectDysfxnVoColl.size()>0)
        return voOPDErectDysfxnVoColl;
    else
        return null;
}
项目:AvoinApotti    文件:OPDEDClinicNotesImpl.java   
public SocialHistoryVo getMedSocialHistoryByCareContext(CareContextLiteVo voCareContext)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = " from SocialHistory socHist ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContext.getEpisodeOfCareIsNotNull())
    {
        hql.append(andStr + " socHist.careContext.id = :ec");
        markers.add("ec");
        values.add(voCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    query += " and socHist.isRIE is null";

    java.util.List socHistList = factory.find(query,markers,values);
    SocialHistoryVoCollection voCollSocHist  = SocialHistoryVoAssembler.createSocialHistoryVoCollectionFromSocialHistory(socHistList);

    if(voCollSocHist.size()>0)
        return voCollSocHist.get(0);
    else
        return null;
}
项目:AvoinApotti    文件:MedMskJointsBonesImpl.java   
/** 
 * returns all Joint/Bone records from the rootClinicalContact (for recordBrowser)
 */
public MskBoneJointShortVoCollection listByCareContext(CareContextLiteVo voCareContext)
{
    DomainFactory factory = getDomainFactory();

    String hql = " from MskExamJointBones mejb "; 
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if(voCareContext != null)
    {
        condStr.append(andStr + " mejb.careContext.id = :cc"); 
        markers.add("cc");
        values.add(voCareContext.getID_CareContext());
        andStr = " and ";
    }   

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();
    List mskJointBone = factory.find(hql,markers,values);
    MskBoneJointShortVoCollection voBoneJointShortColl = MskBoneJointShortVoAssembler.createMskBoneJointShortVoCollectionFromMskExamJointBones(mskJointBone);
    if(voBoneJointShortColl != null)
        return voBoneJointShortColl.sort(SortOrder.DESCENDING);
    else    
        return null;
}
项目:AvoinApotti    文件:OPDSpasticityAssessImpl.java   
public OPDSpasticityAssessTreatVoCollection listByCareContext(CareContextLiteVo voCareContext)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = " from OPDSpasticityAssessTreat sat ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContext.getEpisodeOfCareIsNotNull())
    {
        hql.append(andStr + " sat.careContext.id = :cc");
        markers.add("cc");
        values.add(voCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List satList = factory.find(query,markers,values);

    OPDSpasticityAssessTreatVoCollection collOPDSpasticityAssessTreat = OPDSpasticityAssessTreatVoAssembler.createOPDSpasticityAssessTreatVoCollectionFromOPDSpasticityAssessTreat(satList);

    if(collOPDSpasticityAssessTreat.size()>0)
        return collOPDSpasticityAssessTreat;
    else
        return null;    
}