GVKun编程网logo

ims.clinical.vo.domain.PatientTheatreBookingVoAssembler的实例源码

27

对于ims.clinical.vo.domain.PatientTheatreBookingVoAssembler的实例源码感兴趣的读者,本文将提供您所需要的所有信息,并且为您提供关于ims.clin

对于ims.clinical.vo.domain.PatientTheatreBookingVoAssembler的实例源码感兴趣的读者,本文将提供您所需要的所有信息,并且为您提供关于ims.clinical.vo.domain.AMPVoAssembler的实例源码、ims.clinical.vo.domain.AreaOfNeedsNotingVoAssembler的实例源码、ims.clinical.vo.domain.ClinicalDIAssociationVoAssembler的实例源码、ims.clinical.vo.domain.DementiaFindVoAssembler的实例源码的宝贵知识。

本文目录一览:

ims.clinical.vo.domain.PatientTheatreBookingVoAssembler的实例源码

ims.clinical.vo.domain.PatientTheatreBookingVoAssembler的实例源码

项目:AvoinApotti    文件:PatientTheatreAppointmentManagementImpl.java   
public PatientTheatreBookingVoCollection listTheatreAppointmentsByPatientAndDate(PatientRefVo patientID,Date apptDate)
{
    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();
    String andStr = "";
    StringBuffer sb = new StringBuffer();

    String hql = "from Booking_Appointment as appt "; //WDEV-9091

    if (patientID != null)
    {
        sb.append(andStr + " appt.patient.id = :pat");
        markers.add("pat");
        values.add(patientID.getID_Patient());
        andStr = " and ";
    }

    if (apptDate != null)
    {
        sb.append(andStr + " appt.appointmentDate = :apptDate");
        markers.add("apptDate");
        values.add(apptDate.getDate());
        andStr = " and ";
    }
    sb.append(andStr + " appt.theatreBooking != null");
    andStr = " and ";
    sb.append(andStr + " appt.apptStatus = :apptBooked");
    markers.add("apptBooked");
    values.add(getDomLookup(Status_Reason.BOOKED));

    hql += " where ";
    hql += sb.toString();

    java.util.List<?> list = getDomainFactory().find(hql.toString(),markers,values);

    return PatientTheatreBookingVoAssembler.createPatientTheatreBookingVoCollectionFromBooking_Appointment(list); //WDEV-9091

    //WDEV - 9091
    /*
    Iterator it = list.iterator();
    PatientTheatreBookingVoCollection voColl = new PatientTheatreBookingVoCollection();
    while(it.hasNext())
    {

        Object[] lstItem = (Object[]) it.next();
        Booking_Appointment doOP = (Booking_Appointment)lstItem[0];
        Booking_AppointmentVo voOP = Booking_AppointmentVoAssembler.create(doOP);
        PatientTheatreBookingVo voTheatre = new PatientTheatreBookingVo(voOP.getID_Booking_Appointment(),voOP.getVersion_Booking_Appointment());

        voTheatre.setID_Booking_Appointment(doOP.getId());

        voTheatre.setAppointmentDate(voOP.getAppointmentDate());
        voTheatre.setApptStartTime(voOP.getApptStartTime());
        voTheatre.setApptStatus(voOP.getApptStatus());
        voTheatre.setApptStatusHistory(voOP.getApptStatusHistory());
        voTheatre.setArrivalTime(null);
        voTheatre.setSeenTime(null);
        voTheatre.setoutcome(voOP.getoutcome());
        voTheatre.setTheatreBooking(TheatreBookingLiteVoAssembler.create((TheatreBooking)lstItem[1]));
        voTheatre.setSession(voOP.getSession());
        voTheatre.setApptStatusReas(voOP.getApptStatusReas());
        voTheatre.setRequiresRebook(voOP.getRequiresRebook());
        voTheatre.setCurrentStatusRecord(voOP.getCurrentStatusRecord());

        voColl.add(voTheatre);
    }
    return voColl;
    */
    //WDEV-9091
}
项目:openMAXims    文件:PatientTheatreAppointmentManagementImpl.java   
public PatientTheatreBookingVoCollection listTheatreAppointmentsByPatientAndDate(PatientRefVo patientID,voOP.getVersion_Booking_Appointment());

        voTheatre.setID_Booking_Appointment(doOP.getId());

        voTheatre.setAppointmentDate(voOP.getAppointmentDate());
        voTheatre.setApptStartTime(voOP.getApptStartTime());
        voTheatre.setApptStatus(voOP.getApptStatus());
        voTheatre.setApptStatusHistory(voOP.getApptStatusHistory());
        voTheatre.setArrivalTime(null);
        voTheatre.setSeenTime(null);
        voTheatre.setoutcome(voOP.getoutcome());
        voTheatre.setTheatreBooking(TheatreBookingLiteVoAssembler.create((TheatreBooking)lstItem[1]));
        voTheatre.setSession(voOP.getSession());
        voTheatre.setApptStatusReas(voOP.getApptStatusReas());
        voTheatre.setRequiresRebook(voOP.getRequiresRebook());
        voTheatre.setCurrentStatusRecord(voOP.getCurrentStatusRecord());

        voColl.add(voTheatre);
    }
    return voColl;
    */
    //WDEV-9091
}
项目:openmaxims-linux    文件:PatientTheatreAppointmentManagementImpl.java   
public PatientTheatreBookingVoCollection listTheatreAppointmentsByPatientAndDate(PatientRefVo patientID,voOP.getVersion_Booking_Appointment());

        voTheatre.setID_Booking_Appointment(doOP.getId());

        voTheatre.setAppointmentDate(voOP.getAppointmentDate());
        voTheatre.setApptStartTime(voOP.getApptStartTime());
        voTheatre.setApptStatus(voOP.getApptStatus());
        voTheatre.setApptStatusHistory(voOP.getApptStatusHistory());
        voTheatre.setArrivalTime(null);
        voTheatre.setSeenTime(null);
        voTheatre.setoutcome(voOP.getoutcome());
        voTheatre.setTheatreBooking(TheatreBookingLiteVoAssembler.create((TheatreBooking)lstItem[1]));
        voTheatre.setSession(voOP.getSession());
        voTheatre.setApptStatusReas(voOP.getApptStatusReas());
        voTheatre.setRequiresRebook(voOP.getRequiresRebook());
        voTheatre.setCurrentStatusRecord(voOP.getCurrentStatusRecord());

        voColl.add(voTheatre);
    }
    return voColl;
    */
    //WDEV-9091
}

