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

项目:AvoinApotti    文件:ClinicalNoteDrawingImpl.java   
public SOAPVo getSOAPsVo(ClinicalNotesRefVo clinnoteRefVo)
{
    if(clinnoteRefVo != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" from SoapNote soapnote where "); 
        String andStr = " ";

        ArrayList<String> markers = new ArrayList<String>();
        ArrayList<Serializable> values = new ArrayList<Serializable>();

        hql.append(andStr + " soapnote.clinicalNote.id = :clinicNoteId");
            markers.add("clinicNoteId");
        values.add(clinnoteRefVo.getID_ClinicalNotes());
        andStr = " and ";   

        List listSoap = factory.find(hql.toString(), markers,values);
        if(listSoap != null && listSoap.size() > 0)
        { 
            SOAPVoCollection voColl = SOAPVoAssembler.createSOAPVoCollectionFromSoapNote(listSoap);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;
}
项目:openMAXIMS    文件:ClinicalNoteDrawingImpl.java   
public SOAPVo getSOAPsVo(ClinicalNotesRefVo clinnoteRefVo)
{
    if(clinnoteRefVo != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" from SoapNote soapnote where "); 
        String andStr = " ";

        ArrayList<String> markers = new ArrayList<String>();
        ArrayList<Serializable> values = new ArrayList<Serializable>();

        hql.append(andStr + " soapnote.clinicalNote.id = :clinicNoteId");
            markers.add("clinicNoteId");
        values.add(clinnoteRefVo.getID_ClinicalNotes());
        andStr = " and ";   

        List listSoap = factory.find(hql.toString(), markers,values);
        if(listSoap != null && listSoap.size() > 0)
        { 
            SOAPVoCollection voColl = SOAPVoAssembler.createSOAPVoCollectionFromSoapNote(listSoap);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;
}
项目:openMAXIMS    文件:ClinicalNoteDrawingImpl.java   
public SOAPVo getSOAPsVo(ClinicalNotesRefVo clinnoteRefVo)
{
    if(clinnoteRefVo != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" from SoapNote soapnote where "); 
        String andStr = " ";

        ArrayList<String> markers = new ArrayList<String>();
        ArrayList<Serializable> values = new ArrayList<Serializable>();

        hql.append(andStr + " soapnote.clinicalNote.id = :clinicNoteId");
            markers.add("clinicNoteId");
        values.add(clinnoteRefVo.getID_ClinicalNotes());
        andStr = " and ";   

        List listSoap = factory.find(hql.toString(), markers,values);
        if(listSoap != null && listSoap.size() > 0)
        { 
            SOAPVoCollection voColl = SOAPVoAssembler.createSOAPVoCollectionFromSoapNote(listSoap);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;
}
项目:openmaxims-linux    文件:ClinicalNoteDrawingImpl.java   
public SOAPVo getSOAPsVo(ClinicalNotesRefVo clinnoteRefVo)
{
    if(clinnoteRefVo != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" from SoapNote soapnote where "); 
        String andStr = " ";

        ArrayList<String> markers = new ArrayList<String>();
        ArrayList<Serializable> values = new ArrayList<Serializable>();

        hql.append(andStr + " soapnote.clinicalNote.id = :clinicNoteId");
            markers.add("clinicNoteId");
        values.add(clinnoteRefVo.getID_ClinicalNotes());
        andStr = " and ";   

        List listSoap = factory.find(hql.toString(), markers,values);
        if(listSoap != null && listSoap.size() > 0)
        { 
            SOAPVoCollection voColl = SOAPVoAssembler.createSOAPVoCollectionFromSoapNote(listSoap);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;
}
项目:AvoinApotti    文件:ClinicalNoteDrawingImpl.java   
public void saveSOAPsVo(SOAPVo voSOAP) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException
{
    // Ensure the value object has been validated
    if (!voSOAP.isValidated())
        throw new DomainRuntimeException("SOAP has not been validated");

    DomainFactory factory = getDomainFactory();
    SoapNote doSOAP = SOAPVoAssembler.extractSoapNote(factory, voSOAP); 
    CareContext doCareContext = getCurrentCareContext(voSOAP.getCareContext()); //WDEV-19027
    doSOAP.setCareContext(doCareContext);//WDEV-19027

    factory.save(doSOAP);
}
项目:openMAXIMS    文件:ClinicalNoteDrawingImpl.java   
public void saveSOAPsVo(SOAPVo voSOAP) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException
{
    // Ensure the value object has been validated
    if (!voSOAP.isValidated())
        throw new DomainRuntimeException("SOAP has not been validated");

    DomainFactory factory = getDomainFactory();
    SoapNote doSOAP = SOAPVoAssembler.extractSoapNote(factory, voSOAP); 
    CareContext doCareContext = getCurrentCareContext(voSOAP.getCareContext()); //WDEV-19027
    doSOAP.setCareContext(doCareContext);//WDEV-19027

    factory.save(doSOAP);
}
项目:openMAXIMS    文件:ClinicalNoteDrawingImpl.java   
public void saveSOAPsVo(SOAPVo voSOAP) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException
{
    // Ensure the value object has been validated
    if (!voSOAP.isValidated())
        throw new DomainRuntimeException("SOAP has not been validated");

    DomainFactory factory = getDomainFactory();
    SoapNote doSOAP = SOAPVoAssembler.extractSoapNote(factory, voSOAP); 
    CareContext doCareContext = getCurrentCareContext(voSOAP.getCareContext()); //WDEV-19027
    doSOAP.setCareContext(doCareContext);//WDEV-19027

    factory.save(doSOAP);
}
项目:openmaxims-linux    文件:ClinicalNoteDrawingImpl.java   
public void saveSOAPsVo(SOAPVo voSOAP) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException
{
    // Ensure the value object has been validated
    if (!voSOAP.isValidated())
        throw new DomainRuntimeException("SOAP has not been validated");

    DomainFactory factory = getDomainFactory();
    SoapNote doSOAP = SOAPVoAssembler.extractSoapNote(factory, voSOAP); 
    CareContext doCareContext = getCurrentCareContext(voSOAP.getCareContext()); //WDEV-19027
    doSOAP.setCareContext(doCareContext);//WDEV-19027

    factory.save(doSOAP);
}