nus-yam/ex-repair huggingface dataset:
Program: 23779
Project: 23779
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ConceptMap.ConceptMapContactComponent convertConceptMapContactComponent(org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapContactComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ConceptMap.ConceptMapContactComponent tgt=new org.hl7.fhir.dstu2016may.model.ConceptMap.ConceptMapContactComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ConceptMap.ConceptMapContactComponent convertConceptMapContactComponent(org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapContactComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ConceptMap.ConceptMapContactComponent tgt=new org.hl7.fhir.dstu2016may.model.ConceptMap.ConceptMapContactComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  return tgt;
}
Program: 23780
Project: 23780
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingComponent convertConformanceMessagingComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceMessagingComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingComponent();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint())   tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
  tgt.setReliableCache(src.getReliableCache());
  tgt.setDocumentation(src.getDocumentation());
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceMessagingEventComponent t : src.getEvent())   tgt.addEvent(convertConformanceMessagingEventComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingComponent convertConformanceMessagingComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceMessagingComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingComponent();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint())   tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
  tgt.setReliableCache(src.getReliableCache());
  tgt.setDocumentation(src.getDocumentation());
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceMessagingEventComponent t : src.getEvent())   tgt.addEvent(convertConformanceMessagingEventComponent(t));
  return tgt;
}
Program: 23781
Project: 23781
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideContactComponent convertImplementationGuideContactComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideContactComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideContactComponent tgt=new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideContactComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideContactComponent convertImplementationGuideContactComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideContactComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideContactComponent tgt=new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideContactComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  return tgt;
}
Program: 23782
Project: 23782
Buggy source:
public static org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionContactComponent convertOperationDefinitionContactComponent(org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionContactComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionContactComponent tgt=new org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionContactComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionContactComponent convertOperationDefinitionContactComponent(org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionContactComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionContactComponent tgt=new org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionContactComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  return tgt;
}
Program: 23783
Project: 23783
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Conformance.SystemInteractionComponent convertSystemInteractionComponent(org.hl7.fhir.dstu3.model.Conformance.SystemInteractionComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.SystemInteractionComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.SystemInteractionComponent();
  copyElement(src,tgt);
  tgt.setCode(convertSystemRestfulInteraction(src.getCode()));
  tgt.setDocumentation(src.getDocumentation());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Conformance.SystemInteractionComponent convertSystemInteractionComponent(org.hl7.fhir.dstu3.model.Conformance.SystemInteractionComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.SystemInteractionComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.SystemInteractionComponent();
  copyElement(src,tgt);
  tgt.setCode(convertSystemRestfulInteraction(src.getCode()));
  tgt.setDocumentation(src.getDocumentation());
  return tgt;
}
Program: 23784
Project: 23784
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Duration convertDuration(org.hl7.fhir.dstu3.model.Duration src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Duration tgt=new org.hl7.fhir.dstu2016may.model.Duration();
  copyElement(src,tgt);
  tgt.setValue(src.getValue());
  tgt.setComparator(convertQuantityComparator(src.getComparator()));
  tgt.setUnit(src.getUnit());
  tgt.setSystem(src.getSystem());
  tgt.setCode(src.getCode());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Duration convertDuration(org.hl7.fhir.dstu3.model.Duration src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Duration tgt=new org.hl7.fhir.dstu2016may.model.Duration();
  copyElement(src,tgt);
  tgt.setValue(src.getValue());
  tgt.setComparator(convertQuantityComparator(src.getComparator()));
  tgt.setUnit(src.getUnit());
  tgt.setSystem(src.getSystem());
  tgt.setCode(src.getCode());
  return tgt;
}
Program: 23785
Project: 23785
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageComponent convertImplementationGuidePackageComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageComponent tgt=new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent t : src.getResource())   tgt.addResource(convertImplementationGuidePackageResourceComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageComponent convertImplementationGuidePackageComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageComponent tgt=new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent t : src.getResource())   tgt.addResource(convertImplementationGuidePackageResourceComponent(t));
  return tgt;
}
Program: 23786
Project: 23786
Buggy source:
public static org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionContactComponent convertCompartmentDefinitionContactComponent(org.hl7.fhir.dstu3.model.CompartmentDefinition.CompartmentDefinitionContactComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionContactComponent tgt=new org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionContactComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionContactComponent convertCompartmentDefinitionContactComponent(org.hl7.fhir.dstu3.model.CompartmentDefinition.CompartmentDefinitionContactComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionContactComponent tgt=new org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionContactComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  return tgt;
}
Program: 23787
Project: 23787
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent convertOtherElementComponent(org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent tgt=new org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent();
  copyElement(src,tgt);
  tgt.setElement(src.getProperty());
  tgt.setSystem(src.getSystem());
  tgt.setCode(src.getCode());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent convertOtherElementComponent(org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent tgt=new org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent();
  copyElement(src,tgt);
  tgt.setElement(src.getProperty());
  tgt.setSystem(src.getSystem());
  tgt.setCode(src.getCode());
  return tgt;
}
Program: 23788
Project: 23788
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionSlicingComponent convertElementDefinitionSlicingComponent(org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionSlicingComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionSlicingComponent tgt=new org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionSlicingComponent();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getDiscriminator())   tgt.addDiscriminator(t.getValue());
  tgt.setDescription(src.getDescription());
  tgt.setOrdered(src.getOrdered());
  tgt.setRules(convertSlicingRules(src.getRules()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionSlicingComponent convertElementDefinitionSlicingComponent(org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionSlicingComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionSlicingComponent tgt=new org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionSlicingComponent();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getDiscriminator())   tgt.addDiscriminator(t.getValue());
  tgt.setDescription(src.getDescription());
  tgt.setOrdered(src.getOrdered());
  tgt.setRules(convertSlicingRules(src.getRules()));
  return tgt;
}
Program: 23789
Project: 23789
Buggy source:
public static org.hl7.fhir.dstu2016may.model.SimpleQuantity convertSimpleQuantity(org.hl7.fhir.dstu3.model.SimpleQuantity src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.SimpleQuantity tgt=new org.hl7.fhir.dstu2016may.model.SimpleQuantity();
  copyElement(src,tgt);
  tgt.setValue(src.getValue());
  tgt.setComparator(convertQuantityComparator(src.getComparator()));
  tgt.setUnit(src.getUnit());
  tgt.setSystem(src.getSystem());
  tgt.setCode(src.getCode());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.SimpleQuantity convertSimpleQuantity(org.hl7.fhir.dstu3.model.SimpleQuantity src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.SimpleQuantity tgt=new org.hl7.fhir.dstu2016may.model.SimpleQuantity();
  copyElement(src,tgt);
  tgt.setValue(src.getValue());
  tgt.setComparator(convertQuantityComparator(src.getComparator()));
  tgt.setUnit(src.getUnit());
  tgt.setSystem(src.getSystem());
  tgt.setCode(src.getCode());
  return tgt;
}
Program: 23790
Project: 23790
Buggy source:
public static org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionDesignationComponent convertConceptDefinitionDesignationComponent(org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionDesignationComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionDesignationComponent tgt=new org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionDesignationComponent();
  copyElement(src,tgt);
  tgt.setLanguage(src.getLanguage());
  tgt.setUse(convertCoding(src.getUse()));
  tgt.setValue(src.getValue());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionDesignationComponent convertConceptDefinitionDesignationComponent(org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionDesignationComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionDesignationComponent tgt=new org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionDesignationComponent();
  copyElement(src,tgt);
  tgt.setLanguage(src.getLanguage());
  tgt.setUse(convertCoding(src.getUse()));
  tgt.setValue(src.getValue());
  return tgt;
}
Program: 23791
Project: 23791
Buggy source:
public static org.hl7.fhir.dstu2016may.model.NamingSystem convertNamingSystem(org.hl7.fhir.dstu3.model.NamingSystem src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.NamingSystem tgt=new org.hl7.fhir.dstu2016may.model.NamingSystem();
  copyDomainResource(src,tgt);
  tgt.setName(src.getName());
  tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
  tgt.setKind(convertNamingSystemType(src.getKind()));
  tgt.setDate(src.getDate());
  tgt.setPublisher(src.getPublisher());
  for (  org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemContactComponent t : src.getContact())   tgt.addContact(convertNamingSystemContactComponent(t));
  tgt.setResponsible(src.getResponsible());
  tgt.setType(convertCodeableConcept(src.getType()));
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext())   tgt.addUseContext(convertCodeableConcept(t));
  tgt.setUsage(src.getUsage());
  for (  org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent t : src.getUniqueId())   tgt.addUniqueId(convertNamingSystemUniqueIdComponent(t));
  tgt.setReplacedBy(convertReference(src.getReplacedBy()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.NamingSystem convertNamingSystem(org.hl7.fhir.dstu3.model.NamingSystem src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.NamingSystem tgt=new org.hl7.fhir.dstu2016may.model.NamingSystem();
  copyDomainResource(src,tgt);
  tgt.setName(src.getName());
  tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
  tgt.setKind(convertNamingSystemType(src.getKind()));
  tgt.setDate(src.getDate());
  tgt.setPublisher(src.getPublisher());
  for (  org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemContactComponent t : src.getContact())   tgt.addContact(convertNamingSystemContactComponent(t));
  tgt.setResponsible(src.getResponsible());
  tgt.setType(convertCodeableConcept(src.getType()));
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext())   tgt.addUseContext(convertCodeableConcept(t));
  tgt.setUsage(src.getUsage());
  for (  org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent t : src.getUniqueId())   tgt.addUniqueId(convertNamingSystemUniqueIdComponent(t));
  tgt.setReplacedBy(convertReference(src.getReplacedBy()));
  return tgt;
}
Program: 23792
Project: 23792
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Annotation convertAnnotation(org.hl7.fhir.dstu3.model.Annotation src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Annotation tgt=new org.hl7.fhir.dstu2016may.model.Annotation();
  copyElement(src,tgt);
  tgt.setAuthor(convertType(src.getAuthor()));
  tgt.setTime(src.getTime());
  tgt.setText(src.getText());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Annotation convertAnnotation(org.hl7.fhir.dstu3.model.Annotation src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Annotation tgt=new org.hl7.fhir.dstu2016may.model.Annotation();
  copyElement(src,tgt);
  tgt.setAuthor(convertType(src.getAuthor()));
  tgt.setTime(src.getTime());
  tgt.setText(src.getText());
  return tgt;
}
Program: 23793
Project: 23793
Buggy source:
public static org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterBindingComponent convertOperationDefinitionParameterBindingComponent(org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt=new org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterBindingComponent();
  copyElement(src,tgt);
  tgt.setStrength(convertBindingStrength(src.getStrength()));
  tgt.setValueSet(convertType(src.getValueSet()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterBindingComponent convertOperationDefinitionParameterBindingComponent(org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt=new org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterBindingComponent();
  copyElement(src,tgt);
  tgt.setStrength(convertBindingStrength(src.getStrength()));
  tgt.setValueSet(convertType(src.getValueSet()));
  return tgt;
}
Program: 23794
Project: 23794
Buggy source:
public static org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemComponent convertQuestionnaireResponseItemComponent(org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt=new org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemComponent();
  copyElement(src,tgt);
  tgt.setLinkId(src.getLinkId());
  tgt.setText(src.getText());
  tgt.setSubject(convertReference(src.getSubject()));
  for (  org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent t : src.getAnswer())   tgt.addAnswer(convertQuestionnaireResponseItemAnswerComponent(t));
  for (  org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem())   tgt.addItem(convertQuestionnaireResponseItemComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemComponent convertQuestionnaireResponseItemComponent(org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt=new org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemComponent();
  copyElement(src,tgt);
  tgt.setLinkId(src.getLinkId());
  tgt.setText(src.getText());
  tgt.setSubject(convertReference(src.getSubject()));
  for (  org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent t : src.getAnswer())   tgt.addAnswer(convertQuestionnaireResponseItemAnswerComponent(t));
  for (  org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem())   tgt.addItem(convertQuestionnaireResponseItemComponent(t));
  return tgt;
}
Program: 23796
Project: 23796
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionBaseComponent convertElementDefinitionBaseComponent(org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionBaseComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionBaseComponent tgt=new org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionBaseComponent();
  copyElement(src,tgt);
  tgt.setPath(src.getPath());
  tgt.setMin(src.getMin());
  tgt.setMax(src.getMax());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionBaseComponent convertElementDefinitionBaseComponent(org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionBaseComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionBaseComponent tgt=new org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionBaseComponent();
  copyElement(src,tgt);
  tgt.setPath(src.getPath());
  tgt.setMin(src.getMin());
  tgt.setMax(src.getMax());
  return tgt;
}
Program: 23797
Project: 23797
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Timing convertTiming(org.hl7.fhir.dstu3.model.Timing src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Timing tgt=new org.hl7.fhir.dstu2016may.model.Timing();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.DateTimeType t : src.getEvent())   tgt.addEvent(t.getValue());
  tgt.setRepeat(convertTimingRepeatComponent(src.getRepeat()));
  tgt.setCode(convertCodeableConcept(src.getCode()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Timing convertTiming(org.hl7.fhir.dstu3.model.Timing src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Timing tgt=new org.hl7.fhir.dstu2016may.model.Timing();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.DateTimeType t : src.getEvent())   tgt.addEvent(t.getValue());
  tgt.setRepeat(convertTimingRepeatComponent(src.getRepeat()));
  tgt.setCode(convertCodeableConcept(src.getCode()));
  return tgt;
}
Program: 23798
Project: 23798
Buggy source:
public static org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionPropertyComponent convertConceptPropertyComponent(org.hl7.fhir.dstu3.model.CodeSystem.ConceptPropertyComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionPropertyComponent tgt=new org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionPropertyComponent();
  copyElement(src,tgt);
  tgt.setCode(src.getCode());
  tgt.setValue(convertType(src.getValue()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionPropertyComponent convertConceptPropertyComponent(org.hl7.fhir.dstu3.model.CodeSystem.ConceptPropertyComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionPropertyComponent tgt=new org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionPropertyComponent();
  copyElement(src,tgt);
  tgt.setCode(src.getCode());
  tgt.setValue(convertType(src.getValue()));
  return tgt;
}
Program: 23799
Project: 23799
Buggy source:
public static org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterComponent convertOperationDefinitionParameterComponent(org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterComponent tgt=new org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  tgt.setUse(convertOperationParameterUse(src.getUse()));
  tgt.setMin(src.getMin());
  tgt.setMax(src.getMax());
  tgt.setDocumentation(src.getDocumentation());
  tgt.setType(src.getType());
  tgt.setSearchType(convertSearchParamType(src.getSearchType()));
  tgt.setProfile(convertReference(src.getProfile()));
  tgt.setBinding(convertOperationDefinitionParameterBindingComponent(src.getBinding()));
  for (  org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getPart())   tgt.addPart(convertOperationDefinitionParameterComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterComponent convertOperationDefinitionParameterComponent(org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterComponent tgt=new org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  tgt.setUse(convertOperationParameterUse(src.getUse()));
  tgt.setMin(src.getMin());
  tgt.setMax(src.getMax());
  tgt.setDocumentation(src.getDocumentation());
  tgt.setType(src.getType());
  tgt.setSearchType(convertSearchParamType(src.getSearchType()));
  tgt.setProfile(convertReference(src.getProfile()));
  tgt.setBinding(convertOperationDefinitionParameterBindingComponent(src.getBinding()));
  for (  org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getPart())   tgt.addPart(convertOperationDefinitionParameterComponent(t));
  return tgt;
}
Program: 23800
Project: 23800
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Bundle.BundleEntrySearchComponent convertBundleEntrySearchComponent(org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Bundle.BundleEntrySearchComponent tgt=new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntrySearchComponent();
  copyElement(src,tgt);
  tgt.setMode(convertSearchEntryMode(src.getMode()));
  tgt.setScore(src.getScore());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Bundle.BundleEntrySearchComponent convertBundleEntrySearchComponent(org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Bundle.BundleEntrySearchComponent tgt=new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntrySearchComponent();
  copyElement(src,tgt);
  tgt.setMode(convertSearchEntryMode(src.getMode()));
  tgt.setScore(src.getScore());
  return tgt;
}
Program: 23801
Project: 23801
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent convertImplementationGuideGlobalComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt=new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent();
  copyElement(src,tgt);
  tgt.setType(src.getType());
  tgt.setProfile(convertReference(src.getProfile()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent convertImplementationGuideGlobalComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt=new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent();
  copyElement(src,tgt);
  tgt.setType(src.getType());
  tgt.setProfile(convertReference(src.getProfile()));
  return tgt;
}
Program: 23802
Project: 23802
Buggy source:
public static org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemPropertyComponent convertPropertyComponent(org.hl7.fhir.dstu3.model.CodeSystem.PropertyComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemPropertyComponent tgt=new org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemPropertyComponent();
  copyElement(src,tgt);
  tgt.setCode(src.getCode());
  tgt.setDescription(src.getDescription());
  tgt.setType(convertPropertyType(src.getType()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemPropertyComponent convertPropertyComponent(org.hl7.fhir.dstu3.model.CodeSystem.PropertyComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemPropertyComponent tgt=new org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemPropertyComponent();
  copyElement(src,tgt);
  tgt.setCode(src.getCode());
  tgt.setDescription(src.getDescription());
  tgt.setType(convertPropertyType(src.getType()));
  return tgt;
}
Program: 23803
Project: 23803
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptDestinationComponent convertTestScriptDestinationComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptDestinationComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptDestinationComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptDestinationComponent();
  copyElement(src,tgt);
  tgt.setIndex(src.getIndex());
  tgt.setProfile(convertCoding(src.getProfile()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptDestinationComponent convertTestScriptDestinationComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptDestinationComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptDestinationComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptDestinationComponent();
  copyElement(src,tgt);
  tgt.setIndex(src.getIndex());
  tgt.setProfile(convertCoding(src.getProfile()));
  return tgt;
}
Program: 23804
Project: 23804
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent convertImplementationGuideDependencyComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt=new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent();
  copyElement(src,tgt);
  tgt.setType(convertGuideDependencyType(src.getType()));
  tgt.setUri(src.getUri());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent convertImplementationGuideDependencyComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt=new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent();
  copyElement(src,tgt);
  tgt.setType(convertGuideDependencyType(src.getType()));
  tgt.setUri(src.getUri());
  return tgt;
}
Program: 23805
Project: 23805
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent convertBundleEntryComponent(org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent tgt=new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent t : src.getLink())   tgt.addLink(convertBundleLinkComponent(t));
  tgt.setFullUrl(src.getFullUrl());
  tgt.setResource(convertResource(src.getResource()));
  tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch()));
  tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest()));
  tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent convertBundleEntryComponent(org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent tgt=new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent t : src.getLink())   tgt.addLink(convertBundleLinkComponent(t));
  tgt.setFullUrl(src.getFullUrl());
  tgt.setResource(convertResource(src.getResource()));
  tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch()));
  tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest()));
  tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse()));
  return tgt;
}
Program: 23806
Project: 23806
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Money convertMoney(org.hl7.fhir.dstu3.model.Money src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Money tgt=new org.hl7.fhir.dstu2016may.model.Money();
  copyElement(src,tgt);
  tgt.setValue(src.getValue());
  tgt.setComparator(convertQuantityComparator(src.getComparator()));
  tgt.setUnit(src.getUnit());
  tgt.setSystem(src.getSystem());
  tgt.setCode(src.getCode());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Money convertMoney(org.hl7.fhir.dstu3.model.Money src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Money tgt=new org.hl7.fhir.dstu2016may.model.Money();
  copyElement(src,tgt);
  tgt.setValue(src.getValue());
  tgt.setComparator(convertQuantityComparator(src.getComparator()));
  tgt.setUnit(src.getUnit());
  tgt.setSystem(src.getSystem());
  tgt.setCode(src.getCode());
  return tgt;
}
Program: 23808
Project: 23808
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ElementDefinition.TypeRefComponent convertTypeRefComponent(org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ElementDefinition.TypeRefComponent tgt=new org.hl7.fhir.dstu2016may.model.ElementDefinition.TypeRefComponent();
  copyElement(src,tgt);
  tgt.setCode(src.getCode());
  tgt.addProfile(src.getProfile());
  for (  org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.ElementDefinition.AggregationMode> t : src.getAggregation())   tgt.addAggregation(convertAggregationMode(t.getValue()));
  tgt.setVersioning(convertReferenceVersionRules(src.getVersioning()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ElementDefinition.TypeRefComponent convertTypeRefComponent(org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ElementDefinition.TypeRefComponent tgt=new org.hl7.fhir.dstu2016may.model.ElementDefinition.TypeRefComponent();
  copyElement(src,tgt);
  tgt.setCode(src.getCode());
  tgt.addProfile(src.getProfile());
  for (  org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.ElementDefinition.AggregationMode> t : src.getAggregation())   tgt.addAggregation(convertAggregationMode(t.getValue()));
  tgt.setVersioning(convertReferenceVersionRules(src.getVersioning()));
  return tgt;
}
Program: 23809
Project: 23809
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionConstraintComponent convertElementDefinitionConstraintComponent(org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionConstraintComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionConstraintComponent tgt=new org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionConstraintComponent();
  copyElement(src,tgt);
  tgt.setKey(src.getKey());
  tgt.setRequirements(src.getRequirements());
  tgt.setSeverity(convertConstraintSeverity(src.getSeverity()));
  tgt.setHuman(src.getHuman());
  tgt.setExpression(src.getExpression());
  tgt.setXpath(src.getXpath());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionConstraintComponent convertElementDefinitionConstraintComponent(org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionConstraintComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionConstraintComponent tgt=new org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionConstraintComponent();
  copyElement(src,tgt);
  tgt.setKey(src.getKey());
  tgt.setRequirements(src.getRequirements());
  tgt.setSeverity(convertConstraintSeverity(src.getSeverity()));
  tgt.setHuman(src.getHuman());
  tgt.setExpression(src.getExpression());
  tgt.setXpath(src.getXpath());
  return tgt;
}
Program: 23810
Project: 23810
Buggy source:
public static org.hl7.fhir.dstu2016may.model.DataElement.DataElementContactComponent convertDataElementContactComponent(org.hl7.fhir.dstu3.model.DataElement.DataElementContactComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.DataElement.DataElementContactComponent tgt=new org.hl7.fhir.dstu2016may.model.DataElement.DataElementContactComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.DataElement.DataElementContactComponent convertDataElementContactComponent(org.hl7.fhir.dstu3.model.DataElement.DataElementContactComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.DataElement.DataElementContactComponent tgt=new org.hl7.fhir.dstu2016may.model.DataElement.DataElementContactComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  return tgt;
}
Program: 23811
Project: 23811
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Binary convertBinary(org.hl7.fhir.dstu3.model.Binary src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Binary tgt=new org.hl7.fhir.dstu2016may.model.Binary();
  copyResource(src,tgt);
  tgt.setContentType(src.getContentType());
  tgt.setContent(src.getContent());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Binary convertBinary(org.hl7.fhir.dstu3.model.Binary src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Binary tgt=new org.hl7.fhir.dstu2016may.model.Binary();
  copyResource(src,tgt);
  tgt.setContentType(src.getContentType());
  tgt.setContent(src.getContent());
  return tgt;
}
Program: 23812
Project: 23812
Buggy source:
public static org.hl7.fhir.dstu2016may.model.VisionPrescription.VisionPrescriptionDispenseComponent convertVisionPrescriptionDispenseComponent(org.hl7.fhir.dstu3.model.VisionPrescription.VisionPrescriptionDispenseComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.VisionPrescription.VisionPrescriptionDispenseComponent tgt=new org.hl7.fhir.dstu2016may.model.VisionPrescription.VisionPrescriptionDispenseComponent();
  copyElement(src,tgt);
  tgt.setProduct(convertCoding(src.getProduct()));
  tgt.setEye(convertVisionEyes(src.getEye()));
  tgt.setSphere(src.getSphere());
  tgt.setCylinder(src.getCylinder());
  tgt.setAxis(src.getAxis());
  tgt.setPrism(src.getPrism());
  tgt.setBase(convertVisionBase(src.getBase()));
  tgt.setAdd(src.getAdd());
  tgt.setPower(src.getPower());
  tgt.setBackCurve(src.getBackCurve());
  tgt.setDiameter(src.getDiameter());
  tgt.setDuration(convertSimpleQuantity(src.getDuration()));
  tgt.setColor(src.getColor());
  tgt.setBrand(src.getBrand());
  tgt.setNotes(src.getNotes());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.VisionPrescription.VisionPrescriptionDispenseComponent convertVisionPrescriptionDispenseComponent(org.hl7.fhir.dstu3.model.VisionPrescription.VisionPrescriptionDispenseComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.VisionPrescription.VisionPrescriptionDispenseComponent tgt=new org.hl7.fhir.dstu2016may.model.VisionPrescription.VisionPrescriptionDispenseComponent();
  copyElement(src,tgt);
  tgt.setProduct(convertCoding(src.getProduct()));
  tgt.setEye(convertVisionEyes(src.getEye()));
  tgt.setSphere(src.getSphere());
  tgt.setCylinder(src.getCylinder());
  tgt.setAxis(src.getAxis());
  tgt.setPrism(src.getPrism());
  tgt.setBase(convertVisionBase(src.getBase()));
  tgt.setAdd(src.getAdd());
  tgt.setPower(src.getPower());
  tgt.setBackCurve(src.getBackCurve());
  tgt.setDiameter(src.getDiameter());
  tgt.setDuration(convertSimpleQuantity(src.getDuration()));
  tgt.setColor(src.getColor());
  tgt.setBrand(src.getBrand());
  tgt.setNotes(src.getNotes());
  return tgt;
}
Program: 23813
Project: 23813
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetContactComponent convertValueSetContactComponent(org.hl7.fhir.dstu3.model.ValueSet.ValueSetContactComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetContactComponent tgt=new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetContactComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetContactComponent convertValueSetContactComponent(org.hl7.fhir.dstu3.model.ValueSet.ValueSetContactComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetContactComponent tgt=new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetContactComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  return tgt;
}
Program: 23814
Project: 23814
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Signature convertSignature(org.hl7.fhir.dstu3.model.Signature src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Signature tgt=new org.hl7.fhir.dstu2016may.model.Signature();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.Coding t : src.getType())   tgt.addType(convertCoding(t));
  tgt.setWhen(src.getWhen());
  tgt.setWho(convertType(src.getWho()));
  tgt.setContentType(src.getContentType());
  tgt.setBlob(src.getBlob());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Signature convertSignature(org.hl7.fhir.dstu3.model.Signature src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Signature tgt=new org.hl7.fhir.dstu2016may.model.Signature();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.Coding t : src.getType())   tgt.addType(convertCoding(t));
  tgt.setWhen(src.getWhen());
  tgt.setWho(convertType(src.getWho()));
  tgt.setContentType(src.getContentType());
  tgt.setBlob(src.getBlob());
  return tgt;
}