private EDPartialAdmissionForTrackingVo assembleCurrentpartialAdmission(EDPartialAdmissionForTrackingVo currentPartialAdmission, Date allocatedDateTime, LookupInstance specialty, Hcp consultant) { if (currentPartialAdmission==null) currentPartialAdmission=new EDPartialAdmissionForTrackingVo(); if(allocatedDateTime != null)//WDEV-23199 { currentPartialAdmission.setAllocatedDateTime(new DateTime(allocatedDateTime)); } if(specialty != null) { currentPartialAdmission.setSpecialty(assembleReferalSpecialty(specialty)); } if(consultant != null) { HcpMinVo hcpMinVo = HcpMinVoAssembler.create(consultant); currentPartialAdmission.setAdmittingConsultant(hcpMinVo); } return currentPartialAdmission; }
public HcpMinVo getHcpMinByTaxonomyType(String extCode, TaxonomyType taxType) { MemberOfStaff domMos = getDomMosByTaxonomyType(extCode, taxType); if (domMos == null) return null; else { return HcpMinVoAssembler.create(domMos.getHcp()); } }
public HcpMinVo getHCPMin(HcpRefVo hcpRef) { if (hcpRef == null || hcpRef.getID_Hcp()==null) { throw new CodingRuntimeException("Cannot get HCPMin for null ID"); } DomainFactory factory = getDomainFactory(); Hcp domHCP=(Hcp) factory.getDomainObject(Hcp.class, hcpRef.getID_Hcp()); return HcpMinVoAssembler.create(domHCP); }
public HcpMinVo getHCPMin(HcpRefVo hcpRef) { if (hcpRef == null || hcpRef.getID_Hcp() == null) { throw new CodingRuntimeException("Cannot get HCPMin for null ID"); } DomainFactory factory = getDomainFactory(); Hcp domHCP = (Hcp) factory.getDomainObject(Hcp.class, hcpRef.getID_Hcp()); return HcpMinVoAssembler.create(domHCP); }