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

项目:AvoinApotti    文件:Logic.java   
private StringBuffer getTextToDisplayFromEmergencyAttendance(CareContextRefVo careContextRefVo)
{
    StringBuffer emergAttText = new StringBuffer();
    EmergencyAttendanceForPatientMedsVo emergAttendance = domain.getEmergencyAttendance(careContextRefVo);

    if (emergAttendance != null)
    {       
        if (emergAttendance.getArrivalDateTimeIsNotNull())
        {
            emergAttText.append(emergAttendance.getArrivalDateTime().toString());
        }

        if (emergAttendance.getDischargeDateTimeIsNotNull())
        {
            emergAttText.append(" - ");
            emergAttText.append(emergAttendance.getDischargeDateTime().toString());
        }
    }

    return emergAttText;
}
项目:AvoinApotti    文件:Logic.java   
private StringBuffer getTextToDisplayFromEmergencyAttendance(CareContextRefVo careContextRefVo)
{
    StringBuffer emergAttText = new StringBuffer();
    EmergencyAttendanceForPatientMedsVo emergAttendance = domain.getEmergencyAttendanceByCareContext(careContextRefVo);

    if (emergAttendance != null)
    {
        if (emergAttendance.getArrivalDateTimeIsNotNull())
        {
            emergAttText.append(emergAttendance.getArrivalDateTime());
        }

        if (emergAttendance.getDischargeDateTimeIsNotNull())
        {
            emergAttText.append(" - "+emergAttendance.getDischargeDateTime());
        }
    }

    return emergAttText;
}
项目:AvoinApotti    文件:TriagePatientMedsImpl.java   
public EmergencyAttendanceForPatientMedsVo getEmergencyAttendanceByCareContext(CareContextRefVo careContextRef)
{
    DomainFactory factory = getDomainFactory();

    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get EmergencyAttendanceForPatientMedsVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();

    hql.append("select emergAtt from EmergencyAttendance as emergAtt where emergAtt.careContext.id = :careContextID ");

    List<?> list = factory.find(hql.toString(), new String[] {"careContextID"}, new Object[] {careContextRef.getID_CareContext()});

    if (list!=null && list.size()>0)
        return EmergencyAttendanceForPatientMedsVoAssembler.createEmergencyAttendanceForPatientMedsVoCollectionFromEmergencyAttendance(list).get(0);

    return null;    
}
项目:openMAXIMS    文件:Logic.java   
private StringBuffer getTextToDisplayFromEmergencyAttendance(CareContextRefVo careContextRefVo)
{
    StringBuffer emergAttText = new StringBuffer();
    EmergencyAttendanceForPatientMedsVo emergAttendance = domain.getEmergencyAttendance(careContextRefVo);

    if (emergAttendance != null)
    {       
        if (emergAttendance.getArrivalDateTimeIsNotNull())
        {
            emergAttText.append(emergAttendance.getArrivalDateTime().toString());
        }

        if (emergAttendance.getDischargeDateTimeIsNotNull())
        {
            emergAttText.append(" - ");
            emergAttText.append(emergAttendance.getDischargeDateTime().toString());
        }
    }

    return emergAttText;
}
项目:openMAXIMS    文件:Logic.java   
private StringBuffer getTextToDisplayFromEmergencyAttendance(CareContextRefVo careContextRefVo)
{
    StringBuffer emergAttText = new StringBuffer();
    EmergencyAttendanceForPatientMedsVo emergAttendance = domain.getEmergencyAttendanceByCareContext(careContextRefVo);

    if (emergAttendance != null)
    {
        if (emergAttendance.getArrivalDateTimeIsNotNull())
        {
            emergAttText.append(emergAttendance.getArrivalDateTime());
        }

        if (emergAttendance.getDischargeDateTimeIsNotNull())
        {
            emergAttText.append(" - "+emergAttendance.getDischargeDateTime());
        }
    }

    return emergAttText;
}
项目:openMAXIMS    文件:TriagePatientMedsImpl.java   
public EmergencyAttendanceForPatientMedsVo getEmergencyAttendanceByCareContext(CareContextRefVo careContextRef)
{
    DomainFactory factory = getDomainFactory();

    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get EmergencyAttendanceForPatientMedsVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();

    hql.append("select emergAtt from EmergencyAttendance as emergAtt where emergAtt.careContext.id = :careContextID ");

    List<?> list = factory.find(hql.toString(), new String[] {"careContextID"}, new Object[] {careContextRef.getID_CareContext()});

    if (list!=null && list.size()>0)
        return EmergencyAttendanceForPatientMedsVoAssembler.createEmergencyAttendanceForPatientMedsVoCollectionFromEmergencyAttendance(list).get(0);

    return null;    
}
项目:openMAXIMS    文件:Logic.java   
private StringBuffer getTextToDisplayFromEmergencyAttendance(CareContextRefVo careContextRefVo)
{
    StringBuffer emergAttText = new StringBuffer();
    EmergencyAttendanceForPatientMedsVo emergAttendance = domain.getEmergencyAttendance(careContextRefVo);

    if (emergAttendance != null)
    {       
        if (emergAttendance.getArrivalDateTimeIsNotNull())
        {
            emergAttText.append(emergAttendance.getArrivalDateTime().toString());
        }

        if (emergAttendance.getDischargeDateTimeIsNotNull())
        {
            emergAttText.append(" - ");
            emergAttText.append(emergAttendance.getDischargeDateTime().toString());
        }
    }

    return emergAttText;
}
项目:openMAXIMS    文件:Logic.java   
private StringBuffer getTextToDisplayFromEmergencyAttendance(CareContextRefVo careContextRefVo)
{
    StringBuffer emergAttText = new StringBuffer();
    EmergencyAttendanceForPatientMedsVo emergAttendance = domain.getEmergencyAttendanceByCareContext(careContextRefVo);

    if (emergAttendance != null)
    {
        if (emergAttendance.getArrivalDateTimeIsNotNull())
        {
            emergAttText.append(emergAttendance.getArrivalDateTime());
        }

        if (emergAttendance.getDischargeDateTimeIsNotNull())
        {
            emergAttText.append(" - "+emergAttendance.getDischargeDateTime());
        }
    }

    return emergAttText;
}
项目:openMAXIMS    文件:TriagePatientMedsImpl.java   
public EmergencyAttendanceForPatientMedsVo getEmergencyAttendanceByCareContext(CareContextRefVo careContextRef)
{
    DomainFactory factory = getDomainFactory();

    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get EmergencyAttendanceForPatientMedsVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();

    hql.append("select emergAtt from EmergencyAttendance as emergAtt where emergAtt.careContext.id = :careContextID ");

    List<?> list = factory.find(hql.toString(), new String[] {"careContextID"}, new Object[] {careContextRef.getID_CareContext()});

    if (list!=null && list.size()>0)
        return EmergencyAttendanceForPatientMedsVoAssembler.createEmergencyAttendanceForPatientMedsVoCollectionFromEmergencyAttendance(list).get(0);

    return null;    
}
项目:openmaxims-linux    文件:Logic.java   
private StringBuffer getTextToDisplayFromEmergencyAttendance(CareContextRefVo careContextRefVo)
{
    StringBuffer emergAttText = new StringBuffer();
    EmergencyAttendanceForPatientMedsVo emergAttendance = domain.getEmergencyAttendance(careContextRefVo);

    if (emergAttendance != null)
    {       
        if (emergAttendance.getArrivalDateTimeIsNotNull())
        {
            emergAttText.append(emergAttendance.getArrivalDateTime().toString());
        }

        if (emergAttendance.getDischargeDateTimeIsNotNull())
        {
            emergAttText.append(" - ");
            emergAttText.append(emergAttendance.getDischargeDateTime().toString());
        }
    }

    return emergAttText;
}
项目:openmaxims-linux    文件:Logic.java   
private StringBuffer getTextToDisplayFromEmergencyAttendance(CareContextRefVo careContextRefVo)
{
    StringBuffer emergAttText = new StringBuffer();
    EmergencyAttendanceForPatientMedsVo emergAttendance = domain.getEmergencyAttendanceByCareContext(careContextRefVo);

    if (emergAttendance != null)
    {
        if (emergAttendance.getArrivalDateTimeIsNotNull())
        {
            emergAttText.append(emergAttendance.getArrivalDateTime());
        }

        if (emergAttendance.getDischargeDateTimeIsNotNull())
        {
            emergAttText.append(" - "+emergAttendance.getDischargeDateTime());
        }
    }

    return emergAttText;
}
项目:openmaxims-linux    文件:TriagePatientMedsImpl.java   
public EmergencyAttendanceForPatientMedsVo getEmergencyAttendanceByCareContext(CareContextRefVo careContextRef)
{
    DomainFactory factory = getDomainFactory();

    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get EmergencyAttendanceForPatientMedsVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();

    hql.append("select emergAtt from EmergencyAttendance as emergAtt where emergAtt.careContext.id = :careContextID ");

    List<?> list = factory.find(hql.toString(), new String[] {"careContextID"}, new Object[] {careContextRef.getID_CareContext()});

    if (list!=null && list.size()>0)
        return EmergencyAttendanceForPatientMedsVoAssembler.createEmergencyAttendanceForPatientMedsVoCollectionFromEmergencyAttendance(list).get(0);

    return null;    
}
项目:AvoinApotti    文件:RelevantPMHImpl.java   
public EmergencyAttendanceForPatientMedsVo getEmergencyAttendance(CareContextRefVo careContextRef)
{

    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get EmergencyAttendanceVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append("select emergAtt from EmergencyAttendance as emergAtt where emergAtt.careContext.id = :careContextID ");

    List<?> list = factory.find(hql.toString(), new String[] {"careContextID"}, new Object[] {careContextRef.getID_CareContext()});

    if (list!=null && list.size()>0)
        return EmergencyAttendanceForPatientMedsVoAssembler.createEmergencyAttendanceForPatientMedsVoCollectionFromEmergencyAttendance(list).get(0);

    return null;
}
项目:openMAXIMS    文件:RelevantPMHImpl.java   
public EmergencyAttendanceForPatientMedsVo getEmergencyAttendance(CareContextRefVo careContextRef)
{

    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get EmergencyAttendanceVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append("select emergAtt from EmergencyAttendance as emergAtt where emergAtt.careContext.id = :careContextID ");

    List<?> list = factory.find(hql.toString(), new String[] {"careContextID"}, new Object[] {careContextRef.getID_CareContext()});

    if (list!=null && list.size()>0)
        return EmergencyAttendanceForPatientMedsVoAssembler.createEmergencyAttendanceForPatientMedsVoCollectionFromEmergencyAttendance(list).get(0);

    return null;
}
项目:openMAXIMS    文件:RelevantPMHImpl.java   
public EmergencyAttendanceForPatientMedsVo getEmergencyAttendance(CareContextRefVo careContextRef)
{

    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get EmergencyAttendanceVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append("select emergAtt from EmergencyAttendance as emergAtt where emergAtt.careContext.id = :careContextID ");

    List<?> list = factory.find(hql.toString(), new String[] {"careContextID"}, new Object[] {careContextRef.getID_CareContext()});

    if (list!=null && list.size()>0)
        return EmergencyAttendanceForPatientMedsVoAssembler.createEmergencyAttendanceForPatientMedsVoCollectionFromEmergencyAttendance(list).get(0);

    return null;
}
项目:openmaxims-linux    文件:RelevantPMHImpl.java   
public EmergencyAttendanceForPatientMedsVo getEmergencyAttendance(CareContextRefVo careContextRef)
{

    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get EmergencyAttendanceVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append("select emergAtt from EmergencyAttendance as emergAtt where emergAtt.careContext.id = :careContextID ");

    List<?> list = factory.find(hql.toString(), new String[] {"careContextID"}, new Object[] {careContextRef.getID_CareContext()});

    if (list!=null && list.size()>0)
        return EmergencyAttendanceForPatientMedsVoAssembler.createEmergencyAttendanceForPatientMedsVoCollectionFromEmergencyAttendance(list).get(0);

    return null;
}