Java 类ims.core.vo.lookups.TCIType 实例源码

项目:AvoinApotti    文件:BedAdmissionComponentImpl.java   
/**
* listPendingElectiveAdmission
*/
public ims.core.vo.PendingElectiveAdmissionAdmitVoCollection listPendingElectiveAdmission(LocationRefVo voLocation)
{
    if(voLocation == null)
        throw new CodingRuntimeException("voLocation is null in method listPendingElectiveAdmission");

    DomainFactory factory = getDomainFactory();
    List pendingElectives = factory.find("from PendingElectiveAdmission pea where (pea.tCIDate = :today or pea.tCIDate = :yesterday) and pea.allocatedWard.id = :idWard and pea.electiveAdmissionStatus = :status  and pea.tCIType = :tciType ", new String[]{"today","yesterday", "idWard","status","tciType"}, new Object[]{new Date().getDate(),new Date().addDay(-1).getDate(), voLocation.getID_Location(), getDomLookup(ElectiveAdmissionStatus.TCI), getDomLookup(TCIType.BOOKED)});
        return PendingElectiveAdmissionAdmitVoAssembler.createPendingElectiveAdmissionAdmitVoCollectionFromPendingElectiveAdmission(pendingElectives);
}
项目:AvoinApotti    文件:BedAdmissionComponentImpl.java   
public PendingElectiveAdmissionAdmitVoCollection listPlannedElectiveAdmission(Date dateFrom, Date dateTo, LocationRefVo ward)
{
    if(dateFrom == null)
        throw new CodingRuntimeException("dateFrom is mandatory in method listPlannedElectiveAdmission");   
    if(dateTo == null)
        throw new CodingRuntimeException("dateTo is mandatory in method listPlannedElectiveAdmission");
    if(ward == null)
        throw new CodingRuntimeException("ward is null in method listPlannedElectiveAdmission");

    DomainFactory factory = getDomainFactory();
    List pendingElectives = factory.find("from PendingElectiveAdmission pea where pea.tCIDate >= :dateFrom and pea.tCIDate <= :dateTo and pea.allocatedWard.id = :idWard and pea.electiveAdmissionStatus = :status and pea.tCIType = :tciType ", new String[]{"dateFrom","dateTo","idWard","status", "tciType"}, new Object[]{dateFrom.getDate(), dateTo.getDate(), ward.getID_Location(), getDomLookup(ElectiveAdmissionStatus.TCI), getDomLookup(TCIType.PLANNED)});
    return PendingElectiveAdmissionAdmitVoAssembler.createPendingElectiveAdmissionAdmitVoCollectionFromPendingElectiveAdmission(pendingElectives);
}
项目:openMAXIMS    文件:BedAdmissionComponentImpl.java   
/**
 * listPendingElectiveAdmission
 */
