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

项目:AvoinApotti    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public SurgicalOperationSummaryVo getSurgicalOperationSUmmary(CareContextRefVo careContextRef) 
{
    if( careContextRef == null )
        return null;

    DomainFactory factory = getDomainFactory();
    List surgicalOpSummary =   factory.find(" select s1_1 from SurgicalOperationSummary as s1_1 left join s1_1.careContext as c1_1 where (c1_1.id = :idCC)  )",
            new String[]{"idCC" },
            new Object[]{ careContextRef.getID_CareContext()});

    if( surgicalOpSummary!= null && surgicalOpSummary.size() > 0 )
    {
        SurgicalOperationSummaryVoCollection tempColl = SurgicalOperationSummaryVoAssembler.createSurgicalOperationSummaryVoCollectionFromSurgicalOperationSummary(surgicalOpSummary);

        if( tempColl != null && tempColl.size() > 0 )
            return tempColl.get(0);

    }
    return null;
}
项目:AvoinApotti    文件:SurgicalOperationNotesImpl.java   
public SurgicalOperationSummaryVo getSurgicalOperationSummary(CareContextRefVo careContextRef) 
{
    if( careContextRef == null )
        return null;

    DomainFactory factory = getDomainFactory();
    List surgicalOpSummary =   factory.find(" select s1_1 from SurgicalOperationSummary as s1_1 left join s1_1.careContext as c1_1 where (c1_1.id = :idCC)  )",
            new String[]{"idCC" },
            new Object[]{ careContextRef.getID_CareContext()});

    if( surgicalOpSummary!= null && surgicalOpSummary.size() > 0 )
    {
        SurgicalOperationSummaryVoCollection tempColl = SurgicalOperationSummaryVoAssembler.createSurgicalOperationSummaryVoCollectionFromSurgicalOperationSummary(surgicalOpSummary);

        if( tempColl != null && tempColl.size() > 0 )
            return tempColl.get(0);

    }
    return null;

}
项目:AvoinApotti    文件:SurgicalOperationNotesImpl.java   
public SurgicalOperationSummaryVo saveSurgicalOperationSummary( SurgicalOperationSummaryVo record) throws DomainInterfaceException,StaleObjectException 
{

    if( record == null)
        throw new CodingRuntimeException("SurgicalOperationSummaryVo is null");

    DomainFactory factory = getDomainFactory();
    if( record.getID_SurgicalOperationSummary() == null )
    {
        SurgicalOperationSummaryVo tempVo = getSurgicalOperationSummary(record.getCareContext());
        if(tempVo != null )
            throw new StaleObjectException(null);
    }

    SurgicalOperationSummary doSuOpSum = SurgicalOperationSummaryVoAssembler.extractSurgicalOperationSummary(factory, record);

    factory.save(doSuOpSum);
    return SurgicalOperationSummaryVoAssembler.create(doSuOpSum);

}
项目:openMAXIMS    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public SurgicalOperationSummaryVo getSurgicalOperationSUmmary(CareContextRefVo careContextRef) 
{
    if( careContextRef == null )
        return null;

    DomainFactory factory = getDomainFactory();
    List surgicalOpSummary =   factory.find(" select s1_1 from SurgicalOperationSummary as s1_1 left join s1_1.careContext as c1_1 where (c1_1.id = :idCC)  )",
            new String[]{"idCC" },
            new Object[]{ careContextRef.getID_CareContext()});

    if( surgicalOpSummary!= null && surgicalOpSummary.size() > 0 )
    {
        SurgicalOperationSummaryVoCollection tempColl = SurgicalOperationSummaryVoAssembler.createSurgicalOperationSummaryVoCollectionFromSurgicalOperationSummary(surgicalOpSummary);

        if( tempColl != null && tempColl.size() > 0 )
            return tempColl.get(0);

    }
    return null;
}
项目:openMAXIMS    文件:SurgicalOperationNotesImpl.java   
public SurgicalOperationSummaryVo getSurgicalOperationSummary(CareContextRefVo careContextRef) 
{
    if( careContextRef == null )
        return null;

    DomainFactory factory = getDomainFactory();
    List surgicalOpSummary =   factory.find(" select s1_1 from SurgicalOperationSummary as s1_1 left join s1_1.careContext as c1_1 where (c1_1.id = :idCC)  )",
            new String[]{"idCC" },
            new Object[]{ careContextRef.getID_CareContext()});

    if( surgicalOpSummary!= null && surgicalOpSummary.size() > 0 )
    {
        SurgicalOperationSummaryVoCollection tempColl = SurgicalOperationSummaryVoAssembler.createSurgicalOperationSummaryVoCollectionFromSurgicalOperationSummary(surgicalOpSummary);

        if( tempColl != null && tempColl.size() > 0 )
            return tempColl.get(0);

    }
    return null;

}
项目:openMAXIMS    文件:SurgicalOperationNotesImpl.java   
public SurgicalOperationSummaryVo saveSurgicalOperationSummary( SurgicalOperationSummaryVo record) throws DomainInterfaceException,StaleObjectException 
{

    if( record == null)
        throw new CodingRuntimeException("SurgicalOperationSummaryVo is null");

    DomainFactory factory = getDomainFactory();
    if( record.getID_SurgicalOperationSummary() == null )
    {
        SurgicalOperationSummaryVo tempVo = getSurgicalOperationSummary(record.getCareContext());
        if(tempVo != null )
            throw new StaleObjectException(null);
    }

    SurgicalOperationSummary doSuOpSum = SurgicalOperationSummaryVoAssembler.extractSurgicalOperationSummary(factory, record);

    factory.save(doSuOpSum);
    return SurgicalOperationSummaryVoAssembler.create(doSuOpSum);

}
项目:openMAXIMS    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public SurgicalOperationSummaryVo getSurgicalOperationSUmmary(CareContextRefVo careContextRef) 
{
    if( careContextRef == null )
        return null;

    DomainFactory factory = getDomainFactory();
    List surgicalOpSummary =   factory.find(" select s1_1 from SurgicalOperationSummary as s1_1 left join s1_1.careContext as c1_1 where (c1_1.id = :idCC)  )",
            new String[]{"idCC" },
            new Object[]{ careContextRef.getID_CareContext()});

    if( surgicalOpSummary!= null && surgicalOpSummary.size() > 0 )
    {
        SurgicalOperationSummaryVoCollection tempColl = SurgicalOperationSummaryVoAssembler.createSurgicalOperationSummaryVoCollectionFromSurgicalOperationSummary(surgicalOpSummary);

        if( tempColl != null && tempColl.size() > 0 )
            return tempColl.get(0);

    }
    return null;
}
项目:openMAXIMS    文件:SurgicalOperationNotesImpl.java   
public SurgicalOperationSummaryVo getSurgicalOperationSummary(CareContextRefVo careContextRef) 
{
    if( careContextRef == null )
        return null;

    DomainFactory factory = getDomainFactory();
    List surgicalOpSummary =   factory.find(" select s1_1 from SurgicalOperationSummary as s1_1 left join s1_1.careContext as c1_1 where (c1_1.id = :idCC)  )",
            new String[]{"idCC" },
            new Object[]{ careContextRef.getID_CareContext()});

    if( surgicalOpSummary!= null && surgicalOpSummary.size() > 0 )
    {
        SurgicalOperationSummaryVoCollection tempColl = SurgicalOperationSummaryVoAssembler.createSurgicalOperationSummaryVoCollectionFromSurgicalOperationSummary(surgicalOpSummary);

        if( tempColl != null && tempColl.size() > 0 )
            return tempColl.get(0);

    }
    return null;

}
项目:openMAXIMS    文件:SurgicalOperationNotesImpl.java   
public SurgicalOperationSummaryVo saveSurgicalOperationSummary( SurgicalOperationSummaryVo record) throws DomainInterfaceException,StaleObjectException 
{

    if( record == null)
        throw new CodingRuntimeException("SurgicalOperationSummaryVo is null");

    DomainFactory factory = getDomainFactory();
    if( record.getID_SurgicalOperationSummary() == null )
    {
        SurgicalOperationSummaryVo tempVo = getSurgicalOperationSummary(record.getCareContext());
        if(tempVo != null )
            throw new StaleObjectException(null);
    }

    SurgicalOperationSummary doSuOpSum = SurgicalOperationSummaryVoAssembler.extractSurgicalOperationSummary(factory, record);

    factory.save(doSuOpSum);
    return SurgicalOperationSummaryVoAssembler.create(doSuOpSum);

}
项目:openmaxims-linux    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public SurgicalOperationSummaryVo getSurgicalOperationSUmmary(CareContextRefVo careContextRef) 
{
    if( careContextRef == null )
        return null;

    DomainFactory factory = getDomainFactory();
    List surgicalOpSummary =   factory.find(" select s1_1 from SurgicalOperationSummary as s1_1 left join s1_1.careContext as c1_1 where (c1_1.id = :idCC)  )",
            new String[]{"idCC" },
            new Object[]{ careContextRef.getID_CareContext()});

    if( surgicalOpSummary!= null && surgicalOpSummary.size() > 0 )
    {
        SurgicalOperationSummaryVoCollection tempColl = SurgicalOperationSummaryVoAssembler.createSurgicalOperationSummaryVoCollectionFromSurgicalOperationSummary(surgicalOpSummary);

        if( tempColl != null && tempColl.size() > 0 )
            return tempColl.get(0);

    }
    return null;
}
项目:openmaxims-linux    文件:SurgicalOperationNotesImpl.java   
public SurgicalOperationSummaryVo getSurgicalOperationSummary(CareContextRefVo careContextRef) 
{
    if( careContextRef == null )
        return null;

    DomainFactory factory = getDomainFactory();
    List surgicalOpSummary =   factory.find(" select s1_1 from SurgicalOperationSummary as s1_1 left join s1_1.careContext as c1_1 where (c1_1.id = :idCC)  )",
            new String[]{"idCC" },
            new Object[]{ careContextRef.getID_CareContext()});

    if( surgicalOpSummary!= null && surgicalOpSummary.size() > 0 )
    {
        SurgicalOperationSummaryVoCollection tempColl = SurgicalOperationSummaryVoAssembler.createSurgicalOperationSummaryVoCollectionFromSurgicalOperationSummary(surgicalOpSummary);

        if( tempColl != null && tempColl.size() > 0 )
            return tempColl.get(0);

    }
    return null;

}
项目:openmaxims-linux    文件:SurgicalOperationNotesImpl.java   
public SurgicalOperationSummaryVo saveSurgicalOperationSummary( SurgicalOperationSummaryVo record) throws DomainInterfaceException,StaleObjectException 
{

    if( record == null)
        throw new CodingRuntimeException("SurgicalOperationSummaryVo is null");

    DomainFactory factory = getDomainFactory();
    if( record.getID_SurgicalOperationSummary() == null )
    {
        SurgicalOperationSummaryVo tempVo = getSurgicalOperationSummary(record.getCareContext());
        if(tempVo != null )
            throw new StaleObjectException(null);
    }

    SurgicalOperationSummary doSuOpSum = SurgicalOperationSummaryVoAssembler.extractSurgicalOperationSummary(factory, record);

    factory.save(doSuOpSum);
    return SurgicalOperationSummaryVoAssembler.create(doSuOpSum);

}
项目:AvoinApotti    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public DischargeFuturePlanVo save(DischargeFuturePlanVo dummy, SurgicalOperationSummaryVo surgicalOperationSumm) throws DomainInterfaceException, StaleObjectException 
{
    if(dummy == null)
        throw new CodingRuntimeException("DischargeFuturePlanVo is null");
    if(!dummy.isValidated())
        throw new CodingRuntimeException("DischargeFuturePlanVo Value Object has not been validated");

    if( surgicalOperationSumm == null)  //wdev-15917
        throw new CodingRuntimeException("SurgicalOperationSummaryVo is null");

    //wdev-11576
    if(!dummy.getID_FuturePlanIsNotNull())
    {
        if( getFuturePlan(dummy.getCareContext()) != null)
            throw new StaleObjectException(null);
    }
    //-----------
    DomainFactory factory = getDomainFactory();

    //wdev-15917
    SurgicalOperationSummary dosurgOpum = SurgicalOperationSummaryVoAssembler.extractSurgicalOperationSummary(factory,surgicalOperationSumm);
    if( dosurgOpum != null )
        factory.save(dosurgOpum);
    //---- wdev-15917   

    FuturePlan doFP = DischargeFuturePlanVoAssembler.extractFuturePlan(factory, dummy);
    factory.save(doFP);
    return DischargeFuturePlanVoAssembler.create(doFP);
}
项目:openMAXIMS    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public DischargeFuturePlanVo save(DischargeFuturePlanVo dummy, SurgicalOperationSummaryVo surgicalOperationSumm) throws DomainInterfaceException, StaleObjectException 
{
    if(dummy == null)
        throw new CodingRuntimeException("DischargeFuturePlanVo is null");
    if(!dummy.isValidated())
        throw new CodingRuntimeException("DischargeFuturePlanVo Value Object has not been validated");

    if( surgicalOperationSumm == null)  //wdev-15917
        throw new CodingRuntimeException("SurgicalOperationSummaryVo is null");

    //wdev-11576
    if(!dummy.getID_FuturePlanIsNotNull())
    {
        if( getFuturePlan(dummy.getCareContext()) != null)
            throw new StaleObjectException(null);
    }
    //-----------
    DomainFactory factory = getDomainFactory();

    //wdev-15917
    SurgicalOperationSummary dosurgOpum = SurgicalOperationSummaryVoAssembler.extractSurgicalOperationSummary(factory,surgicalOperationSumm);
    if( dosurgOpum != null )
        factory.save(dosurgOpum);
    //---- wdev-15917   

    FuturePlan doFP = DischargeFuturePlanVoAssembler.extractFuturePlan(factory, dummy);
    factory.save(doFP);
    return DischargeFuturePlanVoAssembler.create(doFP);
}
项目:openMAXIMS    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public DischargeFuturePlanVo save(DischargeFuturePlanVo dummy, SurgicalOperationSummaryVo surgicalOperationSumm) throws DomainInterfaceException, StaleObjectException 
{
    if(dummy == null)
        throw new CodingRuntimeException("DischargeFuturePlanVo is null");
    if(!dummy.isValidated())
        throw new CodingRuntimeException("DischargeFuturePlanVo Value Object has not been validated");

    if( surgicalOperationSumm == null)  //wdev-15917
        throw new CodingRuntimeException("SurgicalOperationSummaryVo is null");

    //wdev-11576
    if(!dummy.getID_FuturePlanIsNotNull())
    {
        if( getFuturePlan(dummy.getCareContext()) != null)
            throw new StaleObjectException(null);
    }
    //-----------
    DomainFactory factory = getDomainFactory();

    //wdev-15917
    SurgicalOperationSummary dosurgOpum = SurgicalOperationSummaryVoAssembler.extractSurgicalOperationSummary(factory,surgicalOperationSumm);
    if( dosurgOpum != null )
        factory.save(dosurgOpum);
    //---- wdev-15917   

    FuturePlan doFP = DischargeFuturePlanVoAssembler.extractFuturePlan(factory, dummy);
    factory.save(doFP);
    return DischargeFuturePlanVoAssembler.create(doFP);
}
项目:openmaxims-linux    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public DischargeFuturePlanVo save(DischargeFuturePlanVo dummy, SurgicalOperationSummaryVo surgicalOperationSumm) throws DomainInterfaceException, StaleObjectException 
{
    if(dummy == null)
        throw new CodingRuntimeException("DischargeFuturePlanVo is null");
    if(!dummy.isValidated())
        throw new CodingRuntimeException("DischargeFuturePlanVo Value Object has not been validated");

    if( surgicalOperationSumm == null)  //wdev-15917
        throw new CodingRuntimeException("SurgicalOperationSummaryVo is null");

    //wdev-11576
    if(!dummy.getID_FuturePlanIsNotNull())
    {
        if( getFuturePlan(dummy.getCareContext()) != null)
            throw new StaleObjectException(null);
    }
    //-----------
    DomainFactory factory = getDomainFactory();

    //wdev-15917
    SurgicalOperationSummary dosurgOpum = SurgicalOperationSummaryVoAssembler.extractSurgicalOperationSummary(factory,surgicalOperationSumm);
    if( dosurgOpum != null )
        factory.save(dosurgOpum);
    //---- wdev-15917   

    FuturePlan doFP = DischargeFuturePlanVoAssembler.extractFuturePlan(factory, dummy);
    factory.save(doFP);
    return DischargeFuturePlanVoAssembler.create(doFP);
}