Java 类ims.nursing.vo.ClinicalAdmissionListVoCollection 实例源码

项目:AvoinApotti    文件:ClinicalAdmissionImpl.java   
public ClinicalAdmissionListVoCollection listClinicalAdmissions(PatientRefVo patientRefVo) 
{
    //WDEV-13846 Florin
    if(patientRefVo == null)
        throw new CodingRuntimeException("PatientRefVo Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();
    String hql = "from ClinicalAdmission ca where ca.careContext.episodeOfCare.careSpell.patient.id = :idPatient order by ca.systemInformation.creationDateTime desc";
    List<?> list = factory.find(hql, new String[] {"idPatient"}, new Object[] {patientRefVo.getID_Patient()});

    return ClinicalAdmissionListVoAssembler.createClinicalAdmissionListVoCollectionFromClinicalAdmission(list).sort();
}
项目:openMAXIMS    文件:ClinicalAdmissionImpl.java   
public ClinicalAdmissionListVoCollection listClinicalAdmissions(PatientRefVo patientRefVo) 
{
    //WDEV-13846 Florin
    if(patientRefVo == null)
        throw new CodingRuntimeException("PatientRefVo Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();
    String hql = "from ClinicalAdmission ca where ca.careContext.episodeOfCare.careSpell.patient.id = :idPatient order by ca.systemInformation.creationDateTime desc";
    List<?> list = factory.find(hql, new String[] {"idPatient"}, new Object[] {patientRefVo.getID_Patient()});

    return ClinicalAdmissionListVoAssembler.createClinicalAdmissionListVoCollectionFromClinicalAdmission(list).sort();
}
项目:openMAXIMS    文件:ClinicalAdmissionImpl.java   
public ClinicalAdmissionListVoCollection listClinicalAdmissions(PatientRefVo patientRefVo) 
{
    //WDEV-13846 Florin
    if(patientRefVo == null)
        throw new CodingRuntimeException("PatientRefVo Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();
    String hql = "from ClinicalAdmission ca where ca.careContext.episodeOfCare.careSpell.patient.id = :idPatient order by ca.systemInformation.creationDateTime desc";
    List<?> list = factory.find(hql, new String[] {"idPatient"}, new Object[] {patientRefVo.getID_Patient()});

    return ClinicalAdmissionListVoAssembler.createClinicalAdmissionListVoCollectionFromClinicalAdmission(list).sort();
}
项目:openmaxims-linux    文件:ClinicalAdmissionImpl.java   
public ClinicalAdmissionListVoCollection listClinicalAdmissions(PatientRefVo patientRefVo) 
{
    //WDEV-13846 Florin
    if(patientRefVo == null)
        throw new CodingRuntimeException("PatientRefVo Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();
    String hql = "from ClinicalAdmission ca where ca.careContext.episodeOfCare.careSpell.patient.id = :idPatient order by ca.systemInformation.creationDateTime desc";
    List<?> list = factory.find(hql, new String[] {"idPatient"}, new Object[] {patientRefVo.getID_Patient()});

    return ClinicalAdmissionListVoAssembler.createClinicalAdmissionListVoCollectionFromClinicalAdmission(list).sort();
}
项目:AvoinApotti    文件:Logic.java   
private void populateRecordBrowser(ClinicalAdmissionListVoCollection collClinicalAdmissions)
{
    //form.getLocalContext().setAllowRecording(true);
    if(collClinicalAdmissions == null)
        return;

    Boolean bFound = false;
    ClinicalAdmissionListVo voToOpen = null;
    form.recbrAdmissions().clear();


    for (int i = 0; i < collClinicalAdmissions.size(); i++)
    {
        ClinicalAdmissionListVo vo = collClinicalAdmissions.get(i);         
        form.recbrAdmissions().newRow(collClinicalAdmissions.get(i), getDisplayString(vo));

        if (collClinicalAdmissions.get(i).getCareContextIsNotNull() 
            && form.getGlobalContext().Core.getCurrentCareContextIsNotNull()
            && collClinicalAdmissions.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
        {
            bFound = true;
            voToOpen = collClinicalAdmissions.get(i);

            //local context is set only if clinical admission selected in the record browser is linked to the current care context 
            form.getLocalContext().setclinicalAdmission(domain.getClinicalAdmission(voToOpen.getCareContext()));
            //WDEV-13846
            form.getLocalContext().setlocalContextForRie(form.getLocalContext().getclinicalAdmission());
        }
    }

    if (bFound)
    {
        form.recbrAdmissions().setValue(voToOpen);
    }
    else
    {
        //form.recbrAdmissions().newRow(null, "");
        form.recbrAdmissions().newRow(0, null, "");
    }

    recordBrowserValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser(ClinicalAdmissionListVoCollection collClinicalAdmissions)
{
    //form.getLocalContext().setAllowRecording(true);
    if(collClinicalAdmissions == null)
        return;

    Boolean bFound = false;
    ClinicalAdmissionListVo voToOpen = null;
    form.recbrAdmissions().clear();


    for (int i = 0; i < collClinicalAdmissions.size(); i++)
    {
        ClinicalAdmissionListVo vo = collClinicalAdmissions.get(i);         
        form.recbrAdmissions().newRow(collClinicalAdmissions.get(i), getDisplayString(vo));

        if (collClinicalAdmissions.get(i).getCareContextIsNotNull() 
            && form.getGlobalContext().Core.getCurrentCareContextIsNotNull()
            && collClinicalAdmissions.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
        {
            bFound = true;
            voToOpen = collClinicalAdmissions.get(i);

            //local context is set only if clinical admission selected in the record browser is linked to the current care context 
            form.getLocalContext().setclinicalAdmission(domain.getClinicalAdmission(voToOpen.getCareContext()));
            //WDEV-13846
            form.getLocalContext().setlocalContextForRie(form.getLocalContext().getclinicalAdmission());
        }
    }

    if (bFound)
    {
        form.recbrAdmissions().setValue(voToOpen);
    }
    else
    {
        //form.recbrAdmissions().newRow(null, "");
        form.recbrAdmissions().newRow(0, null, "");
    }

    recordBrowserValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser(ClinicalAdmissionListVoCollection collClinicalAdmissions)
{
    //form.getLocalContext().setAllowRecording(true);
    if(collClinicalAdmissions == null)
        return;

    Boolean bFound = false;
    ClinicalAdmissionListVo voToOpen = null;
    form.recbrAdmissions().clear();


    for (int i = 0; i < collClinicalAdmissions.size(); i++)
    {
        ClinicalAdmissionListVo vo = collClinicalAdmissions.get(i);         
        form.recbrAdmissions().newRow(collClinicalAdmissions.get(i), getDisplayString(vo));

        if (collClinicalAdmissions.get(i).getCareContextIsNotNull() 
            && form.getGlobalContext().Core.getCurrentCareContextIsNotNull()
            && collClinicalAdmissions.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
        {
            bFound = true;
            voToOpen = collClinicalAdmissions.get(i);

            //local context is set only if clinical admission selected in the record browser is linked to the current care context 
            form.getLocalContext().setclinicalAdmission(domain.getClinicalAdmission(voToOpen.getCareContext()));
            //WDEV-13846
            form.getLocalContext().setlocalContextForRie(form.getLocalContext().getclinicalAdmission());
        }
    }

    if (bFound)
    {
        form.recbrAdmissions().setValue(voToOpen);
    }
    else
    {
        //form.recbrAdmissions().newRow(null, "");
        form.recbrAdmissions().newRow(0, null, "");
    }

    recordBrowserValueChanged();
}
项目:openmaxims-linux    文件:Logic.java   
private void populateRecordBrowser(ClinicalAdmissionListVoCollection collClinicalAdmissions)
{
    //form.getLocalContext().setAllowRecording(true);
    if(collClinicalAdmissions == null)
        return;

    Boolean bFound = false;
    ClinicalAdmissionListVo voToOpen = null;
    form.recbrAdmissions().clear();


    for (int i = 0; i < collClinicalAdmissions.size(); i++)
    {
        ClinicalAdmissionListVo vo = collClinicalAdmissions.get(i);         
        form.recbrAdmissions().newRow(collClinicalAdmissions.get(i), getDisplayString(vo));

        if (collClinicalAdmissions.get(i).getCareContextIsNotNull() 
            && form.getGlobalContext().Core.getCurrentCareContextIsNotNull()
            && collClinicalAdmissions.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
        {
            bFound = true;
            voToOpen = collClinicalAdmissions.get(i);

            //local context is set only if clinical admission selected in the record browser is linked to the current care context 
            form.getLocalContext().setclinicalAdmission(domain.getClinicalAdmission(voToOpen.getCareContext()));
            //WDEV-13846
            form.getLocalContext().setlocalContextForRie(form.getLocalContext().getclinicalAdmission());
        }
    }

    if (bFound)
    {
        form.recbrAdmissions().setValue(voToOpen);
    }
    else
    {
        //form.recbrAdmissions().newRow(null, "");
        form.recbrAdmissions().newRow(0, null, "");
    }

    recordBrowserValueChanged();
}