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

项目:AvoinApotti    文件:BedAdmissionComponentImpl.java   
public PendingEmergencyAdmissionAdmitVoCollection listEmergencyAdmission(LocationRefVo voLocation) 
{
    if(voLocation == null)
        throw new CodingRuntimeException("voLocation is null in method listEmergencyAdmission");

    DomainFactory factory = getDomainFactory();
    List pendingEmergencies = factory.find("from PendingEmergencyAdmission pea where pea.allocatedWard.id = :idWard and ( pea.admissionStatus = :discharged or  pea.admissionStatus = :dta )", new String[]{"idWard", "discharged", "dta"}, new Object[]{voLocation.getID_Location(), getDomLookup(EmergencyAdmissionStatus.DISCHARGED), getDomLookup(EmergencyAdmissionStatus.DTA)});
    return PendingEmergencyAdmissionAdmitVoAssembler.createPendingEmergencyAdmissionAdmitVoCollectionFromPendingEmergencyAdmission(pendingEmergencies);
}
项目:openMAXIMS    文件:BedAdmissionComponentImpl.java   
public PendingEmergencyAdmissionAdmitVoCollection listEmergencyAdmission(LocationRefVo voLocation) 
{
    if(voLocation == null)
        throw new CodingRuntimeException("voLocation is null in method listEmergencyAdmission");

    DomainFactory factory = getDomainFactory();
    List pendingEmergencies = factory.find("from PendingEmergencyAdmission pea where pea.allocatedWard.id = :idWard and ( pea.admissionStatus = :discharged or  pea.admissionStatus = :dta )", new String[]{"idWard", "discharged", "dta"}, new Object[]{voLocation.getID_Location(), getDomLookup(EmergencyAdmissionStatus.DISCHARGED), getDomLookup(EmergencyAdmissionStatus.DTA)});
    return PendingEmergencyAdmissionAdmitVoAssembler.createPendingEmergencyAdmissionAdmitVoCollectionFromPendingEmergencyAdmission(pendingEmergencies);
}
项目:openmaxims-linux    文件:BedAdmissionComponentImpl.java   
public PendingEmergencyAdmissionAdmitVoCollection listEmergencyAdmission(LocationRefVo voLocation) 
{
    if(voLocation == null)
        throw new CodingRuntimeException("voLocation is null in method listEmergencyAdmission");

    DomainFactory factory = getDomainFactory();
    List pendingEmergencies = factory.find("from PendingEmergencyAdmission pea where pea.allocatedWard.id = :idWard and ( pea.admissionStatus = :discharged or  pea.admissionStatus = :dta )", new String[]{"idWard", "discharged", "dta"}, new Object[]{voLocation.getID_Location(), getDomLookup(EmergencyAdmissionStatus.DISCHARGED), getDomLookup(EmergencyAdmissionStatus.DTA)});
    return PendingEmergencyAdmissionAdmitVoAssembler.createPendingEmergencyAdmissionAdmitVoCollectionFromPendingEmergencyAdmission(pendingEmergencies);
}
项目:AvoinApotti    文件:Logic.java   
private void populateEmergencyTabFromData()
{
    form.getLocalContext().setRecordSelected(false);

    form.lyrAdmission().tabEmergency().grdEmergency().getRows().clear();

    PendingEmergencyAdmissionAdmitVoCollection voCollEmergencyAdmission = null;
    BedSpaceStateLiteVo voBed = form.getGlobalContext().Core.getSelectedBedSpaceState();
    if(voBed != null)
    {

        voCollEmergencyAdmission = domain.listEmergencyAdmission( voBed.getWard() );
        if(voCollEmergencyAdmission == null || voCollEmergencyAdmission.size() == 0)
            return;
    }

    for(PendingEmergencyAdmissionAdmitVo voPendingEmergencyAdmission : voCollEmergencyAdmission)
    {
        grdEmergencyRow row = form.lyrAdmission().tabEmergency().grdEmergency().getRows().newRow();

        PatientShort voPatient = (voPendingEmergencyAdmission.getPasEventIsNotNull() && voPendingEmergencyAdmission.getPasEvent().getPatientIsNotNull()) ? voPendingEmergencyAdmission.getPasEvent().getPatient() : null;
        if(voPatient != null)
        {
            if(voPatient.getNameIsNotNull())
            {
                row.setColForename(voPatient.getName().getForename());
                row.setColSurname(voPatient.getName().getSurname());
            }

            PatientId patId = voPatient.getDisplayId();
            row.setColDisplayId(patId != null ? patId.getValue() : null);
            row.setColSex(voPatient.getSexIsNotNull() ? voPatient.getSex().toString() : null);

            Integer age = voPatient.calculateAge();
            if(age != null)
                row.setColAge(String.valueOf(age));

            row.setColDob(voPatient.getDobIsNotNull() ? voPatient.getDob().toString() : null);

            if(voPatient.getAssociatedPatientIsNotNull())                   //wdev-13105
                row.setBackColor(ConfigFlag.UI.MERGED_COLOUR.getValue());

            if(voPatient.getDodIsNotNull())                                 //wdev-13105
                row.setBackColor(ConfigFlag.UI.RIP_COLOUR.getValue());
        }
        row.setValue(voPendingEmergencyAdmission);
    }   

    form.fireCustomControlValueChanged();
}
项目:AvoinApotti    文件:WardViewImpl.java   
public PendingEmergencyAdmissionAdmitVoCollection listEmergencyAdmission(LocationRefVo location)
{
    BedAdmissionComponent impl = (BedAdmissionComponent) getDomainImpl(BedAdmissionComponentImpl.class);
    return impl.listEmergencyAdmission(location);
}
项目:openMAXIMS    文件:Logic.java   
private void populateEmergencyTabFromData()
{
    form.getLocalContext().setRecordSelected(false);

    form.lyrAdmission().tabEmergency().grdEmergency().getRows().clear();

    PendingEmergencyAdmissionAdmitVoCollection voCollEmergencyAdmission = null;
    BedSpaceStateLiteVo voBed = form.getGlobalContext().Core.getSelectedBedSpaceState();
    if(voBed != null)
    {

        voCollEmergencyAdmission = domain.listEmergencyAdmission( voBed.getWard() );
        if(voCollEmergencyAdmission == null || voCollEmergencyAdmission.size() == 0)
            return;
    }

    for(PendingEmergencyAdmissionAdmitVo voPendingEmergencyAdmission : voCollEmergencyAdmission)
    {
        grdEmergencyRow row = form.lyrAdmission().tabEmergency().grdEmergency().getRows().newRow();

        PatientShort voPatient = (voPendingEmergencyAdmission.getPasEventIsNotNull() && voPendingEmergencyAdmission.getPasEvent().getPatientIsNotNull()) ? voPendingEmergencyAdmission.getPasEvent().getPatient() : null;
        if(voPatient != null)
        {
            if(voPatient.getNameIsNotNull())
            {
                row.setColForename(voPatient.getName().getForename());
                row.setColSurname(voPatient.getName().getSurname());
            }

            PatientId patId = voPatient.getDisplayId();
            row.setColDisplayId(patId != null ? patId.getValue() : null);
            row.setColSex(voPatient.getSexIsNotNull() ? voPatient.getSex().toString() : null);

            Integer age = voPatient.calculateAge();
            if(age != null)
                row.setColAge(String.valueOf(age));

            row.setColDob(voPatient.getDobIsNotNull() ? voPatient.getDob().toString() : null);

            if(voPatient.getAssociatedPatientIsNotNull())                   //wdev-13105
                row.setBackColor(ConfigFlag.UI.MERGED_COLOUR.getValue());

            if(voPatient.getDodIsNotNull())                                 //wdev-13105
                row.setBackColor(ConfigFlag.UI.RIP_COLOUR.getValue());
        }
        row.setValue(voPendingEmergencyAdmission);
    }   

    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:WardViewImpl.java   
public PendingEmergencyAdmissionAdmitVoCollection listEmergencyAdmission(LocationRefVo location)
{
    BedAdmissionComponent impl = (BedAdmissionComponent) getDomainImpl(BedAdmissionComponentImpl.class);
    return impl.listEmergencyAdmission(location);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateEmergencyTabFromData()
{
    form.getLocalContext().setRecordSelected(false);

    form.lyrAdmission().tabEmergency().grdEmergency().getRows().clear();

    PendingEmergencyAdmissionAdmitVoCollection voCollEmergencyAdmission = null;
    BedSpaceStateLiteVo voBed = form.getGlobalContext().Core.getSelectedBedSpaceState();
    if(voBed != null)
    {

        voCollEmergencyAdmission = domain.listEmergencyAdmission( voBed.getWard() );
        if(voCollEmergencyAdmission == null || voCollEmergencyAdmission.size() == 0)
            return;
    }

    for(PendingEmergencyAdmissionAdmitVo voPendingEmergencyAdmission : voCollEmergencyAdmission)
    {
        grdEmergencyRow row = form.lyrAdmission().tabEmergency().grdEmergency().getRows().newRow();

        PatientShort voPatient = (voPendingEmergencyAdmission.getPasEventIsNotNull() && voPendingEmergencyAdmission.getPasEvent().getPatientIsNotNull()) ? voPendingEmergencyAdmission.getPasEvent().getPatient() : null;
        if(voPatient != null)
        {
            if(voPatient.getNameIsNotNull())
            {
                row.setColForename(voPatient.getName().getForename());
                row.setColSurname(voPatient.getName().getSurname());
            }

            PatientId patId = voPatient.getDisplayId();
            row.setColDisplayId(patId != null ? patId.getValue() : null);
            row.setColSex(voPatient.getSexIsNotNull() ? voPatient.getSex().toString() : null);

            Integer age = voPatient.calculateAge();
            if(age != null)
                row.setColAge(String.valueOf(age));

            row.setColDob(voPatient.getDobIsNotNull() ? voPatient.getDob().toString() : null);

            if(voPatient.getAssociatedPatientIsNotNull())                   //wdev-13105
                row.setBackColor(ConfigFlag.UI.MERGED_COLOUR.getValue());

            if(voPatient.getDodIsNotNull())                                 //wdev-13105
                row.setBackColor(ConfigFlag.UI.RIP_COLOUR.getValue());
        }
        row.setValue(voPendingEmergencyAdmission);
    }   

    form.fireCustomControlValueChanged();
}
项目:openmaxims-linux    文件:WardViewImpl.java   
public PendingEmergencyAdmissionAdmitVoCollection listEmergencyAdmission(LocationRefVo location)
{
    BedAdmissionComponent impl = (BedAdmissionComponent) getDomainImpl(BedAdmissionComponentImpl.class);
    return impl.listEmergencyAdmission(location);
}