Java 类ims.nursing.vo.domain.AssessmentComponentAssembler 实例源码

项目:AvoinApotti    文件:NurAssessmentComponentImpl.java   
public AssessmentComponent getLastAssessmentComponentByCareContext(CareContextShortVo voCareContext, AssessmentComponentType assessmentComponentType)
{
    DomainFactory factory = getDomainFactory();

    String hql = "select asmntComp " +
            " from ims.nursing.assessment.domain.objects.AssessmentComponent asmntComp " +
            " where asmntComp.assessment.careContext.episodeOfCare.id = :episodeID" +
            " and asmntComp.componentType = :compType"+ 
            " and asmntComp.isRIE is null"+
            " order by asmntComp.id desc";

    java.util.List components = factory.find(hql, new String[]{"episodeID", "compType"}, new Object[]{voCareContext.getEpisodeOfCare().getID_EpisodeOfCare(), getDomLookup(assessmentComponentType)});
    if ( components != null && ! components.isEmpty()) 
    {
        ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent) components.get(0);
        AssessmentComponent copyComp = getComponent(AssessmentComponentAssembler.create(comp));
        copyComp.setAssessmentInfo(null);
        copyComp.setID_AssessmentComponent(null);
        return (copyComp);              
    }

    return null;    
}
项目:AvoinApotti    文件:NurAssessmentComponentImpl.java   
public AssessmentComponent getAssessComponent(Integer admissionAssessId, AssessmentComponentType comptype) 
{
    if(admissionAssessId == null || comptype == null)
        return null;

    DomainFactory factory = getDomainFactory();

    String hql = "select a1_1 from AssessmentComponent as a1_1 left join a1_1.assessment as a2_1 where (a2_1.id = :admassesID and a1_1.componentType = :compType) and a1_1.isRIE is null";

    java.util.List components = factory.find(hql, new String[]{"admassesID", "compType"}, new Object[]{admissionAssessId,getDomLookup(comptype)});

    if ( components != null && ! components.isEmpty()) 
    {
        ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent) components.get(0);
        AssessmentComponent copyComp = getComponent(AssessmentComponentAssembler.create(comp));
        return (copyComp);              
    }

    return null;    

}
项目:AvoinApotti    文件:AssessmentComponentImpl.java   
public AssessmentComponent getLastAssessmentComponent(PatientShort patientVo, AssessmentComponentType componentTypeVo) 
{
    DomainFactory factory = getDomainFactory();

    String hql1 =  "select asmntComp " +
    " from ims.nursing.assessment.domain.objects.AssessmentComponent asmntComp " +
    " where asmntComp.assessment.careContext.episodeOfCare.careSpell.patient.id = :idPatient" +
    " and asmntComp.componentType = :compType" +
    " order by asmntComp.id desc";

    java.util.List<?> components = factory.find(hql1, new String[]{"idPatient", "compType"}, new Object[]{patientVo.getID_Patient(), getDomLookup(componentTypeVo)});

    if ( components != null && ! components.isEmpty()) 
    {
        ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent) components.get(0);
        AssessmentComponent copyComp = getComponent(AssessmentComponentAssembler.create(comp));
        copyComp.setAssessmentInfo(null);
        copyComp.setID_AssessmentComponent(null);
        return (copyComp);              
    }
    return null;
}
项目:AvoinApotti    文件:AssessmentComponentImpl.java   
public AssessmentComponent getLastAssessmentComponent(PatientShort patientVo, CareContextRefVo careContextRefVo, AssessmentComponentType componentTypeVo) 
{

    DomainFactory factory = getDomainFactory();

    String hql1 =  "select asmntComp " +
    " from ims.nursing.assessment.domain.objects.AssessmentComponent asmntComp " +
    " where asmntComp.assessment.careContext.episodeOfCare.careSpell.patient.id = :idPatient" +
    " and asmntComp.componentType = :compType" +
    " order by asmntComp.id desc";

    java.util.List<?> components = factory.find(hql1, new String[]{"idPatient", "compType"}, new Object[]{patientVo.getID_Patient(), getDomLookup(componentTypeVo)});

    if ( components != null && ! components.isEmpty()) 
    {
        ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent) components.get(0);
        AssessmentComponent copyComp = getComponent(AssessmentComponentAssembler.create(comp));
        copyComp.setAssessmentInfo(null);
        copyComp.setID_AssessmentComponent(null);
        return (copyComp);              
    } 
    return null;            
}
项目:openMAXIMS    文件:NurAssessmentComponentImpl.java   
public AssessmentComponent getLastAssessmentComponentByCareContext(CareContextShortVo voCareContext, AssessmentComponentType assessmentComponentType)
{
    DomainFactory factory = getDomainFactory();

    String hql = "select asmntComp " +
            " from ims.nursing.assessment.domain.objects.AssessmentComponent asmntComp " +
            " where asmntComp.assessment.careContext.episodeOfCare.id = :episodeID" +
            " and asmntComp.componentType = :compType"+ 
            " and asmntComp.isRIE is null"+
            " order by asmntComp.id desc";

    java.util.List components = factory.find(hql, new String[]{"episodeID", "compType"}, new Object[]{voCareContext.getEpisodeOfCare().getID_EpisodeOfCare(), getDomLookup(assessmentComponentType)});
    if ( components != null && ! components.isEmpty()) 
    {
        ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent) components.get(0);
        AssessmentComponent copyComp = getComponent(AssessmentComponentAssembler.create(comp));
        copyComp.setAssessmentInfo(null);
        copyComp.setID_AssessmentComponent(null);
        return (copyComp);              
    }

    return null;    
}
项目:openMAXIMS    文件:NurAssessmentComponentImpl.java   
public AssessmentComponent getAssessComponent(Integer admissionAssessId, AssessmentComponentType comptype) 
{
    if(admissionAssessId == null || comptype == null)
        return null;

    DomainFactory factory = getDomainFactory();

    String hql = "select a1_1 from AssessmentComponent as a1_1 left join a1_1.assessment as a2_1 where (a2_1.id = :admassesID and a1_1.componentType = :compType) and a1_1.isRIE is null";

    java.util.List components = factory.find(hql, new String[]{"admassesID", "compType"}, new Object[]{admissionAssessId,getDomLookup(comptype)});

    if ( components != null && ! components.isEmpty()) 
    {
        ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent) components.get(0);
        AssessmentComponent copyComp = getComponent(AssessmentComponentAssembler.create(comp));
        return (copyComp);              
    }

    return null;    

}
项目:openMAXIMS    文件:InfectionControlRepeatableAssessmentImpl.java   
public AssessmentComponent getInfectionComponent(InfectionControlRepeatableAssessmentVo value)
{
    DomainFactory factory = getDomainFactory();

    String hql =" from InfectionControlComponent as infectionControlComponent " +
            "where infectionControlComponent.infectionControlAssessment.id = "+value.getBoId();

    List comps = factory.find(hql);

    AssessmentComponentCollection result = AssessmentComponentAssembler.createAssessmentComponentCollectionFromAssessmentComponent(comps);

    if(result.size() >0)
        return result.get(0);
    else
        return null;
}
项目:openMAXIMS    文件:AssessmentComponentImpl.java   
public AssessmentComponent getLastAssessmentComponent(PatientShort patientVo, AssessmentComponentType componentTypeVo) 
{
    DomainFactory factory = getDomainFactory();

    String hql1 =  "select asmntComp " +
    " from ims.nursing.assessment.domain.objects.AssessmentComponent asmntComp " +
    " where asmntComp.assessment.careContext.episodeOfCare.careSpell.patient.id = :idPatient" +
    " and asmntComp.componentType = :compType" +
    " order by asmntComp.id desc";

    java.util.List<?> components = factory.find(hql1, new String[]{"idPatient", "compType"}, new Object[]{patientVo.getID_Patient(), getDomLookup(componentTypeVo)});

    if ( components != null && ! components.isEmpty()) 
    {
        ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent) components.get(0);
        AssessmentComponent copyComp = getComponent(AssessmentComponentAssembler.create(comp));
        copyComp.setAssessmentInfo(null);
        copyComp.setID_AssessmentComponent(null);
        return (copyComp);              
    }
    return null;
}
项目:openMAXIMS    文件:AssessmentComponentImpl.java   
public AssessmentComponent getLastAssessmentComponent(PatientShort patientVo, CareContextRefVo careContextRefVo, AssessmentComponentType componentTypeVo) 
{

    DomainFactory factory = getDomainFactory();

    String hql1 =  "select asmntComp " +
    " from ims.nursing.assessment.domain.objects.AssessmentComponent asmntComp " +
    " where asmntComp.assessment.careContext.episodeOfCare.careSpell.patient.id = :idPatient" +
    " and asmntComp.componentType = :compType" +
    " order by asmntComp.id desc";

    java.util.List<?> components = factory.find(hql1, new String[]{"idPatient", "compType"}, new Object[]{patientVo.getID_Patient(), getDomLookup(componentTypeVo)});

    if ( components != null && ! components.isEmpty()) 
    {
        ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent) components.get(0);
        AssessmentComponent copyComp = getComponent(AssessmentComponentAssembler.create(comp));
        copyComp.setAssessmentInfo(null);
        copyComp.setID_AssessmentComponent(null);
        return (copyComp);              
    } 
    return null;            
}
项目:openMAXIMS    文件:NurAssessmentComponentImpl.java   
public AssessmentComponent getLastAssessmentComponentByCareContext(CareContextShortVo voCareContext, AssessmentComponentType assessmentComponentType)
{
    DomainFactory factory = getDomainFactory();

    String hql = "select asmntComp " +
            " from ims.nursing.assessment.domain.objects.AssessmentComponent asmntComp " +
            " where asmntComp.assessment.careContext.episodeOfCare.id = :episodeID" +
            " and asmntComp.componentType = :compType"+ 
            " and asmntComp.isRIE is null"+
            " order by asmntComp.id desc";

    java.util.List components = factory.find(hql, new String[]{"episodeID", "compType"}, new Object[]{voCareContext.getEpisodeOfCare().getID_EpisodeOfCare(), getDomLookup(assessmentComponentType)});
    if ( components != null && ! components.isEmpty()) 
    {
        ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent) components.get(0);
        AssessmentComponent copyComp = getComponent(AssessmentComponentAssembler.create(comp));
        copyComp.setAssessmentInfo(null);
        copyComp.setID_AssessmentComponent(null);
        return (copyComp);              
    }

    return null;    
}
项目:openMAXIMS    文件:NurAssessmentComponentImpl.java   
public AssessmentComponent getAssessComponent(Integer admissionAssessId, AssessmentComponentType comptype) 
{
    if(admissionAssessId == null || comptype == null)
        return null;

    DomainFactory factory = getDomainFactory();

    String hql = "select a1_1 from AssessmentComponent as a1_1 left join a1_1.assessment as a2_1 where (a2_1.id = :admassesID and a1_1.componentType = :compType) and a1_1.isRIE is null";

    java.util.List components = factory.find(hql, new String[]{"admassesID", "compType"}, new Object[]{admissionAssessId,getDomLookup(comptype)});

    if ( components != null && ! components.isEmpty()) 
    {
        ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent) components.get(0);
        AssessmentComponent copyComp = getComponent(AssessmentComponentAssembler.create(comp));
        return (copyComp);              
    }

    return null;    

}
项目:openMAXIMS    文件:AssessmentComponentImpl.java   
public AssessmentComponent getLastAssessmentComponent(PatientShort patientVo, AssessmentComponentType componentTypeVo) 
{
    DomainFactory factory = getDomainFactory();

    String hql1 =  "select asmntComp " +
    " from ims.nursing.assessment.domain.objects.AssessmentComponent asmntComp " +
    " where asmntComp.assessment.careContext.episodeOfCare.careSpell.patient.id = :idPatient" +
    " and asmntComp.componentType = :compType" +
    " order by asmntComp.id desc";

    java.util.List<?> components = factory.find(hql1, new String[]{"idPatient", "compType"}, new Object[]{patientVo.getID_Patient(), getDomLookup(componentTypeVo)});

    if ( components != null && ! components.isEmpty()) 
    {
        ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent) components.get(0);
        AssessmentComponent copyComp = getComponent(AssessmentComponentAssembler.create(comp));
        copyComp.setAssessmentInfo(null);
        copyComp.setID_AssessmentComponent(null);
        return (copyComp);              
    }
    return null;
}
项目:openMAXIMS    文件:AssessmentComponentImpl.java   
public AssessmentComponent getLastAssessmentComponent(PatientShort patientVo, CareContextRefVo careContextRefVo, AssessmentComponentType componentTypeVo) 
{

    DomainFactory factory = getDomainFactory();

    String hql1 =  "select asmntComp " +
    " from ims.nursing.assessment.domain.objects.AssessmentComponent asmntComp " +
    " where asmntComp.assessment.careContext.episodeOfCare.careSpell.patient.id = :idPatient" +
    " and asmntComp.componentType = :compType" +
    " order by asmntComp.id desc";

    java.util.List<?> components = factory.find(hql1, new String[]{"idPatient", "compType"}, new Object[]{patientVo.getID_Patient(), getDomLookup(componentTypeVo)});

    if ( components != null && ! components.isEmpty()) 
    {
        ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent) components.get(0);
        AssessmentComponent copyComp = getComponent(AssessmentComponentAssembler.create(comp));
        copyComp.setAssessmentInfo(null);
        copyComp.setID_AssessmentComponent(null);
        return (copyComp);              
    } 
    return null;            
}
项目:openmaxims-linux    文件:NurAssessmentComponentImpl.java   
public AssessmentComponent getLastAssessmentComponentByCareContext(CareContextShortVo voCareContext, AssessmentComponentType assessmentComponentType)
{
    DomainFactory factory = getDomainFactory();

    String hql = "select asmntComp " +
            " from ims.nursing.assessment.domain.objects.AssessmentComponent asmntComp " +
            " where asmntComp.assessment.careContext.episodeOfCare.id = :episodeID" +
            " and asmntComp.componentType = :compType"+ 
            " and asmntComp.isRIE is null"+
            " order by asmntComp.id desc";

    java.util.List components = factory.find(hql, new String[]{"episodeID", "compType"}, new Object[]{voCareContext.getEpisodeOfCare().getID_EpisodeOfCare(), getDomLookup(assessmentComponentType)});
    if ( components != null && ! components.isEmpty()) 
    {
        ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent) components.get(0);
        AssessmentComponent copyComp = getComponent(AssessmentComponentAssembler.create(comp));
        copyComp.setAssessmentInfo(null);
        copyComp.setID_AssessmentComponent(null);
        return (copyComp);              
    }

    return null;    
}
项目:openmaxims-linux    文件:NurAssessmentComponentImpl.java   
public AssessmentComponent getAssessComponent(Integer admissionAssessId, AssessmentComponentType comptype) 
{
    if(admissionAssessId == null || comptype == null)
        return null;

    DomainFactory factory = getDomainFactory();

    String hql = "select a1_1 from AssessmentComponent as a1_1 left join a1_1.assessment as a2_1 where (a2_1.id = :admassesID and a1_1.componentType = :compType) and a1_1.isRIE is null";

    java.util.List components = factory.find(hql, new String[]{"admassesID", "compType"}, new Object[]{admissionAssessId,getDomLookup(comptype)});

    if ( components != null && ! components.isEmpty()) 
    {
        ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent) components.get(0);
        AssessmentComponent copyComp = getComponent(AssessmentComponentAssembler.create(comp));
        return (copyComp);              
    }

    return null;    

}
项目:openmaxims-linux    文件:AssessmentComponentImpl.java   
public AssessmentComponent getLastAssessmentComponent(PatientShort patientVo, AssessmentComponentType componentTypeVo) 
{
    DomainFactory factory = getDomainFactory();

    String hql1 =  "select asmntComp " +
    " from ims.nursing.assessment.domain.objects.AssessmentComponent asmntComp " +
    " where asmntComp.assessment.careContext.episodeOfCare.careSpell.patient.id = :idPatient" +
    " and asmntComp.componentType = :compType" +
    " order by asmntComp.id desc";

    java.util.List<?> components = factory.find(hql1, new String[]{"idPatient", "compType"}, new Object[]{patientVo.getID_Patient(), getDomLookup(componentTypeVo)});

    if ( components != null && ! components.isEmpty()) 
    {
        ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent) components.get(0);
        AssessmentComponent copyComp = getComponent(AssessmentComponentAssembler.create(comp));
        copyComp.setAssessmentInfo(null);
        copyComp.setID_AssessmentComponent(null);
        return (copyComp);              
    }
    return null;
}
项目:openmaxims-linux    文件:AssessmentComponentImpl.java   
public AssessmentComponent getLastAssessmentComponent(PatientShort patientVo, CareContextRefVo careContextRefVo, AssessmentComponentType componentTypeVo) 
{

    DomainFactory factory = getDomainFactory();

    String hql1 =  "select asmntComp " +
    " from ims.nursing.assessment.domain.objects.AssessmentComponent asmntComp " +
    " where asmntComp.assessment.careContext.episodeOfCare.careSpell.patient.id = :idPatient" +
    " and asmntComp.componentType = :compType" +
    " order by asmntComp.id desc";

    java.util.List<?> components = factory.find(hql1, new String[]{"idPatient", "compType"}, new Object[]{patientVo.getID_Patient(), getDomLookup(componentTypeVo)});

    if ( components != null && ! components.isEmpty()) 
    {
        ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent) components.get(0);
        AssessmentComponent copyComp = getComponent(AssessmentComponentAssembler.create(comp));
        copyComp.setAssessmentInfo(null);
        copyComp.setID_AssessmentComponent(null);
        return (copyComp);              
    } 
    return null;            
}
项目:AvoinApotti    文件:AdmissionAssessOverviewImpl.java   
public AssessmentComponent getComponent(AssessmentComponentRefVo assessCompRefVo)
{
    DomainFactory factory = getDomainFactory();     
    ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent)factory.getDomainObject(ims.nursing.assessment.domain.objects.AssessmentComponent.class, assessCompRefVo.getID_AssessmentComponent());
    return AssessmentComponentAssembler.create(comp);
}
项目:openMAXIMS    文件:AdmissionAssessOverviewImpl.java   
public AssessmentComponent getComponent(AssessmentComponentRefVo assessCompRefVo)
{
    DomainFactory factory = getDomainFactory();     
    ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent)factory.getDomainObject(ims.nursing.assessment.domain.objects.AssessmentComponent.class, assessCompRefVo.getID_AssessmentComponent());
    return AssessmentComponentAssembler.create(comp);
}
项目:openMAXIMS    文件:AdmissionAssessOverviewImpl.java   
public AssessmentComponent getComponent(AssessmentComponentRefVo assessCompRefVo)
{
    DomainFactory factory = getDomainFactory();     
    ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent)factory.getDomainObject(ims.nursing.assessment.domain.objects.AssessmentComponent.class, assessCompRefVo.getID_AssessmentComponent());
    return AssessmentComponentAssembler.create(comp);
}
项目:openmaxims-linux    文件:AdmissionAssessOverviewImpl.java   
public AssessmentComponent getComponent(AssessmentComponentRefVo assessCompRefVo)
{
    DomainFactory factory = getDomainFactory();     
    ims.nursing.assessment.domain.objects.AssessmentComponent comp = (ims.nursing.assessment.domain.objects.AssessmentComponent)factory.getDomainObject(ims.nursing.assessment.domain.objects.AssessmentComponent.class, assessCompRefVo.getID_AssessmentComponent());
    return AssessmentComponentAssembler.create(comp);
}