Java 类ims.emergency.vo.ProblemTriageProtocolVo 实例源码

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

    DomainFactory factory = getDomainFactory();
    ProblemTriageProtocol doPTP = ProblemTriageProtocolVoAssembler.extractProblemTriageProtocol(factory, ptProtocolVo);
    factory.save(doPTP);
    return ProblemTriageProtocolVoAssembler.create(doPTP);

}
项目:AvoinApotti    文件:ManchesterTreatmentProtocolAdminImpl.java   
public ProblemTriageProtocolVo getProblemTriageProtocol(ProblemTriageProtocolRefVo probtriProtocolRefVo) 
{
    if(probtriProtocolRefVo == null || probtriProtocolRefVo.getID_ProblemTriageProtocol() == null)
        throw new DomainRuntimeException("Invalid record");

    return ProblemTriageProtocolVoAssembler.create((ProblemTriageProtocol)getDomainFactory().getDomainObject(ProblemTriageProtocol.class, probtriProtocolRefVo.getID_ProblemTriageProtocol()));
}
项目:openMAXIMS    文件:ManchesterTreatmentProtocolAdminImpl.java   
public ProblemTriageProtocolVo saveProblemTriageProtocol(ProblemTriageProtocolVo ptProtocolVo) throws StaleObjectException 
{
    if(ptProtocolVo == null)
        throw new DomainRuntimeException("Invalid record");
    if(!ptProtocolVo.isValidated())
        throw new CodingRuntimeException("Record not validated");

    DomainFactory factory = getDomainFactory();
    ProblemTriageProtocol doPTP = ProblemTriageProtocolVoAssembler.extractProblemTriageProtocol(factory, ptProtocolVo);
    factory.save(doPTP);
    return ProblemTriageProtocolVoAssembler.create(doPTP);

}
项目:openMAXIMS    文件:ManchesterTreatmentProtocolAdminImpl.java   
public ProblemTriageProtocolVo getProblemTriageProtocol(ProblemTriageProtocolRefVo probtriProtocolRefVo) 
{
    if(probtriProtocolRefVo == null || probtriProtocolRefVo.getID_ProblemTriageProtocol() == null)
        throw new DomainRuntimeException("Invalid record");

    return ProblemTriageProtocolVoAssembler.create((ProblemTriageProtocol)getDomainFactory().getDomainObject(ProblemTriageProtocol.class, probtriProtocolRefVo.getID_ProblemTriageProtocol()));
}
项目:openmaxims-linux    文件:ManchesterTreatmentProtocolAdminImpl.java   
public ProblemTriageProtocolVo saveProblemTriageProtocol(ProblemTriageProtocolVo ptProtocolVo) throws StaleObjectException 
{
    if(ptProtocolVo == null)
        throw new DomainRuntimeException("Invalid record");
    if(!ptProtocolVo.isValidated())
        throw new CodingRuntimeException("Record not validated");

    DomainFactory factory = getDomainFactory();
    ProblemTriageProtocol doPTP = ProblemTriageProtocolVoAssembler.extractProblemTriageProtocol(factory, ptProtocolVo);
    factory.save(doPTP);
    return ProblemTriageProtocolVoAssembler.create(doPTP);

}
项目:openmaxims-linux    文件:ManchesterTreatmentProtocolAdminImpl.java   
public ProblemTriageProtocolVo getProblemTriageProtocol(ProblemTriageProtocolRefVo probtriProtocolRefVo) 
{
    if(probtriProtocolRefVo == null || probtriProtocolRefVo.getID_ProblemTriageProtocol() == null)
        throw new DomainRuntimeException("Invalid record");

    return ProblemTriageProtocolVoAssembler.create((ProblemTriageProtocol)getDomainFactory().getDomainObject(ProblemTriageProtocol.class, probtriProtocolRefVo.getID_ProblemTriageProtocol()));
}