public PatientMedsVo getPatientMeds(PatientMedicationOnAttendanceRefVo patientMeds) { if (patientMeds == null || patientMeds.getID_PatientMedicationOnAttendance() == null) { throw new CodingRuntimeException("Cannot get PatientMedsVo on null Id "); } DomainFactory factory = getDomainFactory(); PatientMedicationOnAttendance domainPatientMeds = (PatientMedicationOnAttendance) factory.getDomainObject(PatientMedicationOnAttendance.class, patientMeds.getID_PatientMedicationOnAttendance()); return PatientMedsVoAssembler.create(domainPatientMeds); }