Java 类ims.clinical.vo.domain.PatientProcedureForSurgicalAuditPreOpChecksVoAssembler 实例源码

项目:AvoinApotti    文件:SurgicalAuditPreOperationChecksImpl.java   
public PatientProcedureForSurgicalAuditPreOpChecksVoCollection listProcedures(SurgicalAuditPreOpChecksRefVo surgicalAuditPreOpChecksRef)
{   
    if (surgicalAuditPreOpChecksRef == null || surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientProcedureForSurgicalAuditPreOpChecksVoCollection on null Id for surgicalAuditPreOpChecksRef ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select procedures from SurgicalAuditPreOpChecks as surgAuditPreOP left join surgAuditPreOP.plannedProcedures as procedures where surgAuditPreOP.id = :surgPreOpId order by procedures.procedureDescription asc ");

    List<?> list = factory.find(hql.toString(), new String[] { "surgPreOpId" }, new Object[] { surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks()});

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(list);

}
项目:AvoinApotti    文件:SurgicalAuditPreOperationChecksTheatreNurseImpl.java   
public PatientProcedureForSurgicalAuditPreOpChecksVoCollection listProcedures( SurgicalAuditPreOpChecksRefVo surgicalAuditPreOpChecksRef) 
{
    if (surgicalAuditPreOpChecksRef == null || surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientProcedureForSurgicalAuditPreOpChecksVoCollection on null Id for surgicalAuditPreOpChecksRef ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select procedures from SurgicalAuditPreOpChecks as surgAuditPreOP left join surgAuditPreOP.plannedProcedures as procedures where surgAuditPreOP.id = :surgPreOpId order by procedures.procedureDescription asc ");

    List<?> list = factory.find(hql.toString(), new String[] { "surgPreOpId" }, new Object[] { surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks()});

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(list);

}
项目:openMAXIMS    文件:SurgicalAuditPreOperationChecksImpl.java   
public PatientProcedureForSurgicalAuditPreOpChecksVoCollection listProcedures(SurgicalAuditPreOpChecksRefVo surgicalAuditPreOpChecksRef)
{   
    if (surgicalAuditPreOpChecksRef == null || surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientProcedureForSurgicalAuditPreOpChecksVoCollection on null Id for surgicalAuditPreOpChecksRef ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select procedures from SurgicalAuditPreOpChecks as surgAuditPreOP left join surgAuditPreOP.plannedProcedures as procedures where surgAuditPreOP.id = :surgPreOpId order by procedures.procedureDescription asc ");

    List<?> list = factory.find(hql.toString(), new String[] { "surgPreOpId" }, new Object[] { surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks()});

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(list);

}
项目:openMAXIMS    文件:SurgicalAuditPreOperationChecksTheatreNurseImpl.java   
public PatientProcedureForSurgicalAuditPreOpChecksVoCollection listProcedures( SurgicalAuditPreOpChecksRefVo surgicalAuditPreOpChecksRef) 
{
    if (surgicalAuditPreOpChecksRef == null || surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientProcedureForSurgicalAuditPreOpChecksVoCollection on null Id for surgicalAuditPreOpChecksRef ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select procedures from SurgicalAuditPreOpChecks as surgAuditPreOP left join surgAuditPreOP.plannedProcedures as procedures where surgAuditPreOP.id = :surgPreOpId order by procedures.procedureDescription asc ");

    List<?> list = factory.find(hql.toString(), new String[] { "surgPreOpId" }, new Object[] { surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks()});

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(list);

}
项目:openMAXIMS    文件:SurgicalAuditPreOperationChecksImpl.java   
public PatientProcedureForSurgicalAuditPreOpChecksVoCollection listProcedures(SurgicalAuditPreOpChecksRefVo surgicalAuditPreOpChecksRef)
{   
    if (surgicalAuditPreOpChecksRef == null || surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientProcedureForSurgicalAuditPreOpChecksVoCollection on null Id for surgicalAuditPreOpChecksRef ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select procedures from SurgicalAuditPreOpChecks as surgAuditPreOP left join surgAuditPreOP.plannedProcedures as procedures where surgAuditPreOP.id = :surgPreOpId order by procedures.procedureDescription asc ");

    List<?> list = factory.find(hql.toString(), new String[] { "surgPreOpId" }, new Object[] { surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks()});

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(list);

}
项目:openMAXIMS    文件:SurgicalAuditPreOperationChecksTheatreNurseImpl.java   
public PatientProcedureForSurgicalAuditPreOpChecksVoCollection listProcedures( SurgicalAuditPreOpChecksRefVo surgicalAuditPreOpChecksRef) 
{
    if (surgicalAuditPreOpChecksRef == null || surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientProcedureForSurgicalAuditPreOpChecksVoCollection on null Id for surgicalAuditPreOpChecksRef ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select procedures from SurgicalAuditPreOpChecks as surgAuditPreOP left join surgAuditPreOP.plannedProcedures as procedures where surgAuditPreOP.id = :surgPreOpId order by procedures.procedureDescription asc ");

    List<?> list = factory.find(hql.toString(), new String[] { "surgPreOpId" }, new Object[] { surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks()});

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(list);

}
项目:openmaxims-linux    文件:SurgicalAuditPreOperationChecksImpl.java   
public PatientProcedureForSurgicalAuditPreOpChecksVoCollection listProcedures(SurgicalAuditPreOpChecksRefVo surgicalAuditPreOpChecksRef)
{   
    if (surgicalAuditPreOpChecksRef == null || surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientProcedureForSurgicalAuditPreOpChecksVoCollection on null Id for surgicalAuditPreOpChecksRef ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select procedures from SurgicalAuditPreOpChecks as surgAuditPreOP left join surgAuditPreOP.plannedProcedures as procedures where surgAuditPreOP.id = :surgPreOpId order by procedures.procedureDescription asc ");

    List<?> list = factory.find(hql.toString(), new String[] { "surgPreOpId" }, new Object[] { surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks()});

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(list);

}
项目:openmaxims-linux    文件:SurgicalAuditPreOperationChecksTheatreNurseImpl.java   
public PatientProcedureForSurgicalAuditPreOpChecksVoCollection listProcedures( SurgicalAuditPreOpChecksRefVo surgicalAuditPreOpChecksRef) 
{
    if (surgicalAuditPreOpChecksRef == null || surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientProcedureForSurgicalAuditPreOpChecksVoCollection on null Id for surgicalAuditPreOpChecksRef ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select procedures from SurgicalAuditPreOpChecks as surgAuditPreOP left join surgAuditPreOP.plannedProcedures as procedures where surgAuditPreOP.id = :surgPreOpId order by procedures.procedureDescription asc ");

    List<?> list = factory.find(hql.toString(), new String[] { "surgPreOpId" }, new Object[] { surgicalAuditPreOpChecksRef.getID_SurgicalAuditPreOpChecks()});

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(list);

}
项目:AvoinApotti    文件:PatientProceduresDialogImpl.java   
public ims.clinical.vo.PatientProcedureForSurgicalAuditPreOpChecksVo save(ims.clinical.vo.PatientProcedureForSurgicalAuditPreOpChecksVo patProcedureToSave) throws ims.domain.exceptions.StaleObjectException
{
    if(patProcedureToSave == null)
        throw new CodingRuntimeException("Cannot save a null PatientProcedureForSurgicalAuditPreOpChecksVo.");

    if(!patProcedureToSave.isValidated())
        throw new CodingRuntimeException("PatientProcedureForSurgicalAuditPreOpChecksVo is not validated.");

    DomainFactory factory = getDomainFactory();
    PatientProcedure doProcedure = PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.extractPatientProcedure(factory, patProcedureToSave);

    factory.save(doProcedure);

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.create(doProcedure);
}
项目:openMAXIMS    文件:PatientProceduresDialogImpl.java   
public ims.clinical.vo.PatientProcedureForSurgicalAuditPreOpChecksVo save(ims.clinical.vo.PatientProcedureForSurgicalAuditPreOpChecksVo patProcedureToSave) throws ims.domain.exceptions.StaleObjectException
{
    if(patProcedureToSave == null)
        throw new CodingRuntimeException("Cannot save a null PatientProcedureForSurgicalAuditPreOpChecksVo.");

    if(!patProcedureToSave.isValidated())
        throw new CodingRuntimeException("PatientProcedureForSurgicalAuditPreOpChecksVo is not validated.");

    DomainFactory factory = getDomainFactory();
    PatientProcedure doProcedure = PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.extractPatientProcedure(factory, patProcedureToSave);

    factory.save(doProcedure);

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.create(doProcedure);
}
项目:openMAXIMS    文件:PatientProceduresDialogImpl.java   
public ims.clinical.vo.PatientProcedureForSurgicalAuditPreOpChecksVo save(ims.clinical.vo.PatientProcedureForSurgicalAuditPreOpChecksVo patProcedureToSave) throws ims.domain.exceptions.StaleObjectException
{
    if(patProcedureToSave == null)
        throw new CodingRuntimeException("Cannot save a null PatientProcedureForSurgicalAuditPreOpChecksVo.");

    if(!patProcedureToSave.isValidated())
        throw new CodingRuntimeException("PatientProcedureForSurgicalAuditPreOpChecksVo is not validated.");

    DomainFactory factory = getDomainFactory();
    PatientProcedure doProcedure = PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.extractPatientProcedure(factory, patProcedureToSave);

    factory.save(doProcedure);

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.create(doProcedure);
}
项目:openmaxims-linux    文件:PatientProceduresDialogImpl.java   
public ims.clinical.vo.PatientProcedureForSurgicalAuditPreOpChecksVo save(ims.clinical.vo.PatientProcedureForSurgicalAuditPreOpChecksVo patProcedureToSave) throws ims.domain.exceptions.StaleObjectException
{
    if(patProcedureToSave == null)
        throw new CodingRuntimeException("Cannot save a null PatientProcedureForSurgicalAuditPreOpChecksVo.");

    if(!patProcedureToSave.isValidated())
        throw new CodingRuntimeException("PatientProcedureForSurgicalAuditPreOpChecksVo is not validated.");

    DomainFactory factory = getDomainFactory();
    PatientProcedure doProcedure = PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.extractPatientProcedure(factory, patProcedureToSave);

    factory.save(doProcedure);

    return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.create(doProcedure);
}
项目:AvoinApotti    文件:PlannedPerformedProcedureDialogImpl.java   
public ims.clinical.vo.PatientProcedureForSurgicalAuditPreOpChecksVoCollection getPatientProcedures(ims.core.vo.lookups.Specialty specialtyId)
{
    if( specialtyId == null )
        return null;

    DomainFactory factory = getDomainFactory();
    List patprocs = factory.find("select p1_1   from PatientProcedure as p1_1 left join p1_1.specialty as l1_1  where (l1_1.id = :specialtyId)", new String[] {"specialtyId"}, new Object[] {getDomLookup(specialtyId).getId()});


    if( patprocs != null && patprocs.size() > 0)
        return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(patprocs);


    return null;

    //--------------------


    //--------------------

}
项目:openMAXIMS    文件:PlannedPerformedProcedureDialogImpl.java   
public ims.clinical.vo.PatientProcedureForSurgicalAuditPreOpChecksVoCollection getPatientProcedures(ims.core.vo.lookups.Specialty specialtyId)
{
    if( specialtyId == null )
        return null;

    DomainFactory factory = getDomainFactory();
    List patprocs = factory.find("select p1_1   from PatientProcedure as p1_1 left join p1_1.specialty as l1_1  where (l1_1.id = :specialtyId)", new String[] {"specialtyId"}, new Object[] {getDomLookup(specialtyId).getId()});


    if( patprocs != null && patprocs.size() > 0)
        return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(patprocs);


    return null;

    //--------------------


    //--------------------

}
项目:openMAXIMS    文件:PlannedPerformedProcedureDialogImpl.java   
public ims.clinical.vo.PatientProcedureForSurgicalAuditPreOpChecksVoCollection getPatientProcedures(ims.core.vo.lookups.Specialty specialtyId)
{
    if( specialtyId == null )
        return null;

    DomainFactory factory = getDomainFactory();
    List patprocs = factory.find("select p1_1   from PatientProcedure as p1_1 left join p1_1.specialty as l1_1  where (l1_1.id = :specialtyId)", new String[] {"specialtyId"}, new Object[] {getDomLookup(specialtyId).getId()});


    if( patprocs != null && patprocs.size() > 0)
        return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(patprocs);


    return null;

    //--------------------


    //--------------------

}
项目:openmaxims-linux    文件:PlannedPerformedProcedureDialogImpl.java   
public ims.clinical.vo.PatientProcedureForSurgicalAuditPreOpChecksVoCollection getPatientProcedures(ims.core.vo.lookups.Specialty specialtyId)
{
    if( specialtyId == null )
        return null;

    DomainFactory factory = getDomainFactory();
    List patprocs = factory.find("select p1_1   from PatientProcedure as p1_1 left join p1_1.specialty as l1_1  where (l1_1.id = :specialtyId)", new String[] {"specialtyId"}, new Object[] {getDomLookup(specialtyId).getId()});


    if( patprocs != null && patprocs.size() > 0)
        return PatientProcedureForSurgicalAuditPreOpChecksVoAssembler.createPatientProcedureForSurgicalAuditPreOpChecksVoCollectionFromPatientProcedure(patprocs);


    return null;

    //--------------------


    //--------------------

}