ims.clinical.vo.domain.AMPVoAssembler的实例源码

ims.clinical.vo.domain.AMPVoAssembler的实例源码

项目:AvoinApotti    文件:DmdsearchImpl.java   
/**
* Search for AMP
* 
*/
public AMPVoCollection searchAMPByName(String name) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    return AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP am WHERE am.name like '" + name + "%'"));
}
项目:AvoinApotti    文件:DMDImpl.java   
public IDMDValue[] searchAMP(IDMDValue vmp) throws DomainInterfaceException 
{
    if(vmp == null || vmp.getIDMDValueId() == null || vmp.getIDMDValueType() != DMDType.VMP)
        throw new DomainInterfaceException("Invalid VMP reference");

    AMPVoCollection result = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP vm WHERE vm.vMP.id = " + vmp.getIDMDValueId()));
    if(result != null)
        return result.toIDMDValueArray();
    return new IDMDValue[] {};
}
项目:openMAXims    文件:DmdsearchImpl.java   
/**
* Search for AMP
* 
*/
public AMPVoCollection searchAMPByName(String name) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    return AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP am WHERE am.name like '" + name + "%'"));
}
项目:openMAXims    文件:DMDImpl.java   
public IDMDValue[] searchAMP(IDMDValue vmp) throws DomainInterfaceException 
{
    if(vmp == null || vmp.getIDMDValueId() == null || vmp.getIDMDValueType() != DMDType.VMP)
        throw new DomainInterfaceException("Invalid VMP reference");

    AMPVoCollection result = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP vm WHERE vm.vMP.id = " + vmp.getIDMDValueId()));
    if(result != null)
        return result.toIDMDValueArray();
    return new IDMDValue[] {};
}
项目:openMAXims    文件:DMDAdminImpl.java   
public AMPVo getAMP(String ampProductId) throws DomainInterfaceException 
{
    if(ampProductId == null)
        throw new DomainInterfaceException("Invalid AMP reference");

    AMPVoCollection ampCol = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP amp WHERE amp.productIdentifier = '" + ampProductId + "'"));
    if (ampCol != null && ampCol.size() > 0)
        return ampCol.get(0);
    else
        return null;
}
项目:openmaxims-linux    文件:DmdsearchImpl.java   
/**
* Search for AMP
* 
*/
public AMPVoCollection searchAMPByName(String name) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    return AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP am WHERE am.name like '" + name + "%'"));
}
项目:openmaxims-linux    文件:DMDImpl.java   
public IDMDValue[] searchAMP(IDMDValue vmp) throws DomainInterfaceException 
{
    if(vmp == null || vmp.getIDMDValueId() == null || vmp.getIDMDValueType() != DMDType.VMP)
        throw new DomainInterfaceException("Invalid VMP reference");

    AMPVoCollection result = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP vm WHERE vm.vMP.id = " + vmp.getIDMDValueId()));
    if(result != null)
        return result.toIDMDValueArray();
    return new IDMDValue[] {};
}

ims.clinical.vo.domain.AreaOfNeedsNotingVoAssembler的实例源码

ims.clinical.vo.domain.AreaOfNeedsNotingVoAssembler的实例源码

项目:AvoinApotti    文件:ContactAonSummImpl.java   
public AreaOfNeedsnotingVoCollection listbyCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from AreaofNeedsnoting aon ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContextRef != null)
    {
        hql.append(andStr + " aon.clinicalContact.careContext.id = :cc");
        markers.add("cc");
        values.add(voCareContextRef.getID_CareContext());
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List cttList = factory.find(query,markers,values);
    AreaOfNeedsnotingVoCollection voAreaOfNeedsnotingColl = AreaOfNeedsnotingVoAssembler.createAreaOfNeedsnotingVoCollectionFromAreaofNeedsnoting(cttList);
    //if(voAreaOfNeedsnotingColl.size()>0)
        return voAreaOfNeedsnotingColl;
    //else
        //return null;
}
项目:openMAXims    文件:ContactAonSummImpl.java   
public AreaOfNeedsnotingVoCollection listbyCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from AreaofNeedsnoting aon ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContextRef != null)
    {
        hql.append(andStr + " aon.clinicalContact.careContext.id = :cc");
        markers.add("cc");
        values.add(voCareContextRef.getID_CareContext());
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List cttList = factory.find(query,values);
    AreaOfNeedsnotingVoCollection voAreaOfNeedsnotingColl = AreaOfNeedsnotingVoAssembler.createAreaOfNeedsnotingVoCollectionFromAreaofNeedsnoting(cttList);
    //if(voAreaOfNeedsnotingColl.size()>0)
        return voAreaOfNeedsnotingColl;
    //else
        //return null;
}
项目:openmaxims-linux    文件:ContactAonSummImpl.java   
public AreaOfNeedsnotingVoCollection listbyCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from AreaofNeedsnoting aon ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContextRef != null)
    {
        hql.append(andStr + " aon.clinicalContact.careContext.id = :cc");
        markers.add("cc");
        values.add(voCareContextRef.getID_CareContext());
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List cttList = factory.find(query,values);
    AreaOfNeedsnotingVoCollection voAreaOfNeedsnotingColl = AreaOfNeedsnotingVoAssembler.createAreaOfNeedsnotingVoCollectionFromAreaofNeedsnoting(cttList);
    //if(voAreaOfNeedsnotingColl.size()>0)
        return voAreaOfNeedsnotingColl;
    //else
        //return null;
}
项目:AvoinApotti    文件:ContactAonSummImpl.java   
public AreaOfNeedsnotingVo save(AreaOfNeedsnotingVo voAreaOfNeedsnoting) throws StaleObjectException
{
    if(!voAreaOfNeedsnoting.isValidated())
        throw new DomainRuntimeException("This Area Of Needs record has not been validated");

    DomainFactory factory = getDomainFactory();
    AreaofNeedsnoting doAreaOfNeeds = AreaOfNeedsnotingVoAssembler.extractAreaofNeedsnoting(factory,voAreaOfNeedsnoting);
    factory.save(doAreaOfNeeds);
    return AreaOfNeedsnotingVoAssembler.create(doAreaOfNeeds);
}
项目:AvoinApotti    文件:ContactAonSummImpl.java   
public AreaOfNeedsnotingVoCollection list(ClinicalContactShortVo voClinicalContact)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from AreaofNeedsnoting aon ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voClinicalContact != null)
    {
        hql.append(andStr + " aon.clinicalContact.id = :cc");
        markers.add("cc");
        values.add(voClinicalContact.getID_ClinicalContact());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List cttList = factory.find(query,values);
    AreaOfNeedsnotingVoCollection voAreaOfNeedsnotingColl = AreaOfNeedsnotingVoAssembler.createAreaOfNeedsnotingVoCollectionFromAreaofNeedsnoting(cttList);
    //if(voAreaOfNeedsnotingColl.size()>0)
        return voAreaOfNeedsnotingColl;
    //else
        //return null;
}
项目:openMAXims    文件:ContactAonSummImpl.java   
public AreaOfNeedsnotingVo save(AreaOfNeedsnotingVo voAreaOfNeedsnoting) throws StaleObjectException
{
    if(!voAreaOfNeedsnoting.isValidated())
        throw new DomainRuntimeException("This Area Of Needs record has not been validated");

    DomainFactory factory = getDomainFactory();
    AreaofNeedsnoting doAreaOfNeeds = AreaOfNeedsnotingVoAssembler.extractAreaofNeedsnoting(factory,voAreaOfNeedsnoting);
    factory.save(doAreaOfNeeds);
    return AreaOfNeedsnotingVoAssembler.create(doAreaOfNeeds);
}
项目:openMAXims    文件:ContactAonSummImpl.java   
public AreaOfNeedsnotingVoCollection list(ClinicalContactShortVo voClinicalContact)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from AreaofNeedsnoting aon ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voClinicalContact != null)
    {
        hql.append(andStr + " aon.clinicalContact.id = :cc");
        markers.add("cc");
        values.add(voClinicalContact.getID_ClinicalContact());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List cttList = factory.find(query,values);
    AreaOfNeedsnotingVoCollection voAreaOfNeedsnotingColl = AreaOfNeedsnotingVoAssembler.createAreaOfNeedsnotingVoCollectionFromAreaofNeedsnoting(cttList);
    //if(voAreaOfNeedsnotingColl.size()>0)
        return voAreaOfNeedsnotingColl;
    //else
        //return null;
}
项目:openmaxims-linux    文件:ContactAonSummImpl.java   
public AreaOfNeedsnotingVo save(AreaOfNeedsnotingVo voAreaOfNeedsnoting) throws StaleObjectException
{
    if(!voAreaOfNeedsnoting.isValidated())
        throw new DomainRuntimeException("This Area Of Needs record has not been validated");

    DomainFactory factory = getDomainFactory();
    AreaofNeedsnoting doAreaOfNeeds = AreaOfNeedsnotingVoAssembler.extractAreaofNeedsnoting(factory,voAreaOfNeedsnoting);
    factory.save(doAreaOfNeeds);
    return AreaOfNeedsnotingVoAssembler.create(doAreaOfNeeds);
}
项目:openmaxims-linux    文件:ContactAonSummImpl.java   
public AreaOfNeedsnotingVoCollection list(ClinicalContactShortVo voClinicalContact)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from AreaofNeedsnoting aon ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voClinicalContact != null)
    {
        hql.append(andStr + " aon.clinicalContact.id = :cc");
        markers.add("cc");
        values.add(voClinicalContact.getID_ClinicalContact());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List cttList = factory.find(query,values);
    AreaOfNeedsnotingVoCollection voAreaOfNeedsnotingColl = AreaOfNeedsnotingVoAssembler.createAreaOfNeedsnotingVoCollectionFromAreaofNeedsnoting(cttList);
    //if(voAreaOfNeedsnotingColl.size()>0)
        return voAreaOfNeedsnotingColl;
    //else
        //return null;
}

ims.clinical.vo.domain.ClinicalDIAssociationVoAssembler的实例源码

ims.clinical.vo.domain.ClinicalDIAssociationVoAssembler的实例源码

项目:AvoinApotti    文件:ClinicalDiAssociationsImpl.java   
public ClinicalDIAssociationVoCollection saveClinicalDiAssociation(ClinicalDIAssociationVoCollection list) throws StaleObjectException 
{
    if(list == null)
        throw new RuntimeException("Cannot save null ClinicalDIAssociationVoCollection");
    if(!list.isValidated())
        throw new CodingRuntimeException("ClinicalDIAssociationVoCollection has not been validated.");

    DomainFactory factory = getDomainFactory();
    ClinicalDIAssociationVoCollection result = new ClinicalDIAssociationVoCollection();

    for(int x = 0; x < list.size(); x++)
    {
        if(list.get(x) != null)
        {
            factory.save(ClinicalDIAssociationVoAssembler.extractClinicalcdiassociations(factory,list.get(x)));
        }
    }       

    return result;
}
项目:openMAXims    文件:ClinicalDiAssociationsImpl.java   
public ClinicalDIAssociationVoCollection saveClinicalDiAssociation(ClinicalDIAssociationVoCollection list) throws StaleObjectException 
{
    if(list == null)
        throw new RuntimeException("Cannot save null ClinicalDIAssociationVoCollection");
    if(!list.isValidated())
        throw new CodingRuntimeException("ClinicalDIAssociationVoCollection has not been validated.");

    DomainFactory factory = getDomainFactory();
    ClinicalDIAssociationVoCollection result = new ClinicalDIAssociationVoCollection();

    for(int x = 0; x < list.size(); x++)
    {
        if(list.get(x) != null)
        {
            factory.save(ClinicalDIAssociationVoAssembler.extractClinicalcdiassociations(factory,list.get(x)));
        }
    }       

    return result;
}
项目:openmaxims-linux    文件:ClinicalDiAssociationsImpl.java   
public ClinicalDIAssociationVoCollection saveClinicalDiAssociation(ClinicalDIAssociationVoCollection list) throws StaleObjectException 
{
    if(list == null)
        throw new RuntimeException("Cannot save null ClinicalDIAssociationVoCollection");
    if(!list.isValidated())
        throw new CodingRuntimeException("ClinicalDIAssociationVoCollection has not been validated.");

    DomainFactory factory = getDomainFactory();
    ClinicalDIAssociationVoCollection result = new ClinicalDIAssociationVoCollection();

    for(int x = 0; x < list.size(); x++)
    {
        if(list.get(x) != null)
        {
            factory.save(ClinicalDIAssociationVoAssembler.extractClinicalcdiassociations(factory,list.get(x)));
        }
    }       

    return result;
}
项目:AvoinApotti    文件:Patient_SummaryImpl.java   
private ClinicalDIAssociationVoCollection listAssociation(ValueObject filter)
{
    if (filter == null)
        throw new DomainRuntimeException("filter not provided");

    String hql = "from Clinicalcdiassociations assoc where ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if (filter instanceof PatientDiagnosisRefVo)
    {
        hql += "assoc.primDiagnosis.id = :diagId";
        markers.add("diagId");
        values.add(((PatientDiagnosisRefVo) filter).getID_PatientDiagnosis());
    }
    else if (filter instanceof PatientProcedureRefVo)
    {
        hql += "assoc.primProcedure.id = :procId";
        markers.add("procId");
        values.add(((PatientProcedureRefVo) filter).getID_PatientProcedure());
    }
    else if (filter instanceof PatientProblemRefVo)
    {
        hql += "assoc.primProblem.id = :problemId";
        markers.add("problemId");
        values.add(((PatientProblemRefVo) filter).getID_PatientProblem());
    }
    hql += " and assoc.isActive = 1";// WDEV-12407
    DomainFactory factory = getDomainFactory();
    List associations = factory.find(hql,markers,values);
    if (associations != null)
        return ClinicalDIAssociationVoAssembler.createClinicalDIAssociationVoCollectionFromClinicalcdiassociations(associations);

    return null;
}
项目:AvoinApotti    文件:PatientSummaryImpl.java   
private ClinicalDIAssociationVoCollection listAssociation(ValueObject filter)
{
    if(filter == null)
        throw new DomainRuntimeException("filter not provided");

    String hql = "from Clinicalcdiassociations assoc where ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if(filter instanceof PatientDiagnosisRefVo)
    {
        hql += "assoc.primDiagnosis.id = :diagId";
        markers.add("diagId");
        values.add(((PatientDiagnosisRefVo)filter).getID_PatientDiagnosis());
    }
    else if(filter instanceof PatientProcedureRefVo)
    {
        hql += "assoc.primProcedure.id = :procId";
        markers.add("procId");          
        values.add(((PatientProcedureRefVo)filter).getID_PatientProcedure());
    }
    else if(filter instanceof PatientProblemRefVo)
    {
        hql += "assoc.primProblem.id = :problemId";
        markers.add("problemId");
        values.add(((PatientProblemRefVo)filter).getID_PatientProblem());           
    }
    hql += " and assoc.isActive = 1";//WDEV-12407
    DomainFactory factory = getDomainFactory();
    List associations =  factory.find(hql,values);
    if(associations != null)
        return ClinicalDIAssociationVoAssembler.createClinicalDIAssociationVoCollectionFromClinicalcdiassociations(associations);

    return null;        
}
项目:openMAXims    文件:Patient_SummaryImpl.java   
private ClinicalDIAssociationVoCollection listAssociation(ValueObject filter)
{
    if (filter == null)
        throw new DomainRuntimeException("filter not provided");

    String hql = "from Clinicalcdiassociations assoc where ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if (filter instanceof PatientDiagnosisRefVo)
    {
        hql += "assoc.primDiagnosis.id = :diagId";
        markers.add("diagId");
        values.add(((PatientDiagnosisRefVo) filter).getID_PatientDiagnosis());
    }
    else if (filter instanceof PatientProcedureRefVo)
    {
        hql += "assoc.primProcedure.id = :procId";
        markers.add("procId");
        values.add(((PatientProcedureRefVo) filter).getID_PatientProcedure());
    }
    else if (filter instanceof PatientProblemRefVo)
    {
        hql += "assoc.primProblem.id = :problemId";
        markers.add("problemId");
        values.add(((PatientProblemRefVo) filter).getID_PatientProblem());
    }
    hql += " and assoc.isActive = 1";// WDEV-12407
    DomainFactory factory = getDomainFactory();
    List associations = factory.find(hql,values);
    if (associations != null)
        return ClinicalDIAssociationVoAssembler.createClinicalDIAssociationVoCollectionFromClinicalcdiassociations(associations);

    return null;
}
项目:openMAXims    文件:PatientSummaryImpl.java   
private ClinicalDIAssociationVoCollection listAssociation(ValueObject filter)
{
    if(filter == null)
        throw new DomainRuntimeException("filter not provided");

    String hql = "from Clinicalcdiassociations assoc where ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if(filter instanceof PatientDiagnosisRefVo)
    {
        hql += "assoc.primDiagnosis.id = :diagId";
        markers.add("diagId");
        values.add(((PatientDiagnosisRefVo)filter).getID_PatientDiagnosis());
    }
    else if(filter instanceof PatientProcedureRefVo)
    {
        hql += "assoc.primProcedure.id = :procId";
        markers.add("procId");          
        values.add(((PatientProcedureRefVo)filter).getID_PatientProcedure());
    }
    else if(filter instanceof PatientProblemRefVo)
    {
        hql += "assoc.primProblem.id = :problemId";
        markers.add("problemId");
        values.add(((PatientProblemRefVo)filter).getID_PatientProblem());           
    }
    hql += " and assoc.isActive = 1";//WDEV-12407
    DomainFactory factory = getDomainFactory();
    List associations =  factory.find(hql,values);
    if(associations != null)
        return ClinicalDIAssociationVoAssembler.createClinicalDIAssociationVoCollectionFromClinicalcdiassociations(associations);

    return null;        
}
项目:openmaxims-linux    文件:Patient_SummaryImpl.java   
private ClinicalDIAssociationVoCollection listAssociation(ValueObject filter)
{
    if (filter == null)
        throw new DomainRuntimeException("filter not provided");

    String hql = "from Clinicalcdiassociations assoc where ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if (filter instanceof PatientDiagnosisRefVo)
    {
        hql += "assoc.primDiagnosis.id = :diagId";
        markers.add("diagId");
        values.add(((PatientDiagnosisRefVo) filter).getID_PatientDiagnosis());
    }
    else if (filter instanceof PatientProcedureRefVo)
    {
        hql += "assoc.primProcedure.id = :procId";
        markers.add("procId");
        values.add(((PatientProcedureRefVo) filter).getID_PatientProcedure());
    }
    else if (filter instanceof PatientProblemRefVo)
    {
        hql += "assoc.primProblem.id = :problemId";
        markers.add("problemId");
        values.add(((PatientProblemRefVo) filter).getID_PatientProblem());
    }
    hql += " and assoc.isActive = 1";// WDEV-12407
    DomainFactory factory = getDomainFactory();
    List associations = factory.find(hql,values);
    if (associations != null)
        return ClinicalDIAssociationVoAssembler.createClinicalDIAssociationVoCollectionFromClinicalcdiassociations(associations);

    return null;
}
项目:openmaxims-linux    文件:PatientSummaryImpl.java   
private ClinicalDIAssociationVoCollection listAssociation(ValueObject filter)
{
    if(filter == null)
        throw new DomainRuntimeException("filter not provided");

    String hql = "from Clinicalcdiassociations assoc where ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if(filter instanceof PatientDiagnosisRefVo)
    {
        hql += "assoc.primDiagnosis.id = :diagId";
        markers.add("diagId");
        values.add(((PatientDiagnosisRefVo)filter).getID_PatientDiagnosis());
    }
    else if(filter instanceof PatientProcedureRefVo)
    {
        hql += "assoc.primProcedure.id = :procId";
        markers.add("procId");          
        values.add(((PatientProcedureRefVo)filter).getID_PatientProcedure());
    }
    else if(filter instanceof PatientProblemRefVo)
    {
        hql += "assoc.primProblem.id = :problemId";
        markers.add("problemId");
        values.add(((PatientProblemRefVo)filter).getID_PatientProblem());           
    }
    hql += " and assoc.isActive = 1";//WDEV-12407
    DomainFactory factory = getDomainFactory();
    List associations =  factory.find(hql,values);
    if(associations != null)
        return ClinicalDIAssociationVoAssembler.createClinicalDIAssociationVoCollectionFromClinicalcdiassociations(associations);

    return null;        
}

ims.clinical.vo.domain.DementiaFindVoAssembler的实例源码

ims.clinical.vo.domain.DementiaFindVoAssembler的实例源码

项目:AvoinApotti    文件:DementiaCorrectCompletionDateStep1DialogImpl.java   
public void saveDementia(DementiaFindVo stepOneFindToSave)  throws StaleObjectException 
{
    if (stepOneFindToSave == null )
    {
        throw new CodingRuntimeException("Cannot get DementiaFindVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    DementiaFind domainDementia = DementiaFindVoAssembler.extractDementiaFind(factory,stepOneFindToSave);
    factory.save(domainDementia);   
}
项目:openMAXims    文件:DementiaCorrectCompletionDateStep1DialogImpl.java   
public void saveDementia(DementiaFindVo stepOneFindToSave)  throws StaleObjectException 
{
    if (stepOneFindToSave == null )
    {
        throw new CodingRuntimeException("Cannot get DementiaFindVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    DementiaFind domainDementia = DementiaFindVoAssembler.extractDementiaFind(factory,stepOneFindToSave);
    factory.save(domainDementia);   
}
项目:openmaxims-linux    文件:DementiaCorrectCompletionDateStep1DialogImpl.java   
public void saveDementia(DementiaFindVo stepOneFindToSave)  throws StaleObjectException 
{
    if (stepOneFindToSave == null )
    {
        throw new CodingRuntimeException("Cannot get DementiaFindVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    DementiaFind domainDementia = DementiaFindVoAssembler.extractDementiaFind(factory,stepOneFindToSave);
    factory.save(domainDementia);   
}

关于ims.clinical.vo.domain.PatientTheatreBookingVoAssembler的实例源码的问题就给大家分享到这里,感谢你花时间阅读本站内容,更多关于ims.clinical.vo.domain.AMPVoAssembler的实例源码、ims.clinical.vo.domain.AreaOfNeedsNotingVoAssembler的实例源码、ims.clinical.vo.domain.ClinicalDIAssociationVoAssembler的实例源码、ims.clinical.vo.domain.DementiaFindVoAssembler的实例源码等相关知识的信息别忘了在本站进行查找喔。

本文标签: