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

项目:AvoinApotti    文件:Logic.java   
private void populateHistoryOfPatientMeds()
{
    form.richMedicationHistory().setValue(null);
    if( form.getLocalContext().getTrackingForClinicianWorklistAndTriageIsNotNull() && form.getLocalContext().getTrackingForClinicianWorklistAndTriage().getEpisodeIsNotNull() && Boolean.TRUE.equals(form.getLocalContext().getTrackingForClinicianWorklistAndTriage().getEpisode().getMedPatientConsent()))  //wdev-17819
    {
        String NhsNumber = domain.getNHSNumber(form.getLocalContext().getPatientRef());
        form.getLocalContext().setNhsNumber(NhsNumber);
        if( NhsNumber != null)
        {
            //HistoryOfPatientMedsVoCollection tempColl = domain.getHistoryOfPatientMeds(NhsNumber);
            HistoryOfPatientMedsVo tempVo = domain.getHistoryOfPatientMedsVo(NhsNumber);
            if( form.getLocalContext().getselectedPatientMeds() == null && tempVo != null)  //wdev-17858
            {
                if( !Boolean.TRUE.equals(form.getLocalContext().getTrackingForClinicianWorklistAndTriage().getIsDischarged())) //wdev-17858
                    form.richMedicationHistory().setValue(tempVo.getExternalMedDetails());

            }
            else if( form.getLocalContext().getselectedPatientMedsIsNotNull() )             //wdev-17858
            {
                form.richMedicationHistory().setValue(form.getLocalContext().getselectedPatientMeds().getMedicationDetailsFromGP());
            }


        }
    }
}
项目:AvoinApotti    文件:EDAssessmentComponentImpl.java   
public HistoryOfPatientMedsVo getHistoryOfPatientMedsVo(String nHSNumber) 
{
    if( nHSNumber == null )
        return null;


    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();


    hql.append("select h1_1 from HistoryOfPatientMeds as h1_1 where (h1_1.nHSNumber = :nhsnumber) order by h1_1.systemInformation.creationDateTime desc");

    List<?> list = factory.find(hql.toString(), new String[] {"nhsnumber"}, new Object[] {nHSNumber});
    if( list != null && list.size() > 0)
    {
        HistoryOfPatientMedsVoCollection tempColl = HistoryOfPatientMedsVoAssembler.createHistoryOfPatientMedsVoCollectionFromHistoryOfPatientMeds(list);
        if( tempColl != null && tempColl.size() == 1)   
            return tempColl.get(0);

    }

    return null;
}
项目:AvoinApotti    文件:TriagePatientMedsImpl.java   
public HistoryOfPatientMedsVo getHistoryOfPatientMedsVo(String nHSNumber)
{
    if( nHSNumber == null )
        return null;


    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();


    hql.append("select h1_1 from HistoryOfPatientMeds as h1_1 where (h1_1.nHSNumber = :nhsnumber) order by h1_1.systemInformation.creationDateTime desc");

    List<?> list = factory.find(hql.toString(), new String[] {"nhsnumber"}, new Object[] {nHSNumber});
    if( list != null && list.size() > 0)
    {
        HistoryOfPatientMedsVoCollection tempColl = HistoryOfPatientMedsVoAssembler.createHistoryOfPatientMedsVoCollectionFromHistoryOfPatientMeds(list);
        if( tempColl != null && tempColl.size() == 1)   //wdev-17117
            return tempColl.get(0);

    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void populateHistoryOfPatientMeds()
{
    form.richMedicationHistory().setValue(null);
    if( form.getLocalContext().getTrackingForClinicianWorklistAndTriageIsNotNull() && form.getLocalContext().getTrackingForClinicianWorklistAndTriage().getEpisodeIsNotNull() && Boolean.TRUE.equals(form.getLocalContext().getTrackingForClinicianWorklistAndTriage().getEpisode().getMedPatientConsent()))  //wdev-17819
    {
        String NhsNumber = domain.getNHSNumber(form.getLocalContext().getPatientRef());
        form.getLocalContext().setNhsNumber(NhsNumber);
        if( NhsNumber != null)
        {
            //HistoryOfPatientMedsVoCollection tempColl = domain.getHistoryOfPatientMeds(NhsNumber);
            HistoryOfPatientMedsVo tempVo = domain.getHistoryOfPatientMedsVo(NhsNumber);
            if( form.getLocalContext().getselectedPatientMeds() == null && tempVo != null)  //wdev-17858
            {
                if( !Boolean.TRUE.equals(form.getLocalContext().getTrackingForClinicianWorklistAndTriage().getIsDischarged())) //wdev-17858
                    form.richMedicationHistory().setValue(tempVo.getExternalMedDetails());

            }
            else if( form.getLocalContext().getselectedPatientMedsIsNotNull() )             //wdev-17858
            {
                form.richMedicationHistory().setValue(form.getLocalContext().getselectedPatientMeds().getMedicationDetailsFromGP());
            }


        }
    }
}
项目:openMAXIMS    文件:EDAssessmentComponentImpl.java   
public HistoryOfPatientMedsVo getHistoryOfPatientMedsVo(String nHSNumber) 
{
    if( nHSNumber == null )
        return null;


    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();


    hql.append("select h1_1 from HistoryOfPatientMeds as h1_1 where (h1_1.nHSNumber = :nhsnumber) order by h1_1.systemInformation.creationDateTime desc");

    List<?> list = factory.find(hql.toString(), new String[] {"nhsnumber"}, new Object[] {nHSNumber});
    if( list != null && list.size() > 0)
    {
        HistoryOfPatientMedsVoCollection tempColl = HistoryOfPatientMedsVoAssembler.createHistoryOfPatientMedsVoCollectionFromHistoryOfPatientMeds(list);
        if( tempColl != null && tempColl.size() == 1)   
            return tempColl.get(0);

    }

    return null;
}
项目:openMAXIMS    文件:TriagePatientMedsImpl.java   
public HistoryOfPatientMedsVo getHistoryOfPatientMedsVo(String nHSNumber)
{
    if( nHSNumber == null )
        return null;


    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();


    hql.append("select h1_1 from HistoryOfPatientMeds as h1_1 where (h1_1.nHSNumber = :nhsnumber) order by h1_1.systemInformation.creationDateTime desc");

    List<?> list = factory.find(hql.toString(), new String[] {"nhsnumber"}, new Object[] {nHSNumber});
    if( list != null && list.size() > 0)
    {
        HistoryOfPatientMedsVoCollection tempColl = HistoryOfPatientMedsVoAssembler.createHistoryOfPatientMedsVoCollectionFromHistoryOfPatientMeds(list);
        if( tempColl != null && tempColl.size() == 1)   //wdev-17117
            return tempColl.get(0);

    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void populateHistoryOfPatientMeds()
{
    form.richMedicationHistory().setValue(null);
    if( form.getLocalContext().getTrackingForClinicianWorklistAndTriageIsNotNull() && form.getLocalContext().getTrackingForClinicianWorklistAndTriage().getEpisodeIsNotNull() && Boolean.TRUE.equals(form.getLocalContext().getTrackingForClinicianWorklistAndTriage().getEpisode().getMedPatientConsent()))  //wdev-17819
    {
        String NhsNumber = domain.getNHSNumber(form.getLocalContext().getPatientRef());
        form.getLocalContext().setNhsNumber(NhsNumber);
        if( NhsNumber != null)
        {
            //HistoryOfPatientMedsVoCollection tempColl = domain.getHistoryOfPatientMeds(NhsNumber);
            HistoryOfPatientMedsVo tempVo = domain.getHistoryOfPatientMedsVo(NhsNumber);
            if( form.getLocalContext().getselectedPatientMeds() == null && tempVo != null)  //wdev-17858
            {
                if( !Boolean.TRUE.equals(form.getLocalContext().getTrackingForClinicianWorklistAndTriage().getIsDischarged())) //wdev-17858
                    form.richMedicationHistory().setValue(tempVo.getExternalMedDetails());

            }
            else if( form.getLocalContext().getselectedPatientMedsIsNotNull() )             //wdev-17858
            {
                form.richMedicationHistory().setValue(form.getLocalContext().getselectedPatientMeds().getMedicationDetailsFromGP());
            }


        }
    }
}
项目:openMAXIMS    文件:EDAssessmentComponentImpl.java   
public HistoryOfPatientMedsVo getHistoryOfPatientMedsVo(String nHSNumber) 
{
    if( nHSNumber == null )
        return null;


    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();


    hql.append("select h1_1 from HistoryOfPatientMeds as h1_1 where (h1_1.nHSNumber = :nhsnumber) order by h1_1.systemInformation.creationDateTime desc");

    List<?> list = factory.find(hql.toString(), new String[] {"nhsnumber"}, new Object[] {nHSNumber});
    if( list != null && list.size() > 0)
    {
        HistoryOfPatientMedsVoCollection tempColl = HistoryOfPatientMedsVoAssembler.createHistoryOfPatientMedsVoCollectionFromHistoryOfPatientMeds(list);
        if( tempColl != null && tempColl.size() == 1)   
            return tempColl.get(0);

    }

    return null;
}
项目:openMAXIMS    文件:TriagePatientMedsImpl.java   
public HistoryOfPatientMedsVo getHistoryOfPatientMedsVo(String nHSNumber)
{
    if( nHSNumber == null )
        return null;


    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();


    hql.append("select h1_1 from HistoryOfPatientMeds as h1_1 where (h1_1.nHSNumber = :nhsnumber) order by h1_1.systemInformation.creationDateTime desc");

    List<?> list = factory.find(hql.toString(), new String[] {"nhsnumber"}, new Object[] {nHSNumber});
    if( list != null && list.size() > 0)
    {
        HistoryOfPatientMedsVoCollection tempColl = HistoryOfPatientMedsVoAssembler.createHistoryOfPatientMedsVoCollectionFromHistoryOfPatientMeds(list);
        if( tempColl != null && tempColl.size() == 1)   //wdev-17117
            return tempColl.get(0);

    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void populateHistoryOfPatientMeds()
{
    form.richMedicationHistory().setValue(null);
    if( form.getLocalContext().getTrackingForClinicianWorklistAndTriageIsNotNull() && form.getLocalContext().getTrackingForClinicianWorklistAndTriage().getEpisodeIsNotNull() && Boolean.TRUE.equals(form.getLocalContext().getTrackingForClinicianWorklistAndTriage().getEpisode().getMedPatientConsent()))  //wdev-17819
    {
        String NhsNumber = domain.getNHSNumber(form.getLocalContext().getPatientRef());
        form.getLocalContext().setNhsNumber(NhsNumber);
        if( NhsNumber != null)
        {
            //HistoryOfPatientMedsVoCollection tempColl = domain.getHistoryOfPatientMeds(NhsNumber);
            HistoryOfPatientMedsVo tempVo = domain.getHistoryOfPatientMedsVo(NhsNumber);
            if( form.getLocalContext().getselectedPatientMeds() == null && tempVo != null)  //wdev-17858
            {
                if( !Boolean.TRUE.equals(form.getLocalContext().getTrackingForClinicianWorklistAndTriage().getIsDischarged())) //wdev-17858
                    form.richMedicationHistory().setValue(tempVo.getExternalMedDetails());

            }
            else if( form.getLocalContext().getselectedPatientMedsIsNotNull() )             //wdev-17858
            {
                form.richMedicationHistory().setValue(form.getLocalContext().getselectedPatientMeds().getMedicationDetailsFromGP());
            }


        }
    }
}
项目:openmaxims-linux    文件:EDAssessmentComponentImpl.java   
public HistoryOfPatientMedsVo getHistoryOfPatientMedsVo(String nHSNumber) 
{
    if( nHSNumber == null )
        return null;


    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();


    hql.append("select h1_1 from HistoryOfPatientMeds as h1_1 where (h1_1.nHSNumber = :nhsnumber) order by h1_1.systemInformation.creationDateTime desc");

    List<?> list = factory.find(hql.toString(), new String[] {"nhsnumber"}, new Object[] {nHSNumber});
    if( list != null && list.size() > 0)
    {
        HistoryOfPatientMedsVoCollection tempColl = HistoryOfPatientMedsVoAssembler.createHistoryOfPatientMedsVoCollectionFromHistoryOfPatientMeds(list);
        if( tempColl != null && tempColl.size() == 1)   
            return tempColl.get(0);

    }

    return null;
}
项目:openmaxims-linux    文件:TriagePatientMedsImpl.java   
public HistoryOfPatientMedsVo getHistoryOfPatientMedsVo(String nHSNumber)
{
    if( nHSNumber == null )
        return null;


    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();


    hql.append("select h1_1 from HistoryOfPatientMeds as h1_1 where (h1_1.nHSNumber = :nhsnumber) order by h1_1.systemInformation.creationDateTime desc");

    List<?> list = factory.find(hql.toString(), new String[] {"nhsnumber"}, new Object[] {nHSNumber});
    if( list != null && list.size() > 0)
    {
        HistoryOfPatientMedsVoCollection tempColl = HistoryOfPatientMedsVoAssembler.createHistoryOfPatientMedsVoCollectionFromHistoryOfPatientMeds(list);
        if( tempColl != null && tempColl.size() == 1)   //wdev-17117
            return tempColl.get(0);

    }

    return null;
}