GVKun编程网logo

ims.clinical.vo.PatientTheatreBookingVoCollection的实例源码(isempty源码)

28

在本文中,我们将为您详细介绍ims.clinical.vo.PatientTheatreBookingVoCollection的实例源码的相关知识,并且为您解答关于isempty源码的疑问,此外,我们

在本文中,我们将为您详细介绍ims.clinical.vo.PatientTheatreBookingVoCollection的实例源码的相关知识,并且为您解答关于isempty源码的疑问,此外,我们还会提供一些关于ims.admin.vo.PatientKioskBookingVoCollection的实例源码、ims.clinical.vo.AbsentPatientPresentingProblemVoCollection的实例源码、ims.clinical.vo.AreaOfNeedsNotingVoCollection的实例源码、ims.clinical.vo.ClinicalDIAssociationVoCollection的实例源码的有用信息。

本文目录一览:

ims.clinical.vo.PatientTheatreBookingVoCollection的实例源码(isempty源码)

ims.clinical.vo.PatientTheatreBookingVoCollection的实例源码(isempty源码)

项目:AvoinApotti    文件:Logic.java   
private void listAppointmentsForPatientAndDate()
{
    Date dteAppt = null;
    if(form.getLocalContext().getDateApptIsNotNull())
        dteAppt = form.getLocalContext().getDateAppt();
    else
        dteAppt = form.dteAppt().getValue();
    PatientTheatreBookingVoCollection voColl = domain.listTheatreAppointmentsByPatientAndDate(form.getLocalContext().getselectedPatient(),dteAppt);
    populateApptsGrid(voColl);
}
项目:AvoinApotti    文件:Logic.java   
private void populateApptsGrid(PatientTheatreBookingVoCollection voColl)
{
    form.GrdAppts().getRows().clear();
    if(voColl != null)
    {
        for(int i = 0 ; i < voColl.size() ; i++)
        {
            PatientTheatreBookingVo voBooking = voColl.get(i);
            GrdApptsRow row = form.GrdAppts().getRows().newRow();

            if (voBooking.getTheatreBookingIsNotNull()
                && voBooking.getTheatreBooking().getTCITimeIsNotNull())
                row.setAppointmentTime(voBooking.getTheatreBooking().getTCITime().toString());

            if(voBooking.getTheatreBookingIsNotNull() && voBooking.getTheatreBooking().getProcedureIsNotNull())
                row.setProcedure(voBooking.getTheatreBooking().getProcedure().getProcedureName());

            if(voBooking.getSessionIsNotNull() && voBooking.getSession().getTheatreTypeIsNotNull())
                row.setType(voBooking.getSession().getTheatreType().toString());

            if(voBooking.getApptStartTimeIsNotNull())
                row.setAppointmentTime(voBooking.getApptStartTime().toString());

            if(voBooking.getApptStatusIsNotNull())
            {
                row.setStatus(voBooking.getApptStatus().toString());
                row.setBooking(voBooking.getApptStatus().getimage());
            }

            if(voBooking.getoutcomeIsNotNull())
                row.setTooltip("Outcome : " + voBooking.getoutcome().getText());

            row.setValue(voBooking);
        }
    }

}
项目:openMAXims    文件:Logic.java   
private void listAppointmentsForPatientAndDate()
{
    Date dteAppt = null;
    if(form.getLocalContext().getDateApptIsNotNull())
        dteAppt = form.getLocalContext().getDateAppt();
    else
        dteAppt = form.dteAppt().getValue();
    PatientTheatreBookingVoCollection voColl = domain.listTheatreAppointmentsByPatientAndDate(form.getLocalContext().getselectedPatient(),dteAppt);
    populateApptsGrid(voColl);
}
项目:openMAXims    文件:Logic.java   
private void populateApptsGrid(PatientTheatreBookingVoCollection voColl)
{
    form.GrdAppts().getRows().clear();
    if(voColl != null)
    {
        for(int i = 0 ; i < voColl.size() ; i++)
        {
            PatientTheatreBookingVo voBooking = voColl.get(i);
            GrdApptsRow row = form.GrdAppts().getRows().newRow();

            if (voBooking.getTheatreBookingIsNotNull()
                && voBooking.getTheatreBooking().getTCITimeIsNotNull())
                row.setAppointmentTime(voBooking.getTheatreBooking().getTCITime().toString());

            if(voBooking.getTheatreBookingIsNotNull() && voBooking.getTheatreBooking().getProcedureIsNotNull())
                row.setProcedure(voBooking.getTheatreBooking().getProcedure().getProcedureName());

            if(voBooking.getSessionIsNotNull() && voBooking.getSession().getTheatreTypeIsNotNull())
                row.setType(voBooking.getSession().getTheatreType().toString());

            if(voBooking.getApptStartTimeIsNotNull())
                row.setAppointmentTime(voBooking.getApptStartTime().toString());

            if(voBooking.getApptStatusIsNotNull())
            {
                row.setStatus(voBooking.getApptStatus().toString());
                row.setBooking(voBooking.getApptStatus().getimage());
            }

            if(voBooking.getoutcomeIsNotNull())
                row.setTooltip("Outcome : " + voBooking.getoutcome().getText());

            row.setValue(voBooking);
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void listAppointmentsForPatientAndDate()
{
    Date dteAppt = null;
    if(form.getLocalContext().getDateApptIsNotNull())
        dteAppt = form.getLocalContext().getDateAppt();
    else
        dteAppt = form.dteAppt().getValue();
    PatientTheatreBookingVoCollection voColl = domain.listTheatreAppointmentsByPatientAndDate(form.getLocalContext().getselectedPatient(),dteAppt);
    populateApptsGrid(voColl);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateApptsGrid(PatientTheatreBookingVoCollection voColl)
{
    form.GrdAppts().getRows().clear();
    if(voColl != null)
    {
        for(int i = 0 ; i < voColl.size() ; i++)
        {
            PatientTheatreBookingVo voBooking = voColl.get(i);
            GrdApptsRow row = form.GrdAppts().getRows().newRow();

            if (voBooking.getTheatreBookingIsNotNull()
                && voBooking.getTheatreBooking().getTCITimeIsNotNull())
                row.setAppointmentTime(voBooking.getTheatreBooking().getTCITime().toString());

            if(voBooking.getTheatreBookingIsNotNull() && voBooking.getTheatreBooking().getProcedureIsNotNull())
                row.setProcedure(voBooking.getTheatreBooking().getProcedure().getProcedureName());

            if(voBooking.getSessionIsNotNull() && voBooking.getSession().getTheatreTypeIsNotNull())
                row.setType(voBooking.getSession().getTheatreType().toString());

            if(voBooking.getApptStartTimeIsNotNull())
                row.setAppointmentTime(voBooking.getApptStartTime().toString());

            if(voBooking.getApptStatusIsNotNull())
            {
                row.setStatus(voBooking.getApptStatus().toString());
                row.setBooking(voBooking.getApptStatus().getimage());
            }

            if(voBooking.getoutcomeIsNotNull())
                row.setTooltip("Outcome : " + voBooking.getoutcome().getText());

            row.setValue(voBooking);
        }
    }

}
项目:AvoinApotti    文件:PatientTheatreAppointmentManagementImpl.java   
public PatientTheatreBookingVoCollection listTheatreAppointmentsByPatientAndDate(PatientRefVo patientID,Date apptDate)
{
    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();
    String andStr = "";
    StringBuffer sb = new StringBuffer();

    String hql = "from Booking_Appointment as appt "; //WDEV-9091

    if (patientID != null)
    {
        sb.append(andStr + " appt.patient.id = :pat");
        markers.add("pat");
        values.add(patientID.getID_Patient());
        andStr = " and ";
    }

    if (apptDate != null)
    {
        sb.append(andStr + " appt.appointmentDate = :apptDate");
        markers.add("apptDate");
        values.add(apptDate.getDate());
        andStr = " and ";
    }
    sb.append(andStr + " appt.theatreBooking != null");
    andStr = " and ";
    sb.append(andStr + " appt.apptStatus = :apptBooked");
    markers.add("apptBooked");
    values.add(getDomLookup(Status_Reason.BOOKED));

    hql += " where ";
    hql += sb.toString();

    java.util.List<?> list = getDomainFactory().find(hql.toString(),markers,values);

    return PatientTheatreBookingVoAssembler.createPatientTheatreBookingVoCollectionFromBooking_Appointment(list); //WDEV-9091

    //WDEV - 9091
    /*
    Iterator it = list.iterator();
    PatientTheatreBookingVoCollection voColl = new PatientTheatreBookingVoCollection();
    while(it.hasNext())
    {

        Object[] lstItem = (Object[]) it.next();
        Booking_Appointment doOP = (Booking_Appointment)lstItem[0];
        Booking_AppointmentVo voOP = Booking_AppointmentVoAssembler.create(doOP);
        PatientTheatreBookingVo voTheatre = new PatientTheatreBookingVo(voOP.getID_Booking_Appointment(),voOP.getVersion_Booking_Appointment());

        voTheatre.setID_Booking_Appointment(doOP.getId());

        voTheatre.setAppointmentDate(voOP.getAppointmentDate());
        voTheatre.setApptStartTime(voOP.getApptStartTime());
        voTheatre.setApptStatus(voOP.getApptStatus());
        voTheatre.setApptStatusHistory(voOP.getApptStatusHistory());
        voTheatre.setArrivalTime(null);
        voTheatre.setSeenTime(null);
        voTheatre.setoutcome(voOP.getoutcome());
        voTheatre.setTheatreBooking(TheatreBookingLiteVoAssembler.create((TheatreBooking)lstItem[1]));
        voTheatre.setSession(voOP.getSession());
        voTheatre.setApptStatusReas(voOP.getApptStatusReas());
        voTheatre.setRequiresRebook(voOP.getRequiresRebook());
        voTheatre.setCurrentStatusRecord(voOP.getCurrentStatusRecord());

        voColl.add(voTheatre);
    }
    return voColl;
    */
    //WDEV-9091
}
项目:openMAXims    文件:PatientTheatreAppointmentManagementImpl.java   
public PatientTheatreBookingVoCollection listTheatreAppointmentsByPatientAndDate(PatientRefVo patientID,voOP.getVersion_Booking_Appointment());

        voTheatre.setID_Booking_Appointment(doOP.getId());

        voTheatre.setAppointmentDate(voOP.getAppointmentDate());
        voTheatre.setApptStartTime(voOP.getApptStartTime());
        voTheatre.setApptStatus(voOP.getApptStatus());
        voTheatre.setApptStatusHistory(voOP.getApptStatusHistory());
        voTheatre.setArrivalTime(null);
        voTheatre.setSeenTime(null);
        voTheatre.setoutcome(voOP.getoutcome());
        voTheatre.setTheatreBooking(TheatreBookingLiteVoAssembler.create((TheatreBooking)lstItem[1]));
        voTheatre.setSession(voOP.getSession());
        voTheatre.setApptStatusReas(voOP.getApptStatusReas());
        voTheatre.setRequiresRebook(voOP.getRequiresRebook());
        voTheatre.setCurrentStatusRecord(voOP.getCurrentStatusRecord());

        voColl.add(voTheatre);
    }
    return voColl;
    */
    //WDEV-9091
}
项目:openmaxims-linux    文件:PatientTheatreAppointmentManagementImpl.java   
public PatientTheatreBookingVoCollection listTheatreAppointmentsByPatientAndDate(PatientRefVo patientID,voOP.getVersion_Booking_Appointment());

        voTheatre.setID_Booking_Appointment(doOP.getId());

        voTheatre.setAppointmentDate(voOP.getAppointmentDate());
        voTheatre.setApptStartTime(voOP.getApptStartTime());
        voTheatre.setApptStatus(voOP.getApptStatus());
        voTheatre.setApptStatusHistory(voOP.getApptStatusHistory());
        voTheatre.setArrivalTime(null);
        voTheatre.setSeenTime(null);
        voTheatre.setoutcome(voOP.getoutcome());
        voTheatre.setTheatreBooking(TheatreBookingLiteVoAssembler.create((TheatreBooking)lstItem[1]));
        voTheatre.setSession(voOP.getSession());
        voTheatre.setApptStatusReas(voOP.getApptStatusReas());
        voTheatre.setRequiresRebook(voOP.getRequiresRebook());
        voTheatre.setCurrentStatusRecord(voOP.getCurrentStatusRecord());

        voColl.add(voTheatre);
    }
    return voColl;
    */
    //WDEV-9091
}

