Java 类ims.nursing.vo.domain.PatientInvasiveDeviceVoAssembler 实例源码

项目:AvoinApotti    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceVo savePatientInvasiveDevice(PatientInvasiveDeviceVo record) throws StaleObjectException  
{
    if(record == null)
        throw new DomainRuntimeException("Invalid record");
    if(!record.isValidated())
        throw new CodingRuntimeException("Record not validated");

    DomainFactory factory = getDomainFactory();
    ims.clinical.domain.objects.PatientInvasiveDevice domainRecord = PatientInvasiveDeviceVoAssembler.extractPatientInvasiveDevice(factory, record);        

    factory.save(domainRecord);

    return PatientInvasiveDeviceVoAssembler.create(domainRecord);
}
项目:AvoinApotti    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceVo getPatientInvasiveDevice(PatientInvasiveDeviceRefVo id)  
{   
    if(id == null || id.getID_PatientInvasiveDevice() == null)
        throw new DomainRuntimeException("Invalid record");

    DomainFactory factory = getDomainFactory();
    PatientInvasiveDevice domainRecord = (PatientInvasiveDevice)factory.getDomainObject(PatientInvasiveDevice.class, id.getID_PatientInvasiveDevice().intValue());
    return PatientInvasiveDeviceVoAssembler.create(domainRecord);
}
项目:openMAXIMS    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceVo savePatientInvasiveDevice(PatientInvasiveDeviceVo record) throws StaleObjectException  
{
    if(record == null)
        throw new DomainRuntimeException("Invalid record");
    if(!record.isValidated())
        throw new CodingRuntimeException("Record not validated");

    DomainFactory factory = getDomainFactory();
    ims.clinical.domain.objects.PatientInvasiveDevice domainRecord = PatientInvasiveDeviceVoAssembler.extractPatientInvasiveDevice(factory, record);        

    factory.save(domainRecord);

    return PatientInvasiveDeviceVoAssembler.create(domainRecord);
}
项目:openMAXIMS    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceVo getPatientInvasiveDevice(PatientInvasiveDeviceRefVo id)  
{   
    if(id == null || id.getID_PatientInvasiveDevice() == null)
        throw new DomainRuntimeException("Invalid record");

    DomainFactory factory = getDomainFactory();
    PatientInvasiveDevice domainRecord = (PatientInvasiveDevice)factory.getDomainObject(PatientInvasiveDevice.class, id.getID_PatientInvasiveDevice().intValue());
    return PatientInvasiveDeviceVoAssembler.create(domainRecord);
}
项目:openMAXIMS    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceVo savePatientInvasiveDevice(PatientInvasiveDeviceVo record) throws StaleObjectException  
{
    if(record == null)
        throw new DomainRuntimeException("Invalid record");
    if(!record.isValidated())
        throw new CodingRuntimeException("Record not validated");

    DomainFactory factory = getDomainFactory();
    ims.clinical.domain.objects.PatientInvasiveDevice domainRecord = PatientInvasiveDeviceVoAssembler.extractPatientInvasiveDevice(factory, record);        

    factory.save(domainRecord);

    return PatientInvasiveDeviceVoAssembler.create(domainRecord);
}
项目:openMAXIMS    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceVo getPatientInvasiveDevice(PatientInvasiveDeviceRefVo id)  
{   
    if(id == null || id.getID_PatientInvasiveDevice() == null)
        throw new DomainRuntimeException("Invalid record");

    DomainFactory factory = getDomainFactory();
    PatientInvasiveDevice domainRecord = (PatientInvasiveDevice)factory.getDomainObject(PatientInvasiveDevice.class, id.getID_PatientInvasiveDevice().intValue());
    return PatientInvasiveDeviceVoAssembler.create(domainRecord);
}
项目:openmaxims-linux    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceVo savePatientInvasiveDevice(PatientInvasiveDeviceVo record) throws StaleObjectException  
{
    if(record == null)
        throw new DomainRuntimeException("Invalid record");
    if(!record.isValidated())
        throw new CodingRuntimeException("Record not validated");

    DomainFactory factory = getDomainFactory();
    ims.clinical.domain.objects.PatientInvasiveDevice domainRecord = PatientInvasiveDeviceVoAssembler.extractPatientInvasiveDevice(factory, record);        

    factory.save(domainRecord);

    return PatientInvasiveDeviceVoAssembler.create(domainRecord);
}
项目:openmaxims-linux    文件:InvasiveDeviceImpl.java   
public PatientInvasiveDeviceVo getPatientInvasiveDevice(PatientInvasiveDeviceRefVo id)  
{   
    if(id == null || id.getID_PatientInvasiveDevice() == null)
        throw new DomainRuntimeException("Invalid record");

    DomainFactory factory = getDomainFactory();
    PatientInvasiveDevice domainRecord = (PatientInvasiveDevice)factory.getDomainObject(PatientInvasiveDevice.class, id.getID_PatientInvasiveDevice().intValue());
    return PatientInvasiveDeviceVoAssembler.create(domainRecord);
}