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

项目:AvoinApotti    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public SurgicalOperationNotesVo getSurgicalOperation(CareContextRefVo careContextRefVo) 
{
    if(careContextRefVo == null)
        throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. ");

    if(careContextRefVo != null)
    {
        DomainFactory factory = getDomainFactory();
        List list = factory.find("from SurgicalOperationNotes as s1_1 where (s1_1.careContext.id = :careContextId)" , new String[] {"careContextId"}, new Object[] {careContextRefVo.getID_CareContext()}); 
        if(list != null && list.size() > 0)
        { 
            SurgicalOperationNotesVoCollection voColl = SurgicalOperationNotesVoAssembler.createSurgicalOperationNotesVoCollectionFromSurgicalOperationNotes(list);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;
}
项目:openMAXIMS    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public SurgicalOperationNotesVo getSurgicalOperation(CareContextRefVo careContextRefVo) 
{
    if(careContextRefVo == null)
        throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. ");

    if(careContextRefVo != null)
    {
        DomainFactory factory = getDomainFactory();
        List list = factory.find("from SurgicalOperationNotes as s1_1 where (s1_1.careContext.id = :careContextId)" , new String[] {"careContextId"}, new Object[] {careContextRefVo.getID_CareContext()}); 
        if(list != null && list.size() > 0)
        { 
            SurgicalOperationNotesVoCollection voColl = SurgicalOperationNotesVoAssembler.createSurgicalOperationNotesVoCollectionFromSurgicalOperationNotes(list);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;
}
项目:openMAXIMS    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public SurgicalOperationNotesVo getSurgicalOperation(CareContextRefVo careContextRefVo) 
{
    if(careContextRefVo == null)
        throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. ");

    if(careContextRefVo != null)
    {
        DomainFactory factory = getDomainFactory();
        List list = factory.find("from SurgicalOperationNotes as s1_1 where (s1_1.careContext.id = :careContextId)" , new String[] {"careContextId"}, new Object[] {careContextRefVo.getID_CareContext()}); 
        if(list != null && list.size() > 0)
        { 
            SurgicalOperationNotesVoCollection voColl = SurgicalOperationNotesVoAssembler.createSurgicalOperationNotesVoCollectionFromSurgicalOperationNotes(list);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;
}
项目:openmaxims-linux    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public SurgicalOperationNotesVo getSurgicalOperation(CareContextRefVo careContextRefVo) 
{
    if(careContextRefVo == null)
        throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. ");

    if(careContextRefVo != null)
    {
        DomainFactory factory = getDomainFactory();
        List list = factory.find("from SurgicalOperationNotes as s1_1 where (s1_1.careContext.id = :careContextId)" , new String[] {"careContextId"}, new Object[] {careContextRefVo.getID_CareContext()}); 
        if(list != null && list.size() > 0)
        { 
            SurgicalOperationNotesVoCollection voColl = SurgicalOperationNotesVoAssembler.createSurgicalOperationNotesVoCollectionFromSurgicalOperationNotes(list);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;
}
项目:AvoinApotti    文件:SurgicalOPNotesOperationDetailsCCImpl.java   
@SuppressWarnings("unchecked")
public ims.clinical.vo.SurgicalOperationNotesVo getOperationNotes(ims.core.admin.vo.CareContextRefVo careContextRef)
{
    String query = "from SurgicalOperationNotes as s1_1 where (s1_1.careContext.id = :careContextID)";
    List<Object> domObj = getDomainFactory().find(query,new String[]{"careContextID"} , new Object[]{careContextRef.getID_CareContext()});
    if (domObj == null || domObj.size() == 0)
        return null;
    return SurgicalOperationNotesVoAssembler.create((SurgicalOperationNotes) domObj.get(0));
}
项目:AvoinApotti    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public SurgicalOperationNotesVo getOperationNotes(CareContextRefVo careContextRef) 
{
    String query = "from SurgicalOperationNotes as s1_1 where (s1_1.careContext.id = :careContextID)";
    List<Object> domObj = getDomainFactory().find(query,new String[]{"careContextID"} , new Object[]{careContextRef.getID_CareContext()});
    if (domObj == null || domObj.size() == 0)
        return null;
    return SurgicalOperationNotesVoAssembler.create((SurgicalOperationNotes) domObj.get(0));
}
项目:openMAXIMS    文件:SurgicalOPNotesOperationDetailsCCImpl.java   
@SuppressWarnings("unchecked")
public ims.clinical.vo.SurgicalOperationNotesVo getOperationNotes(ims.core.admin.vo.CareContextRefVo careContextRef)
{
    String query = "from SurgicalOperationNotes as s1_1 where (s1_1.careContext.id = :careContextID)";
    List<Object> domObj = getDomainFactory().find(query,new String[]{"careContextID"} , new Object[]{careContextRef.getID_CareContext()});
    if (domObj == null || domObj.size() == 0)
        return null;
    return SurgicalOperationNotesVoAssembler.create((SurgicalOperationNotes) domObj.get(0));
}
项目:openMAXIMS    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public SurgicalOperationNotesVo getOperationNotes(CareContextRefVo careContextRef) 
{
    String query = "from SurgicalOperationNotes as s1_1 where (s1_1.careContext.id = :careContextID)";
    List<Object> domObj = getDomainFactory().find(query,new String[]{"careContextID"} , new Object[]{careContextRef.getID_CareContext()});
    if (domObj == null || domObj.size() == 0)
        return null;
    return SurgicalOperationNotesVoAssembler.create((SurgicalOperationNotes) domObj.get(0));
}
项目:openMAXIMS    文件:SurgicalOPNotesOperationDetailsCCImpl.java   
@SuppressWarnings("unchecked")
public ims.clinical.vo.SurgicalOperationNotesVo getOperationNotes(ims.core.admin.vo.CareContextRefVo careContextRef)
{
    String query = "from SurgicalOperationNotes as s1_1 where (s1_1.careContext.id = :careContextID)";
    List<Object> domObj = getDomainFactory().find(query,new String[]{"careContextID"} , new Object[]{careContextRef.getID_CareContext()});
    if (domObj == null || domObj.size() == 0)
        return null;
    return SurgicalOperationNotesVoAssembler.create((SurgicalOperationNotes) domObj.get(0));
}
项目:openMAXIMS    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public SurgicalOperationNotesVo getOperationNotes(CareContextRefVo careContextRef) 
{
    String query = "from SurgicalOperationNotes as s1_1 where (s1_1.careContext.id = :careContextID)";
    List<Object> domObj = getDomainFactory().find(query,new String[]{"careContextID"} , new Object[]{careContextRef.getID_CareContext()});
    if (domObj == null || domObj.size() == 0)
        return null;
    return SurgicalOperationNotesVoAssembler.create((SurgicalOperationNotes) domObj.get(0));
}
项目:openmaxims-linux    文件:SurgicalOPNotesOperationDetailsCCImpl.java   
@SuppressWarnings("unchecked")
public ims.clinical.vo.SurgicalOperationNotesVo getOperationNotes(ims.core.admin.vo.CareContextRefVo careContextRef)
{
    String query = "from SurgicalOperationNotes as s1_1 where (s1_1.careContext.id = :careContextID)";
    List<Object> domObj = getDomainFactory().find(query,new String[]{"careContextID"} , new Object[]{careContextRef.getID_CareContext()});
    if (domObj == null || domObj.size() == 0)
        return null;
    return SurgicalOperationNotesVoAssembler.create((SurgicalOperationNotes) domObj.get(0));
}
项目:openmaxims-linux    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public SurgicalOperationNotesVo getOperationNotes(CareContextRefVo careContextRef) 
{
    String query = "from SurgicalOperationNotes as s1_1 where (s1_1.careContext.id = :careContextID)";
    List<Object> domObj = getDomainFactory().find(query,new String[]{"careContextID"} , new Object[]{careContextRef.getID_CareContext()});
    if (domObj == null || domObj.size() == 0)
        return null;
    return SurgicalOperationNotesVoAssembler.create((SurgicalOperationNotes) domObj.get(0));
}