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

项目:AvoinApotti    文件:RACPCPMHExamImpl.java   
public VitalSignsVo getVitalSignsForCareContext(CareContextRefVo refVoCareContext) {
    if (refVoCareContext == null)
        throw new CodingRuntimeException("Cannot get CareContext for null CareContextRefVo");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from VitalSigns vs where "); 

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

    hql.append(" vs.careContext.id = :ccId");
    markers.add("ccId");
    values.add(refVoCareContext.getID_CareContext());

    hql.append(" order by vs.vitalsTakenDateTime");

    List listVitalSigns = factory.find(hql.toString(), markers,values);
    if(listVitalSigns != null && listVitalSigns.size() > 0)
    { 
        VitalSignsVoCollection voColl = VitalSignsVoAssembler.createVitalSignsVoCollectionFromVitalSigns(listVitalSigns);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void updatePrevNextButtons()
{
    VitalSignsVoCollection voCollBloodSugar = form.getLocalContext().getBloods();
    Integer nIndex = form.getLocalContext().getCurrentIndex();

    form.btnNext().setEnabled(true);
    form.btnPrev().setEnabled(true);

    if(voCollBloodSugar == null || nIndex == null)
    {
        form.btnNext().setEnabled(false);
        form.btnPrev().setEnabled(false);
        return;
    }

    if(nIndex.intValue() <= 0)
        form.btnPrev().setEnabled(false);

    if(nIndex.intValue() >= voCollBloodSugar.size() - 1)
        form.btnNext().setEnabled(false);
}
项目:AvoinApotti    文件:Logic.java   
protected void onGrhBloodSugarPointClicked(GraphingPoint point) 
{
    if(point.getType() == GraphingPointType.BLOODSUGAR)
    {           
        GraphingBloodSugar pointBloodSugar = (GraphingBloodSugar)point;
        form.getLocalContext().setvitalSign((VitalSignsVo)pointBloodSugar.getTag());
        displayRecord((VitalSignsVo)pointBloodSugar.getTag());
        form.btnUpdate().setEnabled(true);
        //form.btnPrint().setEnabled(true);

        //update the Prev/Next buttons
        VitalSignsVoCollection voTemperatures = form.getLocalContext().getBloods();
        for(int i = 0; i < voTemperatures.size(); i++)
        {
            if(form.getLocalContext().getvitalSign().getID_VitalSigns().intValue() == voTemperatures.get(i).getID_VitalSigns().intValue())
            {
                form.getLocalContext().setCurrentIndex(new Integer(i));
                updatePrevNextButtons();
                break;
            }
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
protected void onGrhPainPointClicked(ims.framework.utils.graphing.GraphingPoint point)
{
    if(point.getType() == GraphingPointType.CUSTOM_ONE_VALUE)
    {           
        GraphingCustomOneValue pointTemp = (GraphingCustomOneValue)point;
        form.getLocalContext().setVitalSign((VitalSignsVo)pointTemp.getTag());
        displayRecord((VitalSignsVo)pointTemp.getTag());
        form.btnUpdate().setEnabled(true);

        //update the Prev/Next buttons
        VitalSignsVoCollection voPain = form.getLocalContext().getPains();
        for(int i = 0; i < voPain.size(); i++)
        {
            if(form.getLocalContext().getVitalSign().getID_VitalSigns().intValue() == voPain.get(i).getID_VitalSigns().intValue())
            {
                form.getLocalContext().setCurrentIndex(new Integer(i));
                updatePrevNextButtons();
                break;
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void updatePrevNextButtons()
{
    VitalSignsVoCollection voMetrics = form.getLocalContext().getComas();
    Integer nIndex = form.getLocalContext().getCurrentIndex();

    form.btnNext().setEnabled(true);
    form.btnPrev().setEnabled(true);

    if(voMetrics == null || nIndex == null)
    {
        form.btnNext().setEnabled(false);
        form.btnPrev().setEnabled(false);
        return;
    }

    if(nIndex.intValue() <= 0)
        form.btnPrev().setEnabled(false);

    if(nIndex.intValue() >= voMetrics.size() - 1)
        form.btnNext().setEnabled(false);
}
项目:AvoinApotti    文件:Logic.java   
private void updatePrevNextButtons()
{
    VitalSignsVoCollection voMetrics = form.getLocalContext().getOxygens();
    Integer nIndex = form.getLocalContext().getCurrentIndex();

    form.btnNext().setEnabled(true);
    form.btnPrev().setEnabled(true);

    if(voMetrics == null || nIndex == null)
    {
        form.btnNext().setEnabled(false);
        form.btnPrev().setEnabled(false);
        return;
    }

    if(nIndex.intValue() <= 0)
        form.btnPrev().setEnabled(false);

    if(nIndex.intValue() >= voMetrics.size() - 1)
        form.btnNext().setEnabled(false);
}
项目:AvoinApotti    文件:Logic.java   
protected void onGrhOxygenSatPointClicked(GraphingPoint point) 
{
    if(point.getType() == GraphingPointType.OXYGEN)
    {           
        GraphingOxygen pointOxygen = (GraphingOxygen)point;
        form.getLocalContext().setvitalSign((VitalSignsVo)pointOxygen.getTag());
        displayRecord((VitalSignsVo)pointOxygen.getTag());
        form.btnUpdate().setEnabled(true);
        //form.btnPrint().setEnabled(true);

        //update the Prev/Next buttons
        VitalSignsVoCollection voTemperatures = form.getLocalContext().getOxygens();
        for(int i = 0; i < voTemperatures.size(); i++)
        {
            if(form.getLocalContext().getvitalSign().getID_VitalSigns().intValue() == voTemperatures.get(i).getID_VitalSigns().intValue())
            {
                form.getLocalContext().setCurrentIndex(new Integer(i));
                updatePrevNextButtons();
                break;
            }
        }
    } 

}
项目:AvoinApotti    文件:Logic.java   
private void open() 
{
    form.setMode(FormMode.VIEW);
    form.ctnDetails().setCollapsed(true);
    form.btnUpdate().setEnabled(false);
    clearScreen();

    //WDEV-15977
    form.getLocalContext().setselectedVitalCapacity(null);

    form.grdVital().getRows().clear();

    VitalSignsVoCollection voCollVitalCapacity = new VitalSignsVoCollection();

    voCollVitalCapacity = domain.listVitalCapacity(form.getGlobalContext().Core.getCurrentCareContext());

    if (voCollVitalCapacity == null)
        return;

    populateVitalCapacityGrid(voCollVitalCapacity); 
}
项目:AvoinApotti    文件:Logic.java   
protected void onGrhPupilsPointClicked(GraphingPoint point) 
{   
    if(point.getType() == GraphingPointType.PUPILS)
    {           
        GraphingPupils pointPupil= (GraphingPupils)point;
        form.getLocalContext().setvitalSign((VitalSignsVo)pointPupil.getTag());
        displayRecord((VitalSignsVo)pointPupil.getTag());
        form.btnUpdate().setEnabled(true);

        //update the Prev/Next buttons
        VitalSignsVoCollection voPupils = form.getLocalContext().getPupils();
        for(int i = 0; i < voPupils.size(); i++)
        {
            if(form.getLocalContext().getvitalSign().getID_VitalSigns().intValue() == voPupils.get(i).getID_VitalSigns().intValue())
            {
                form.getLocalContext().setCurrentIndex(new Integer(i));
                updatePrevNextButtons();
                break;
            }
        }           
    }       
}
项目:AvoinApotti    文件:Logic.java   
protected void onGrhPulsePointClicked(GraphingPoint point)
{
    if (point.getType() == GraphingPointType.PULSE)
    {
        GraphingPulse pointPulse = (GraphingPulse) point;
        form.getLocalContext().setvitalSign((VitalSignsVo) pointPulse.getTag());
        displayRecord((VitalSignsVo) pointPulse.getTag());
        form.btnUpdate().setEnabled(true);

        // update the Prev/Next buttons
        VitalSignsVoCollection voPulses = form.getLocalContext().getPulses();
        for (int i = 0; i < voPulses.size(); i++)
        {
            if (form.getLocalContext().getvitalSign().getID_VitalSigns().intValue() == voPulses.get(i).getID_VitalSigns().intValue())
            {
                form.getLocalContext().setCurrentIndex(new Integer(i));
                updatePrevNextButtons();
                break;
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onCmbAllRecordsValueChanged() throws ims.framework.exceptions.PresentationLogicException
    {
        form.cmbRecordToUpdate().clear();
        clearGridContent();
        form.btnUpdate().setEnabled(false);

        if (form.cmbAllRecords().getValue() != null)
        {
            //populateBaseGrid();
            // List all the ventilation chart records for the given Clinical Contact and this date
            VitalSignsVoCollection coll = domain.listVentilationCharts(form.getGlobalContext().Core.getCurrentCareContext(), form.cmbAllRecords().getValue());
            if (coll != null && coll.size() > 0)
                 populateGrid(coll);

//          form.btnUpdate().setEnabled(true);
        }
//      else
//      {
//          form.btnUpdate().setEnabled(false);     
//      }

        updateControlsState();
    }
项目:AvoinApotti    文件:Logic.java   
protected void onGrhMetricsPointClicked(ims.framework.utils.graphing.GraphingPoint point)
{
    if(point.getType() == GraphingPointType.METRICS)
    {           
        GraphingMetrics pointMetrics = (GraphingMetrics)point;
        form.getLocalContext().setvitalSign((VitalSignsVo)pointMetrics.getTag());
        displayRecord((VitalSignsVo)pointMetrics.getTag());
        form.btnUpdate().setEnabled(true);

        //update the Prev/Next buttons
        VitalSignsVoCollection voTemperatures = form.getLocalContext().getMetrics();
        for(int i = 0; i < voTemperatures.size(); i++)
        {
            if(form.getLocalContext().getvitalSign().getID_VitalSigns().intValue() == voTemperatures.get(i).getID_VitalSigns().intValue())
            {
                form.getLocalContext().setCurrentIndex(new Integer(i));
                updatePrevNextButtons();
                break;
            }
        }
    }       
}
项目:AvoinApotti    文件:Logic.java   
private void updatePrevNextButtons()
{
    VitalSignsVoCollection voMetrics = form.getLocalContext().getMetrics();
    Integer nIndex = form.getLocalContext().getCurrentIndex();

    form.btnNext().setEnabled(true);
    form.btnPrev().setEnabled(true);

    if(voMetrics == null || nIndex == null)
    {
        form.btnNext().setEnabled(false);
        form.btnPrev().setEnabled(false);
        return;
    }

    if(nIndex.intValue() <= 0)
        form.btnPrev().setEnabled(false);

    if(nIndex.intValue() >= voMetrics.size() - 1)
        form.btnNext().setEnabled(false);
}
项目:AvoinApotti    文件:Logic.java   
private void listVitalSigns() throws PresentationLogicException
{
    form.recbrAllRecords().clear();
    form.getLocalContext().setSelectedVitalSignsVo(null);
    VitalSignsVoCollection voColl = domain.listVitalSigns(form.getGlobalContext().Core.getCurrentCareContext());

    if (voColl != null)
    {
        for (int i = 0; i < voColl.size(); i++)
            form.recbrAllRecords().newRow(voColl.get(i), (voColl.get(i).getAuthoringInformationIsNotNull() && voColl.get(i).getAuthoringInformation().getAuthoringDateTime() != null ? voColl.get(i).getAuthoringInformation().getAuthoringDateTime().toString() : "") + " - " + (voColl.get(i).getAuthoringInformationIsNotNull() && voColl.get(i).getAuthoringInformation().getAuthoringHcp() != null ? voColl.get(i).getAuthoringInformation().getAuthoringHcp().toString() : ""));

        if (form.recbrAllRecords().getValue() == null && form.recbrAllRecords().getValues() != null && voColl.size() > 0)
        {
            form.recbrAllRecords().setValue((VitalSignsVo) form.recbrAllRecords().getValues().get(0));
        }
    }

    form.lyrVSigns().tabSection1().intBPStandingDiastolic().setEnabled(false);
    form.lyrVSigns().tabSection1().intBPStandingSystolic().setEnabled(false);

    selectVitalSign();
}
项目:AvoinApotti    文件:Logic.java   
private void updatePrevNextButtons()
{
    VitalSignsVoCollection voMetrics = form.getLocalContext().getPeaks();
    Integer nIndex = form.getLocalContext().getCurrentIndex();

    form.btnNext().setEnabled(true);
    form.btnPrev().setEnabled(true);

    if(voMetrics == null || nIndex == null)
    {
        form.btnNext().setEnabled(false);
        form.btnPrev().setEnabled(false);
        return;
    }

    if(nIndex.intValue() <= 0)
        form.btnPrev().setEnabled(false);

    if(nIndex.intValue() >= voMetrics.size() - 1)
        form.btnNext().setEnabled(false);
}
项目:AvoinApotti    文件:Logic.java   
protected void onGrhPeakFlowPointClicked(GraphingPoint point)
{
    if(point.getType() == GraphingPointType.PEAKFLOW)
    {           
        GraphingPeakFlow pointPeakFlow = (GraphingPeakFlow)point;
        form.getLocalContext().setvitalSign((VitalSignsVo)pointPeakFlow.getTag());
        displayRecord((VitalSignsVo)pointPeakFlow.getTag());
        form.btnUpdate().setEnabled(true);
        //form.btnPrint().setEnabled(true);
    }

    //update the Prev/Next buttons
    VitalSignsVoCollection voTemperatures = form.getLocalContext().getPeaks();
    for(int i = 0; i < voTemperatures.size(); i++)
    {
        if(form.getLocalContext().getvitalSign().getID_VitalSigns().intValue() == voTemperatures.get(i).getID_VitalSigns().intValue())
        {
            form.getLocalContext().setCurrentIndex(new Integer(i));
            updatePrevNextButtons();
            break;
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void updatePrevNextButtons()
{
    VitalSignsVoCollection voMetrics = form.getLocalContext().getRespirations();
    Integer nIndex = form.getLocalContext().getCurrentIndex();

    form.btnNext().setEnabled(true);
    form.btnPrev().setEnabled(true);

    if(voMetrics == null || nIndex == null)
    {
        form.btnNext().setEnabled(false);
        form.btnPrev().setEnabled(false);
        return;
    }

    if(nIndex.intValue() <= 0)
        form.btnPrev().setEnabled(false);

    if(nIndex.intValue() >= voMetrics.size() - 1)
        form.btnNext().setEnabled(false);
}
项目:AvoinApotti    文件:Logic.java   
protected void onGrhRespirationPointClicked(GraphingPoint point) 
{
    if(point.getType() == GraphingPointType.RESPIRATION)
    {           
        GraphingRespiration pointResp = (GraphingRespiration)point;
        form.getLocalContext().setvitalSign((VitalSignsVo)pointResp.getTag());
        displayRecord((VitalSignsVo)pointResp.getTag());
        form.btnUpdate().setEnabled(true);
        //form.btnPrint().setEnabled(true);

        //update the Prev/Next buttons
        VitalSignsVoCollection voTemperatures = form.getLocalContext().getRespirations();
        for(int i = 0; i < voTemperatures.size(); i++)
        {
            if(form.getLocalContext().getvitalSign().getID_VitalSigns().intValue() == voTemperatures.get(i).getID_VitalSigns().intValue())
            {
                form.getLocalContext().setCurrentIndex(new Integer(i));
                updatePrevNextButtons();
                break;
            }
        }
    }   
}
项目:AvoinApotti    文件:Logic.java   
private void updatePrevNextButtons()
{
    VitalSignsVoCollection voMetrics = form.getLocalContext().getMetrics();
    Integer nIndex = form.getLocalContext().getCurrentIndex();

    form.btnNext().setEnabled(true);
    form.btnPrev().setEnabled(true);

    if(voMetrics == null || nIndex == null)
    {
        form.btnNext().setEnabled(false);
        form.btnPrev().setEnabled(false);
        return;
    }

    if(nIndex.intValue() <= 0)
        form.btnPrev().setEnabled(false);

    if(nIndex.intValue() >= voMetrics.size() - 1)
        form.btnNext().setEnabled(false);
}
项目:AvoinApotti    文件:Logic.java   
protected void onGrhMetricsPointClicked(GraphingPoint point) 
{
    if(point.getType() == GraphingPointType.METRICS)
    {           
        GraphingMetrics pointMetrics = (GraphingMetrics)point;
        form.getLocalContext().setvitalSign((VitalSignsVo)pointMetrics.getTag());
        displayRecord((VitalSignsVo)pointMetrics.getTag());
        form.btnUpdate().setEnabled(true);

        //update the Prev/Next buttons
        VitalSignsVoCollection voTemperatures = form.getLocalContext().getMetrics();
        for(int i = 0; i < voTemperatures.size(); i++)
        {
            if(form.getLocalContext().getvitalSign().getID_VitalSigns().intValue() == voTemperatures.get(i).getID_VitalSigns().intValue())
            {
                form.getLocalContext().setCurrentIndex(new Integer(i));
                updatePrevNextButtons();
                break;
            }
        }
    }       
}
项目:AvoinApotti    文件:Logic.java   
private void updatePrevNextButtons()
{
    VitalSignsVoCollection voMetrics = form.getLocalContext().getVisuals();
    Integer nIndex = form.getLocalContext().getCurrentIndex();

    form.btnNext().setEnabled(true);
    form.btnPrev().setEnabled(true);

    if(voMetrics == null || nIndex == null)
    {
        form.btnNext().setEnabled(false);
        form.btnPrev().setEnabled(false);
        return;
    }

    if(nIndex.intValue() <= 0)
        form.btnPrev().setEnabled(false);

    if(nIndex.intValue() >= voMetrics.size() - 1)
        form.btnNext().setEnabled(false);
}
项目:AvoinApotti    文件:Logic.java   
private void updatePrevNextButtons()
{
    VitalSignsVoCollection voMetrics = form.getLocalContext().getBloods();
    Integer nIndex = form.getLocalContext().getCurrentIndex();

    form.btnNext().setEnabled(true);
    form.btnPrev().setEnabled(true);

    if(voMetrics == null || nIndex == null)
    {
        form.btnNext().setEnabled(false);
        form.btnPrev().setEnabled(false);
        return;
    }

    if(nIndex.intValue() <= 0)
        form.btnPrev().setEnabled(false);

    if(nIndex.intValue() >= voMetrics.size() - 1)
        form.btnNext().setEnabled(false);
}
项目:AvoinApotti    文件:Logic.java   
private void updatePrevNextButtons()
{
    VitalSignsVoCollection voTemperatures = form.getLocalContext().getTemperatures();
    Integer nIndex = form.getLocalContext().getCurrentIndex();

    form.btnNext().setEnabled(true);
    form.btnPrev().setEnabled(true);

    if(voTemperatures == null || nIndex == null)
    {
        form.btnNext().setEnabled(false);
        form.btnPrev().setEnabled(false);
        return;
    }

    if(nIndex.intValue() <= 0)
        form.btnPrev().setEnabled(false);

    if(nIndex.intValue() >= voTemperatures.size() - 1)
        form.btnNext().setEnabled(false);
}
项目:AvoinApotti    文件:Logic.java   
protected void onGrhTempPointClicked(GraphingPoint point) 
{   
    if(point.getType() == GraphingPointType.TEMPERATURE)
    {           
        GraphingTemperature pointTemp = (GraphingTemperature)point;
        form.getLocalContext().setvitalSign((VitalSignsVo)pointTemp.getTag());
        displayRecord((VitalSignsVo)pointTemp.getTag());
        form.btnUpdate().setEnabled(true);

        //update the Prev/Next buttons
        VitalSignsVoCollection voTemperatures = form.getLocalContext().getTemperatures();
        for(int i = 0; i < voTemperatures.size(); i++)
        {
            if(form.getLocalContext().getvitalSign().getID_VitalSigns().intValue() == voTemperatures.get(i).getID_VitalSigns().intValue())
            {
                form.getLocalContext().setCurrentIndex(new Integer(i));
                updatePrevNextButtons();
                break;
            }
        }
    }
}
项目:AvoinApotti    文件:SleepAssessmentImpl.java   
public VitalSignsVoCollection listVitalsByCareContext(CareContextLiteVo voCareContext)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = " from VitalSigns vs ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContext.getEpisodeOfCareIsNotNull())
    {
        hql.append(andStr + " vs.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 vsList = factory.find(query,markers,values);
    VitalSignsVoCollection voVitalSignsColl = VitalSignsVoAssembler.createVitalSignsVoCollectionFromVitalSigns(vsList);
    if(voVitalSignsColl.size()>0)
        return voVitalSignsColl;
    else
        return null;
}
项目:AvoinApotti    文件:SleepAssessmentImpl.java   
public VitalSignsVo getVitalSignsByCareContext(CareContextLiteVo voCareContext)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = " from VitalSigns vs ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContext.getEpisodeOfCareIsNotNull())
    {
        hql.append(andStr + " vs.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 vsList = factory.find(query,markers,values);
    VitalSignsVoCollection voVitalSignsColl = VitalSignsVoAssembler.createVitalSignsVoCollectionFromVitalSigns(vsList);
    if(voVitalSignsColl.size()>0)
        return voVitalSignsColl.get(0);
    else
        return null;
}
项目:AvoinApotti    文件:NutritionalRiskAssessmentDialogImpl.java   
public VitalSignsVoCollection getLastMetrics(Integer idPatient)
{
    if (idPatient == null)
        return null;

    DomainFactory factory = getDomainFactory();
    StringBuffer filterString = new StringBuffer();
    String query = "from VitalSigns vs ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();

    filterString.append(" vs.careContext.episodeOfCare.careSpell.patient.id = :idPat");
    markers.add("idPat");
    values.add(idPatient);

    if (markers.size() > 0) query += " where ";
    query += filterString.toString();   
    java.util.List vitals = factory.find(query,markers,values);
    VitalSignsVoCollection voVitalsColl = VitalSignsVoAssembler.createVitalSignsVoCollectionFromVitalSigns(vitals);
    if(voVitalsColl != null && voVitalsColl.size() > 0)
    {
            voVitalsColl.sort(SortOrder.DESCENDING);
            return voVitalsColl;
    }
    else
        return null;
}
项目:AvoinApotti    文件:Logic.java   
private void displayCurrentBloodSugar()
{
    VitalSignsVoCollection voMetrics = form.getLocalContext().getBloods();
    Integer nIndex = form.getLocalContext().getCurrentIndex();

    if(voMetrics == null || nIndex == null || nIndex.intValue() == -1 || nIndex.intValue() >= voMetrics.size())
        return;

    form.getLocalContext().setvitalSign(voMetrics.get(nIndex.intValue()));
    displayRecord(voMetrics.get(nIndex.intValue()));

    updatePrevNextButtons();
}
项目:AvoinApotti    文件:Logic.java   
private void updatePrevNextButtons()
{
    VitalSignsVoCollection voPain = form.getLocalContext().getPains();
    Integer nIndex = form.getLocalContext().getCurrentIndex();

    form.btnNext().setEnabled(true);
    form.btnPrev().setEnabled(true);

    if(voPain == null || nIndex == null)
    {
        form.btnNext().setEnabled(false);
        form.btnPrev().setEnabled(false);

        return;
    }

    if(nIndex.intValue() <= 0)
    {
        form.btnPrev().setEnabled(false);
    }

    if(nIndex.intValue() >= voPain.size() - 1)
    {
        form.btnNext().setEnabled(false);
    }

}
项目:AvoinApotti    文件:Logic.java   
private void displayCurrentPain()
{
    VitalSignsVoCollection voPain = form.getLocalContext().getPains();
    Integer nIndex = form.getLocalContext().getCurrentIndex();

    if(voPain == null || nIndex == null || nIndex.intValue() == -1 || nIndex.intValue() >= voPain.size())
        return;

    form.getLocalContext().setVitalSign(voPain.get(nIndex.intValue()));
    displayRecord(voPain.get(nIndex.intValue()));

    updatePrevNextButtons();
}
项目:AvoinApotti    文件:Logic.java   
private void displayCurrentOxygen()
{
    VitalSignsVoCollection voMetrics = form.getLocalContext().getOxygens();
    Integer nIndex = form.getLocalContext().getCurrentIndex();

    if(voMetrics == null || nIndex == null || nIndex.intValue() == -1 || nIndex.intValue() >= voMetrics.size())
        return;

    form.getLocalContext().setvitalSign(voMetrics.get(nIndex.intValue()));
    displayRecord(voMetrics.get(nIndex.intValue()));

    updatePrevNextButtons();
}
项目:AvoinApotti    文件:Logic.java   
/**
 * @param voCollVitalCapacity
 */
private void populateVitalCapacityGrid(VitalSignsVoCollection voCollVitalCapacity) 
{
    if (voCollVitalCapacity != null)
    {
        GenForm.grdVitalRow row = null;

        //inactive record handling
        for(int i=0;i<voCollVitalCapacity.size();i++)
        {
            VitalSignsVo vitalSign  = voCollVitalCapacity.get(i);

            if (vitalSign != null && vitalSign.getLungFunctionTest()!= null)
            {
                row = form.grdVital().getRows().newRow();
                row.setValue(vitalSign);
                if (vitalSign.getLungFunctionTest().getTidalVolume() != null)
                    row.setColTidalVolume(vitalSign.getLungFunctionTest().getTidalVolume());
                if (vitalSign.getLungFunctionTest().getVitalCapacity() != null)
                    row.setColVitalCapacity(vitalSign.getLungFunctionTest().getVitalCapacity());
                if (vitalSign.getAuthoringInformationIsNotNull())   
                    if (vitalSign.getAuthoringInformation().getAuthoringHcpIsNotNull())
                        row.setColHCP(vitalSign.getAuthoringInformation().getAuthoringHcp().toString());

                if (vitalSign.getVitalsTakenDateTime() != null)
                    row.setColDate(vitalSign.getVitalsTakenDateTime().toString());      

            }
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
private void displayCurrentPupils()
{
    VitalSignsVoCollection voPupils = form.getLocalContext().getPupils();
    Integer nIndex = form.getLocalContext().getCurrentIndex();

    if(voPupils == null || nIndex == null || nIndex.intValue() == -1 || nIndex.intValue() >= voPupils.size())
        return;

    form.getLocalContext().setvitalSign(voPupils.get(nIndex.intValue()));
    displayRecord(voPupils.get(nIndex.intValue()));

    updatePrevNextButtons();
}
项目:AvoinApotti    文件:Logic.java   
private void populateGrid(VitalSignsVoCollection coll)
{
    form.grdBloodGas().getRows().clear();
    GenForm.grdBloodGasRow row;

    //inactive record handling
    for(int i=0;i<coll.size();i++)
    {


        VitalSignsVo aBGO2Sats  = coll.get(i);

        if (aBGO2Sats != null && aBGO2Sats.getArterialBloodGasIsNotNull())
        {
            row = form.grdBloodGas().getRows().newRow();
            row.setValue(aBGO2Sats);
            row.setColBExcess(aBGO2Sats.getArterialBloodGas().getBaseExcess());
            row.setColDateTime(aBGO2Sats.getVitalsTakenDateTime().getDate().toString() + " "+ aBGO2Sats.getVitalsTakenDateTime().getTime().toString());
            row.setColO2(aBGO2Sats.getOxygenSaturation().getOxygenSaturationLevel());
            row.setColPaCO2(aBGO2Sats.getArterialBloodGas().getPaCO2());
            row.setColPaO2(aBGO2Sats.getArterialBloodGas().getPaO2());
            row.setColPh(aBGO2Sats.getArterialBloodGas().getPH());
            row.setColSBC(aBGO2Sats.getArterialBloodGas().getSBC());
            if (aBGO2Sats.getArterialBloodGas().getVentilationMode() != null)
                row.setColMode(aBGO2Sats.getArterialBloodGas().getVentilationMode().getText());
        }
    }

    //WDEV-10802 for RIE
    CareContextShortVo careContext = form.getGlobalContext().Core.getCurrentCareContext();
    domain.listArterialBSVo(careContext);   
}
项目:AvoinApotti    文件:Logic.java   
private void displayCurrentPeakFlow()
{
    VitalSignsVoCollection voMetrics = form.getLocalContext().getPeaks();
    Integer nIndex = form.getLocalContext().getCurrentIndex();

    if(voMetrics == null || nIndex == null || nIndex.intValue() == -1 || nIndex.intValue() >= voMetrics.size())
        return;

    form.getLocalContext().setvitalSign(voMetrics.get(nIndex.intValue()));
    displayRecord(voMetrics.get(nIndex.intValue()));

    updatePrevNextButtons();
}
项目:AvoinApotti    文件:Logic.java   
private void displayCurrentBloodPressure()
{
    VitalSignsVoCollection voMetrics = form.getLocalContext().getBloods();
    Integer nIndex = form.getLocalContext().getCurrentIndex();

    if(voMetrics == null || nIndex == null || nIndex.intValue() == -1 || nIndex.intValue() >= voMetrics.size())
        return;

    form.getLocalContext().setvitalSign(voMetrics.get(nIndex.intValue()));
    displayRecord(voMetrics.get(nIndex.intValue()));

    updatePrevNextButtons();
}
项目:AvoinApotti    文件:VitalSignsBaselineAndAllImpl.java   
public VitalSignsVoCollection listVitalCapacity(CareContextRefVo refCareContext)
{
    VitalSignsVoCollection voVitalsColl = listVitalSigns(null, null, new VSType[]{VSType.PEAKFLOW}, refCareContext);

    voVitalsColl.sort(SortOrder.DESCENDING);

    return voVitalsColl;
}
项目:AvoinApotti    文件:Logic.java   
private void displayCurrentTemperature()
{
    VitalSignsVoCollection voTemperatures = form.getLocalContext().getTemperatures();
    Integer nIndex = form.getLocalContext().getCurrentIndex();

    if(voTemperatures == null || nIndex == null || nIndex.intValue() == -1 || nIndex.intValue() >= voTemperatures.size())
        return;

    form.getLocalContext().setvitalSign(voTemperatures.get(nIndex.intValue()));
    displayRecord(voTemperatures.get(nIndex.intValue()));

    updatePrevNextButtons();
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
/**
 * 
 * Generic List for all Vital Signs By Vital Signs Type
 * 
 */

public VitalSignsVoCollection listVitalSigns(Date dateFrom, Date dateTo, VSType[] vitalSignsTypes, CareContextRefVo refCareContext)
{
    VitalSignsVoCollection voVitalsColl = VitalSignsVoAssembler.createVitalSignsVoCollectionFromVitalSigns((List<?>) listVitalSignsDo(dateFrom, dateTo, vitalSignsTypes, refCareContext));

    if (vitalSignsTypes == null) // if listing all then sort
    {
        voVitalsColl.sort(SortOrder.DESCENDING);
    }
    return voVitalsColl;
}
项目:AvoinApotti    文件:VitalSignsImpl.java   
/**
 * Retrieves a list of Metrics, sorts, and returns last record
 */
public VitalSignsVo getLastMetrics(CareContextRefVo refCareContext) throws DomainInterfaceException
{
    if (refCareContext != null)
    {
        DomainFactory factory = getDomainFactory();

        String filter = " from VitalSigns vs ";
        StringBuffer filterString = new StringBuffer();

        ArrayList<String> markerNames = new ArrayList<String>();
        ArrayList<Object> markerValues = new ArrayList<Object>();

        filterString.append(" where vs.careContext.id = :cc");
        markerNames.add("cc");
        markerValues.add(refCareContext.getID_CareContext());
        filter += filterString.toString();

        /*
        Changes made to String below to reflect changes to the VitalSigns Business Object
            authoringDateTime changes to authoringInformation.authoringDateTime 
        */
        filter += " and vs.metrics is not null order by vs.authoringInformation.authoringDateTime desc";

        VitalSignsVoCollection voVitalsColl = VitalSignsVoAssembler.createVitalSignsVoCollectionFromVitalSigns(factory.find(filter, markerNames, markerValues));

        if (voVitalsColl != null && voVitalsColl.size() > 0)
        {
            voVitalsColl.sort(SortOrder.DESCENDING);
            return voVitalsColl.get(0);
        }
    }

    return null;
}