/** * get Respiratory Treatment */ public ims.core.vo.RespiratoryTreatmentVo getRespiratoryTreatment(ims.core.vo.ClinicalContactShortVo voClinicalContact) { if (voClinicalContact == null) throw new RuntimeException("Cannot get RespiratoryTreatmentVo for null ClinicalContactShortVo"); StringBuffer hql = new StringBuffer("from RespiratoryTreatment as r1_1 where r1_1.sOAPClinicalContact.id = :CCID and r1_1.isRIE is null order by r1_1.systemInformation.creationDateTime desc"); List list = getDomainFactory().find(hql.toString(), "CCID", voClinicalContact.getID_ClinicalContact()); if (list == null || list.size() == 0) return null; RespiratoryTreatmentVoCollection voList = RespiratoryTreatmentVoAssembler.createRespiratoryTreatmentVoCollectionFromRespiratoryTreatment(list);; if (voList.size() > 0) return voList.get(0); return null; }
public RespiratoryTreatmentVoCollection getRespiratoryTreatmentCollection(ClinicalContactShortVo voClinicalContact) { if (voClinicalContact == null) throw new RuntimeException("Cannot get RespiratoryTreatmentVo for null ClinicalContactShortVo"); StringBuffer hql = new StringBuffer("from RespiratoryTreatment as r1_1 where r1_1.sOAPClinicalContact.id = :CCID order by r1_1.systemInformation.creationDateTime desc"); List list = getDomainFactory().find(hql.toString(), "CCID", voClinicalContact.getID_ClinicalContact()); if (list == null || list.size() == 0) return null; RespiratoryTreatmentVoCollection voList = RespiratoryTreatmentVoAssembler.createRespiratoryTreatmentVoCollectionFromRespiratoryTreatment(list);; return voList; }