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

项目:AvoinApotti    文件:STHKPendingElectiveAdmissionsListComponentImpl.java   
public PendingElectiveAdmissionHl7Vo saveDUMMYELECTIVEADMISSION(PendingElectiveAdmissionHl7Vo voToSave)
{
    if(voToSave == null || !voToSave.isValidated())
        throw new CodingRuntimeException("Object is null or has not been validated");

    DomainFactory factory = getDomainFactory();
    PendingElectiveAdmission domSocialHistory = PendingElectiveAdmissionHl7VoAssembler.extractPendingElectiveAdmission(factory,voToSave);
    try {
        factory.save(domSocialHistory);
    } catch (StaleObjectException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }

    return PendingElectiveAdmissionHl7VoAssembler.create(domSocialHistory);
}
项目:openMAXIMS    文件:STHKPendingElectiveAdmissionsListComponentImpl.java   
public PendingElectiveAdmissionHl7Vo saveDUMMYELECTIVEADMISSION(PendingElectiveAdmissionHl7Vo voToSave)
{
    if(voToSave == null || !voToSave.isValidated())
        throw new CodingRuntimeException("Object is null or has not been validated");

    DomainFactory factory = getDomainFactory();
    PendingElectiveAdmission domSocialHistory = PendingElectiveAdmissionHl7VoAssembler.extractPendingElectiveAdmission(factory,voToSave);
    try {
        factory.save(domSocialHistory);
    } catch (StaleObjectException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }

    return PendingElectiveAdmissionHl7VoAssembler.create(domSocialHistory);
}
项目:openMAXIMS    文件:STHKPendingElectiveAdmissionsListComponentImpl.java   
public PendingElectiveAdmissionHl7Vo saveDUMMYELECTIVEADMISSION(PendingElectiveAdmissionHl7Vo voToSave)
{
    if(voToSave == null || !voToSave.isValidated())
        throw new CodingRuntimeException("Object is null or has not been validated");

    DomainFactory factory = getDomainFactory();
    PendingElectiveAdmission domSocialHistory = PendingElectiveAdmissionHl7VoAssembler.extractPendingElectiveAdmission(factory,voToSave);
    try {
        factory.save(domSocialHistory);
    } catch (StaleObjectException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }

    return PendingElectiveAdmissionHl7VoAssembler.create(domSocialHistory);
}
项目:openmaxims-linux    文件:STHKPendingElectiveAdmissionsListComponentImpl.java   
public PendingElectiveAdmissionHl7Vo saveDUMMYELECTIVEADMISSION(PendingElectiveAdmissionHl7Vo voToSave)
{
    if(voToSave == null || !voToSave.isValidated())
        throw new CodingRuntimeException("Object is null or has not been validated");

    DomainFactory factory = getDomainFactory();
    PendingElectiveAdmission domSocialHistory = PendingElectiveAdmissionHl7VoAssembler.extractPendingElectiveAdmission(factory,voToSave);
    try {
        factory.save(domSocialHistory);
    } catch (StaleObjectException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }

    return PendingElectiveAdmissionHl7VoAssembler.create(domSocialHistory);
}
项目:AvoinApotti    文件:ADTImpl.java   
public PendingElectiveAdmissionHl7Vo getPendingElectiveAdmission(
        PasEventVo pasEventVo) {
DomainFactory factory = getDomainFactory();

    PASEvent domEvent = PASEvent.getPASEventFrompasevent_unq1(factory, (Patient)factory.getDomainObject(Patient.class, pasEventVo.getPatient().getID_Patient()), pasEventVo.getPasEventId());
    if (domEvent != null)
    {
        String hql = " from PendingElectiveAdmission o where o.pasEvent.id = :pasEvent";
        List<?> lst = factory.find(hql, new String[]{"pasEvent"}, new Object[]{domEvent.getId()});
        if (lst != null && lst.size() == 1)
            return PendingElectiveAdmissionHl7VoAssembler.create((PendingElectiveAdmission) lst.get(0));
    }

    return null;
    }
