Program: 23807
Project: 23807
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ImplementationGuide convertImplementationGuide(org.hl7.fhir.dstu3.model.ImplementationGuide src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ImplementationGuide tgt=new org.hl7.fhir.dstu2016may.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 static org.hl7.fhir.dstu2016may.model.ImplementationGuide convertImplementationGuide(org.hl7.fhir.dstu3.model.ImplementationGuide src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ImplementationGuide tgt=new org.hl7.fhir.dstu2016may.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;
}