ims.admin.vo.PatientKioskBookingVoCollection的实例源码

ims.admin.vo.PatientKioskBookingVoCollection的实例源码

项目:AvoinApotti    文件:PatientKioskOperationsImpl.java   
private boolean patientIsNotAdded(PatientKioskBookingVoCollection patientKioskBookingCol,Integer patient) 
{
    if(patient == null)
        throw new CodingRuntimeException("Cannot search on null ID!");

    if(patientKioskBookingCol == null || (patientKioskBookingCol != null && patientKioskBookingCol.size() == 0))
        return true;

    for(int i=0; i<patientKioskBookingCol.size(); i++)
    {
        if(patientKioskBookingCol.get(i) != null 
                && patientKioskBookingCol.get(i).getPatientIsNotNull() 
                    && patientKioskBookingCol.get(i).getPatient().getIdisNotNull()
                        && patientKioskBookingCol.get(i).getPatient().getID() == patient)
            return false;
    }

    return true;
}
项目:openMAXims    文件:PatientKioskOperationsImpl.java   
private boolean patientIsNotAdded(PatientKioskBookingVoCollection patientKioskBookingCol,Integer patient) 
{
    if(patient == null)
        throw new CodingRuntimeException("Cannot search on null ID!");

    if(patientKioskBookingCol == null || (patientKioskBookingCol != null && patientKioskBookingCol.size() == 0))
        return true;

    for(int i=0; i<patientKioskBookingCol.size(); i++)
    {
        if(patientKioskBookingCol.get(i) != null 
                && patientKioskBookingCol.get(i).getPatientIsNotNull() 
                    && patientKioskBookingCol.get(i).getPatient().getIdisNotNull()
                        && patientKioskBookingCol.get(i).getPatient().getID() == patient)
            return false;
    }

    return true;
}
项目:openmaxims-linux    文件:PatientKioskOperationsImpl.java   
private boolean patientIsNotAdded(PatientKioskBookingVoCollection patientKioskBookingCol,Integer patient) 
{
    if(patient == null)
        throw new CodingRuntimeException("Cannot search on null ID!");

    if(patientKioskBookingCol == null || (patientKioskBookingCol != null && patientKioskBookingCol.size() == 0))
        return true;

    for(int i=0; i<patientKioskBookingCol.size(); i++)
    {
        if(patientKioskBookingCol.get(i) != null 
                && patientKioskBookingCol.get(i).getPatientIsNotNull() 
                    && patientKioskBookingCol.get(i).getPatient().getIdisNotNull()
                        && patientKioskBookingCol.get(i).getPatient().getID() == patient)
            return false;
    }

    return true;
}
项目:AvoinApotti    文件:PatientKioskOperationsImpl.java   
private void addNewAppointmentToPatient(PatientKioskBookingVoCollection patientKioskBookingCol,Booking_AppointmentVo booking_AppointmentVo) 
{
    if(patientKioskBookingCol == null)
        throw new CodingRuntimeException("Cannot add on a null collection!");

    if(booking_AppointmentVo == null)
        return;

    for(int i=0; i<patientKioskBookingCol.size(); i++)
    {
        if(patientKioskBookingCol.get(i) != null && patientKioskBookingCol.get(i).getPatientIsNotNull() && patientKioskBookingCol.get(i).getPatient().getIdisNotNull() 
                && booking_AppointmentVo.getPatientIsNotNull() && booking_AppointmentVo.getPatient().getID_PatientIsNotNull() 
                    && patientKioskBookingCol.get(i).getPatient().getID() == booking_AppointmentVo.getPatient().getID_Patient())
        {
            PatientKioskAppointmentVo newAppointment = new PatientKioskAppointmentVo();

            newAppointment.setName(booking_AppointmentVo.getSessionIsNotNull() ? booking_AppointmentVo.getSession().getName() : null);
            newAppointment.setDate(booking_AppointmentVo.getAppointmentDate());
            newAppointment.setTime(booking_AppointmentVo.getApptStartTime());
            newAppointment.setID(booking_AppointmentVo.getID_Booking_Appointment());

            if(patientKioskBookingCol.get(i).getAppointmentsIsNotNull())
            {
                patientKioskBookingCol.get(i).getAppointments().add(newAppointment);
            }
            else
            {
                PatientKioskAppointmentVoCollection newAppointmentCol = new PatientKioskAppointmentVoCollection();
                newAppointmentCol.add(newAppointment);

                patientKioskBookingCol.get(i).setAppointments(newAppointmentCol);
            }
        }
    }
}
项目:AvoinApotti    文件:PatientKioskOperationsImpl.java   
private void addNewPatientKioskBooking(PatientKioskBookingVoCollection patientKioskBookingCol,Booking_AppointmentVo booking_AppointmentVo) 
{
    if(patientKioskBookingCol == null)
        throw new CodingRuntimeException("Cannot add on a null collection!");

    if(booking_AppointmentVo == null)
        return;

    PatientKioskPatientVo newPatient = null;

    if(booking_AppointmentVo.getPatientIsNotNull())
    {
        newPatient = populatePatientKioskFromBookingAppointment(booking_AppointmentVo.getPatient());
    }

    if(newPatient != null)
    {
        PatientKioskAppointmentVoCollection newAppointmentCol = new PatientKioskAppointmentVoCollection();
        PatientKioskAppointmentVo newAppointment = new PatientKioskAppointmentVo();

        newAppointment.setName(booking_AppointmentVo.getSessionIsNotNull() ? booking_AppointmentVo.getSession().getName() : null);
        newAppointment.setDate(booking_AppointmentVo.getAppointmentDate());
        newAppointment.setTime(booking_AppointmentVo.getApptStartTime());
        newAppointment.setID(booking_AppointmentVo.getID_Booking_Appointment());

        newAppointmentCol.add(newAppointment);

        PatientKioskBookingVo newPatientKiosBooking = new PatientKioskBookingVo();
        newPatientKiosBooking.setPatient(newPatient);
        newPatientKiosBooking.setAppointments(newAppointmentCol);

        patientKioskBookingCol.add(newPatientKiosBooking);
    }
}
项目:openMAXims    文件:PatientKioskOperationsImpl.java   
private void addNewAppointmentToPatient(PatientKioskBookingVoCollection patientKioskBookingCol,Booking_AppointmentVo booking_AppointmentVo) 
{
    if(patientKioskBookingCol == null)
        throw new CodingRuntimeException("Cannot add on a null collection!");

    if(booking_AppointmentVo == null)
        return;

    for(int i=0; i<patientKioskBookingCol.size(); i++)
    {
        if(patientKioskBookingCol.get(i) != null && patientKioskBookingCol.get(i).getPatientIsNotNull() && patientKioskBookingCol.get(i).getPatient().getIdisNotNull() 
                && booking_AppointmentVo.getPatientIsNotNull() && booking_AppointmentVo.getPatient().getID_PatientIsNotNull() 
                    && patientKioskBookingCol.get(i).getPatient().getID() == booking_AppointmentVo.getPatient().getID_Patient())
        {
            PatientKioskAppointmentVo newAppointment = new PatientKioskAppointmentVo();

            newAppointment.setName(booking_AppointmentVo.getSessionIsNotNull() ? booking_AppointmentVo.getSession().getName() : null);
            newAppointment.setDate(booking_AppointmentVo.getAppointmentDate());
            newAppointment.setTime(booking_AppointmentVo.getApptStartTime());
            newAppointment.setID(booking_AppointmentVo.getID_Booking_Appointment());

            if(patientKioskBookingCol.get(i).getAppointmentsIsNotNull())
            {
                patientKioskBookingCol.get(i).getAppointments().add(newAppointment);
            }
            else
            {
                PatientKioskAppointmentVoCollection newAppointmentCol = new PatientKioskAppointmentVoCollection();
                newAppointmentCol.add(newAppointment);

                patientKioskBookingCol.get(i).setAppointments(newAppointmentCol);
            }
        }
    }
}
项目:openMAXims    文件:PatientKioskOperationsImpl.java   
private void addNewPatientKioskBooking(PatientKioskBookingVoCollection patientKioskBookingCol,Booking_AppointmentVo booking_AppointmentVo) 
{
    if(patientKioskBookingCol == null)
        throw new CodingRuntimeException("Cannot add on a null collection!");

    if(booking_AppointmentVo == null)
        return;

    PatientKioskPatientVo newPatient = null;

    if(booking_AppointmentVo.getPatientIsNotNull())
    {
        newPatient = populatePatientKioskFromBookingAppointment(booking_AppointmentVo.getPatient());
    }

    if(newPatient != null)
    {
        PatientKioskAppointmentVoCollection newAppointmentCol = new PatientKioskAppointmentVoCollection();
        PatientKioskAppointmentVo newAppointment = new PatientKioskAppointmentVo();

        newAppointment.setName(booking_AppointmentVo.getSessionIsNotNull() ? booking_AppointmentVo.getSession().getName() : null);
        newAppointment.setDate(booking_AppointmentVo.getAppointmentDate());
        newAppointment.setTime(booking_AppointmentVo.getApptStartTime());
        newAppointment.setID(booking_AppointmentVo.getID_Booking_Appointment());

        newAppointmentCol.add(newAppointment);

        PatientKioskBookingVo newPatientKiosBooking = new PatientKioskBookingVo();
        newPatientKiosBooking.setPatient(newPatient);
        newPatientKiosBooking.setAppointments(newAppointmentCol);

        patientKioskBookingCol.add(newPatientKiosBooking);
    }
}
项目:openmaxims-linux    文件:PatientKioskOperationsImpl.java   
private void addNewAppointmentToPatient(PatientKioskBookingVoCollection patientKioskBookingCol,Booking_AppointmentVo booking_AppointmentVo) 
{
    if(patientKioskBookingCol == null)
        throw new CodingRuntimeException("Cannot add on a null collection!");

    if(booking_AppointmentVo == null)
        return;

    for(int i=0; i<patientKioskBookingCol.size(); i++)
    {
        if(patientKioskBookingCol.get(i) != null && patientKioskBookingCol.get(i).getPatientIsNotNull() && patientKioskBookingCol.get(i).getPatient().getIdisNotNull() 
                && booking_AppointmentVo.getPatientIsNotNull() && booking_AppointmentVo.getPatient().getID_PatientIsNotNull() 
                    && patientKioskBookingCol.get(i).getPatient().getID() == booking_AppointmentVo.getPatient().getID_Patient())
        {
            PatientKioskAppointmentVo newAppointment = new PatientKioskAppointmentVo();

            newAppointment.setName(booking_AppointmentVo.getSessionIsNotNull() ? booking_AppointmentVo.getSession().getName() : null);
            newAppointment.setDate(booking_AppointmentVo.getAppointmentDate());
            newAppointment.setTime(booking_AppointmentVo.getApptStartTime());
            newAppointment.setID(booking_AppointmentVo.getID_Booking_Appointment());

            if(patientKioskBookingCol.get(i).getAppointmentsIsNotNull())
            {
                patientKioskBookingCol.get(i).getAppointments().add(newAppointment);
            }
            else
            {
                PatientKioskAppointmentVoCollection newAppointmentCol = new PatientKioskAppointmentVoCollection();
                newAppointmentCol.add(newAppointment);

                patientKioskBookingCol.get(i).setAppointments(newAppointmentCol);
            }
        }
    }
}
项目:openmaxims-linux    文件:PatientKioskOperationsImpl.java   
private void addNewPatientKioskBooking(PatientKioskBookingVoCollection patientKioskBookingCol,Booking_AppointmentVo booking_AppointmentVo) 
{
    if(patientKioskBookingCol == null)
        throw new CodingRuntimeException("Cannot add on a null collection!");

    if(booking_AppointmentVo == null)
        return;

    PatientKioskPatientVo newPatient = null;

    if(booking_AppointmentVo.getPatientIsNotNull())
    {
        newPatient = populatePatientKioskFromBookingAppointment(booking_AppointmentVo.getPatient());
    }

    if(newPatient != null)
    {
        PatientKioskAppointmentVoCollection newAppointmentCol = new PatientKioskAppointmentVoCollection();
        PatientKioskAppointmentVo newAppointment = new PatientKioskAppointmentVo();

        newAppointment.setName(booking_AppointmentVo.getSessionIsNotNull() ? booking_AppointmentVo.getSession().getName() : null);
        newAppointment.setDate(booking_AppointmentVo.getAppointmentDate());
        newAppointment.setTime(booking_AppointmentVo.getApptStartTime());
        newAppointment.setID(booking_AppointmentVo.getID_Booking_Appointment());

        newAppointmentCol.add(newAppointment);

        PatientKioskBookingVo newPatientKiosBooking = new PatientKioskBookingVo();
        newPatientKiosBooking.setPatient(newPatient);
        newPatientKiosBooking.setAppointments(newAppointmentCol);

        patientKioskBookingCol.add(newPatientKiosBooking);
    }
}

