Java 类ims.clinical.vo.SoapNoteVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void fillRecordBrowser(SoapNoteVoCollection collection)
{
    form.recbrSOAP().clear();
    boolean selectedClinicalContactFound = false;
    CareContextShortVo voSelectedCareContext = form.getGlobalContext().Core.getCurrentCareContext();
    ClinicalContactShortVo voSelectedClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact();

    form.recbrSOAP().newRow(voSelectedCareContext, voSelectedCareContext.getRecordBrowserText());

    if(collection != null)
    {
        for(int i = 0 ; i < collection.size() ; i++)
        {
            ClinicalContactShortVo voClinicalContactShort = collection.get(i).getClinicalContact();
            if(voSelectedClinicalContact != null && voClinicalContactShort.getID_ClinicalContact().equals(voSelectedClinicalContact.getID_ClinicalContact()))
            {
                selectedClinicalContactFound = true;
                form.recbrSOAP().newRow(voClinicalContactShort, "\t\t\t\tClinical Contact: " + voClinicalContactShort.getStartDateTime().toString() + " - " + voClinicalContactShort.getSeenBy().toString(), Color.Green);
                form.recbrSOAP().setValue(voClinicalContactShort);
            }
            else
            {
                form.recbrSOAP().newRow(voClinicalContactShort, "\t\t\t\tClinical Contact: " + voClinicalContactShort.getStartDateTime().toString() + " - " + voClinicalContactShort.getSeenBy().toString());
            }
        }
    }

    if(!selectedClinicalContactFound && voSelectedClinicalContact != null)
    {
        form.recbrSOAP().newRow(voSelectedClinicalContact, "\t\t\t\tClinical Contact: " + voSelectedClinicalContact.getStartDateTime().toString() + " - " + voSelectedClinicalContact.getSeenBy(), Color.Green);
        form.recbrSOAP().setValue(voSelectedClinicalContact);
    }
    browseRecord();
}
项目:AvoinApotti    文件:ContactListImpl.java   
public SoapNoteVoCollection listSoapNotesVo(CareContextRefVo careContextRefVo) 
{
    if (careContextRefVo == null)
        throw new DomainRuntimeException("CareContextRefVo is null");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from SoapNote sn ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" sn.careContext.id = :rcc");
    markers.add("rcc");
    values.add(careContextRefVo.getID_CareContext());

    if (markers.size() > 0) 
        query += " where ";

    query += hql.toString();    

    List listSoapNote = factory.find(query,markers,values);
    SoapNoteVoCollection voSoapNoteColl = SoapNoteVoAssembler.createSoapNoteVoCollectionFromSoapNote(listSoapNote);
    //if(voSoapNoteColl.size() > 0)
        return voSoapNoteColl;
    ////else
        //return null;  
}
项目:AvoinApotti    文件:ContactListImpl.java   
public SoapNoteVo getSoapNoteVo(ClinicalContactShortVo clinicalContactShortVo)
{
    if (clinicalContactShortVo == null)
        throw new CodingRuntimeException("Cannot get SoapNoteVo for null Clinical Contact");

    DomainFactory factory = getDomainFactory();
    String hql = " from SoapNote sn ";
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if (clinicalContactShortVo != null)
    {
        condStr.append(andStr + " sn.clinicalContact.id = :id_ClinicalContact");
        markers.add("id_ClinicalContact");
        values.add(clinicalContactShortVo.getID_ClinicalContact());
        andStr = " and ";
    }

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();
    hql +=  " order by sn.systemInformation.creationDateTime desc";
    SoapNoteVoCollection collSoapNoteVo = SoapNoteVoAssembler.createSoapNoteVoCollectionFromSoapNote(factory.find(hql, markers, values));
    if (collSoapNoteVo != null)
    {
        if (collSoapNoteVo.size() >= 1)
            return collSoapNoteVo.get(0);
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void fillRecordBrowser(SoapNoteVoCollection collection)
{
    form.recbrSOAP().clear();
    boolean selectedClinicalContactFound = false;
    CareContextShortVo voSelectedCareContext = form.getGlobalContext().Core.getCurrentCareContext();
    ClinicalContactShortVo voSelectedClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact();

    form.recbrSOAP().newRow(voSelectedCareContext, voSelectedCareContext.getRecordBrowserText());

    if(collection != null)
    {
        for(int i = 0 ; i < collection.size() ; i++)
        {
            ClinicalContactShortVo voClinicalContactShort = collection.get(i).getClinicalContact();
            if(voSelectedClinicalContact != null && voClinicalContactShort.getID_ClinicalContact().equals(voSelectedClinicalContact.getID_ClinicalContact()))
            {
                selectedClinicalContactFound = true;
                form.recbrSOAP().newRow(voClinicalContactShort, "\t\t\t\tClinical Contact: " + voClinicalContactShort.getStartDateTime().toString() + " - " + voClinicalContactShort.getSeenBy().toString(), Color.Green);
                form.recbrSOAP().setValue(voClinicalContactShort);
            }
            else
            {
                form.recbrSOAP().newRow(voClinicalContactShort, "\t\t\t\tClinical Contact: " + voClinicalContactShort.getStartDateTime().toString() + " - " + voClinicalContactShort.getSeenBy().toString());
            }
        }
    }

    if(!selectedClinicalContactFound && voSelectedClinicalContact != null)
    {
        form.recbrSOAP().newRow(voSelectedClinicalContact, "\t\t\t\tClinical Contact: " + voSelectedClinicalContact.getStartDateTime().toString() + " - " + voSelectedClinicalContact.getSeenBy(), Color.Green);
        form.recbrSOAP().setValue(voSelectedClinicalContact);
    }
    browseRecord();
}
项目:openMAXIMS    文件:ContactListImpl.java   
public SoapNoteVoCollection listSoapNotesVo(CareContextRefVo careContextRefVo) 
{
    if (careContextRefVo == null)
        throw new DomainRuntimeException("CareContextRefVo is null");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from SoapNote sn ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" sn.careContext.id = :rcc");
    markers.add("rcc");
    values.add(careContextRefVo.getID_CareContext());

    if (markers.size() > 0) 
        query += " where ";

    query += hql.toString();    

    List listSoapNote = factory.find(query,markers,values);
    SoapNoteVoCollection voSoapNoteColl = SoapNoteVoAssembler.createSoapNoteVoCollectionFromSoapNote(listSoapNote);
    //if(voSoapNoteColl.size() > 0)
        return voSoapNoteColl;
    ////else
        //return null;  
}
项目:openMAXIMS    文件:ContactListImpl.java   
public SoapNoteVo getSoapNoteVo(ClinicalContactShortVo clinicalContactShortVo)
{
    if (clinicalContactShortVo == null)
        throw new CodingRuntimeException("Cannot get SoapNoteVo for null Clinical Contact");

    DomainFactory factory = getDomainFactory();
    String hql = " from SoapNote sn ";
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if (clinicalContactShortVo != null)
    {
        condStr.append(andStr + " sn.clinicalContact.id = :id_ClinicalContact");
        markers.add("id_ClinicalContact");
        values.add(clinicalContactShortVo.getID_ClinicalContact());
        andStr = " and ";
    }

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();
    hql +=  " order by sn.systemInformation.creationDateTime desc";
    SoapNoteVoCollection collSoapNoteVo = SoapNoteVoAssembler.createSoapNoteVoCollectionFromSoapNote(factory.find(hql, markers, values));
    if (collSoapNoteVo != null)
    {
        if (collSoapNoteVo.size() >= 1)
            return collSoapNoteVo.get(0);
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void fillRecordBrowser(SoapNoteVoCollection collection)
{
    form.recbrSOAP().clear();
    boolean selectedClinicalContactFound = false;
    CareContextShortVo voSelectedCareContext = form.getGlobalContext().Core.getCurrentCareContext();
    ClinicalContactShortVo voSelectedClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact();

    form.recbrSOAP().newRow(voSelectedCareContext, voSelectedCareContext.getRecordBrowserText());

    if(collection != null)
    {
        for(int i = 0 ; i < collection.size() ; i++)
        {
            ClinicalContactShortVo voClinicalContactShort = collection.get(i).getClinicalContact();
            if(voSelectedClinicalContact != null && voClinicalContactShort.getID_ClinicalContact().equals(voSelectedClinicalContact.getID_ClinicalContact()))
            {
                selectedClinicalContactFound = true;
                form.recbrSOAP().newRow(voClinicalContactShort, "\t\t\t\tClinical Contact: " + voClinicalContactShort.getStartDateTime().toString() + " - " + voClinicalContactShort.getSeenBy().toString(), Color.Green);
                form.recbrSOAP().setValue(voClinicalContactShort);
            }
            else
            {
                form.recbrSOAP().newRow(voClinicalContactShort, "\t\t\t\tClinical Contact: " + voClinicalContactShort.getStartDateTime().toString() + " - " + voClinicalContactShort.getSeenBy().toString());
            }
        }
    }

    if(!selectedClinicalContactFound && voSelectedClinicalContact != null)
    {
        form.recbrSOAP().newRow(voSelectedClinicalContact, "\t\t\t\tClinical Contact: " + voSelectedClinicalContact.getStartDateTime().toString() + " - " + voSelectedClinicalContact.getSeenBy(), Color.Green);
        form.recbrSOAP().setValue(voSelectedClinicalContact);
    }
    browseRecord();
}
项目:openMAXIMS    文件:ContactListImpl.java   
public SoapNoteVoCollection listSoapNotesVo(CareContextRefVo careContextRefVo) 
{
    if (careContextRefVo == null)
        throw new DomainRuntimeException("CareContextRefVo is null");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from SoapNote sn ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" sn.careContext.id = :rcc");
    markers.add("rcc");
    values.add(careContextRefVo.getID_CareContext());

    if (markers.size() > 0) 
        query += " where ";

    query += hql.toString();    

    List listSoapNote = factory.find(query,markers,values);
    SoapNoteVoCollection voSoapNoteColl = SoapNoteVoAssembler.createSoapNoteVoCollectionFromSoapNote(listSoapNote);
    //if(voSoapNoteColl.size() > 0)
        return voSoapNoteColl;
    ////else
        //return null;  
}
项目:openMAXIMS    文件:ContactListImpl.java   
public SoapNoteVo getSoapNoteVo(ClinicalContactShortVo clinicalContactShortVo)
{
    if (clinicalContactShortVo == null)
        throw new CodingRuntimeException("Cannot get SoapNoteVo for null Clinical Contact");

    DomainFactory factory = getDomainFactory();
    String hql = " from SoapNote sn ";
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if (clinicalContactShortVo != null)
    {
        condStr.append(andStr + " sn.clinicalContact.id = :id_ClinicalContact");
        markers.add("id_ClinicalContact");
        values.add(clinicalContactShortVo.getID_ClinicalContact());
        andStr = " and ";
    }

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();
    hql +=  " order by sn.systemInformation.creationDateTime desc";
    SoapNoteVoCollection collSoapNoteVo = SoapNoteVoAssembler.createSoapNoteVoCollectionFromSoapNote(factory.find(hql, markers, values));
    if (collSoapNoteVo != null)
    {
        if (collSoapNoteVo.size() >= 1)
            return collSoapNoteVo.get(0);
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void fillRecordBrowser(SoapNoteVoCollection collection)
{
    form.recbrSOAP().clear();
    boolean selectedClinicalContactFound = false;
    CareContextShortVo voSelectedCareContext = form.getGlobalContext().Core.getCurrentCareContext();
    ClinicalContactShortVo voSelectedClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact();

    form.recbrSOAP().newRow(voSelectedCareContext, voSelectedCareContext.getRecordBrowserText());

    if(collection != null)
    {
        for(int i = 0 ; i < collection.size() ; i++)
        {
            ClinicalContactShortVo voClinicalContactShort = collection.get(i).getClinicalContact();
            if(voSelectedClinicalContact != null && voClinicalContactShort.getID_ClinicalContact().equals(voSelectedClinicalContact.getID_ClinicalContact()))
            {
                selectedClinicalContactFound = true;
                form.recbrSOAP().newRow(voClinicalContactShort, "\t\t\t\tClinical Contact: " + voClinicalContactShort.getStartDateTime().toString() + " - " + voClinicalContactShort.getSeenBy().toString(), Color.Green);
                form.recbrSOAP().setValue(voClinicalContactShort);
            }
            else
            {
                form.recbrSOAP().newRow(voClinicalContactShort, "\t\t\t\tClinical Contact: " + voClinicalContactShort.getStartDateTime().toString() + " - " + voClinicalContactShort.getSeenBy().toString());
            }
        }
    }

    if(!selectedClinicalContactFound && voSelectedClinicalContact != null)
    {
        form.recbrSOAP().newRow(voSelectedClinicalContact, "\t\t\t\tClinical Contact: " + voSelectedClinicalContact.getStartDateTime().toString() + " - " + voSelectedClinicalContact.getSeenBy(), Color.Green);
        form.recbrSOAP().setValue(voSelectedClinicalContact);
    }
    browseRecord();
}
项目:openmaxims-linux    文件:ContactListImpl.java   
public SoapNoteVoCollection listSoapNotesVo(CareContextRefVo careContextRefVo) 
{
    if (careContextRefVo == null)
        throw new DomainRuntimeException("CareContextRefVo is null");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from SoapNote sn ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" sn.careContext.id = :rcc");
    markers.add("rcc");
    values.add(careContextRefVo.getID_CareContext());

    if (markers.size() > 0) 
        query += " where ";

    query += hql.toString();    

    List listSoapNote = factory.find(query,markers,values);
    SoapNoteVoCollection voSoapNoteColl = SoapNoteVoAssembler.createSoapNoteVoCollectionFromSoapNote(listSoapNote);
    //if(voSoapNoteColl.size() > 0)
        return voSoapNoteColl;
    ////else
        //return null;  
}
项目:openmaxims-linux    文件:ContactListImpl.java   
public SoapNoteVo getSoapNoteVo(ClinicalContactShortVo clinicalContactShortVo)
{
    if (clinicalContactShortVo == null)
        throw new CodingRuntimeException("Cannot get SoapNoteVo for null Clinical Contact");

    DomainFactory factory = getDomainFactory();
    String hql = " from SoapNote sn ";
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if (clinicalContactShortVo != null)
    {
        condStr.append(andStr + " sn.clinicalContact.id = :id_ClinicalContact");
        markers.add("id_ClinicalContact");
        values.add(clinicalContactShortVo.getID_ClinicalContact());
        andStr = " and ";
    }

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();
    hql +=  " order by sn.systemInformation.creationDateTime desc";
    SoapNoteVoCollection collSoapNoteVo = SoapNoteVoAssembler.createSoapNoteVoCollectionFromSoapNote(factory.find(hql, markers, values));
    if (collSoapNoteVo != null)
    {
        if (collSoapNoteVo.size() >= 1)
            return collSoapNoteVo.get(0);
    }

    return null;
}