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; }
protected HcpMinVo getAttendingDoctor(PV1 pv1, ProviderSystemVo providerSystem) //WDEV-20278 { HcpMinVo hcp=null; XCN[] xcns = pv1.getAttendingDoctor(); if (xcns!=null&&xcns.length>0&&xcns[0]!=null) { hcp= populateHcpMinFromXCN(xcns[0],TaxonomyType.NAT_CONS_CODE); } if(hcp==null&&xcns.length>1&&xcns[1]!=null) { //WDEV-20278 // hcp=populateHcpMinFromXCN(xcns[1],TaxonomyType.PAS); hcp = populateHcpMinFromXCN(xcns[1], providerSystem.getCodeSystem()); //WDEV-20278 } return hcp; }
protected HcpMinVo getAttendingDoctor(PV1 pv1) { HcpMinVo hcp=null; XCN[] xcns = pv1.getAttendingDoctor(); if (xcns!=null&&xcns.length>0&&xcns[0]!=null) { hcp= populateHcpMinFromXCN(xcns[0],TaxonomyType.NAT_CONS_CODE); } if(hcp==null&&xcns.length>1&&xcns[1]!=null) { hcp=populateHcpMinFromXCN(xcns[1],TaxonomyType.PAS); } return hcp; }
protected final HcpMinVo populateHcpMinFromXCN(XCN xcn, TaxonomyType taxType) { String code = xcn.getIDNumber().getValue(); if (code != null) { return mosAdmin.getHcpMinByTaxonomyType(code, taxType); } return null; }
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); }