Java 类ims.emergency.vo.TriageForPatientMedsVo 实例源码

项目:AvoinApotti    文件:TriagePatientMedsImpl.java   
public TriageForPatientMedsVo getTriageByCareContext(CareContextRefVo careContextRef)
{
    DomainFactory factory = getDomainFactory();

    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get TriageForPatientMedsVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();

    hql.append("select triage from Triage as triage where triage.attendance.id = :careContextID ");

    List<?> list = factory.find(hql.toString(), new String[] {"careContextID"}, new Object[] {careContextRef.getID_CareContext()});

    if (list!=null && list.size()>0)
        return TriageForPatientMedsVoAssembler.create((Triage)list.get(0));

    return null;    
}
项目:openMAXIMS    文件:TriagePatientMedsImpl.java   
public TriageForPatientMedsVo getTriageByCareContext(CareContextRefVo careContextRef)
{
    DomainFactory factory = getDomainFactory();

    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get TriageForPatientMedsVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();

    hql.append("select triage from Triage as triage where triage.attendance.id = :careContextID ");

    List<?> list = factory.find(hql.toString(), new String[] {"careContextID"}, new Object[] {careContextRef.getID_CareContext()});

    if (list!=null && list.size()>0)
        return TriageForPatientMedsVoAssembler.create((Triage)list.get(0));

    return null;    
}
项目:openMAXIMS    文件:TriagePatientMedsImpl.java   
public TriageForPatientMedsVo getTriageByCareContext(CareContextRefVo careContextRef)
{
    DomainFactory factory = getDomainFactory();

    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get TriageForPatientMedsVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();

    hql.append("select triage from Triage as triage where triage.attendance.id = :careContextID ");

    List<?> list = factory.find(hql.toString(), new String[] {"careContextID"}, new Object[] {careContextRef.getID_CareContext()});

    if (list!=null && list.size()>0)
        return TriageForPatientMedsVoAssembler.create((Triage)list.get(0));

    return null;    
}
项目:openmaxims-linux    文件:TriagePatientMedsImpl.java   
public TriageForPatientMedsVo getTriageByCareContext(CareContextRefVo careContextRef)
{
    DomainFactory factory = getDomainFactory();

    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get TriageForPatientMedsVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();

    hql.append("select triage from Triage as triage where triage.attendance.id = :careContextID ");

    List<?> list = factory.find(hql.toString(), new String[] {"careContextID"}, new Object[] {careContextRef.getID_CareContext()});

    if (list!=null && list.size()>0)
        return TriageForPatientMedsVoAssembler.create((Triage)list.get(0));

    return null;    
}
项目:AvoinApotti    文件:Logic.java   
private void populateRecordBrowser()//WDEV-17602
{
    form.recbrPatientMed().clear();

    PatientMedsVoCollection collTriagePatientMeds = domain.getAllPatientMeds(form.getLocalContext().getPatientRef());

    if (collTriagePatientMeds == null)
        return;

    for (int i = 0; i < collTriagePatientMeds.size(); i++)
    {
        PatientMedsVo patientMeds = collTriagePatientMeds.get(i);

        if (patientMeds == null)
            continue;

        StringBuffer recordBrowserText = new StringBuffer();

        TriageForPatientMedsVo triage = domain.getTriageByCareContext(patientMeds.getAttendance());
        PatientProblemForPatientMedsVo problem = (triage!=null ? triage.getMainPresentingProblem() : null);

        recordBrowserText.append(getTextToDisplayFromEmergencyAttendance(patientMeds.getAttendance()));

        if (problem != null)
        {
            if (problem.getPatientProblemIsNotNull())
            {
                recordBrowserText.append(" - "+problem.getPatientProblem());
            }
        }

        if (form.getLocalContext().getCareContextRef().equals(patientMeds.getAttendance()))
        {
            form.recbrPatientMed().newRow(patientMeds.getAttendance(), recordBrowserText.toString(), Color.Green);
            continue;
        }
        form.recbrPatientMed().newRow(patientMeds.getAttendance(), recordBrowserText.toString());
    }

    ArrayList collRecBrowser = form.recbrPatientMed().getValues();

    if (!collRecBrowser.contains(form.getLocalContext().getCareContextRef()))
    {
        form.recbrPatientMed().newRow(form.getLocalContext().getCareContextRef(), getTextToDisplayFromEmergencyAttendance(form.getLocalContext().getCareContextRef()).toString(), Color.Green);
    }
    form.recbrPatientMed().setValue(form.getLocalContext().getCareContextRef());

}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser()//WDEV-17602
{
    form.recbrPatientMed().clear();

    PatientMedsVoCollection collTriagePatientMeds = domain.getAllPatientMeds(form.getLocalContext().getPatientRef());

    if (collTriagePatientMeds == null)
        return;

    for (int i = 0; i < collTriagePatientMeds.size(); i++)
    {
        PatientMedsVo patientMeds = collTriagePatientMeds.get(i);

        if (patientMeds == null)
            continue;

        StringBuffer recordBrowserText = new StringBuffer();

        TriageForPatientMedsVo triage = domain.getTriageByCareContext(patientMeds.getAttendance());
        PatientProblemForPatientMedsVo problem = (triage!=null ? triage.getMainPresentingProblem() : null);

        recordBrowserText.append(getTextToDisplayFromEmergencyAttendance(patientMeds.getAttendance()));

        if (problem != null)
        {
            if (problem.getPatientProblemIsNotNull())
            {
                recordBrowserText.append(" - "+problem.getPatientProblem());
            }
        }

        if (form.getLocalContext().getCareContextRef().equals(patientMeds.getAttendance()))
        {
            form.recbrPatientMed().newRow(patientMeds.getAttendance(), recordBrowserText.toString(), Color.Green);
            continue;
        }
        form.recbrPatientMed().newRow(patientMeds.getAttendance(), recordBrowserText.toString());
    }

    ArrayList collRecBrowser = form.recbrPatientMed().getValues();

    if (!collRecBrowser.contains(form.getLocalContext().getCareContextRef()))
    {
        form.recbrPatientMed().newRow(form.getLocalContext().getCareContextRef(), getTextToDisplayFromEmergencyAttendance(form.getLocalContext().getCareContextRef()).toString(), Color.Green);
    }
    form.recbrPatientMed().setValue(form.getLocalContext().getCareContextRef());

}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser()//WDEV-17602
{
    form.recbrPatientMed().clear();

    PatientMedsVoCollection collTriagePatientMeds = domain.getAllPatientMeds(form.getLocalContext().getPatientRef());

    if (collTriagePatientMeds == null)
        return;

    for (int i = 0; i < collTriagePatientMeds.size(); i++)
    {
        PatientMedsVo patientMeds = collTriagePatientMeds.get(i);

        if (patientMeds == null)
            continue;

        StringBuffer recordBrowserText = new StringBuffer();

        TriageForPatientMedsVo triage = domain.getTriageByCareContext(patientMeds.getAttendance());
        PatientProblemForPatientMedsVo problem = (triage!=null ? triage.getMainPresentingProblem() : null);

        recordBrowserText.append(getTextToDisplayFromEmergencyAttendance(patientMeds.getAttendance()));

        if (problem != null)
        {
            if (problem.getPatientProblemIsNotNull())
            {
                recordBrowserText.append(" - "+problem.getPatientProblem());
            }
        }

        if (form.getLocalContext().getCareContextRef().equals(patientMeds.getAttendance()))
        {
            form.recbrPatientMed().newRow(patientMeds.getAttendance(), recordBrowserText.toString(), Color.Green);
            continue;
        }
        form.recbrPatientMed().newRow(patientMeds.getAttendance(), recordBrowserText.toString());
    }

    ArrayList collRecBrowser = form.recbrPatientMed().getValues();

    if (!collRecBrowser.contains(form.getLocalContext().getCareContextRef()))
    {
        form.recbrPatientMed().newRow(form.getLocalContext().getCareContextRef(), getTextToDisplayFromEmergencyAttendance(form.getLocalContext().getCareContextRef()).toString(), Color.Green);
    }
    form.recbrPatientMed().setValue(form.getLocalContext().getCareContextRef());

}
项目:openmaxims-linux    文件:Logic.java   
private void populateRecordBrowser()//WDEV-17602
{
    form.recbrPatientMed().clear();

    PatientMedsVoCollection collTriagePatientMeds = domain.getAllPatientMeds(form.getLocalContext().getPatientRef());

    if (collTriagePatientMeds == null)
        return;

    for (int i = 0; i < collTriagePatientMeds.size(); i++)
    {
        PatientMedsVo patientMeds = collTriagePatientMeds.get(i);

        if (patientMeds == null)
            continue;

        StringBuffer recordBrowserText = new StringBuffer();

        TriageForPatientMedsVo triage = domain.getTriageByCareContext(patientMeds.getAttendance());
        PatientProblemForPatientMedsVo problem = (triage!=null ? triage.getMainPresentingProblem() : null);

        recordBrowserText.append(getTextToDisplayFromEmergencyAttendance(patientMeds.getAttendance()));

        if (problem != null)
        {
            if (problem.getPatientProblemIsNotNull())
            {
                recordBrowserText.append(" - "+problem.getPatientProblem());
            }
        }

        if (form.getLocalContext().getCareContextRef().equals(patientMeds.getAttendance()))
        {
            form.recbrPatientMed().newRow(patientMeds.getAttendance(), recordBrowserText.toString(), Color.Green);
            continue;
        }
        form.recbrPatientMed().newRow(patientMeds.getAttendance(), recordBrowserText.toString());
    }

    ArrayList collRecBrowser = form.recbrPatientMed().getValues();

    if (!collRecBrowser.contains(form.getLocalContext().getCareContextRef()))
    {
        form.recbrPatientMed().newRow(form.getLocalContext().getCareContextRef(), getTextToDisplayFromEmergencyAttendance(form.getLocalContext().getCareContextRef()).toString(), Color.Green);
    }
    form.recbrPatientMed().setValue(form.getLocalContext().getCareContextRef());

}