Program: 23886
Project: 23886
Buggy source:
public static org.hl7.fhir.dstu2016may.model.CodeSystem convertCodeSystem(org.hl7.fhir.dstu3.model.CodeSystem src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.CodeSystem tgt=new org.hl7.fhir.dstu2016may.model.CodeSystem();
  copyDomainResource(src,tgt);
  tgt.setUrl(src.getUrl());
  tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
  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.CodeSystem.CodeSystemContactComponent t : src.getContact())   tgt.addContact(convertCodeSystemContactComponent(t));
  tgt.setDate(src.getDate());
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext())   tgt.addUseContext(convertCodeableConcept(t));
  tgt.setRequirements(src.getRequirements());
  tgt.setCopyright(src.getCopyright());
  tgt.setCaseSensitive(src.getCaseSensitive());
  tgt.setValueSet(src.getValueSet());
  tgt.setCompositional(src.getCompositional());
  tgt.setVersionNeeded(src.getVersionNeeded());
  tgt.setContent(convertCodeSystemContentMode(src.getContent()));
  tgt.setCount(src.getCount());
  for (  org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemFilterComponent t : src.getFilter())   tgt.addFilter(convertCodeSystemFilterComponent(t));
  for (  org.hl7.fhir.dstu3.model.CodeSystem.PropertyComponent t : src.getProperty())   tgt.addProperty(convertPropertyComponent(t));
  for (  org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent t : src.getConcept())   tgt.addConcept(convertConceptDefinitionComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.CodeSystem convertCodeSystem(org.hl7.fhir.dstu3.model.CodeSystem src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.CodeSystem tgt=new org.hl7.fhir.dstu2016may.model.CodeSystem();
  copyDomainResource(src,tgt);
  tgt.setUrl(src.getUrl());
  tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
  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.CodeSystem.CodeSystemContactComponent t : src.getContact())   tgt.addContact(convertCodeSystemContactComponent(t));
  tgt.setDate(src.getDate());
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext())   tgt.addUseContext(convertCodeableConcept(t));
  tgt.setRequirements(src.getRequirements());
  tgt.setCopyright(src.getCopyright());
  tgt.setCaseSensitive(src.getCaseSensitive());
  tgt.setValueSet(src.getValueSet());
  tgt.setCompositional(src.getCompositional());
  tgt.setVersionNeeded(src.getVersionNeeded());
  tgt.setContent(convertCodeSystemContentMode(src.getContent()));
  tgt.setCount(src.getCount());
  for (  org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemFilterComponent t : src.getFilter())   tgt.addFilter(convertCodeSystemFilterComponent(t));
  for (  org.hl7.fhir.dstu3.model.CodeSystem.PropertyComponent t : src.getProperty())   tgt.addProperty(convertPropertyComponent(t));
  for (  org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent t : src.getConcept())   tgt.addConcept(convertConceptDefinitionComponent(t));
  return tgt;
}