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

项目:AvoinApotti    文件:Logic.java   
private void search(boolean showErrors)
{
    String[] errors = validateSearchCriteria();
    clear();
    if (errors != null && errors.length >0)
    {
        if (showErrors)
            engine.showErrors(errors);
        return;
    }

    //WDEV-11654 If selected record has time greater than dateTo change dateTo
    if(form.getLocalContext().getSelectedInstanceIsNotNull() && form.getLocalContext().getSelectedInstance().getAuthoringInformationIsNotNull()
            && form.getLocalContext().getSelectedInstance().getAuthoringInformation().getAuthoringDateTimeIsNotNull()
            && form.getLocalContext().getSelectedInstance().getAuthoringInformation().getAuthoringDateTime().isGreaterThan(form.dtimTo().getValue()))
        form.dtimTo().setValue(form.getLocalContext().getSelectedInstance().getAuthoringInformation().getAuthoringDateTime());

    VSMetricsCollection metrics = domain.listPatientMetrics(form.getGlobalContext().Core.getPatientShort(),form.dtimFrom().getValue(),form.dtimTo().getValue());
    populateListFromData(metrics);
    if (showErrors && (metrics == null || metrics.size() == 0))
        engine.showMessage("No records found to match your criteria", "No records", MessageButtons.OK, MessageIcon.INFORMATION);
    form.grdMetrics().setValue(form.getLocalContext().getSelectedInstance());
    selectInstance();
}
项目:AvoinApotti    文件:Logic.java   
private void sortAfterHcp()
{
    form.getLocalContext().setRecordingHcpSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getRecordingHcpSortOrder())?SortOrder.DESCENDING:SortOrder.ASCENDING);
    VSMetricsCollection values = form.grdMetrics().getValues();
    values.sort(new RecordingHcpComparator(form.getLocalContext().getRecordingHcpSortOrder()));
    form.grdMetrics().getRows().clear();
    for (int i  = 0 ; i< values.size() ; i++)
    {
        addRowToGrid(values.get(i));
    }
    //WDEV-11654 
    if(form.getLocalContext().getSelectedInstanceIsNotNull())
        form.grdMetrics().setValue(form.getLocalContext().getSelectedInstance());

    selectInstance();
}
项目:AvoinApotti    文件:Logic.java   
private void sortAfterDateTime()
{
    form.getLocalContext().setRecordingDateTimeSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getRecordingDateTimeSortOrder())?SortOrder.DESCENDING:SortOrder.ASCENDING);
    VSMetricsCollection values = form.grdMetrics().getValues();
    values.sort(new RecordingDateTimeComparator(form.getLocalContext().getRecordingDateTimeSortOrder()));
    form.grdMetrics().getRows().clear();
    for (int i  = 0 ; i< values.size() ; i++)
    {
        addRowToGrid(values.get(i));
    }
    //WDEV-11654 
    if(form.getLocalContext().getSelectedInstanceIsNotNull())
        form.grdMetrics().setValue(form.getLocalContext().getSelectedInstance());

    selectInstance();
}
项目:openMAXIMS    文件:Logic.java   
private void search(boolean showErrors)
{
    String[] errors = validateSearchCriteria();
    clear();
    if (errors != null && errors.length >0)
    {
        if (showErrors)
            engine.showErrors(errors);
        return;
    }

    //WDEV-11654 If selected record has time greater than dateTo change dateTo
    if(form.getLocalContext().getSelectedInstanceIsNotNull() && form.getLocalContext().getSelectedInstance().getAuthoringInformationIsNotNull()
            && form.getLocalContext().getSelectedInstance().getAuthoringInformation().getAuthoringDateTimeIsNotNull()
            && form.getLocalContext().getSelectedInstance().getAuthoringInformation().getAuthoringDateTime().isGreaterThan(form.dtimTo().getValue()))
        form.dtimTo().setValue(form.getLocalContext().getSelectedInstance().getAuthoringInformation().getAuthoringDateTime());

    VSMetricsCollection metrics = domain.listPatientMetrics(form.getGlobalContext().Core.getPatientShort(),form.dtimFrom().getValue(),form.dtimTo().getValue());
    populateListFromData(metrics);
    if (showErrors && (metrics == null || metrics.size() == 0))
        engine.showMessage("No records found to match your criteria", "No records", MessageButtons.OK, MessageIcon.INFORMATION);
    form.grdMetrics().setValue(form.getLocalContext().getSelectedInstance());

    form.getGlobalContext().Nursing.setMetricSearchCriteria(getSearchCriteria()); //WDEV-19389 
    selectInstance();
}
项目:openMAXIMS    文件:Logic.java   
private void sortAfterHcp()
{
    form.getLocalContext().setRecordingHcpSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getRecordingHcpSortOrder())?SortOrder.DESCENDING:SortOrder.ASCENDING);
    VSMetricsCollection values = form.grdMetrics().getValues();
    values.sort(new RecordingHcpComparator(form.getLocalContext().getRecordingHcpSortOrder()));
    form.grdMetrics().getRows().clear();
    for (int i  = 0 ; i< values.size() ; i++)
    {
        addRowToGrid(values.get(i));
    }
    //WDEV-11654 
    if(form.getLocalContext().getSelectedInstanceIsNotNull())
        form.grdMetrics().setValue(form.getLocalContext().getSelectedInstance());

    selectInstance();
}
项目:openMAXIMS    文件:Logic.java   
private void sortAfterDateTime()
{
    form.getLocalContext().setRecordingDateTimeSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getRecordingDateTimeSortOrder())?SortOrder.DESCENDING:SortOrder.ASCENDING);
    VSMetricsCollection values = form.grdMetrics().getValues();
    values.sort(new RecordingDateTimeComparator(form.getLocalContext().getRecordingDateTimeSortOrder()));
    form.grdMetrics().getRows().clear();
    for (int i  = 0 ; i< values.size() ; i++)
    {
        addRowToGrid(values.get(i));
    }
    //WDEV-11654 
    if(form.getLocalContext().getSelectedInstanceIsNotNull())
        form.grdMetrics().setValue(form.getLocalContext().getSelectedInstance());

    selectInstance();
}
项目:openMAXIMS    文件:Logic.java   
private void search(boolean showErrors)
{
    String[] errors = validateSearchCriteria();
    clear();
    if (errors != null && errors.length >0)
    {
        if (showErrors)
            engine.showErrors(errors);
        return;
    }

    //WDEV-11654 If selected record has time greater than dateTo change dateTo
    if(form.getLocalContext().getSelectedInstanceIsNotNull() && form.getLocalContext().getSelectedInstance().getAuthoringInformationIsNotNull()
            && form.getLocalContext().getSelectedInstance().getAuthoringInformation().getAuthoringDateTimeIsNotNull()
            && form.getLocalContext().getSelectedInstance().getAuthoringInformation().getAuthoringDateTime().isGreaterThan(form.dtimTo().getValue()))
        form.dtimTo().setValue(form.getLocalContext().getSelectedInstance().getAuthoringInformation().getAuthoringDateTime());

    VSMetricsCollection metrics = domain.listPatientMetrics(form.getGlobalContext().Core.getPatientShort(),form.dtimFrom().getValue(),form.dtimTo().getValue());
    populateListFromData(metrics);
    if (showErrors && (metrics == null || metrics.size() == 0))
        engine.showMessage("No records found to match your criteria", "No records", MessageButtons.OK, MessageIcon.INFORMATION);
    form.grdMetrics().setValue(form.getLocalContext().getSelectedInstance());
    selectInstance();
}
项目:openMAXIMS    文件:Logic.java   
private void sortAfterHcp()
{
    form.getLocalContext().setRecordingHcpSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getRecordingHcpSortOrder())?SortOrder.DESCENDING:SortOrder.ASCENDING);
    VSMetricsCollection values = form.grdMetrics().getValues();
    values.sort(new RecordingHcpComparator(form.getLocalContext().getRecordingHcpSortOrder()));
    form.grdMetrics().getRows().clear();
    for (int i  = 0 ; i< values.size() ; i++)
    {
        addRowToGrid(values.get(i));
    }
    //WDEV-11654 
    if(form.getLocalContext().getSelectedInstanceIsNotNull())
        form.grdMetrics().setValue(form.getLocalContext().getSelectedInstance());

    selectInstance();
}
项目:openMAXIMS    文件:Logic.java   
private void sortAfterDateTime()
{
    form.getLocalContext().setRecordingDateTimeSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getRecordingDateTimeSortOrder())?SortOrder.DESCENDING:SortOrder.ASCENDING);
    VSMetricsCollection values = form.grdMetrics().getValues();
    values.sort(new RecordingDateTimeComparator(form.getLocalContext().getRecordingDateTimeSortOrder()));
    form.grdMetrics().getRows().clear();
    for (int i  = 0 ; i< values.size() ; i++)
    {
        addRowToGrid(values.get(i));
    }
    //WDEV-11654 
    if(form.getLocalContext().getSelectedInstanceIsNotNull())
        form.grdMetrics().setValue(form.getLocalContext().getSelectedInstance());

    selectInstance();
}
项目:openmaxims-linux    文件:Logic.java   
private void search(boolean showErrors)
{
    String[] errors = validateSearchCriteria();
    clear();
    if (errors != null && errors.length >0)
    {
        if (showErrors)
            engine.showErrors(errors);
        return;
    }

    //WDEV-11654 If selected record has time greater than dateTo change dateTo
    if(form.getLocalContext().getSelectedInstanceIsNotNull() && form.getLocalContext().getSelectedInstance().getAuthoringInformationIsNotNull()
            && form.getLocalContext().getSelectedInstance().getAuthoringInformation().getAuthoringDateTimeIsNotNull()
            && form.getLocalContext().getSelectedInstance().getAuthoringInformation().getAuthoringDateTime().isGreaterThan(form.dtimTo().getValue()))
        form.dtimTo().setValue(form.getLocalContext().getSelectedInstance().getAuthoringInformation().getAuthoringDateTime());

    VSMetricsCollection metrics = domain.listPatientMetrics(form.getGlobalContext().Core.getPatientShort(),form.dtimFrom().getValue(),form.dtimTo().getValue());
    populateListFromData(metrics);
    if (showErrors && (metrics == null || metrics.size() == 0))
        engine.showMessage("No records found to match your criteria", "No records", MessageButtons.OK, MessageIcon.INFORMATION);
    form.grdMetrics().setValue(form.getLocalContext().getSelectedInstance());
    selectInstance();
}
项目:openmaxims-linux    文件:Logic.java   
private void sortAfterHcp()
{
    form.getLocalContext().setRecordingHcpSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getRecordingHcpSortOrder())?SortOrder.DESCENDING:SortOrder.ASCENDING);
    VSMetricsCollection values = form.grdMetrics().getValues();
    values.sort(new RecordingHcpComparator(form.getLocalContext().getRecordingHcpSortOrder()));
    form.grdMetrics().getRows().clear();
    for (int i  = 0 ; i< values.size() ; i++)
    {
        addRowToGrid(values.get(i));
    }
    //WDEV-11654 
    if(form.getLocalContext().getSelectedInstanceIsNotNull())
        form.grdMetrics().setValue(form.getLocalContext().getSelectedInstance());

    selectInstance();
}
项目:openmaxims-linux    文件:Logic.java   
private void sortAfterDateTime()
{
    form.getLocalContext().setRecordingDateTimeSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getRecordingDateTimeSortOrder())?SortOrder.DESCENDING:SortOrder.ASCENDING);
    VSMetricsCollection values = form.grdMetrics().getValues();
    values.sort(new RecordingDateTimeComparator(form.getLocalContext().getRecordingDateTimeSortOrder()));
    form.grdMetrics().getRows().clear();
    for (int i  = 0 ; i< values.size() ; i++)
    {
        addRowToGrid(values.get(i));
    }
    //WDEV-11654 
    if(form.getLocalContext().getSelectedInstanceIsNotNull())
        form.grdMetrics().setValue(form.getLocalContext().getSelectedInstance());

    selectInstance();
}
项目:AvoinApotti    文件:Logic.java   
private void populateHeightWeightFields()
{
    VSMetricsCollection voMetricsColl = new VSMetricsCollection();
    voMetricsColl = domain.listMetricsData(form.getGlobalContext().Core.getPatientShort());
    if(voMetricsColl.size()<= 0)
        return;
    else
    {
        VSMetrics voMetrics = voMetricsColl.get(0);
        form.decHeight().setValue(voMetrics.getHeightValue());
        form.decWeight().setValue(voMetrics.getWeightValue());
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateHeightWeightFields()
{
    VSMetricsCollection voMetricsColl = new VSMetricsCollection();
    voMetricsColl = domain.listMetricsData(form.getGlobalContext().Core.getPatientShort());
    if(voMetricsColl.size()<= 0)
        return;
    else
    {
        VSMetrics voMetrics = voMetricsColl.get(0);
        form.cntSleeping().decHeight().setValue(voMetrics.getHeightValue());
        form.cntSleeping().decWeight().setValue(voMetrics.getWeightValue());
    }
}
项目:AvoinApotti    文件:OPDMedExamImpl.java   
public VSMetricsCollection listMetricsData(PatientRefVo voRefPatient) 
{
    DomainFactory factory = getDomainFactory();

    String hql= "select metrics from VitalSigns vs where vs.careContext.episodeOfCare.careSpell.patient.id = " + voRefPatient.getID_Patient();
    List lstVitalSigns = factory.find(hql);     
    return VSMetricsAssembler.createVSMetricsCollectionFromMetrics(lstVitalSigns).sort(SortOrder.DESCENDING);       
}
项目:AvoinApotti    文件:Logic.java   
private void populateListFromData(VSMetricsCollection data)
{
    clear();
    if (data == null || data.size() == 0)
        return;
    for (int i = 0 ; i < data.size() ; i++)
    {
        addRowToGrid(data.get(i));
        addPointToGraphic(data.get(i));         
    }



}
项目:openMAXIMS    文件:Logic.java   
private void populateHeightWeightFields()
{
    VSMetricsCollection voMetricsColl = new VSMetricsCollection();
    voMetricsColl = domain.listMetricsData(form.getGlobalContext().Core.getPatientShort());
    if(voMetricsColl.size()<= 0)
        return;
    else
    {
        VSMetrics voMetrics = voMetricsColl.get(0);
        form.decHeight().setValue(voMetrics.getHeightValue());
        form.decWeight().setValue(voMetrics.getWeightValue());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateHeightWeightFields()
{
    VSMetricsCollection voMetricsColl = new VSMetricsCollection();
    voMetricsColl = domain.listMetricsData(form.getGlobalContext().Core.getPatientShort());
    if(voMetricsColl.size()<= 0)
        return;
    else
    {
        VSMetrics voMetrics = voMetricsColl.get(0);
        form.cntSleeping().decHeight().setValue(voMetrics.getHeightValue());
        form.cntSleeping().decWeight().setValue(voMetrics.getWeightValue());
    }
}
项目:openMAXIMS    文件:OPDMedExamImpl.java   
public VSMetricsCollection listMetricsData(PatientRefVo voRefPatient) 
{
    DomainFactory factory = getDomainFactory();

    String hql= "select metrics from VitalSigns vs where vs.careContext.episodeOfCare.careSpell.patient.id = " + voRefPatient.getID_Patient();
    List lstVitalSigns = factory.find(hql);     
    return VSMetricsAssembler.createVSMetricsCollectionFromMetrics(lstVitalSigns).sort(SortOrder.DESCENDING);       
}
项目:openMAXIMS    文件:Logic.java   
private void populateListFromData(VSMetricsCollection data)
{
    clear();
    if (data == null || data.size() == 0)
        return;
    for (int i = 0 ; i < data.size() ; i++)
    {
        addRowToGrid(data.get(i));
        addPointToGraphic(data.get(i));         
    }



}
项目:openMAXIMS    文件:Logic.java   
private void populateHeightWeightFields()
{
    VSMetricsCollection voMetricsColl = new VSMetricsCollection();
    voMetricsColl = domain.listMetricsData(form.getGlobalContext().Core.getPatientShort());
    if(voMetricsColl.size()<= 0)
        return;
    else
    {
        VSMetrics voMetrics = voMetricsColl.get(0);
        form.decHeight().setValue(voMetrics.getHeightValue());
        form.decWeight().setValue(voMetrics.getWeightValue());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateHeightWeightFields()
{
    VSMetricsCollection voMetricsColl = new VSMetricsCollection();
    voMetricsColl = domain.listMetricsData(form.getGlobalContext().Core.getPatientShort());
    if(voMetricsColl.size()<= 0)
        return;
    else
    {
        VSMetrics voMetrics = voMetricsColl.get(0);
        form.cntSleeping().decHeight().setValue(voMetrics.getHeightValue());
        form.cntSleeping().decWeight().setValue(voMetrics.getWeightValue());
    }
}
项目:openMAXIMS    文件:OPDMedExamImpl.java   
public VSMetricsCollection listMetricsData(PatientRefVo voRefPatient) 
{
    DomainFactory factory = getDomainFactory();

    String hql= "select metrics from VitalSigns vs where vs.careContext.episodeOfCare.careSpell.patient.id = " + voRefPatient.getID_Patient();
    List lstVitalSigns = factory.find(hql);     
    return VSMetricsAssembler.createVSMetricsCollectionFromMetrics(lstVitalSigns).sort(SortOrder.DESCENDING);       
}
项目:openMAXIMS    文件:Logic.java   
private void populateListFromData(VSMetricsCollection data)
{
    clear();
    if (data == null || data.size() == 0)
        return;
    for (int i = 0 ; i < data.size() ; i++)
    {
        addRowToGrid(data.get(i));
        addPointToGraphic(data.get(i));         
    }



}
项目:openmaxims-linux    文件:Logic.java   
private void populateHeightWeightFields()
{
    VSMetricsCollection voMetricsColl = new VSMetricsCollection();
    voMetricsColl = domain.listMetricsData(form.getGlobalContext().Core.getPatientShort());
    if(voMetricsColl.size()<= 0)
        return;
    else
    {
        VSMetrics voMetrics = voMetricsColl.get(0);
        form.decHeight().setValue(voMetrics.getHeightValue());
        form.decWeight().setValue(voMetrics.getWeightValue());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateHeightWeightFields()
{
    VSMetricsCollection voMetricsColl = new VSMetricsCollection();
    voMetricsColl = domain.listMetricsData(form.getGlobalContext().Core.getPatientShort());
    if(voMetricsColl.size()<= 0)
        return;
    else
    {
        VSMetrics voMetrics = voMetricsColl.get(0);
        form.cntSleeping().decHeight().setValue(voMetrics.getHeightValue());
        form.cntSleeping().decWeight().setValue(voMetrics.getWeightValue());
    }
}
项目:openmaxims-linux    文件:OPDMedExamImpl.java   
public VSMetricsCollection listMetricsData(PatientRefVo voRefPatient) 
{
    DomainFactory factory = getDomainFactory();

    String hql= "select metrics from VitalSigns vs where vs.careContext.episodeOfCare.careSpell.patient.id = " + voRefPatient.getID_Patient();
    List lstVitalSigns = factory.find(hql);     
    return VSMetricsAssembler.createVSMetricsCollectionFromMetrics(lstVitalSigns).sort(SortOrder.DESCENDING);       
}
项目:openmaxims-linux    文件:Logic.java   
private void populateListFromData(VSMetricsCollection data)
{
    clear();
    if (data == null || data.size() == 0)
        return;
    for (int i = 0 ; i < data.size() ; i++)
    {
        addRowToGrid(data.get(i));
        addPointToGraphic(data.get(i));         
    }



}
项目:AvoinApotti    文件:SleepAssessmentImpl.java   
public VSMetricsCollection listMetricsData(PatientRefVo voRefPatient) 
{
    OPDMedExam impl = (OPDMedExam) getDomainImpl(OPDMedExamImpl.class);
    return impl.listMetricsData(voRefPatient);
}
项目:openMAXIMS    文件:SleepAssessmentImpl.java   
public VSMetricsCollection listMetricsData(PatientRefVo voRefPatient) 
{
    OPDMedExam impl = (OPDMedExam) getDomainImpl(OPDMedExamImpl.class);
    return impl.listMetricsData(voRefPatient);
}
项目:openMAXIMS    文件:SleepAssessmentImpl.java   
public VSMetricsCollection listMetricsData(PatientRefVo voRefPatient) 
{
    OPDMedExam impl = (OPDMedExam) getDomainImpl(OPDMedExamImpl.class);
    return impl.listMetricsData(voRefPatient);
}
项目:openmaxims-linux    文件:SleepAssessmentImpl.java   
public VSMetricsCollection listMetricsData(PatientRefVo voRefPatient) 
{
    OPDMedExam impl = (OPDMedExam) getDomainImpl(OPDMedExamImpl.class);
    return impl.listMetricsData(voRefPatient);
}