Java 类ims.clinical.vo.domain.PatientPMHChecklistVoAssembler 实例源码

项目:AvoinApotti    文件:PMHCheckListImpl.java   
public PatientPMHChecklistVo getPatientPMHChecklist(CareContextRefVo refVoCareContext) 
{
    if(refVoCareContext == null || refVoCareContext.getID_CareContext() == null)
        throw new DomainRuntimeException("Contact not provided for get call. ");

    DomainFactory factory = getDomainFactory();

    java.util.List patientPMHChecklist = factory.find("from  PatientPMHChecklist pmhlist where pmhlist.careContext.id = :contactId", new String[]{"contactId"}, new Object[]{refVoCareContext.getID_CareContext()});

    if (patientPMHChecklist.size()>0)
        return PatientPMHChecklistVoAssembler.createPatientPMHChecklistVoCollectionFromPatientPMHChecklist(patientPMHChecklist).get(0);
    else
        return null;
}
项目:openMAXIMS    文件:PMHCheckListImpl.java   
public PatientPMHChecklistVo getPatientPMHChecklist(CareContextRefVo refVoCareContext) 
{
    if(refVoCareContext == null || refVoCareContext.getID_CareContext() == null)
        throw new DomainRuntimeException("Contact not provided for get call. ");

    DomainFactory factory = getDomainFactory();

    java.util.List patientPMHChecklist = factory.find("from  PatientPMHChecklist pmhlist where pmhlist.careContext.id = :contactId", new String[]{"contactId"}, new Object[]{refVoCareContext.getID_CareContext()});

    if (patientPMHChecklist.size()>0)
        return PatientPMHChecklistVoAssembler.createPatientPMHChecklistVoCollectionFromPatientPMHChecklist(patientPMHChecklist).get(0);
    else
        return null;
}
项目:openMAXIMS    文件:PMHCheckListImpl.java   
public PatientPMHChecklistVo getPatientPMHChecklist(CareContextRefVo refVoCareContext) 
{
    if(refVoCareContext == null || refVoCareContext.getID_CareContext() == null)
        throw new DomainRuntimeException("Contact not provided for get call. ");

    DomainFactory factory = getDomainFactory();

    java.util.List patientPMHChecklist = factory.find("from  PatientPMHChecklist pmhlist where pmhlist.careContext.id = :contactId", new String[]{"contactId"}, new Object[]{refVoCareContext.getID_CareContext()});

    if (patientPMHChecklist.size()>0)
        return PatientPMHChecklistVoAssembler.createPatientPMHChecklistVoCollectionFromPatientPMHChecklist(patientPMHChecklist).get(0);
    else
        return null;
}
项目:openmaxims-linux    文件:PMHCheckListImpl.java   
public PatientPMHChecklistVo getPatientPMHChecklist(CareContextRefVo refVoCareContext) 
{
    if(refVoCareContext == null || refVoCareContext.getID_CareContext() == null)
        throw new DomainRuntimeException("Contact not provided for get call. ");

    DomainFactory factory = getDomainFactory();

    java.util.List patientPMHChecklist = factory.find("from  PatientPMHChecklist pmhlist where pmhlist.careContext.id = :contactId", new String[]{"contactId"}, new Object[]{refVoCareContext.getID_CareContext()});

    if (patientPMHChecklist.size()>0)
        return PatientPMHChecklistVoAssembler.createPatientPMHChecklistVoCollectionFromPatientPMHChecklist(patientPMHChecklist).get(0);
    else
        return null;
}