Java 类ims.clinical.vo.SummaryClinicalInformationDisplayVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateRecordBrowser(SummaryClinicalInformationDisplayVoCollection summaries)
{
    // Clear record browser
    form.recbrSummaryClinicalInformation().clear();

    // Check records collection
    if (summaries == null)
    {
        form.getLocalContext().setSelectedSummaryClinicalInformation(null);
        return;
    }

    // Iterate records collection and add each of them to record browser
    for (SummaryClinicalInformationDisplayVo summary : summaries)
    {
        form.recbrSummaryClinicalInformation().newRow(summary, getDisplayString(summary));
    }

    // If there was a selected record attempt to reselect it, else select the first record
    if (form.getLocalContext().getSelectedSummaryClinicalInformation() != null)
    {
        form.recbrSummaryClinicalInformation().setValue(form.getLocalContext().getSelectedSummaryClinicalInformation());
    }
    // If no selection was performed then attempt to select first record 
    if (form.recbrSummaryClinicalInformation().getValue() == null && summaries.size() > 0)
    {
        form.recbrSummaryClinicalInformation().setValue(summaries.get(0));
    }
}
项目:AvoinApotti    文件:SummaryClinicalInformationImpl.java   
public SummaryClinicalInformationDisplayVoCollection listSummaryClinicalInformation(PatientRefVo patient)
{
    if (patient == null || patient.getID_Patient() == null)
        return null;

    String query = "SELECT summary FROM SummaryClinicalInformation AS summary LEFT JOIN summary.patient AS patient WHERE patient.id = :ID_PATIENT ORDER BY summary.systemInformation.creationDateTime DESC";

    return SummaryClinicalInformationDisplayVoAssembler.createSummaryClinicalInformationDisplayVoCollectionFromSummaryClinicalInformation(getDomainFactory().find(query, "ID_PATIENT", patient.getID_Patient()));
}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser(SummaryClinicalInformationDisplayVoCollection summaries)
{
    // Clear record browser
    form.recbrSummaryClinicalInformation().clear();

    // Check records collection
    if (summaries == null)
    {
        form.getLocalContext().setSelectedSummaryClinicalInformation(null);
        return;
    }

    // Iterate records collection and add each of them to record browser
    for (SummaryClinicalInformationDisplayVo summary : summaries)
    {
        form.recbrSummaryClinicalInformation().newRow(summary, getDisplayString(summary));
    }

    // If there was a selected record attempt to reselect it, else select the first record
    if (form.getLocalContext().getSelectedSummaryClinicalInformation() != null)
    {
        form.recbrSummaryClinicalInformation().setValue(form.getLocalContext().getSelectedSummaryClinicalInformation());
    }
    // If no selection was performed then attempt to select first record 
    if (form.recbrSummaryClinicalInformation().getValue() == null && summaries.size() > 0)
    {
        form.recbrSummaryClinicalInformation().setValue(summaries.get(0));
    }
}
项目:openMAXIMS    文件:SummaryClinicalInformationImpl.java   
public SummaryClinicalInformationDisplayVoCollection listSummaryClinicalInformation(PatientRefVo patient)
{
    if (patient == null || patient.getID_Patient() == null)
        return null;

    String query = "SELECT summary FROM SummaryClinicalInformation AS summary LEFT JOIN summary.patient AS patient WHERE patient.id = :ID_PATIENT ORDER BY summary.systemInformation.creationDateTime DESC";

    return SummaryClinicalInformationDisplayVoAssembler.createSummaryClinicalInformationDisplayVoCollectionFromSummaryClinicalInformation(getDomainFactory().find(query, "ID_PATIENT", patient.getID_Patient()));
}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser(SummaryClinicalInformationDisplayVoCollection summaries)
{
    // Clear record browser
    form.recbrSummaryClinicalInformation().clear();

    // Check records collection
    if (summaries == null)
    {
        form.getLocalContext().setSelectedSummaryClinicalInformation(null);
        return;
    }

    // Iterate records collection and add each of them to record browser
    for (SummaryClinicalInformationDisplayVo summary : summaries)
    {
        form.recbrSummaryClinicalInformation().newRow(summary, getDisplayString(summary));
    }

    // If there was a selected record attempt to reselect it, else select the first record
    if (form.getLocalContext().getSelectedSummaryClinicalInformation() != null)
    {
        form.recbrSummaryClinicalInformation().setValue(form.getLocalContext().getSelectedSummaryClinicalInformation());
    }
    // If no selection was performed then attempt to select first record 
    if (form.recbrSummaryClinicalInformation().getValue() == null && summaries.size() > 0)
    {
        form.recbrSummaryClinicalInformation().setValue(summaries.get(0));
    }
}
项目:openMAXIMS    文件:SummaryClinicalInformationImpl.java   
public SummaryClinicalInformationDisplayVoCollection listSummaryClinicalInformation(PatientRefVo patient)
{
    if (patient == null || patient.getID_Patient() == null)
        return null;

    String query = "SELECT summary FROM SummaryClinicalInformation AS summary LEFT JOIN summary.patient AS patient WHERE patient.id = :ID_PATIENT ORDER BY summary.systemInformation.creationDateTime DESC";

    return SummaryClinicalInformationDisplayVoAssembler.createSummaryClinicalInformationDisplayVoCollectionFromSummaryClinicalInformation(getDomainFactory().find(query, "ID_PATIENT", patient.getID_Patient()));
}
项目:openmaxims-linux    文件:Logic.java   
private void populateRecordBrowser(SummaryClinicalInformationDisplayVoCollection summaries)
{
    // Clear record browser
    form.recbrSummaryClinicalInformation().clear();

    // Check records collection
    if (summaries == null)
    {
        form.getLocalContext().setSelectedSummaryClinicalInformation(null);
        return;
    }

    // Iterate records collection and add each of them to record browser
    for (SummaryClinicalInformationDisplayVo summary : summaries)
    {
        form.recbrSummaryClinicalInformation().newRow(summary, getDisplayString(summary));
    }

    // If there was a selected record attempt to reselect it, else select the first record
    if (form.getLocalContext().getSelectedSummaryClinicalInformation() != null)
    {
        form.recbrSummaryClinicalInformation().setValue(form.getLocalContext().getSelectedSummaryClinicalInformation());
    }
    // If no selection was performed then attempt to select first record 
    if (form.recbrSummaryClinicalInformation().getValue() == null && summaries.size() > 0)
    {
        form.recbrSummaryClinicalInformation().setValue(summaries.get(0));
    }
}
项目:openmaxims-linux    文件:SummaryClinicalInformationImpl.java   
public SummaryClinicalInformationDisplayVoCollection listSummaryClinicalInformation(PatientRefVo patient)
{
    if (patient == null || patient.getID_Patient() == null)
        return null;

    String query = "SELECT summary FROM SummaryClinicalInformation AS summary LEFT JOIN summary.patient AS patient WHERE patient.id = :ID_PATIENT ORDER BY summary.systemInformation.creationDateTime DESC";

    return SummaryClinicalInformationDisplayVoAssembler.createSummaryClinicalInformationDisplayVoCollectionFromSummaryClinicalInformation(getDomainFactory().find(query, "ID_PATIENT", patient.getID_Patient()));
}