Java 类ims.core.vo.domain.InpatientEpisodeForTransfersVoAssembler 实例源码

项目:AvoinApotti    文件:TransfersImpl.java   
public InpatientEpisodeForTransfersVo saveTransfer(InpatientEpisodeForTransfersVo voTransfer) throws DomainInterfaceException, StaleObjectException 
{
    if (!voTransfer.isValidated())
        throw new CodingRuntimeException("Transfer Record has not been validated");
    if(voTransfer == null)
        throw new CodingRuntimeException("Cannot save null InpatientEpisodeForTransfersVo");

    DomainFactory factory = getDomainFactory();

    InpatientEpisode doTrans = InpatientEpisodeForTransfersVoAssembler.extractInpatientEpisode(factory, voTransfer);

    factory.save(doTrans);
    return InpatientEpisodeForTransfersVoAssembler.create(doTrans);     
}
项目:openMAXIMS    文件:TransfersImpl.java   
public InpatientEpisodeForTransfersVo saveTransfer(InpatientEpisodeForTransfersVo voTransfer) throws DomainInterfaceException, StaleObjectException 
{
    if(voTransfer == null)
        throw new CodingRuntimeException("Cannot save null InpatientEpisodeForTransfersVo");
    if (!voTransfer.isValidated())
        throw new CodingRuntimeException("Transfer Record has not been validated");

    DomainFactory factory = getDomainFactory();

    InpatientEpisode doTrans = InpatientEpisodeForTransfersVoAssembler.extractInpatientEpisode(factory, voTransfer);

    factory.save(doTrans);
    return InpatientEpisodeForTransfersVoAssembler.create(doTrans);     
}
项目:openMAXIMS    文件:TransfersImpl.java   
public InpatientEpisodeForTransfersVo saveTransfer(InpatientEpisodeForTransfersVo voTransfer) throws DomainInterfaceException, StaleObjectException 
{
    if (!voTransfer.isValidated())
        throw new CodingRuntimeException("Transfer Record has not been validated");
    if(voTransfer == null)
        throw new CodingRuntimeException("Cannot save null InpatientEpisodeForTransfersVo");

    DomainFactory factory = getDomainFactory();

    InpatientEpisode doTrans = InpatientEpisodeForTransfersVoAssembler.extractInpatientEpisode(factory, voTransfer);

    factory.save(doTrans);
    return InpatientEpisodeForTransfersVoAssembler.create(doTrans);     
}
项目:openmaxims-linux    文件:TransfersImpl.java   
public InpatientEpisodeForTransfersVo saveTransfer(InpatientEpisodeForTransfersVo voTransfer) throws DomainInterfaceException, StaleObjectException 
{
    if (!voTransfer.isValidated())
        throw new CodingRuntimeException("Transfer Record has not been validated");
    if(voTransfer == null)
        throw new CodingRuntimeException("Cannot save null InpatientEpisodeForTransfersVo");

    DomainFactory factory = getDomainFactory();

    InpatientEpisode doTrans = InpatientEpisodeForTransfersVoAssembler.extractInpatientEpisode(factory, voTransfer);

    factory.save(doTrans);
    return InpatientEpisodeForTransfersVoAssembler.create(doTrans);     
}
项目:AvoinApotti    文件:TransfersImpl.java   
public InpatientEpisodeForTransfersVo getCurrentTransferRecord(InpatientEpisodeRefVo ipRefVo)
{
    DomainFactory factory = getDomainFactory();
    return InpatientEpisodeForTransfersVoAssembler.create((InpatientEpisode) factory.getDomainObject(InpatientEpisode.class, ipRefVo.getID_InpatientEpisode()));
}
项目:openMAXIMS    文件:TransfersImpl.java   
public InpatientEpisodeForTransfersVo getCurrentTransferRecord(InpatientEpisodeRefVo ipRefVo)
{
    DomainFactory factory = getDomainFactory();
    return InpatientEpisodeForTransfersVoAssembler.create((InpatientEpisode) factory.getDomainObject(InpatientEpisode.class, ipRefVo.getID_InpatientEpisode()));
}
项目:openMAXIMS    文件:TransfersImpl.java   
public InpatientEpisodeForTransfersVo getCurrentTransferRecord(InpatientEpisodeRefVo ipRefVo)
{
    DomainFactory factory = getDomainFactory();
    return InpatientEpisodeForTransfersVoAssembler.create((InpatientEpisode) factory.getDomainObject(InpatientEpisode.class, ipRefVo.getID_InpatientEpisode()));
}
项目:openmaxims-linux    文件:TransfersImpl.java   
public InpatientEpisodeForTransfersVo getCurrentTransferRecord(InpatientEpisodeRefVo ipRefVo)
{
    DomainFactory factory = getDomainFactory();
    return InpatientEpisodeForTransfersVoAssembler.create((InpatientEpisode) factory.getDomainObject(InpatientEpisode.class, ipRefVo.getID_InpatientEpisode()));
}