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

项目:AvoinApotti    文件:ReferralCodingImpl.java   
/**
* Diagnosis / Complications for a Care Context
*/
public ims.core.vo.PatientDiagnosisListVoCollection listDiagnosisComplicationsForReferral(ims.core.admin.vo.CareContextRefVo careContextRefVo)
{
    DomainFactory factory = getDomainFactory();

    String hql = new String();
    hql = " from PatientDiagnosis patdiag ";

    StringBuffer condStr = new StringBuffer();
    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();
    String andStr = " ";

    condStr.append(andStr + " patdiag.careContext.id = :carecontextId");
    markers.add("carecontextId");
    values.add(careContextRefVo.getID_CareContext());
    andStr = " and ";           

    hql += " where ";
    hql += condStr.toString();
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(factory.find(hql,markers,values)).sort();     
}
项目:AvoinApotti    文件:DiagnosisComplicationsImpl.java   
public PatientDiagnosisListVoCollection listDiagnosisComplicationEpisodeOfCareForCancerDiagnosis(EpisodeOfCareRefVo episodeOfCareRefVo) 
{
    DomainFactory factory = getDomainFactory();

    String hql = new String();
    hql = " from PatientDiagnosis patdiag ";

    StringBuffer condStr = new StringBuffer();
    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Comparable> values = new ArrayList<Comparable>();
    String andStr = " ";

    condStr.append(andStr + " patdiag.careContext.episodeOfCare.id = :episodeId");
    markers.add("episodeId");
    values.add(episodeOfCareRefVo.getID_EpisodeOfCare());
    andStr = " and ";           

    condStr.append(andStr + " patdiag.isCancerDiagnosis = :isCancerDiagnosis ");
    markers.add("isCancerDiagnosis");
    values.add(Boolean.TRUE);

    hql += " where ";
    hql += condStr.toString();
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(factory.find(hql,markers,values)).sort();
}
项目:openMAXIMS    文件:ReferralCodingImpl.java   
/**
 * Diagnosis / Complications for a Care Context
 */
public ims.core.vo.PatientDiagnosisListVoCollection listDiagnosisComplicationsForReferral(ims.core.admin.vo.CareContextRefVo careContextRefVo)
{
    DomainFactory factory = getDomainFactory();

    String hql = new String();
    hql = " from PatientDiagnosis patdiag ";

    StringBuffer condStr = new StringBuffer();
    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();
    String andStr = " ";

    condStr.append(andStr + " patdiag.careContext.id = :carecontextId");
    markers.add("carecontextId");
    values.add(careContextRefVo.getID_CareContext());
    andStr = " and ";

    hql += " where ";
    hql += condStr.toString();
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(factory.find(hql, markers, values)).sort();
}
项目:openMAXIMS    文件:DiagnosisComplicationsImpl.java   
public PatientDiagnosisListVoCollection listDiagnosisComplicationEpisodeOfCareForCancerDiagnosis(EpisodeOfCareRefVo episodeOfCareRefVo) 
{
    DomainFactory factory = getDomainFactory();

    String hql = new String();
    hql = " from PatientDiagnosis patdiag ";

    StringBuffer condStr = new StringBuffer();
    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Comparable> values = new ArrayList<Comparable>();
    String andStr = " ";

    condStr.append(andStr + " patdiag.careContext.episodeOfCare.id = :episodeId");
    markers.add("episodeId");
    values.add(episodeOfCareRefVo.getID_EpisodeOfCare());
    andStr = " and ";           

    condStr.append(andStr + " patdiag.isCancerDiagnosis = :isCancerDiagnosis ");
    markers.add("isCancerDiagnosis");
    values.add(Boolean.TRUE);

    hql += " where ";
    hql += condStr.toString();
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(factory.find(hql,markers,values)).sort();
}
项目:openMAXIMS    文件:ReferralCodingImpl.java   
/**
* Diagnosis / Complications for a Care Context
*/
public ims.core.vo.PatientDiagnosisListVoCollection listDiagnosisComplicationsForReferral(ims.core.admin.vo.CareContextRefVo careContextRefVo)
{
    DomainFactory factory = getDomainFactory();

    String hql = new String();
    hql = " from PatientDiagnosis patdiag ";

    StringBuffer condStr = new StringBuffer();
    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();
    String andStr = " ";

    condStr.append(andStr + " patdiag.careContext.id = :carecontextId");
    markers.add("carecontextId");
    values.add(careContextRefVo.getID_CareContext());
    andStr = " and ";           

    hql += " where ";
    hql += condStr.toString();
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(factory.find(hql,markers,values)).sort();     
}
项目:openMAXIMS    文件:DiagnosisComplicationsImpl.java   
public PatientDiagnosisListVoCollection listDiagnosisComplicationEpisodeOfCareForCancerDiagnosis(EpisodeOfCareRefVo episodeOfCareRefVo) 
{
    DomainFactory factory = getDomainFactory();

    String hql = new String();
    hql = " from PatientDiagnosis patdiag ";

    StringBuffer condStr = new StringBuffer();
    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Comparable> values = new ArrayList<Comparable>();
    String andStr = " ";

    condStr.append(andStr + " patdiag.careContext.episodeOfCare.id = :episodeId");
    markers.add("episodeId");
    values.add(episodeOfCareRefVo.getID_EpisodeOfCare());
    andStr = " and ";           

    condStr.append(andStr + " patdiag.isCancerDiagnosis = :isCancerDiagnosis ");
    markers.add("isCancerDiagnosis");
    values.add(Boolean.TRUE);

    hql += " where ";
    hql += condStr.toString();
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(factory.find(hql,markers,values)).sort();
}
项目:openmaxims-linux    文件:DiagnosisComplicationsImpl.java   
public PatientDiagnosisListVoCollection listDiagnosisComplicationEpisodeOfCareForCancerDiagnosis(EpisodeOfCareRefVo episodeOfCareRefVo) 
{
    DomainFactory factory = getDomainFactory();

    String hql = new String();
    hql = " from PatientDiagnosis patdiag ";

    StringBuffer condStr = new StringBuffer();
    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Comparable> values = new ArrayList<Comparable>();
    String andStr = " ";

    condStr.append(andStr + " patdiag.careContext.episodeOfCare.id = :episodeId");
    markers.add("episodeId");
    values.add(episodeOfCareRefVo.getID_EpisodeOfCare());
    andStr = " and ";           

    condStr.append(andStr + " patdiag.isCancerDiagnosis = :isCancerDiagnosis ");
    markers.add("isCancerDiagnosis");
    values.add(Boolean.TRUE);

    hql += " where ";
    hql += condStr.toString();
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(factory.find(hql,markers,values)).sort();
}
项目:AvoinApotti    文件:SelectPreviousDiagnosesImpl.java   
public ims.core.vo.PatientDiagnosisListVoCollection listDiagnosis(CareContextRefVo careContextRefVo, PatientRefVo patRef)
{
    DomainFactory factory = getDomainFactory();

    String hql = new String();
    hql = "select patdiag from PatientDiagnosis as patdiag left join patdiag.episodeOfCare as epcare left join epcare.careSpell as carespell left join carespell.patient as pat";

    StringBuffer condStr = new StringBuffer();
    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();
    String andStr = " ";

    condStr.append(andStr + " patdiag.careContext.id <> :carecontextId");
    markers.add("carecontextId");
    values.add(careContextRefVo.getID_CareContext());
    andStr = " and ";   

    condStr.append(andStr + " pat.id = :PatID");
    markers.add("PatID");
    values.add(patRef.getID_Patient());
    andStr = " and ";   


    hql += " where ";
    hql += condStr.toString();
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(factory.find(hql,markers,values)).sort();
}
项目:AvoinApotti    文件:SelectPatientOrLocallyConfiguredDiagnosisImpl.java   
/**
* listProcedureShortListVoByPatient
*/
public ims.core.vo.PatientDiagnosisListVoCollection listCancerDiagnosisByPatient(ims.core.patient.vo.PatientRefVo patient)
{
    DomainFactory factory = getDomainFactory();

    String hql = new String();
    hql = " from PatientDiagnosis patdiag ";

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

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

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

    condStr.append(andStr + " patdiag.isComplication = :complication");
    markers.add("complication");
    values.add(Boolean.FALSE);

    condStr.append(andStr + " patdiag.isResolved = :excresolved");
    markers.add("excresolved");
    values.add(Boolean.FALSE);

    hql += " where ";

    hql += condStr.toString();
    List list = factory.find(hql,markers,values);
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(list).sort();
}
项目:openMAXIMS    文件:SelectPreviousDiagnosesImpl.java   
public ims.core.vo.PatientDiagnosisListVoCollection listDiagnosis(CareContextRefVo careContextRefVo, PatientRefVo patRef)
{
    DomainFactory factory = getDomainFactory();

    String hql = new String();
    hql = "select patdiag from PatientDiagnosis as patdiag left join patdiag.episodeOfCare as epcare left join epcare.careSpell as carespell left join carespell.patient as pat";

    StringBuffer condStr = new StringBuffer();
    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();
    String andStr = " ";

    condStr.append(andStr + " patdiag.careContext.id <> :carecontextId");
    markers.add("carecontextId");
    values.add(careContextRefVo.getID_CareContext());
    andStr = " and ";   

    condStr.append(andStr + " pat.id = :PatID");
    markers.add("PatID");
    values.add(patRef.getID_Patient());
    andStr = " and ";   


    hql += " where ";
    hql += condStr.toString();
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(factory.find(hql,markers,values)).sort();
}
项目:openMAXIMS    文件:SelectPatientOrLocallyConfiguredDiagnosisImpl.java   
/**
* listProcedureShortListVoByPatient
*/
public ims.core.vo.PatientDiagnosisListVoCollection listCancerDiagnosisByPatient(ims.core.patient.vo.PatientRefVo patient)
{
    DomainFactory factory = getDomainFactory();

    String hql = new String();
    hql = " from PatientDiagnosis patdiag ";

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

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

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

    condStr.append(andStr + " patdiag.isComplication = :complication");
    markers.add("complication");
    values.add(Boolean.FALSE);

    condStr.append(andStr + " patdiag.isResolved = :excresolved");
    markers.add("excresolved");
    values.add(Boolean.FALSE);

    hql += " where ";

    hql += condStr.toString();
    List list = factory.find(hql,markers,values);
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(list).sort();
}
项目:openMAXIMS    文件:SelectPreviousDiagnosesImpl.java   
public ims.core.vo.PatientDiagnosisListVoCollection listDiagnosis(CareContextRefVo careContextRefVo, PatientRefVo patRef)
{
    DomainFactory factory = getDomainFactory();

    String hql = new String();
    hql = "select patdiag from PatientDiagnosis as patdiag left join patdiag.episodeOfCare as epcare left join epcare.careSpell as carespell left join carespell.patient as pat";

    StringBuffer condStr = new StringBuffer();
    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();
    String andStr = " ";

    condStr.append(andStr + " patdiag.careContext.id <> :carecontextId");
    markers.add("carecontextId");
    values.add(careContextRefVo.getID_CareContext());
    andStr = " and ";   

    condStr.append(andStr + " pat.id = :PatID");
    markers.add("PatID");
    values.add(patRef.getID_Patient());
    andStr = " and ";   


    hql += " where ";
    hql += condStr.toString();
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(factory.find(hql,markers,values)).sort();
}
项目:openMAXIMS    文件:SelectPatientOrLocallyConfiguredDiagnosisImpl.java   
/**
* listProcedureShortListVoByPatient
*/
public ims.core.vo.PatientDiagnosisListVoCollection listCancerDiagnosisByPatient(ims.core.patient.vo.PatientRefVo patient)
{
    DomainFactory factory = getDomainFactory();

    String hql = new String();
    hql = " from PatientDiagnosis patdiag ";

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

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

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

    condStr.append(andStr + " patdiag.isComplication = :complication");
    markers.add("complication");
    values.add(Boolean.FALSE);

    condStr.append(andStr + " patdiag.isResolved = :excresolved");
    markers.add("excresolved");
    values.add(Boolean.FALSE);

    hql += " where ";

    hql += condStr.toString();
    List list = factory.find(hql,markers,values);
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(list).sort();
}
项目:openmaxims-linux    文件:SelectPatientOrLocallyConfiguredDiagnosisImpl.java   
/**
* listProcedureShortListVoByPatient
*/
public ims.core.vo.PatientDiagnosisListVoCollection listCancerDiagnosisByPatient(ims.core.patient.vo.PatientRefVo patient)
{
    DomainFactory factory = getDomainFactory();

    String hql = new String();
    hql = " from PatientDiagnosis patdiag ";

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

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

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

    condStr.append(andStr + " patdiag.isComplication = :complication");
    markers.add("complication");
    values.add(Boolean.FALSE);

    condStr.append(andStr + " patdiag.isResolved = :excresolved");
    markers.add("excresolved");
    values.add(Boolean.FALSE);

    hql += " where ";

    hql += condStr.toString();
    List list = factory.find(hql,markers,values);
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(list).sort();
}
项目:AvoinApotti    文件:DiagnosisComplicationsImpl.java   
public PatientDiagnosisListVoCollection listDiagnosisComplicationEpisodeOfCareAndUnresolved(EpisodeOfCareRefVo episodeOfCareRefVo, PatientRefVo patient)
{
    List list = listDiagnComplicationEpisodeOfCareAndUnresolved(episodeOfCareRefVo, patient);
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(list).sort();
}
项目:AvoinApotti    文件:DiagnosisComplicationsImpl.java   
public PatientDiagnosisListVoCollection listDiagnosisComplicationsExcludeResolvedByPatient(PatientRefVo voPatRef)
{
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(listDiagnosesForPatient(voPatRef, true, true, true)).sort();
}
项目:AvoinApotti    文件:DiagnosisComplicationsImpl.java   
public PatientDiagnosisListVoCollection listDiagnosisComplicationsByPatient(PatientRefVo voPatRef)
{
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(listDiagnosesForPatient(voPatRef, true, true, false)).sort();
}
项目:openMAXIMS    文件:DiagnosisComplicationsImpl.java   
public PatientDiagnosisListVoCollection listDiagnosisComplicationEpisodeOfCareAndUnresolved(EpisodeOfCareRefVo episodeOfCareRefVo, PatientRefVo patient)
{
    List list = listDiagnComplicationEpisodeOfCareAndUnresolved(episodeOfCareRefVo, patient);
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(list).sort();
}
项目:openMAXIMS    文件:DiagnosisComplicationsImpl.java   
public PatientDiagnosisListVoCollection listDiagnosisComplicationsExcludeResolvedByPatient(PatientRefVo voPatRef)
{
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(listDiagnosesForPatient(voPatRef, true, true, true)).sort();
}
项目:openMAXIMS    文件:DiagnosisComplicationsImpl.java   
public PatientDiagnosisListVoCollection listDiagnosisComplicationsByPatient(PatientRefVo voPatRef)
{
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(listDiagnosesForPatient(voPatRef, true, true, false)).sort();
}
项目:openMAXIMS    文件:DiagnosisComplicationsImpl.java   
public PatientDiagnosisListVoCollection listDiagnosisComplicationEpisodeOfCareAndUnresolved(EpisodeOfCareRefVo episodeOfCareRefVo, PatientRefVo patient)
{
    List list = listDiagnComplicationEpisodeOfCareAndUnresolved(episodeOfCareRefVo, patient);
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(list).sort();
}
项目:openMAXIMS    文件:DiagnosisComplicationsImpl.java   
public PatientDiagnosisListVoCollection listDiagnosisComplicationsExcludeResolvedByPatient(PatientRefVo voPatRef)
{
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(listDiagnosesForPatient(voPatRef, true, true, true)).sort();
}
项目:openMAXIMS    文件:DiagnosisComplicationsImpl.java   
public PatientDiagnosisListVoCollection listDiagnosisComplicationsByPatient(PatientRefVo voPatRef)
{
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(listDiagnosesForPatient(voPatRef, true, true, false)).sort();
}
项目:openmaxims-linux    文件:DiagnosisComplicationsImpl.java   
public PatientDiagnosisListVoCollection listDiagnosisComplicationEpisodeOfCareAndUnresolved(EpisodeOfCareRefVo episodeOfCareRefVo, PatientRefVo patient)
{
    List list = listDiagnComplicationEpisodeOfCareAndUnresolved(episodeOfCareRefVo, patient);
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(list).sort();
}
项目:openmaxims-linux    文件:DiagnosisComplicationsImpl.java   
public PatientDiagnosisListVoCollection listDiagnosisComplicationsExcludeResolvedByPatient(PatientRefVo voPatRef)
{
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(listDiagnosesForPatient(voPatRef, true, true, true)).sort();
}
项目:openmaxims-linux    文件:DiagnosisComplicationsImpl.java   
public PatientDiagnosisListVoCollection listDiagnosisComplicationsByPatient(PatientRefVo voPatRef)
{
    return PatientDiagnosisListVoAssembler.createPatientDiagnosisListVoCollectionFromPatientDiagnosis(listDiagnosesForPatient(voPatRef, true, true, false)).sort();
}