Java 类ims.core.vo.domain.PatientProcedureShortVoAssembler 实例源码

项目:AvoinApotti    文件:NursingAdmissionImpl.java   
private PatientProcedureShortVoCollection listProceduresForPatient(PatientRefVo patrefvo, boolean boolDiagnosis)
{
    DomainFactory factory = getDomainFactory();

    String hql = new String();
    hql = " from PatientProcedure patproc ";

    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    condStr.append(andStr + " patproc.careContext.episodeOfCare.careSpell.patient.id = :patientId");
    markers.add("patientId");
    values.add(patrefvo.getID_Patient());
    andStr = " and ";           

    //if ( (boolDiagnosis) )//List all Diagnosis 
    //{
    //  condStr.append(andStr + " patproc.isComplication = :complication");
    //  markers.add("complication");
    //  values.add(Boolean.FALSE);
    //}
    //else if ( (boolComplication) && (!boolDiagnosis) )//List all Complications 
    //{
    //  condStr.append(andStr + " patproc.isComplication = :complication");
    //  markers.add("complication");
    //  values.add(Boolean.TRUE);
    //}
    hql += " where ";

    hql += condStr.toString();
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql,markers,values)).sort();       
}
项目:AvoinApotti    文件:NursingAdmissionImpl.java   
public PatientProcedureShortVoCollection listProceduresByEpisodeOfCare(EpisodeOfCareRefVo episodeOfCareRefVo) 
{
    if(episodeOfCareRefVo == null)
        throw new DomainRuntimeException("Invalid Episode Context Ref");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from PatientProcedure p ");
    hql.append(" where p.careContext.episodeOfCare.id = " + episodeOfCareRefVo.getID_EpisodeOfCare());
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql.toString()));
}
项目:AvoinApotti    文件:PlannedProcedureImpl.java   
private PatientProcedureShortVoCollection listProcedureByEpisodeOfCare(EpisodeOfCareRefVo episodeOfCareRefVo, PatientProcedureStatus status)
{
    if(episodeOfCareRefVo == null)
        throw new DomainRuntimeException("Invalid Episode Context Ref");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from PatientProcedure p ");
    hql.append(" where p.careContext.episodeOfCare.id = " + episodeOfCareRefVo.getID_EpisodeOfCare());
    if(status != null)
        hql.append(" and p.procedureStatus.id = " + status.getId());
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql.toString()));
}
项目:AvoinApotti    文件:PlannedProcedureImpl.java   
private PatientProcedureShortVoCollection listProcedureByCareSpell(CareSpellRefVo careSpellRefVo, PatientProcedureStatus status)
{
    if(careSpellRefVo == null)
        throw new DomainRuntimeException("Invalid Care Spell Context Ref");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from PatientProcedure p ");
    hql.append(" where p.careContext.episodeOfCare.careSpell.id = " + careSpellRefVo.getID_CareSpell());
    if(status != null)
        hql.append(" and p.procedureStatus.id = " + status.getId());
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql.toString()));
}
项目:AvoinApotti    文件:PlannedProcedureImpl.java   
private PatientProcedureShortVoCollection listProcedureByCareContext(CareContextRefVo careContextRefVo, PatientProcedureStatus status)
{
    if(careContextRefVo == null)
        throw new DomainRuntimeException("Invalid Care Context Context Ref");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from PatientProcedure p ");
    hql.append(" where p.careContext.id = " + careContextRefVo.getID_CareContext());
    if(status != null)
        hql.append(" and p.procedureStatus.id = " + status.getId());
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql.toString()));
}
项目:openMAXIMS    文件:NursingAdmissionImpl.java   
private PatientProcedureShortVoCollection listProceduresForPatient(PatientRefVo patrefvo, boolean boolDiagnosis)
{
    DomainFactory factory = getDomainFactory();

    String hql = new String();
    hql = " from PatientProcedure patproc ";

    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    condStr.append(andStr + " patproc.careContext.episodeOfCare.careSpell.patient.id = :patientId");
    markers.add("patientId");
    values.add(patrefvo.getID_Patient());
    andStr = " and ";           

    //if ( (boolDiagnosis) )//List all Diagnosis 
    //{
    //  condStr.append(andStr + " patproc.isComplication = :complication");
    //  markers.add("complication");
    //  values.add(Boolean.FALSE);
    //}
    //else if ( (boolComplication) && (!boolDiagnosis) )//List all Complications 
    //{
    //  condStr.append(andStr + " patproc.isComplication = :complication");
    //  markers.add("complication");
    //  values.add(Boolean.TRUE);
    //}
    hql += " where ";

    hql += condStr.toString();
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql,markers,values)).sort();       
}
项目:openMAXIMS    文件:NursingAdmissionImpl.java   
public PatientProcedureShortVoCollection listProceduresByEpisodeOfCare(EpisodeOfCareRefVo episodeOfCareRefVo) 
{
    if(episodeOfCareRefVo == null)
        throw new DomainRuntimeException("Invalid Episode Context Ref");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from PatientProcedure p ");
    hql.append(" where p.careContext.episodeOfCare.id = " + episodeOfCareRefVo.getID_EpisodeOfCare());
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql.toString()));
}
项目:openMAXIMS    文件:PlannedProcedureImpl.java   
private PatientProcedureShortVoCollection listProcedureByEpisodeOfCare(EpisodeOfCareRefVo episodeOfCareRefVo, PatientProcedureStatus status)
{
    if(episodeOfCareRefVo == null)
        throw new DomainRuntimeException("Invalid Episode Context Ref");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from PatientProcedure p ");
    hql.append(" where p.careContext.episodeOfCare.id = " + episodeOfCareRefVo.getID_EpisodeOfCare());
    if(status != null)
        hql.append(" and p.procedureStatus.id = " + status.getId());
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql.toString()));
}
项目:openMAXIMS    文件:PlannedProcedureImpl.java   
private PatientProcedureShortVoCollection listProcedureByCareSpell(CareSpellRefVo careSpellRefVo, PatientProcedureStatus status)
{
    if(careSpellRefVo == null)
        throw new DomainRuntimeException("Invalid Care Spell Context Ref");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from PatientProcedure p ");
    hql.append(" where p.careContext.episodeOfCare.careSpell.id = " + careSpellRefVo.getID_CareSpell());
    if(status != null)
        hql.append(" and p.procedureStatus.id = " + status.getId());
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql.toString()));
}
项目:openMAXIMS    文件:PlannedProcedureImpl.java   
private PatientProcedureShortVoCollection listProcedureByCareContext(CareContextRefVo careContextRefVo, PatientProcedureStatus status)
{
    if(careContextRefVo == null)
        throw new DomainRuntimeException("Invalid Care Context Context Ref");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from PatientProcedure p ");
    hql.append(" where p.careContext.id = " + careContextRefVo.getID_CareContext());
    if(status != null)
        hql.append(" and p.procedureStatus.id = " + status.getId());
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql.toString()));
}
项目:openMAXIMS    文件:NursingAdmissionImpl.java   
private PatientProcedureShortVoCollection listProceduresForPatient(PatientRefVo patrefvo, boolean boolDiagnosis)
{
    DomainFactory factory = getDomainFactory();

    String hql = new String();
    hql = " from PatientProcedure patproc ";

    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    condStr.append(andStr + " patproc.careContext.episodeOfCare.careSpell.patient.id = :patientId");
    markers.add("patientId");
    values.add(patrefvo.getID_Patient());
    andStr = " and ";           

    //if ( (boolDiagnosis) )//List all Diagnosis 
    //{
    //  condStr.append(andStr + " patproc.isComplication = :complication");
    //  markers.add("complication");
    //  values.add(Boolean.FALSE);
    //}
    //else if ( (boolComplication) && (!boolDiagnosis) )//List all Complications 
    //{
    //  condStr.append(andStr + " patproc.isComplication = :complication");
    //  markers.add("complication");
    //  values.add(Boolean.TRUE);
    //}
    hql += " where ";

    hql += condStr.toString();
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql,markers,values)).sort();       
}
项目:openMAXIMS    文件:NursingAdmissionImpl.java   
public PatientProcedureShortVoCollection listProceduresByEpisodeOfCare(EpisodeOfCareRefVo episodeOfCareRefVo) 
{
    if(episodeOfCareRefVo == null)
        throw new DomainRuntimeException("Invalid Episode Context Ref");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from PatientProcedure p ");
    hql.append(" where p.careContext.episodeOfCare.id = " + episodeOfCareRefVo.getID_EpisodeOfCare());
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql.toString()));
}
项目:openMAXIMS    文件:PlannedProcedureImpl.java   
private PatientProcedureShortVoCollection listProcedureByEpisodeOfCare(EpisodeOfCareRefVo episodeOfCareRefVo, PatientProcedureStatus status)
{
    if(episodeOfCareRefVo == null)
        throw new DomainRuntimeException("Invalid Episode Context Ref");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from PatientProcedure p ");
    hql.append(" where p.careContext.episodeOfCare.id = " + episodeOfCareRefVo.getID_EpisodeOfCare());
    if(status != null)
        hql.append(" and p.procedureStatus.id = " + status.getId());
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql.toString()));
}
项目:openMAXIMS    文件:PlannedProcedureImpl.java   
private PatientProcedureShortVoCollection listProcedureByCareSpell(CareSpellRefVo careSpellRefVo, PatientProcedureStatus status)
{
    if(careSpellRefVo == null)
        throw new DomainRuntimeException("Invalid Care Spell Context Ref");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from PatientProcedure p ");
    hql.append(" where p.careContext.episodeOfCare.careSpell.id = " + careSpellRefVo.getID_CareSpell());
    if(status != null)
        hql.append(" and p.procedureStatus.id = " + status.getId());
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql.toString()));
}
项目:openMAXIMS    文件:PlannedProcedureImpl.java   
private PatientProcedureShortVoCollection listProcedureByCareContext(CareContextRefVo careContextRefVo, PatientProcedureStatus status)
{
    if(careContextRefVo == null)
        throw new DomainRuntimeException("Invalid Care Context Context Ref");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from PatientProcedure p ");
    hql.append(" where p.careContext.id = " + careContextRefVo.getID_CareContext());
    if(status != null)
        hql.append(" and p.procedureStatus.id = " + status.getId());
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql.toString()));
}
项目:openmaxims-linux    文件:NursingAdmissionImpl.java   
private PatientProcedureShortVoCollection listProceduresForPatient(PatientRefVo patrefvo, boolean boolDiagnosis)
{
    DomainFactory factory = getDomainFactory();

    String hql = new String();
    hql = " from PatientProcedure patproc ";

    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    condStr.append(andStr + " patproc.careContext.episodeOfCare.careSpell.patient.id = :patientId");
    markers.add("patientId");
    values.add(patrefvo.getID_Patient());
    andStr = " and ";           

    //if ( (boolDiagnosis) )//List all Diagnosis 
    //{
    //  condStr.append(andStr + " patproc.isComplication = :complication");
    //  markers.add("complication");
    //  values.add(Boolean.FALSE);
    //}
    //else if ( (boolComplication) && (!boolDiagnosis) )//List all Complications 
    //{
    //  condStr.append(andStr + " patproc.isComplication = :complication");
    //  markers.add("complication");
    //  values.add(Boolean.TRUE);
    //}
    hql += " where ";

    hql += condStr.toString();
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql,markers,values)).sort();       
}
项目:openmaxims-linux    文件:NursingAdmissionImpl.java   
public PatientProcedureShortVoCollection listProceduresByEpisodeOfCare(EpisodeOfCareRefVo episodeOfCareRefVo) 
{
    if(episodeOfCareRefVo == null)
        throw new DomainRuntimeException("Invalid Episode Context Ref");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from PatientProcedure p ");
    hql.append(" where p.careContext.episodeOfCare.id = " + episodeOfCareRefVo.getID_EpisodeOfCare());
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql.toString()));
}
项目:openmaxims-linux    文件:PlannedProcedureImpl.java   
private PatientProcedureShortVoCollection listProcedureByEpisodeOfCare(EpisodeOfCareRefVo episodeOfCareRefVo, PatientProcedureStatus status)
{
    if(episodeOfCareRefVo == null)
        throw new DomainRuntimeException("Invalid Episode Context Ref");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from PatientProcedure p ");
    hql.append(" where p.careContext.episodeOfCare.id = " + episodeOfCareRefVo.getID_EpisodeOfCare());
    if(status != null)
        hql.append(" and p.procedureStatus.id = " + status.getId());
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql.toString()));
}
项目:openmaxims-linux    文件:PlannedProcedureImpl.java   
private PatientProcedureShortVoCollection listProcedureByCareSpell(CareSpellRefVo careSpellRefVo, PatientProcedureStatus status)
{
    if(careSpellRefVo == null)
        throw new DomainRuntimeException("Invalid Care Spell Context Ref");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from PatientProcedure p ");
    hql.append(" where p.careContext.episodeOfCare.careSpell.id = " + careSpellRefVo.getID_CareSpell());
    if(status != null)
        hql.append(" and p.procedureStatus.id = " + status.getId());
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql.toString()));
}
项目:openmaxims-linux    文件:PlannedProcedureImpl.java   
private PatientProcedureShortVoCollection listProcedureByCareContext(CareContextRefVo careContextRefVo, PatientProcedureStatus status)
{
    if(careContextRefVo == null)
        throw new DomainRuntimeException("Invalid Care Context Context Ref");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from PatientProcedure p ");
    hql.append(" where p.careContext.id = " + careContextRefVo.getID_CareContext());
    if(status != null)
        hql.append(" and p.procedureStatus.id = " + status.getId());
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(factory.find(hql.toString()));
}
项目:AvoinApotti    文件:PlannedProcedureImpl.java   
/**
* listProcedureByClinalContact
*/
public ims.core.vo.PatientProcedureShortVoCollection listProcedureByClinalContact(ims.core.admin.vo.ClinicalContactRefVo clinicalContactRefVo)
{
    List list = listProcedures(clinicalContactRefVo, null);
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(list);
}
项目:AvoinApotti    文件:PlannedProcedureImpl.java   
/**
* listProcedureByPatient
*/
public ims.core.vo.PatientProcedureShortVoCollection listProcedureByPatient(ims.core.patient.vo.PatientRefVo patientRefVo)
{
    List list = listProcedures(null, patientRefVo);
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(list);
}
项目:AvoinApotti    文件:PlannedProcedureImpl.java   
public PatientProcedureShortVoCollection listProcedureByPatientAndStatus(PatientRefVo patientRefVo, PatientProcedureStatus status)
{
    List list = listProcedures(null, patientRefVo, status);
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(list); 
}
项目:AvoinApotti    文件:PlannedProcedureImpl.java   
public PatientProcedureShortVoCollection listProcedureByClinicalContactAndStatus(ClinicalContactRefVo clinicalContactRefVo, PatientProcedureStatus status)
{
    List list = listProcedures(clinicalContactRefVo, null, status);
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(list);
}
项目:openMAXIMS    文件:PlannedProcedureImpl.java   
/**
* listProcedureByClinalContact
*/
public ims.core.vo.PatientProcedureShortVoCollection listProcedureByClinalContact(ims.core.admin.vo.ClinicalContactRefVo clinicalContactRefVo)
{
    List list = listProcedures(clinicalContactRefVo, null);
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(list);
}
项目:openMAXIMS    文件:PlannedProcedureImpl.java   
/**
* listProcedureByPatient
*/
public ims.core.vo.PatientProcedureShortVoCollection listProcedureByPatient(ims.core.patient.vo.PatientRefVo patientRefVo)
{
    List list = listProcedures(null, patientRefVo);
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(list);
}
项目:openMAXIMS    文件:PlannedProcedureImpl.java   
public PatientProcedureShortVoCollection listProcedureByPatientAndStatus(PatientRefVo patientRefVo, PatientProcedureStatus status)
{
    List list = listProcedures(null, patientRefVo, status);
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(list); 
}
项目:openMAXIMS    文件:PlannedProcedureImpl.java   
public PatientProcedureShortVoCollection listProcedureByClinicalContactAndStatus(ClinicalContactRefVo clinicalContactRefVo, PatientProcedureStatus status)
{
    List list = listProcedures(clinicalContactRefVo, null, status);
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(list);
}
项目:openMAXIMS    文件:PlannedProcedureImpl.java   
/**
* listProcedureByClinalContact
*/
public ims.core.vo.PatientProcedureShortVoCollection listProcedureByClinalContact(ims.core.admin.vo.ClinicalContactRefVo clinicalContactRefVo)
{
    List list = listProcedures(clinicalContactRefVo, null);
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(list);
}
项目:openMAXIMS    文件:PlannedProcedureImpl.java   
/**
* listProcedureByPatient
*/
public ims.core.vo.PatientProcedureShortVoCollection listProcedureByPatient(ims.core.patient.vo.PatientRefVo patientRefVo)
{
    List list = listProcedures(null, patientRefVo);
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(list);
}
项目:openMAXIMS    文件:PlannedProcedureImpl.java   
public PatientProcedureShortVoCollection listProcedureByPatientAndStatus(PatientRefVo patientRefVo, PatientProcedureStatus status)
{
    List list = listProcedures(null, patientRefVo, status);
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(list); 
}
项目:openMAXIMS    文件:PlannedProcedureImpl.java   
public PatientProcedureShortVoCollection listProcedureByClinicalContactAndStatus(ClinicalContactRefVo clinicalContactRefVo, PatientProcedureStatus status)
{
    List list = listProcedures(clinicalContactRefVo, null, status);
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(list);
}
项目:openmaxims-linux    文件:PlannedProcedureImpl.java   
/**
* listProcedureByClinalContact
*/
public ims.core.vo.PatientProcedureShortVoCollection listProcedureByClinalContact(ims.core.admin.vo.ClinicalContactRefVo clinicalContactRefVo)
{
    List list = listProcedures(clinicalContactRefVo, null);
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(list);
}
项目:openmaxims-linux    文件:PlannedProcedureImpl.java   
/**
* listProcedureByPatient
*/
public ims.core.vo.PatientProcedureShortVoCollection listProcedureByPatient(ims.core.patient.vo.PatientRefVo patientRefVo)
{
    List list = listProcedures(null, patientRefVo);
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(list);
}
项目:openmaxims-linux    文件:PlannedProcedureImpl.java   
public PatientProcedureShortVoCollection listProcedureByPatientAndStatus(PatientRefVo patientRefVo, PatientProcedureStatus status)
{
    List list = listProcedures(null, patientRefVo, status);
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(list); 
}
项目:openmaxims-linux    文件:PlannedProcedureImpl.java   
public PatientProcedureShortVoCollection listProcedureByClinicalContactAndStatus(ClinicalContactRefVo clinicalContactRefVo, PatientProcedureStatus status)
{
    List list = listProcedures(clinicalContactRefVo, null, status);
    return PatientProcedureShortVoAssembler.createPatientProcedureShortVoCollectionFromPatientProcedure(list);
}