Program: 23642
Project: 23642
Buggy source:
public org.hl7.fhir.dstu2.model.ImplementationGuide convertImplementationGuide(org.hl7.fhir.dstu3.model.ImplementationGuide src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2.model.ImplementationGuide tgt=new org.hl7.fhir.dstu2.model.ImplementationGuide();
  copyDomainResource(src,tgt);
  tgt.setUrl(src.getUrl());
  tgt.setVersion(src.getVersion());
  tgt.setName(src.getName());
  tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
  tgt.setExperimental(src.getExperimental());
  tgt.setPublisher(src.getPublisher());
  for (  org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideContactComponent t : src.getContact())   tgt.addContact(convertImplementationGuideContactComponent(t));
  tgt.setDate(src.getDate());
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext())   tgt.addUseContext(convertCodeableConcept(t));
  tgt.setCopyright(src.getCopyright());
  tgt.setFhirVersion(src.getFhirVersion());
  for (  org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent t : src.getDependency())   tgt.addDependency(convertImplementationGuideDependencyComponent(t));
  for (  org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent t : src.getPackage())   tgt.addPackage(convertImplementationGuidePackageComponent(t));
  for (  org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent t : src.getGlobal())   tgt.addGlobal(convertImplementationGuideGlobalComponent(t));
  for (  org.hl7.fhir.dstu3.model.UriType t : src.getBinary())   tgt.addBinary(t.getValue());
  tgt.setPage(convertImplementationGuidePageComponent(src.getPage()));
  return tgt;
}

Fixed version (ground truth):
public org.hl7.fhir.dstu2.model.ImplementationGuide convertImplementationGuide(org.hl7.fhir.dstu3.model.ImplementationGuide src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2.model.ImplementationGuide tgt=new org.hl7.fhir.dstu2.model.ImplementationGuide();
  copyDomainResource(src,tgt);
  tgt.setUrl(src.getUrl());
  tgt.setVersion(src.getVersion());
  tgt.setName(src.getName());
  tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
  tgt.setExperimental(src.getExperimental());
  tgt.setPublisher(src.getPublisher());
  for (  org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideContactComponent t : src.getContact())   tgt.addContact(convertImplementationGuideContactComponent(t));
  tgt.setDate(src.getDate());
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext())   tgt.addUseContext(convertCodeableConcept(t));
  tgt.setCopyright(src.getCopyright());
  tgt.setFhirVersion(src.getFhirVersion());
  for (  org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent t : src.getDependency())   tgt.addDependency(convertImplementationGuideDependencyComponent(t));
  for (  org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent t : src.getPackage())   tgt.addPackage(convertImplementationGuidePackageComponent(t));
  for (  org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent t : src.getGlobal())   tgt.addGlobal(convertImplementationGuideGlobalComponent(t));
  for (  org.hl7.fhir.dstu3.model.UriType t : src.getBinary())   tgt.addBinary(t.getValue());
  tgt.setPage(convertImplementationGuidePageComponent(src.getPage()));
  return tgt;
}