项目:AvoinApotti    文件:ADTImpl.java   
public PendingElectiveAdmissionHl7Vo recordPendingElectiveAdmission(
        PasEventVo pasEventVo,
        PendingElectiveAdmissionHl7Vo pendingElectiveAdmissionVo)
        throws StaleObjectException {
    if(!pasEventVo.isValidated())
    {
        throw new DomainRuntimeException("Pas Event VO has not been validated!");
    }
    if (null ==pendingElectiveAdmissionVo)
    {
        throw new DomainRuntimeException("Pending Elective Admission cannot be null");
    }

    if (!pendingElectiveAdmissionVo.isValidated())
    {
        throw new DomainRuntimeException("Pending Elective Admission Admit VO has not been validated!");
    }
    DomainFactory factory = getDomainFactory();

    PendingElectiveAdmission peaDomain = PendingElectiveAdmissionHl7VoAssembler.extractPendingElectiveAdmission(factory, pendingElectiveAdmissionVo);
    if(null!=pendingElectiveAdmissionVo.getProcedures())
    {
        for (String procCode : pendingElectiveAdmissionVo.getProcedures()) 
        {
            Procedure proc = getProcedureFromTaxonomyMap(procCode,TaxonomyType.OPCS4);
            if(proc!=null)
                peaDomain.getProcedures().add(proc);
        }
    }

    factory.save(peaDomain);
    return PendingElectiveAdmissionHl7VoAssembler.create(peaDomain);
}
项目:openMAXIMS    文件:ADTImpl.java   
public PendingElectiveAdmissionHl7Vo getPendingElectiveAdmission(
        PasEventVo pasEventVo) {
DomainFactory factory = getDomainFactory();

    PASEvent domEvent = PASEvent.getPASEventFrompasevent_unq1(factory, (Patient)factory.getDomainObject(Patient.class, pasEventVo.getPatient().getID_Patient()), pasEventVo.getPasEventId());
    if (domEvent != null)
    {
        String hql = " from PendingElectiveAdmission o where o.pasEvent.id = :pasEvent";
        List<?> lst = factory.find(hql, new String[]{"pasEvent"}, new Object[]{domEvent.getId()});
        if (lst != null && lst.size() == 1)
            return PendingElectiveAdmissionHl7VoAssembler.create((PendingElectiveAdmission) lst.get(0));
    }

    return null;
    }
项目:openMAXIMS    文件:ADTImpl.java   
public PendingElectiveAdmissionHl7Vo recordPendingElectiveAdmission(
        PasEventVo pasEventVo,
        PendingElectiveAdmissionHl7Vo pendingElectiveAdmissionVo)
        throws StaleObjectException {
    if(!pasEventVo.isValidated())
    {
        throw new DomainRuntimeException("Pas Event VO has not been validated!");
    }
    if (null ==pendingElectiveAdmissionVo)
    {
        throw new DomainRuntimeException("Pending Elective Admission cannot be null");
    }

    if (!pendingElectiveAdmissionVo.isValidated())
    {
        throw new DomainRuntimeException("Pending Elective Admission Admit VO has not been validated!");
    }
    DomainFactory factory = getDomainFactory();

    PendingElectiveAdmission peaDomain = PendingElectiveAdmissionHl7VoAssembler.extractPendingElectiveAdmission(factory, pendingElectiveAdmissionVo);
    if(null!=pendingElectiveAdmissionVo.getProcedures())
    {
        for (String procCode : pendingElectiveAdmissionVo.getProcedures()) 
        {
            Procedure proc = getProcedureFromTaxonomyMap(procCode,TaxonomyType.OPCS4);
            if(proc!=null)
                peaDomain.getProcedures().add(proc);
        }
    }

    factory.save(peaDomain);
    return PendingElectiveAdmissionHl7VoAssembler.create(peaDomain);
}
项目:openMAXIMS    文件:ADTImpl.java   
public PendingElectiveAdmissionHl7Vo getPendingElectiveAdmission(
        PasEventVo pasEventVo) {
DomainFactory factory = getDomainFactory();

    PASEvent domEvent = PASEvent.getPASEventFrompasevent_unq1(factory, (Patient)factory.getDomainObject(Patient.class, pasEventVo.getPatient().getID_Patient()), pasEventVo.getPasEventId());
    if (domEvent != null)
    {
        String hql = " from PendingElectiveAdmission o where o.pasEvent.id = :pasEvent";
        List<?> lst = factory.find(hql, new String[]{"pasEvent"}, new Object[]{domEvent.getId()});
        if (lst != null && lst.size() == 1)
            return PendingElectiveAdmissionHl7VoAssembler.create((PendingElectiveAdmission) lst.get(0));
    }

    return null;
    }
项目:openMAXIMS    文件:ADTImpl.java   
public PendingElectiveAdmissionHl7Vo recordPendingElectiveAdmission(
        PasEventVo pasEventVo,
        PendingElectiveAdmissionHl7Vo pendingElectiveAdmissionVo)
        throws StaleObjectException {
    if(!pasEventVo.isValidated())
    {
        throw new DomainRuntimeException("Pas Event VO has not been validated!");
    }
    if (null ==pendingElectiveAdmissionVo)
    {
        throw new DomainRuntimeException("Pending Elective Admission cannot be null");
    }

    if (!pendingElectiveAdmissionVo.isValidated())
    {
        throw new DomainRuntimeException("Pending Elective Admission Admit VO has not been validated!");
    }
    DomainFactory factory = getDomainFactory();

    PendingElectiveAdmission peaDomain = PendingElectiveAdmissionHl7VoAssembler.extractPendingElectiveAdmission(factory, pendingElectiveAdmissionVo);
    if(null!=pendingElectiveAdmissionVo.getProcedures())
    {
        for (String procCode : pendingElectiveAdmissionVo.getProcedures()) 
        {
            Procedure proc = getProcedureFromTaxonomyMap(procCode,TaxonomyType.OPCS4);
            if(proc!=null)
                peaDomain.getProcedures().add(proc);
        }
    }

    factory.save(peaDomain);
    return PendingElectiveAdmissionHl7VoAssembler.create(peaDomain);
}
项目:openmaxims-linux    文件:ADTImpl.java   
public PendingElectiveAdmissionHl7Vo getPendingElectiveAdmission(
        PasEventVo pasEventVo) {
DomainFactory factory = getDomainFactory();

    PASEvent domEvent = PASEvent.getPASEventFrompasevent_unq1(factory, (Patient)factory.getDomainObject(Patient.class, pasEventVo.getPatient().getID_Patient()), pasEventVo.getPasEventId());
    if (domEvent != null)
    {
        String hql = " from PendingElectiveAdmission o where o.pasEvent.id = :pasEvent";
        List<?> lst = factory.find(hql, new String[]{"pasEvent"}, new Object[]{domEvent.getId()});
        if (lst != null && lst.size() == 1)
            return PendingElectiveAdmissionHl7VoAssembler.create((PendingElectiveAdmission) lst.get(0));
    }

    return null;
    }
项目:openmaxims-linux    文件:ADTImpl.java   
public PendingElectiveAdmissionHl7Vo recordPendingElectiveAdmission(
        PasEventVo pasEventVo,
        PendingElectiveAdmissionHl7Vo pendingElectiveAdmissionVo)
        throws StaleObjectException {
    if(!pasEventVo.isValidated())
    {
        throw new DomainRuntimeException("Pas Event VO has not been validated!");
    }
    if (null ==pendingElectiveAdmissionVo)
    {
        throw new DomainRuntimeException("Pending Elective Admission cannot be null");
    }

    if (!pendingElectiveAdmissionVo.isValidated())
    {
        throw new DomainRuntimeException("Pending Elective Admission Admit VO has not been validated!");
    }
    DomainFactory factory = getDomainFactory();

    PendingElectiveAdmission peaDomain = PendingElectiveAdmissionHl7VoAssembler.extractPendingElectiveAdmission(factory, pendingElectiveAdmissionVo);
    if(null!=pendingElectiveAdmissionVo.getProcedures())
    {
        for (String procCode : pendingElectiveAdmissionVo.getProcedures()) 
        {
            Procedure proc = getProcedureFromTaxonomyMap(procCode,TaxonomyType.OPCS4);
            if(proc!=null)
                peaDomain.getProcedures().add(proc);
        }
    }

    factory.save(peaDomain);
    return PendingElectiveAdmissionHl7VoAssembler.create(peaDomain);
}