ims.clinical.vo.AbsentPatientPresentingProblemVoCollection的实例源码

ims.clinical.vo.AbsentPatientPresentingProblemVoCollection的实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateAbsentPatientProblemsControls(AbsentPatientPresentingProblemVoCollection voCollAbsentProblems)
{
    for (int i = 0; i < voCollAbsentProblems.size(); i++)
        populateAbsentPatientProblemControls(voCollAbsentProblems.get(i));

}
项目:openMAXims    文件:Logic.java   
private void populateAbsentPatientProblemsControls(AbsentPatientPresentingProblemVoCollection voCollAbsentProblems)
{
    for (int i = 0; i < voCollAbsentProblems.size(); i++)
        populateAbsentPatientProblemControls(voCollAbsentProblems.get(i));

}
项目:openmaxims-linux    文件:Logic.java   
private void populateAbsentPatientProblemsControls(AbsentPatientPresentingProblemVoCollection voCollAbsentProblems)
{
    for (int i = 0; i < voCollAbsentProblems.size(); i++)
        populateAbsentPatientProblemControls(voCollAbsentProblems.get(i));

}

ims.clinical.vo.AreaOfNeedsNotingVoCollection的实例源码

ims.clinical.vo.AreaOfNeedsNotingVoCollection的实例源码

项目:AvoinApotti    文件:ContactAonSummImpl.java   
public AreaOfNeedsnotingVoCollection listbyCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from AreaofNeedsnoting aon ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContextRef != null)
    {
        hql.append(andStr + " aon.clinicalContact.careContext.id = :cc");
        markers.add("cc");
        values.add(voCareContextRef.getID_CareContext());
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List cttList = factory.find(query,markers,values);
    AreaOfNeedsnotingVoCollection voAreaOfNeedsnotingColl = AreaOfNeedsnotingVoAssembler.createAreaOfNeedsnotingVoCollectionFromAreaofNeedsnoting(cttList);
    //if(voAreaOfNeedsnotingColl.size()>0)
        return voAreaOfNeedsnotingColl;
    //else
        //return null;
}
项目:openMAXims    文件:ContactAonSummImpl.java   
public AreaOfNeedsnotingVoCollection listbyCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from AreaofNeedsnoting aon ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContextRef != null)
    {
        hql.append(andStr + " aon.clinicalContact.careContext.id = :cc");
        markers.add("cc");
        values.add(voCareContextRef.getID_CareContext());
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List cttList = factory.find(query,values);
    AreaOfNeedsnotingVoCollection voAreaOfNeedsnotingColl = AreaOfNeedsnotingVoAssembler.createAreaOfNeedsnotingVoCollectionFromAreaofNeedsnoting(cttList);
    //if(voAreaOfNeedsnotingColl.size()>0)
        return voAreaOfNeedsnotingColl;
    //else
        //return null;
}
项目:openmaxims-linux    文件:ContactAonSummImpl.java   
public AreaOfNeedsnotingVoCollection listbyCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from AreaofNeedsnoting aon ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContextRef != null)
    {
        hql.append(andStr + " aon.clinicalContact.careContext.id = :cc");
        markers.add("cc");
        values.add(voCareContextRef.getID_CareContext());
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List cttList = factory.find(query,values);
    AreaOfNeedsnotingVoCollection voAreaOfNeedsnotingColl = AreaOfNeedsnotingVoAssembler.createAreaOfNeedsnotingVoCollectionFromAreaofNeedsnoting(cttList);
    //if(voAreaOfNeedsnotingColl.size()>0)
        return voAreaOfNeedsnotingColl;
    //else
        //return null;
}
项目:AvoinApotti    文件:Logic.java   
private void populateParentNodes(AreaOfNeedsnotingVoCollection voAreaOfNeedsColl)
{
    if(voAreaOfNeedsColl == null) return;

    for(int i=0; i<voAreaOfNeedsColl.size(); i++)
    {
        populateParentNode(voAreaOfNeedsColl.get(i));           
    }
}
项目:AvoinApotti    文件:ContactAonSummImpl.java   
public AreaOfNeedsnotingVoCollection list(ClinicalContactShortVo voClinicalContact)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from AreaofNeedsnoting aon ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voClinicalContact != null)
    {
        hql.append(andStr + " aon.clinicalContact.id = :cc");
        markers.add("cc");
        values.add(voClinicalContact.getID_ClinicalContact());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List cttList = factory.find(query,values);
    AreaOfNeedsnotingVoCollection voAreaOfNeedsnotingColl = AreaOfNeedsnotingVoAssembler.createAreaOfNeedsnotingVoCollectionFromAreaofNeedsnoting(cttList);
    //if(voAreaOfNeedsnotingColl.size()>0)
        return voAreaOfNeedsnotingColl;
    //else
        //return null;
}
项目:openMAXims    文件:Logic.java   
private void populateParentNodes(AreaOfNeedsnotingVoCollection voAreaOfNeedsColl)
{
    if(voAreaOfNeedsColl == null) return;

    for(int i=0; i<voAreaOfNeedsColl.size(); i++)
    {
        populateParentNode(voAreaOfNeedsColl.get(i));           
    }
}
项目:openMAXims    文件:ContactAonSummImpl.java   
public AreaOfNeedsnotingVoCollection list(ClinicalContactShortVo voClinicalContact)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from AreaofNeedsnoting aon ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voClinicalContact != null)
    {
        hql.append(andStr + " aon.clinicalContact.id = :cc");
        markers.add("cc");
        values.add(voClinicalContact.getID_ClinicalContact());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List cttList = factory.find(query,values);
    AreaOfNeedsnotingVoCollection voAreaOfNeedsnotingColl = AreaOfNeedsnotingVoAssembler.createAreaOfNeedsnotingVoCollectionFromAreaofNeedsnoting(cttList);
    //if(voAreaOfNeedsnotingColl.size()>0)
        return voAreaOfNeedsnotingColl;
    //else
        //return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void populateParentNodes(AreaOfNeedsnotingVoCollection voAreaOfNeedsColl)
{
    if(voAreaOfNeedsColl == null) return;

    for(int i=0; i<voAreaOfNeedsColl.size(); i++)
    {
        populateParentNode(voAreaOfNeedsColl.get(i));           
    }
}
项目:openmaxims-linux    文件:ContactAonSummImpl.java   
public AreaOfNeedsnotingVoCollection list(ClinicalContactShortVo voClinicalContact)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from AreaofNeedsnoting aon ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voClinicalContact != null)
    {
        hql.append(andStr + " aon.clinicalContact.id = :cc");
        markers.add("cc");
        values.add(voClinicalContact.getID_ClinicalContact());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List cttList = factory.find(query,values);
    AreaOfNeedsnotingVoCollection voAreaOfNeedsnotingColl = AreaOfNeedsnotingVoAssembler.createAreaOfNeedsnotingVoCollectionFromAreaofNeedsnoting(cttList);
    //if(voAreaOfNeedsnotingColl.size()>0)
        return voAreaOfNeedsnotingColl;
    //else
        //return null;
}

