public GPLiteWithCommChannelsVo getGPLiteWithCommChannels(GpRefVo gp) { if(gp == null || gp.getID_Gp() == null) throw new CodingRuntimeException("GpRefVo is null or id not provided for getMedicVo"); return GPLiteWithCommChannelsVoAssembler.create((Gp) getDomainFactory().getDomainObject(gp)); }
public GPLiteWithCommChannelsVo getGPLiteWithCommChannelsFromPatientShort( PatientShort patientShort) { if(patientShort == null || patientShort.getID_Patient() == null) throw new CodingRuntimeException("PatientShort is null "); Patient pat = (Patient) getDomainFactory().getDomainObject(patientShort); if(pat == null) throw new CodingRuntimeException("Patient is null "); return GPLiteWithCommChannelsVoAssembler.create((Gp)pat.getGp() ); }