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

项目:AvoinApotti    文件:TriageProtocolAssessmentImpl.java   
public Boolean getIsPatientInED(TriageRefVo triage)
{
    if (triage == null || triage.getID_Triage() == null)
        return Boolean.FALSE;

    String query = "SELECT tracking.isDischarged FROM Tracking AS tracking LEFT JOIN tracking.triageDetails AS triage WHERE triage.id = :ID_TRIAGE";

    List<?> results = getDomainFactory().find(query, "ID_TRIAGE", triage.getID_Triage());

    if (results != null && results.size() > 0)
    {
        if (Boolean.TRUE.equals(results.get(0)))
            return Boolean.FALSE;
    }

    return Boolean.TRUE;
}
项目:openMAXIMS    文件:TriageProtocolAssessmentImpl.java   
public Boolean getIsPatientInED(TriageRefVo triage)
{
    if (triage == null || triage.getID_Triage() == null)
        return Boolean.FALSE;

    String query = "SELECT tracking.isDischarged FROM Tracking AS tracking LEFT JOIN tracking.triageDetails AS triage WHERE triage.id = :ID_TRIAGE";

    List<?> results = getDomainFactory().find(query, "ID_TRIAGE", triage.getID_Triage());

    if (results != null && results.size() > 0)
    {
        if (Boolean.TRUE.equals(results.get(0)))
            return Boolean.FALSE;
    }

    return Boolean.TRUE;
}
项目:openMAXIMS    文件:TriageProtocolAssessmentImpl.java   
public Boolean isAbdominalPainProtocol(TriageRefVo refTriage)
{
    if (refTriage == null || refTriage.getID_Triage() == null)
        return false; 

    StringBuilder query = new StringBuilder();
    query.append("SELECT manTriage FROM Triage as t LEFT JOIN t.currentTriageAssessment as cta LEFT JOIN cta.triageProtocol as manTriage LEFT JOIN manTriage.taxonomyMap as tm LEFT JOIN tm.taxonomyName as tnm LEFT JOIN manTriage.activeStatus as activeS");
    query.append(" WHERE t.id =:trID AND activeS.id =:ACTIVE AND tnm.id =:taxNameID AND tm.taxonomyCode =:taxCode ");

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    paramNames.add("trID");         paramValues.add(refTriage.getID_Triage());
    paramNames.add("ACTIVE");       paramValues.add(PreActiveActiveInactiveStatus.ACTIVE.getID());
    paramNames.add("taxNameID");    paramValues.add(TaxonomyType.MAXIMS_INTERNAL.getID());
    paramNames.add("taxCode");      paramValues.add("ABD_PAIN");

    List triageProtocol = getDomainFactory().find(query.toString(), paramNames, paramValues);

    if (triageProtocol != null && triageProtocol.size() > 0)
        return true;

    return false;
}
项目:openMAXIMS    文件:TriageProtocolAssessmentImpl.java   
public Boolean getIsPatientInED(TriageRefVo triage)
{
    if (triage == null || triage.getID_Triage() == null)
        return Boolean.FALSE;

    String query = "SELECT tracking.isDischarged FROM Tracking AS tracking LEFT JOIN tracking.triageDetails AS triage WHERE triage.id = :ID_TRIAGE";

    List<?> results = getDomainFactory().find(query, "ID_TRIAGE", triage.getID_Triage());

    if (results != null && results.size() > 0)
    {
        if (Boolean.TRUE.equals(results.get(0)))
            return Boolean.FALSE;
    }

    return Boolean.TRUE;
}
项目:openmaxims-linux    文件:TriageProtocolAssessmentImpl.java   
public Boolean getIsPatientInED(TriageRefVo triage)
{
    if (triage == null || triage.getID_Triage() == null)
        return Boolean.FALSE;

    String query = "SELECT tracking.isDischarged FROM Tracking AS tracking LEFT JOIN tracking.triageDetails AS triage WHERE triage.id = :ID_TRIAGE";

    List<?> results = getDomainFactory().find(query, "ID_TRIAGE", triage.getID_Triage());

    if (results != null && results.size() > 0)
    {
        if (Boolean.TRUE.equals(results.get(0)))
            return Boolean.FALSE;
    }

    return Boolean.TRUE;
}
项目:AvoinApotti    文件:TriageProtocolAssessmentImpl.java   
public TriageForTriageProtocolAssessmentVo getTriage(TriageRefVo triage)
{
    if (triage == null || triage.getID_Triage() == null)
        return null;

    return TriageForTriageProtocolAssessmentVoAssembler.create((Triage) getDomainFactory().getDomainObject(Triage.class, triage.getID_Triage()));
}
项目:openMAXIMS    文件:VitalSignsAllCcImpl.java   
public TriageForClinicianWorklistVo getTriage(TriageRefVo triageRef)
{
    if (triageRef == null || triageRef.getID_Triage()==null)
        throw new CodingRuntimeException("Can not retrieve TriageForClinicianWorklistVo for null triage.");

    Triage doTriage = (Triage)getDomainFactory().getDomainObject(Triage.class,triageRef.getID_Triage()); 
    return TriageForClinicianWorklistVoAssembler.create(doTriage);
}
项目:openMAXIMS    文件:Logic.java   
@Override
public void initialize(CareContextRefVo attendanceRefVo, TriageRefVo triageRefVo) 
{
    form.getLocalContext().setCurrentTriage(triageRefVo);
    form.getLocalContext().setCurrentCareContext(attendanceRefVo);
    open();
}
项目:openMAXIMS    文件:TriageProtocolAssessmentImpl.java   
public TriageForTriageProtocolAssessmentVo getTriage(TriageRefVo triage)
{
    if (triage == null || triage.getID_Triage() == null)
        return null;

    return TriageForTriageProtocolAssessmentVoAssembler.create((Triage) getDomainFactory().getDomainObject(Triage.class, triage.getID_Triage()));
}
项目:openMAXIMS    文件:TriageProtocolAssessmentImpl.java   
public TriageForTriageProtocolAssessmentVo getTriage(TriageRefVo triage)
{
    if (triage == null || triage.getID_Triage() == null)
        return null;

    return TriageForTriageProtocolAssessmentVoAssembler.create((Triage) getDomainFactory().getDomainObject(Triage.class, triage.getID_Triage()));
}
项目:openmaxims-linux    文件:TriageProtocolAssessmentImpl.java   
public TriageForTriageProtocolAssessmentVo getTriage(TriageRefVo triage)
{
    if (triage == null || triage.getID_Triage() == null)
        return null;

    return TriageForTriageProtocolAssessmentVoAssembler.create((Triage) getDomainFactory().getDomainObject(Triage.class, triage.getID_Triage()));
}