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

项目:AvoinApotti    文件:SurgicalAuditHelper.java   
public SurgicalAuditOperationDetailVoCollection listSurgicalAuditOperationDetailByCareContext(CareContextRefVo careContextRef)
{   
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVoCollection on null Id for CareContext ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select surgAudit from SurgicalAuditOperationDetail as surgAudit where surgAudit.careContext.id = :careContextID order by surgAudit.systemInformation.creationDateTime desc ");

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

    return SurgicalAuditOperationDetailVoAssembler.createSurgicalAuditOperationDetailVoCollectionFromSurgicalAuditOperationDetail(list);

}
项目:openMAXIMS    文件:SurgicalAuditHelper.java   
public SurgicalAuditOperationDetailVoCollection listSurgicalAuditOperationDetailByCareContext(CareContextRefVo careContextRef)
{   
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVoCollection on null Id for CareContext ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select surgAudit from SurgicalAuditOperationDetail as surgAudit where surgAudit.careContext.id = :careContextID order by surgAudit.systemInformation.creationDateTime desc ");

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

    return SurgicalAuditOperationDetailVoAssembler.createSurgicalAuditOperationDetailVoCollectionFromSurgicalAuditOperationDetail(list);

}
项目:openMAXIMS    文件:SurgicalAuditHelper.java   
public SurgicalAuditOperationDetailVoCollection listSurgicalAuditOperationDetailByCareContext(CareContextRefVo careContextRef)
{   
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVoCollection on null Id for CareContext ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select surgAudit from SurgicalAuditOperationDetail as surgAudit where surgAudit.careContext.id = :careContextID order by surgAudit.systemInformation.creationDateTime desc ");

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

    return SurgicalAuditOperationDetailVoAssembler.createSurgicalAuditOperationDetailVoCollectionFromSurgicalAuditOperationDetail(list);

}
项目:openmaxims-linux    文件:SurgicalAuditHelper.java   
public SurgicalAuditOperationDetailVoCollection listSurgicalAuditOperationDetailByCareContext(CareContextRefVo careContextRef)
{   
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVoCollection on null Id for CareContext ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();
    hql.append("select surgAudit from SurgicalAuditOperationDetail as surgAudit where surgAudit.careContext.id = :careContextID order by surgAudit.systemInformation.creationDateTime desc ");

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

    return SurgicalAuditOperationDetailVoAssembler.createSurgicalAuditOperationDetailVoCollectionFromSurgicalAuditOperationDetail(list);

}
项目:AvoinApotti    文件:SurgicalAuditHelper.java   
public SurgicalAuditOperationDetailVo getSurgicalAuditOperationDetail(SurgicalAuditOperationDetailRefVo surgicalAuditOpRef)
{
    if (surgicalAuditOpRef == null || surgicalAuditOpRef.getID_SurgicalAuditOperationDetail() == null)
    {
        throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    SurgicalAuditOperationDetail domainSurgicalAudit = (SurgicalAuditOperationDetail) factory.getDomainObject(SurgicalAuditOperationDetail.class, surgicalAuditOpRef.getID_SurgicalAuditOperationDetail());

    return SurgicalAuditOperationDetailVoAssembler.create(domainSurgicalAudit);
}
项目:AvoinApotti    文件:SurgicalAuditHelper.java   
public SurgicalAuditOperationDetailVo saveSurgicalAuditOperationDetail(ims.clinical.vo.SurgicalAuditOperationDetailVo record) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    if (record == null )
    {
        throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    SurgicalAuditOperationDetail domainSurgicalAudit = SurgicalAuditOperationDetailVoAssembler.extractSurgicalAuditOperationDetail(factory, record);
    factory.save(domainSurgicalAudit);
    return SurgicalAuditOperationDetailVoAssembler.create(domainSurgicalAudit);
}
项目:AvoinApotti    文件:SurgicalAuditProcedureDetailsImpl.java   
public SurgicalAuditOperationDetailVo saveAndMarkAsRIE(SurgicalAuditOperationDetailVo surgAuditToSave, SurgicalAuditProcedureDetailsVo surgAuditProcedureDetails, FormName form, Integer patId, Integer careContextId, String comment) throws StaleObjectException
{
    if (surgAuditToSave == null || surgAuditProcedureDetails==null)
    {
        throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    SurgicalAuditOperationDetail domainSurgicalAudit = SurgicalAuditOperationDetailVoAssembler.extractSurgicalAuditOperationDetail(factory, surgAuditToSave);
    factory.save(domainSurgicalAudit);
    factory.markAsRie(SurgicalAuditProcedureDetails.class, surgAuditProcedureDetails.getID_SurgicalAuditProcedureDetails(), form, patId, null, careContextId, comment);
    return SurgicalAuditOperationDetailVoAssembler.create(domainSurgicalAudit);
}
项目:openMAXIMS    文件:SurgicalAuditHelper.java   
public SurgicalAuditOperationDetailVo getSurgicalAuditOperationDetail(SurgicalAuditOperationDetailRefVo surgicalAuditOpRef)
{
    if (surgicalAuditOpRef == null || surgicalAuditOpRef.getID_SurgicalAuditOperationDetail() == null)
    {
        throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    SurgicalAuditOperationDetail domainSurgicalAudit = (SurgicalAuditOperationDetail) factory.getDomainObject(SurgicalAuditOperationDetail.class, surgicalAuditOpRef.getID_SurgicalAuditOperationDetail());

    return SurgicalAuditOperationDetailVoAssembler.create(domainSurgicalAudit);
}
项目:openMAXIMS    文件:SurgicalAuditHelper.java   
public SurgicalAuditOperationDetailVo saveSurgicalAuditOperationDetail(ims.clinical.vo.SurgicalAuditOperationDetailVo record) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    if (record == null )
    {
        throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    SurgicalAuditOperationDetail domainSurgicalAudit = SurgicalAuditOperationDetailVoAssembler.extractSurgicalAuditOperationDetail(factory, record);
    factory.save(domainSurgicalAudit);
    return SurgicalAuditOperationDetailVoAssembler.create(domainSurgicalAudit);
}
项目:openMAXIMS    文件:SurgicalAuditProcedureDetailsImpl.java   
public SurgicalAuditOperationDetailVo saveAndMarkAsRIE(SurgicalAuditOperationDetailVo surgAuditToSave, SurgicalAuditProcedureDetailsVo surgAuditProcedureDetails, FormName form, Integer patId, Integer careContextId, String comment) throws StaleObjectException
{
    if (surgAuditToSave == null || surgAuditProcedureDetails==null)
    {
        throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    SurgicalAuditOperationDetail domainSurgicalAudit = SurgicalAuditOperationDetailVoAssembler.extractSurgicalAuditOperationDetail(factory, surgAuditToSave);
    factory.save(domainSurgicalAudit);
    factory.markAsRie(SurgicalAuditProcedureDetails.class, surgAuditProcedureDetails.getID_SurgicalAuditProcedureDetails(), form, patId, null, careContextId, comment);
    return SurgicalAuditOperationDetailVoAssembler.create(domainSurgicalAudit);
}
项目:openMAXIMS    文件:SurgicalAuditHelper.java   
public SurgicalAuditOperationDetailVo getSurgicalAuditOperationDetail(SurgicalAuditOperationDetailRefVo surgicalAuditOpRef)
{
    if (surgicalAuditOpRef == null || surgicalAuditOpRef.getID_SurgicalAuditOperationDetail() == null)
    {
        throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    SurgicalAuditOperationDetail domainSurgicalAudit = (SurgicalAuditOperationDetail) factory.getDomainObject(SurgicalAuditOperationDetail.class, surgicalAuditOpRef.getID_SurgicalAuditOperationDetail());

    return SurgicalAuditOperationDetailVoAssembler.create(domainSurgicalAudit);
}
项目:openMAXIMS    文件:SurgicalAuditHelper.java   
public SurgicalAuditOperationDetailVo saveSurgicalAuditOperationDetail(ims.clinical.vo.SurgicalAuditOperationDetailVo record) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    if (record == null )
    {
        throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    SurgicalAuditOperationDetail domainSurgicalAudit = SurgicalAuditOperationDetailVoAssembler.extractSurgicalAuditOperationDetail(factory, record);
    factory.save(domainSurgicalAudit);
    return SurgicalAuditOperationDetailVoAssembler.create(domainSurgicalAudit);
}
项目:openMAXIMS    文件:SurgicalAuditProcedureDetailsImpl.java   
public SurgicalAuditOperationDetailVo saveAndMarkAsRIE(SurgicalAuditOperationDetailVo surgAuditToSave, SurgicalAuditProcedureDetailsVo surgAuditProcedureDetails, FormName form, Integer patId, Integer careContextId, String comment) throws StaleObjectException
{
    if (surgAuditToSave == null || surgAuditProcedureDetails==null)
    {
        throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    SurgicalAuditOperationDetail domainSurgicalAudit = SurgicalAuditOperationDetailVoAssembler.extractSurgicalAuditOperationDetail(factory, surgAuditToSave);
    factory.save(domainSurgicalAudit);
    factory.markAsRie(SurgicalAuditProcedureDetails.class, surgAuditProcedureDetails.getID_SurgicalAuditProcedureDetails(), form, patId, null, careContextId, comment);
    return SurgicalAuditOperationDetailVoAssembler.create(domainSurgicalAudit);
}
项目:openmaxims-linux    文件:SurgicalAuditHelper.java   
public SurgicalAuditOperationDetailVo getSurgicalAuditOperationDetail(SurgicalAuditOperationDetailRefVo surgicalAuditOpRef)
{
    if (surgicalAuditOpRef == null || surgicalAuditOpRef.getID_SurgicalAuditOperationDetail() == null)
    {
        throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    SurgicalAuditOperationDetail domainSurgicalAudit = (SurgicalAuditOperationDetail) factory.getDomainObject(SurgicalAuditOperationDetail.class, surgicalAuditOpRef.getID_SurgicalAuditOperationDetail());

    return SurgicalAuditOperationDetailVoAssembler.create(domainSurgicalAudit);
}
项目:openmaxims-linux    文件:SurgicalAuditHelper.java   
public SurgicalAuditOperationDetailVo saveSurgicalAuditOperationDetail(ims.clinical.vo.SurgicalAuditOperationDetailVo record) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    if (record == null )
    {
        throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    SurgicalAuditOperationDetail domainSurgicalAudit = SurgicalAuditOperationDetailVoAssembler.extractSurgicalAuditOperationDetail(factory, record);
    factory.save(domainSurgicalAudit);
    return SurgicalAuditOperationDetailVoAssembler.create(domainSurgicalAudit);
}
项目:openmaxims-linux    文件:SurgicalAuditProcedureDetailsImpl.java   
public SurgicalAuditOperationDetailVo saveAndMarkAsRIE(SurgicalAuditOperationDetailVo surgAuditToSave, SurgicalAuditProcedureDetailsVo surgAuditProcedureDetails, FormName form, Integer patId, Integer careContextId, String comment) throws StaleObjectException
{
    if (surgAuditToSave == null || surgAuditProcedureDetails==null)
    {
        throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    SurgicalAuditOperationDetail domainSurgicalAudit = SurgicalAuditOperationDetailVoAssembler.extractSurgicalAuditOperationDetail(factory, surgAuditToSave);
    factory.save(domainSurgicalAudit);
    factory.markAsRie(SurgicalAuditProcedureDetails.class, surgAuditProcedureDetails.getID_SurgicalAuditProcedureDetails(), form, patId, null, careContextId, comment);
    return SurgicalAuditOperationDetailVoAssembler.create(domainSurgicalAudit);
}