public ims.core.vo.PendingElectiveAdmissionAdmitVoCollection listPendingElectiveAdmission(LocationRefVo voLocation)
{
    if(voLocation == null)
        throw new CodingRuntimeException("voLocation is null in method listPendingElectiveAdmission");

    DomainFactory factory = getDomainFactory();
    List pendingElectives = factory.find("from PendingElectiveAdmission pea where (pea.tCIDate = :today or pea.tCIDate = :yesterday) and pea.allocatedWard.id = :idWard and pea.electiveAdmissionStatus = :status  and pea.tCIType = :tciType ", new String[]{"today","yesterday", "idWard","status","tciType"}, new Object[]{new Date().getDate(),new Date().addDay(-1).getDate(), voLocation.getID_Location(), getDomLookup(ElectiveAdmissionStatus.TCI), getDomLookup(TCIType.BOOKED)});
    return PendingElectiveAdmissionAdmitVoAssembler.createPendingElectiveAdmissionAdmitVoCollectionFromPendingElectiveAdmission(pendingElectives);
}
项目:openMAXIMS    文件:BedAdmissionComponentImpl.java   
public PendingElectiveAdmissionAdmitVoCollection listPlannedElectiveAdmission(Date dateFrom, Date dateTo, LocationRefVo ward)
{
    if(dateFrom == null)
        throw new CodingRuntimeException("dateFrom is mandatory in method listPlannedElectiveAdmission");   
    if(dateTo == null)
        throw new CodingRuntimeException("dateTo is mandatory in method listPlannedElectiveAdmission");
    if(ward == null)
        throw new CodingRuntimeException("ward is null in method listPlannedElectiveAdmission");

    DomainFactory factory = getDomainFactory();
    List pendingElectives = factory.find("from PendingElectiveAdmission pea where pea.tCIDate >= :dateFrom and pea.tCIDate <= :dateTo and pea.allocatedWard.id = :idWard and pea.electiveAdmissionStatus = :status and pea.tCIType = :tciType ", new String[]{"dateFrom","dateTo","idWard","status", "tciType"}, new Object[]{dateFrom.getDate(), dateTo.getDate(), ward.getID_Location(), getDomLookup(ElectiveAdmissionStatus.TCI), getDomLookup(TCIType.PLANNED)});
    return PendingElectiveAdmissionAdmitVoAssembler.createPendingElectiveAdmissionAdmitVoCollectionFromPendingElectiveAdmission(pendingElectives);
}
项目:openMAXIMS    文件:BedAdmissionComponentImpl.java   
/**
* listPendingElectiveAdmission
*/
public ims.core.vo.PendingElectiveAdmissionAdmitVoCollection listPendingElectiveAdmission(LocationRefVo voLocation)
{
    if(voLocation == null)
        throw new CodingRuntimeException("voLocation is null in method listPendingElectiveAdmission");

    DomainFactory factory = getDomainFactory();
    List pendingElectives = factory.find("from PendingElectiveAdmission pea where (pea.tCIDate = :today or pea.tCIDate = :yesterday) and pea.allocatedWard.id = :idWard and pea.electiveAdmissionStatus = :status  and pea.tCIType = :tciType ", new String[]{"today","yesterday", "idWard","status","tciType"}, new Object[]{new Date().getDate(),new Date().addDay(-1).getDate(), voLocation.getID_Location(), getDomLookup(ElectiveAdmissionStatus.TCI), getDomLookup(TCIType.BOOKED)});
        return PendingElectiveAdmissionAdmitVoAssembler.createPendingElectiveAdmissionAdmitVoCollectionFromPendingElectiveAdmission(pendingElectives);
}
项目:openMAXIMS    文件:BedAdmissionComponentImpl.java   
public PendingElectiveAdmissionAdmitVoCollection listPlannedElectiveAdmission(Date dateFrom, Date dateTo, LocationRefVo ward)
{
    if(dateFrom == null)
        throw new CodingRuntimeException("dateFrom is mandatory in method listPlannedElectiveAdmission");   
    if(dateTo == null)
        throw new CodingRuntimeException("dateTo is mandatory in method listPlannedElectiveAdmission");
    if(ward == null)
        throw new CodingRuntimeException("ward is null in method listPlannedElectiveAdmission");

    DomainFactory factory = getDomainFactory();
    List pendingElectives = factory.find("from PendingElectiveAdmission pea where pea.tCIDate >= :dateFrom and pea.tCIDate <= :dateTo and pea.allocatedWard.id = :idWard and pea.electiveAdmissionStatus = :status and pea.tCIType = :tciType ", new String[]{"dateFrom","dateTo","idWard","status", "tciType"}, new Object[]{dateFrom.getDate(), dateTo.getDate(), ward.getID_Location(), getDomLookup(ElectiveAdmissionStatus.TCI), getDomLookup(TCIType.PLANNED)});
    return PendingElectiveAdmissionAdmitVoAssembler.createPendingElectiveAdmissionAdmitVoCollectionFromPendingElectiveAdmission(pendingElectives);
}
项目:openmaxims-linux    文件:BedAdmissionComponentImpl.java   
/**
* listPendingElectiveAdmission
*/
public ims.core.vo.PendingElectiveAdmissionAdmitVoCollection listPendingElectiveAdmission(LocationRefVo voLocation)
{
    if(voLocation == null)
        throw new CodingRuntimeException("voLocation is null in method listPendingElectiveAdmission");

    DomainFactory factory = getDomainFactory();
    List pendingElectives = factory.find("from PendingElectiveAdmission pea where (pea.tCIDate = :today or pea.tCIDate = :yesterday) and pea.allocatedWard.id = :idWard and pea.electiveAdmissionStatus = :status  and pea.tCIType = :tciType ", new String[]{"today","yesterday", "idWard","status","tciType"}, new Object[]{new Date().getDate(),new Date().addDay(-1).getDate(), voLocation.getID_Location(), getDomLookup(ElectiveAdmissionStatus.TCI), getDomLookup(TCIType.BOOKED)});
        return PendingElectiveAdmissionAdmitVoAssembler.createPendingElectiveAdmissionAdmitVoCollectionFromPendingElectiveAdmission(pendingElectives);
}
项目:openmaxims-linux    文件:BedAdmissionComponentImpl.java   
public PendingElectiveAdmissionAdmitVoCollection listPlannedElectiveAdmission(Date dateFrom, Date dateTo, LocationRefVo ward)
{
    if(dateFrom == null)
        throw new CodingRuntimeException("dateFrom is mandatory in method listPlannedElectiveAdmission");   
    if(dateTo == null)
        throw new CodingRuntimeException("dateTo is mandatory in method listPlannedElectiveAdmission");
    if(ward == null)
        throw new CodingRuntimeException("ward is null in method listPlannedElectiveAdmission");

    DomainFactory factory = getDomainFactory();
    List pendingElectives = factory.find("from PendingElectiveAdmission pea where pea.tCIDate >= :dateFrom and pea.tCIDate <= :dateTo and pea.allocatedWard.id = :idWard and pea.electiveAdmissionStatus = :status and pea.tCIType = :tciType ", new String[]{"dateFrom","dateTo","idWard","status", "tciType"}, new Object[]{dateFrom.getDate(), dateTo.getDate(), ward.getID_Location(), getDomLookup(ElectiveAdmissionStatus.TCI), getDomLookup(TCIType.PLANNED)});
    return PendingElectiveAdmissionAdmitVoAssembler.createPendingElectiveAdmissionAdmitVoCollectionFromPendingElectiveAdmission(pendingElectives);
}