ims.clinical.vo.ClinicalDIAssociationVoCollection的实例源码

ims.clinical.vo.ClinicalDIAssociationVoCollection的实例源码

项目:AvoinApotti    文件:Logic.java   
private void displayProcAssociationsOnSummary()
{
    ClinicalDIAssociationVoCollection voCollDiAsociations = null;

    if (form.ctnSummary().GrdProcedure().getValue() != null)
    {
        String headerTooltip = "";
        String association = "";

        if (form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureRefVo)
        {
            voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().GrdProcedure().getValue());
            if (form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureShortVo)
            {
                association = getProcedureText(((PatientProcedureShortVo) form.ctnSummary().GrdProcedure().getValue()));
                headerTooltip = ((PatientProcedureShortVo) form.ctnSummary().GrdProcedure().getValue()).getDiAssociationsTooltip();
            }
        }

        markGridAssociations(voCollDiAsociations,Boolean.FALSE,association,headerTooltip);
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean saveDIAssociations(ClinicalDIAssociationVoCollection voDIAssociation)
{
    if (voDIAssociation != null)
    {
        String[] errors = voDIAssociation.validate();
        if (errors != null)
        {
            engine.showErrors(errors);
            return false;
        }

        try
        {
            domain.saveClinicalDiAssociation(voDIAssociation);
        }
        catch (StaleObjectException e)
        {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            return false;
        }
    }

    return true;
}
项目:AvoinApotti    文件:Logic.java   
private void setPrimaryDiagnosis(ClinicalDIAssociationVoCollection voDIAssociation)
{
    PatientDiagnosisVo voPatientDiagnosis = form.getLocalContext().getSelectedPatientDiagnosisVo();
    for (int i = 0; voPatientDiagnosis != null && voDIAssociation != null && i < voDIAssociation.size(); i++)
    {
        if (voDIAssociation.get(i).getPrimDiagnosis() == null || voDIAssociation.get(i).getPrimDiagnosis().getID_PatientDiagnosis() == null)
            voDIAssociation.get(i).setPrimDiagnosis(voPatientDiagnosis);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void displayProcAssociationsOnSummary()
{
    ClinicalDIAssociationVoCollection voCollDiAsociations = null;

    if (form.ctnSummary().GrdProcedure().getValue() != null)
    {
        String headerTooltip = "";
        String association = "";

        if (form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureRefVo)
        {
            voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().GrdProcedure().getValue());
            if(form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureShortVo)
            {
                association = getProcedureText(((PatientProcedureShortVo)form.ctnSummary().GrdProcedure().getValue()));
                headerTooltip = ((PatientProcedureShortVo)form.ctnSummary().GrdProcedure().getValue()).getDiAssociationsTooltip();
            }
        }

        markGridAssociations(voCollDiAsociations,headerTooltip);
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean save() 
{
    ClinicalDIAssociationVoCollection data = populateData();
    data = removeUnsavedInactiveRecordsFromCache(data);
    String[] errors = data.validate();
    if(errors != null && errors.length > 0)
    {
        engine.showErrors(errors);
        return false;
    }

    try 
    {
        domain.saveClinicalDiAssociation(data);
    } 
    catch (StaleObjectException e) 
    {
        //WDEV-3112
        form.getGlobalContext().Core.setYesNoDialogMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        engine.open(form.getForms().Core.OkDialog,"Data Warning");
        return false;
    }

    return true;
}
项目:AvoinApotti    文件:Logic.java   
private void addOrUpdateAssociationRecord(ClinicalDIAssociationVoCollection newResult,ClinicalDIAssociationVoCollection result,ValueObject value,CDIAssociationDescription relationship)
{
    if(value != null)
    {
        boolean found = false;
        for(int y = 0; y < result.size(); y++)
        {
            ClinicalDIAssociationVo record = result.get(y);
            ValueObject assocRec = null;

            if(record.getAssocDiagnosisIsNotNull())
                assocRec = record.getAssocDiagnosis();
            else if(record.getAssocProcedureIsNotNull())
                assocRec = record.getAssocProcedure();
            else if(record.getAssocProblemIsNotNull())
                assocRec = record.getAssocProblem();

            if(assocRec != null && assocRec.equals(value))
            {
                //When relationship is removed we inactivate the record
                if(relationship == null)
                    record.setIsActive(new Boolean(false));
                else
                    record.setIsActive(new Boolean(true));
                record.setAssociationDescription(relationship);
                found = true;
                break;
            }
        }

        if(!found && relationship != null)
        {
            ClinicalDIAssociationVo newRecord = getNewAssociationRecord(value,relationship);
            newResult.add(newRecord);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private ClinicalDIAssociationVoCollection removeUnsavedInactiveRecordsFromCache(ClinicalDIAssociationVoCollection data)
{
    boolean removed = true;
    while(removed)
    {
        removed = false;
        for (int i = 0; data != null && i < data.size(); i++)
        {
            boolean activeRecord = data.get(i).getIsActive() == null || data.get(i).getIsActive().booleanValue() == false;
            boolean recordSaved  = data.get(i).getID_ClinicalcdiassociationsIsNotNull();
            if(activeRecord && recordSaved == false)
            {
                data.remove(i);
                removed = true;
                break;
            }   
        }
    }

    return data;
}
项目:AvoinApotti    文件:Logic.java   
private boolean saveDIAssociations(ClinicalDIAssociationVoCollection voDIAssociation)
{
    if(voDIAssociation != null)
    {
        String[] errors = voDIAssociation.validate();
        if(errors != null)
        {
            engine.showErrors(errors);
            return false;
        }

        try
        {
            domain.saveClinicalDiAssociation(voDIAssociation);
        }
        catch (StaleObjectException e)
        {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            return false;
        }
    }

    return true;
}
项目:AvoinApotti    文件:ClinicalDiAssociationsImpl.java   
public ClinicalDIAssociationVoCollection saveClinicalDiAssociation(ClinicalDIAssociationVoCollection list) throws StaleObjectException 
{
    if(list == null)
        throw new RuntimeException("Cannot save null ClinicalDIAssociationVoCollection");
    if(!list.isValidated())
        throw new CodingRuntimeException("ClinicalDIAssociationVoCollection has not been validated.");

    DomainFactory factory = getDomainFactory();
    ClinicalDIAssociationVoCollection result = new ClinicalDIAssociationVoCollection();

    for(int x = 0; x < list.size(); x++)
    {
        if(list.get(x) != null)
        {
            factory.save(ClinicalDIAssociationVoAssembler.extractClinicalcdiassociations(factory,list.get(x)));
        }
    }       

    return result;
}
项目:openMAXims    文件:Logic.java   
private void displayProcAssociationsOnSummary()
{
    ClinicalDIAssociationVoCollection voCollDiAsociations = null;

    if (form.ctnSummary().GrdProcedure().getValue() != null)
    {
        String headerTooltip = "";
        String association = "";

        if (form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureRefVo)
        {
            voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().GrdProcedure().getValue());
            if (form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureShortVo)
            {
                association = getProcedureText(((PatientProcedureShortVo) form.ctnSummary().GrdProcedure().getValue()));
                headerTooltip = ((PatientProcedureShortVo) form.ctnSummary().GrdProcedure().getValue()).getDiAssociationsTooltip();
            }
        }

        markGridAssociations(voCollDiAsociations,headerTooltip);
    }
}
项目:openMAXims    文件:Logic.java   
private boolean saveDIAssociations(ClinicalDIAssociationVoCollection voDIAssociation)
{
    if (voDIAssociation != null)
    {
        String[] errors = voDIAssociation.validate();
        if (errors != null)
        {
            engine.showErrors(errors);
            return false;
        }

        try
        {
            domain.saveClinicalDiAssociation(voDIAssociation);
        }
        catch (StaleObjectException e)
        {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            return false;
        }
    }

    return true;
}
项目:openMAXims    文件:Logic.java   
private void displayProcAssociationsOnSummary()
{
    ClinicalDIAssociationVoCollection voCollDiAsociations = null;

    if (form.ctnSummary().GrdProcedure().getValue() != null)
    {
        String headerTooltip = "";
        String association = "";

        if (form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureRefVo)
        {
            voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().GrdProcedure().getValue());
            if(form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureShortVo)
            {
                association = getProcedureText(((PatientProcedureShortVo)form.ctnSummary().GrdProcedure().getValue()));
                headerTooltip = ((PatientProcedureShortVo)form.ctnSummary().GrdProcedure().getValue()).getDiAssociationsTooltip();
            }
        }

        markGridAssociations(voCollDiAsociations,headerTooltip);
    }
}
项目:openMAXims    文件:Logic.java   
private boolean save() 
{
    ClinicalDIAssociationVoCollection data = populateData();
    data = removeUnsavedInactiveRecordsFromCache(data);
    String[] errors = data.validate();
    if(errors != null && errors.length > 0)
    {
        engine.showErrors(errors);
        return false;
    }

    try 
    {
        domain.saveClinicalDiAssociation(data);
    } 
    catch (StaleObjectException e) 
    {
        //WDEV-3112
        form.getGlobalContext().Core.setYesNoDialogMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        engine.open(form.getForms().Core.OkDialog,"Data Warning");
        return false;
    }

    return true;
}
项目:openMAXims    文件:Logic.java   
private ClinicalDIAssociationVoCollection removeUnsavedInactiveRecordsFromCache(ClinicalDIAssociationVoCollection data)
{
    boolean removed = true;
    while(removed)
    {
        removed = false;
        for (int i = 0; data != null && i < data.size(); i++)
        {
            boolean activeRecord = data.get(i).getIsActive() == null || data.get(i).getIsActive().booleanValue() == false;
            boolean recordSaved  = data.get(i).getID_ClinicalcdiassociationsIsNotNull();
            if(activeRecord && recordSaved == false)
            {
                data.remove(i);
                removed = true;
                break;
            }   
        }
    }

    return data;
}
项目:openMAXims    文件:Logic.java   
private boolean saveDIAssociations(ClinicalDIAssociationVoCollection voDIAssociation)
{
    if(voDIAssociation != null)
    {
        String[] errors = voDIAssociation.validate();
        if(errors != null)
        {
            engine.showErrors(errors);
            return false;
        }

        try
        {
            domain.saveClinicalDiAssociation(voDIAssociation);
        }
        catch (StaleObjectException e)
        {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            return false;
        }
    }

    return true;
}
项目:openMAXims    文件:ClinicalDiAssociationsImpl.java   
public ClinicalDIAssociationVoCollection saveClinicalDiAssociation(ClinicalDIAssociationVoCollection list) throws StaleObjectException 
{
    if(list == null)
        throw new RuntimeException("Cannot save null ClinicalDIAssociationVoCollection");
    if(!list.isValidated())
        throw new CodingRuntimeException("ClinicalDIAssociationVoCollection has not been validated.");

    DomainFactory factory = getDomainFactory();
    ClinicalDIAssociationVoCollection result = new ClinicalDIAssociationVoCollection();

    for(int x = 0; x < list.size(); x++)
    {
        if(list.get(x) != null)
        {
            factory.save(ClinicalDIAssociationVoAssembler.extractClinicalcdiassociations(factory,list.get(x)));
        }
    }       

    return result;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean saveDIAssociations(ClinicalDIAssociationVoCollection voDIAssociation)
{
    if(voDIAssociation != null)
    {
        String[] errors = voDIAssociation.validate();
        if(errors != null)
        {
            engine.showErrors(errors);
            return false;
        }

        try
        {
            domain.saveClinicalDiAssociation(voDIAssociation);
        }
        catch (StaleObjectException e)
        {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            return false;
        }
    }

    return true;
}
项目:openmaxims-linux    文件:Logic.java   
private void displayProcAssociationsOnSummary()
{
    ClinicalDIAssociationVoCollection voCollDiAsociations = null;

    if (form.ctnSummary().GrdProcedure().getValue() != null)
    {
        String headerTooltip = "";
        String association = "";

        if (form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureRefVo)
        {
            voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().GrdProcedure().getValue());
            if (form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureShortVo)
            {
                association = getProcedureText(((PatientProcedureShortVo) form.ctnSummary().GrdProcedure().getValue()));
                headerTooltip = ((PatientProcedureShortVo) form.ctnSummary().GrdProcedure().getValue()).getDiAssociationsTooltip();
            }
        }

        markGridAssociations(voCollDiAsociations,headerTooltip);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private boolean saveDIAssociations(ClinicalDIAssociationVoCollection voDIAssociation)
{
    if (voDIAssociation != null)
    {
        String[] errors = voDIAssociation.validate();
        if (errors != null)
        {
            engine.showErrors(errors);
            return false;
        }

        try
        {
            domain.saveClinicalDiAssociation(voDIAssociation);
        }
        catch (StaleObjectException e)
        {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            return false;
        }
    }

    return true;
}
项目:openmaxims-linux    文件:Logic.java   
private void displayProcAssociationsOnSummary()
{
    ClinicalDIAssociationVoCollection voCollDiAsociations = null;

    if (form.ctnSummary().GrdProcedure().getValue() != null)
    {
        String headerTooltip = "";
        String association = "";

        if (form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureRefVo)
        {
            voCollDiAsociations = domain.listClinicalDiAssociationByPatientProcedure((PatientProcedureRefVo) form.ctnSummary().GrdProcedure().getValue());
            if(form.ctnSummary().GrdProcedure().getValue() instanceof PatientProcedureShortVo)
            {
                association = getProcedureText(((PatientProcedureShortVo)form.ctnSummary().GrdProcedure().getValue()));
                headerTooltip = ((PatientProcedureShortVo)form.ctnSummary().GrdProcedure().getValue()).getDiAssociationsTooltip();
            }
        }

        markGridAssociations(voCollDiAsociations,headerTooltip);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private boolean save() 
{
    ClinicalDIAssociationVoCollection data = populateData();
    data = removeUnsavedInactiveRecordsFromCache(data);
    String[] errors = data.validate();
    if(errors != null && errors.length > 0)
    {
        engine.showErrors(errors);
        return false;
    }

    try 
    {
        domain.saveClinicalDiAssociation(data);
    } 
    catch (StaleObjectException e) 
    {
        //WDEV-3112
        form.getGlobalContext().Core.setYesNoDialogMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        engine.open(form.getForms().Core.OkDialog,"Data Warning");
        return false;
    }

    return true;
}
项目:openmaxims-linux    文件:Logic.java   
private ClinicalDIAssociationVoCollection removeUnsavedInactiveRecordsFromCache(ClinicalDIAssociationVoCollection data)
{
    boolean removed = true;
    while(removed)
    {
        removed = false;
        for (int i = 0; data != null && i < data.size(); i++)
        {
            boolean activeRecord = data.get(i).getIsActive() == null || data.get(i).getIsActive().booleanValue() == false;
            boolean recordSaved  = data.get(i).getID_ClinicalcdiassociationsIsNotNull();
            if(activeRecord && recordSaved == false)
            {
                data.remove(i);
                removed = true;
                break;
            }   
        }
    }

    return data;
}
项目:AvoinApotti    文件:Logic.java   
private void displayDiagCompAssociationsOnSummary()
{

    ClinicalDIAssociationVoCollection voCollDiAsociations = null;

    ValueObject value = form.ctnSummary().GrdDiagnosis().getValue();
    if (value != null)
    {
        String headerToolTip = "";
        String association = "";

        if (value instanceof PatientProblemRefVo)
        {
            voCollDiAsociations = domain.listClinicalDiAssociationByPatientProblem((PatientProblemRefVo) value);
            if (value instanceof PatientProblemVo)
            {
                association = ((PatientProblemVo) value).getPatientProblem();
                headerToolTip = ((PatientProblemVo) value).getDiAssociationTooltip();
            }
        }
        else if (value instanceof PatientDiagnosisRefVo)
        {
            voCollDiAsociations = domain.listClinicalDiAssociationByPatientDiagnosis((PatientDiagnosisRefVo) value);
            if (value instanceof PatientDiagnosisShortVo)
            {
                association = getDiagnosisText((PatientDiagnosisShortVo) value);
                headerToolTip = ((PatientDiagnosisShortVo) value).getTooltipForDiAssociation();
            }
        }

        markGridAssociations(voCollDiAsociations,Boolean.TRUE,headerToolTip);
    }

}
项目:AvoinApotti    文件:Logic.java   
private void saveCDIAssociations()
{
    ClinicalDIAssociationVoCollection voDIAssociation = form.getGlobalContext().Clinical.getClinicalDIAssociationVoCollection();
    if (voDIAssociation != null && voDIAssociation.size() > 0)
    {
        setPrimaryDiagnosis(voDIAssociation);
        saveDIAssociations(voDIAssociation);
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean isAtLeastOneComplication()
{
    ClinicalDIAssociationVoCollection voColl = form.getGlobalContext().Clinical.getClinicalDIAssociationVoCollection();
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        if (voColl.get(i).getAssociationDescription() != null && voColl.get(i).getAssociationDescription().equals(CDIAssociationDescription.ISACOMPLICATIONOF))
            return true;
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (save() == false)
        return;

    ClinicalDIAssociationVoCollection voDIAssociation = form.getGlobalContext().Clinical.getClinicalDIAssociationVoCollection();
    if (voDIAssociation != null && voDIAssociation.size() > 0)
    {
        setPrimaryProcedure(voDIAssociation);
        saveDIAssociations(voDIAssociation);
    }
    open();
    form.setMode(FormMode.VIEW);
}
项目:AvoinApotti    文件:Logic.java   
private void setPrimaryProcedure(ClinicalDIAssociationVoCollection voDIAssociation)
{
    PatientProcedureVo voPatientProcedure = form.getLocalContext().getPatientProcedureVo();
    for (int i = 0; voPatientProcedure != null && voDIAssociation != null && i < voDIAssociation.size(); i++)
    {
        if (voDIAssociation.get(i).getPrimProcedure() == null || voDIAssociation.get(i).getPrimProcedure().getID_PatientProcedure() == null)
            voDIAssociation.get(i).setPrimProcedure(voPatientProcedure);
    }
}
项目:AvoinApotti    文件:Logic.java   
private ClinicalDIAssociationVoCollection getCachedClinicalDIAssociations()
{
    ClinicalDIAssociationVoCollection cachedRecords = form.getLocalContext().getRecords();

    //When the cache (initially the listed records) are empty and the dialog is not opened from  
    //Patient Summary then return the records from the context 
    boolean isCacheEmpty = cachedRecords == null || cachedRecords.size() == 0;
    if(!isDialogopenedFromPatientSummary() && isCacheEmpty)
        return form.getGlobalContext().Clinical.getClinicalDIAssociationVoCollection();

    return cachedRecords;
}
项目:AvoinApotti    文件:Logic.java   
private void setChangedRecordIntoCache(IControlComparable control)
{
    if(form.getMode().equals(FormMode.EDIT))
    {
        ClinicalDIAssociationVoCollection voColl = populateData(control);
        if(voColl != null)
            form.getLocalContext().setRecords(voColl);
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(save())
    {
        ClinicalDIAssociationVoCollection voDIAssociation = form.getGlobalContext().Clinical.getClinicalDIAssociationVoCollection();
        if(voDIAssociation != null && voDIAssociation.size() > 0)
        {
            setPrimaryProblem(voDIAssociation);
            saveDIAssociations(voDIAssociation);
        }
        open();
    }
}

关于ims.clinical.vo.PatientTheatreBookingVoCollection的实例源码isempty源码的问题我们已经讲解完毕,感谢您的阅读,如果还想了解更多关于ims.admin.vo.PatientKioskBookingVoCollection的实例源码、ims.clinical.vo.AbsentPatientPresentingProblemVoCollection的实例源码、ims.clinical.vo.AreaOfNeedsNotingVoCollection的实例源码、ims.clinical.vo.ClinicalDIAssociationVoCollection的实例源码等相关内容,可以在本站寻找。

本文标签: