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

项目:AvoinApotti    文件:MedicationDosesImpl.java   
public MedicationOverViewLiteVoCollection listMedicationOverviews(MedicationOverViewFilterVo voMedicationViewFilter) 
{
    if (voMedicationViewFilter == null)
        throw new DomainRuntimeException("Invalid Overview");

    DomainFactory factory = getDomainFactory();

    String hql = " from MedicationOverview mv where mv.careContext.episodeOfCare.careSpell.patient.id = :patid order by mv.authoringInformation.authoringDateTime desc"; 
    List overs = factory.find(hql, new String[]{"patid"}, new Object[]{voMedicationViewFilter.getPatientRef().getID_Patient()});
    if(overs.size() == 0)
        return null;

    return MedicationOverViewLiteVoAssembler.createMedicationOverViewLiteVoCollectionFromMedicationOverview(overs);

}
项目:openMAXIMS    文件:PatientMedicationMultipleDosesImpl.java   
public MedicationOverViewLiteVoCollection listMedicationOverviews(MedicationOverViewFilterVo voMedicationViewFilter) 
{
    if (voMedicationViewFilter == null)
        throw new DomainRuntimeException("Invalid Overview");

    DomainFactory factory = getDomainFactory();

    String hql = " from MedicationOverview mv where mv.careContext.episodeOfCare.careSpell.patient.id = :patid order by mv.authoringInformation.authoringDateTime desc"; 
    List overs = factory.find(hql, new String[]{"patid"}, new Object[]{voMedicationViewFilter.getPatientRef().getID_Patient()});
    if(overs.size() == 0)
        return null;

    return MedicationOverViewLiteVoAssembler.createMedicationOverViewLiteVoCollectionFromMedicationOverview(overs);

}
项目:openMAXIMS    文件:MedicationDosesImpl.java   
public MedicationOverViewLiteVoCollection listMedicationOverviews(MedicationOverViewFilterVo voMedicationViewFilter) 
{
    if (voMedicationViewFilter == null)
        throw new DomainRuntimeException("Invalid Overview");

    DomainFactory factory = getDomainFactory();

    String hql = " from MedicationOverview mv where mv.careContext.episodeOfCare.careSpell.patient.id = :patid order by mv.authoringInformation.authoringDateTime desc"; 
    List overs = factory.find(hql, new String[]{"patid"}, new Object[]{voMedicationViewFilter.getPatientRef().getID_Patient()});
    if(overs.size() == 0)
        return null;

    return MedicationOverViewLiteVoAssembler.createMedicationOverViewLiteVoCollectionFromMedicationOverview(overs);

}
项目:openMAXIMS    文件:MedicationDosesImpl.java   
public MedicationOverViewLiteVoCollection listMedicationOverviews(MedicationOverViewFilterVo voMedicationViewFilter) 
{
    if (voMedicationViewFilter == null)
        throw new DomainRuntimeException("Invalid Overview");

    DomainFactory factory = getDomainFactory();

    String hql = " from MedicationOverview mv where mv.careContext.episodeOfCare.careSpell.patient.id = :patid order by mv.authoringInformation.authoringDateTime desc"; 
    List overs = factory.find(hql, new String[]{"patid"}, new Object[]{voMedicationViewFilter.getPatientRef().getID_Patient()});
    if(overs.size() == 0)
        return null;

    return MedicationOverViewLiteVoAssembler.createMedicationOverViewLiteVoCollectionFromMedicationOverview(overs);

}
项目:openmaxims-linux    文件:MedicationDosesImpl.java   
public MedicationOverViewLiteVoCollection listMedicationOverviews(MedicationOverViewFilterVo voMedicationViewFilter) 
{
    if (voMedicationViewFilter == null)
        throw new DomainRuntimeException("Invalid Overview");

    DomainFactory factory = getDomainFactory();

    String hql = " from MedicationOverview mv where mv.careContext.episodeOfCare.careSpell.patient.id = :patid order by mv.authoringInformation.authoringDateTime desc"; 
    List overs = factory.find(hql, new String[]{"patid"}, new Object[]{voMedicationViewFilter.getPatientRef().getID_Patient()});
    if(overs.size() == 0)
        return null;

    return MedicationOverViewLiteVoAssembler.createMedicationOverViewLiteVoCollectionFromMedicationOverview(overs);

}