Program: 23859
Project: 23859
Buggy source:
public static org.hl7.fhir.dstu2016may.model.OperationDefinition convertOperationDefinition(org.hl7.fhir.dstu3.model.OperationDefinition src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.OperationDefinition tgt=new org.hl7.fhir.dstu2016may.model.OperationDefinition();
  copyDomainResource(src,tgt);
  tgt.setUrl(src.getUrl());
  tgt.setVersion(src.getVersion());
  tgt.setName(src.getName());
  tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
  tgt.setKind(convertOperationKind(src.getKind()));
  tgt.setExperimental(src.getExperimental());
  tgt.setDate(src.getDate());
  tgt.setPublisher(src.getPublisher());
  for (  org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionContactComponent t : src.getContact())   tgt.addContact(convertOperationDefinitionContactComponent(t));
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext())   tgt.addUseContext(convertCodeableConcept(t));
  tgt.setRequirements(src.getRequirements());
  tgt.setIdempotent(src.getIdempotent());
  tgt.setCode(src.getCode());
  tgt.setComment(src.getComment());
  tgt.setBase(convertReference(src.getBase()));
  tgt.setSystem(src.getSystem());
  for (  org.hl7.fhir.dstu3.model.CodeType t : src.getType())   tgt.addType(t.getValue());
  tgt.setInstance(src.getInstance());
  for (  org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getParameter())   tgt.addParameter(convertOperationDefinitionParameterComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.OperationDefinition convertOperationDefinition(org.hl7.fhir.dstu3.model.OperationDefinition src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.OperationDefinition tgt=new org.hl7.fhir.dstu2016may.model.OperationDefinition();
  copyDomainResource(src,tgt);
  tgt.setUrl(src.getUrl());
  tgt.setVersion(src.getVersion());
  tgt.setName(src.getName());
  tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
  tgt.setKind(convertOperationKind(src.getKind()));
  tgt.setExperimental(src.getExperimental());
  tgt.setDate(src.getDate());
  tgt.setPublisher(src.getPublisher());
  for (  org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionContactComponent t : src.getContact())   tgt.addContact(convertOperationDefinitionContactComponent(t));
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext())   tgt.addUseContext(convertCodeableConcept(t));
  tgt.setRequirements(src.getRequirements());
  tgt.setIdempotent(src.getIdempotent());
  tgt.setCode(src.getCode());
  tgt.setComment(src.getComment());
  tgt.setBase(convertReference(src.getBase()));
  tgt.setSystem(src.getSystem());
  for (  org.hl7.fhir.dstu3.model.CodeType t : src.getType())   tgt.addType(t.getValue());
  tgt.setInstance(src.getInstance());
  for (  org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getParameter())   tgt.addParameter(convertOperationDefinitionParameterComponent(t));
  return tgt;
}