nus-yam/ex-repair huggingface dataset:
Program: 23884
Project: 23884
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Attachment convertAttachment(org.hl7.fhir.dstu3.model.Attachment src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Attachment tgt=new org.hl7.fhir.dstu2016may.model.Attachment();
  copyElement(src,tgt);
  tgt.setContentType(src.getContentType());
  tgt.setLanguage(src.getLanguage());
  tgt.setData(src.getData());
  tgt.setUrl(src.getUrl());
  tgt.setSize(src.getSize());
  tgt.setHash(src.getHash());
  tgt.setTitle(src.getTitle());
  tgt.setCreation(src.getCreation());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Attachment convertAttachment(org.hl7.fhir.dstu3.model.Attachment src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Attachment tgt=new org.hl7.fhir.dstu2016may.model.Attachment();
  copyElement(src,tgt);
  tgt.setContentType(src.getContentType());
  tgt.setLanguage(src.getLanguage());
  tgt.setData(src.getData());
  tgt.setUrl(src.getUrl());
  tgt.setSize(src.getSize());
  tgt.setHash(src.getHash());
  tgt.setTitle(src.getTitle());
  tgt.setCreation(src.getCreation());
  return tgt;
}
Program: 23885
Project: 23885
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent convertConceptSetComponent(org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent tgt=new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent();
  copyElement(src,tgt);
  tgt.setSystem(src.getSystem());
  tgt.setVersion(src.getVersion());
  for (  org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent t : src.getConcept())   tgt.addConcept(convertConceptReferenceComponent(t));
  for (  org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent t : src.getFilter())   tgt.addFilter(convertConceptSetFilterComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent convertConceptSetComponent(org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent tgt=new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent();
  copyElement(src,tgt);
  tgt.setSystem(src.getSystem());
  tgt.setVersion(src.getVersion());
  for (  org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent t : src.getConcept())   tgt.addConcept(convertConceptReferenceComponent(t));
  for (  org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent t : src.getFilter())   tgt.addFilter(convertConceptSetFilterComponent(t));
  return tgt;
}
Program: 23887
Project: 23887
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptVariableComponent convertTestScriptVariableComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptVariableComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptVariableComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  tgt.setDefaultValue(src.getDefaultValue());
  tgt.setHeaderField(src.getHeaderField());
  tgt.setPath(src.getPath());
  tgt.setSourceId(src.getSourceId());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptVariableComponent convertTestScriptVariableComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptVariableComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptVariableComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  tgt.setDefaultValue(src.getDefaultValue());
  tgt.setHeaderField(src.getHeaderField());
  tgt.setPath(src.getPath());
  tgt.setSourceId(src.getSourceId());
  return tgt;
}
Program: 23888
Project: 23888
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent convertImplementationGuidePageComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent tgt=new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent();
  copyElement(src,tgt);
  tgt.setSource(src.getSource());
  tgt.setName(src.getTitle());
  tgt.setKind(convertGuidePageKind(src.getKind()));
  for (  org.hl7.fhir.dstu3.model.CodeType t : src.getType())   tgt.addType(t.getValue());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getPackage())   tgt.addPackage(t.getValue());
  tgt.setFormat(src.getFormat());
  for (  org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage())   tgt.addPage(convertImplementationGuidePageComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent convertImplementationGuidePageComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent tgt=new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent();
  copyElement(src,tgt);
  tgt.setSource(src.getSource());
  tgt.setName(src.getTitle());
  tgt.setKind(convertGuidePageKind(src.getKind()));
  for (  org.hl7.fhir.dstu3.model.CodeType t : src.getType())   tgt.addType(t.getValue());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getPackage())   tgt.addPackage(t.getValue());
  tgt.setFormat(src.getFormat());
  for (  org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage())   tgt.addPage(convertImplementationGuidePageComponent(t));
  return tgt;
}
Program: 23889
Project: 23889
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionParameterComponent convertValueSetExpansionParameterComponent(org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionParameterComponent tgt=new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionParameterComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  tgt.setValue(convertType(src.getValue()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionParameterComponent convertValueSetExpansionParameterComponent(org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionParameterComponent tgt=new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionParameterComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  tgt.setValue(convertType(src.getValue()));
  return tgt;
}
Program: 23890
Project: 23890
Buggy source:
public static org.hl7.fhir.dstu2016may.model.SearchParameter convertSearchParameter(org.hl7.fhir.dstu3.model.SearchParameter src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.SearchParameter tgt=new org.hl7.fhir.dstu2016may.model.SearchParameter();
  copyDomainResource(src,tgt);
  tgt.setUrl(src.getUrl());
  tgt.setName(src.getName());
  tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
  tgt.setExperimental(src.getExperimental());
  tgt.setDate(src.getDate());
  tgt.setPublisher(src.getPublisher());
  for (  org.hl7.fhir.dstu3.model.SearchParameter.SearchParameterContactComponent t : src.getContact())   tgt.addContact(convertSearchParameterContactComponent(t));
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext())   tgt.addUseContext(convertCodeableConcept(t));
  tgt.setRequirements(src.getRequirements());
  tgt.setCode(src.getCode());
  tgt.setBase(src.getBase());
  tgt.setType(convertSearchParamType(src.getType()));
  tgt.setDescription(src.getDescription());
  tgt.setExpression(src.getExpression());
  tgt.setXpath(src.getXpath());
  tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage()));
  for (  org.hl7.fhir.dstu3.model.CodeType t : src.getTarget())   tgt.addTarget(t.getValue());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.SearchParameter convertSearchParameter(org.hl7.fhir.dstu3.model.SearchParameter src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.SearchParameter tgt=new org.hl7.fhir.dstu2016may.model.SearchParameter();
  copyDomainResource(src,tgt);
  tgt.setUrl(src.getUrl());
  tgt.setName(src.getName());
  tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
  tgt.setExperimental(src.getExperimental());
  tgt.setDate(src.getDate());
  tgt.setPublisher(src.getPublisher());
  for (  org.hl7.fhir.dstu3.model.SearchParameter.SearchParameterContactComponent t : src.getContact())   tgt.addContact(convertSearchParameterContactComponent(t));
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext())   tgt.addUseContext(convertCodeableConcept(t));
  tgt.setRequirements(src.getRequirements());
  tgt.setCode(src.getCode());
  tgt.setBase(src.getBase());
  tgt.setType(convertSearchParamType(src.getType()));
  tgt.setDescription(src.getDescription());
  tgt.setExpression(src.getExpression());
  tgt.setXpath(src.getXpath());
  tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage()));
  for (  org.hl7.fhir.dstu3.model.CodeType t : src.getTarget())   tgt.addTarget(t.getValue());
  return tgt;
}
Program: 23891
Project: 23891
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Extension convertExtension(org.hl7.fhir.dstu3.model.Extension src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Extension tgt=new org.hl7.fhir.dstu2016may.model.Extension();
  copyElement(src,tgt);
  tgt.setUrl(src.getUrl());
  tgt.setValue(convertType(src.getValue()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Extension convertExtension(org.hl7.fhir.dstu3.model.Extension src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Extension tgt=new org.hl7.fhir.dstu2016may.model.Extension();
  copyElement(src,tgt);
  tgt.setUrl(src.getUrl());
  tgt.setValue(convertType(src.getValue()));
  return tgt;
}
Program: 23892
Project: 23892
Buggy source:
public static org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemContactComponent convertCodeSystemContactComponent(org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemContactComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemContactComponent tgt=new org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemContactComponent();
  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.CodeSystem.CodeSystemContactComponent convertCodeSystemContactComponent(org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemContactComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemContactComponent tgt=new org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemContactComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  return tgt;
}
Program: 23893
Project: 23893
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ConceptMap convertConceptMap(org.hl7.fhir.dstu3.model.ConceptMap src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ConceptMap tgt=new org.hl7.fhir.dstu2016may.model.ConceptMap();
  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.ConceptMap.ConceptMapContactComponent t : src.getContact())   tgt.addContact(convertConceptMapContactComponent(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.setSource(convertType(src.getSource()));
  tgt.setTarget(convertType(src.getTarget()));
  for (  org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent g : src.getGroup())   for (  org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent t : g.getElement())   tgt.addElement(convertSourceElementComponent(t,g));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ConceptMap convertConceptMap(org.hl7.fhir.dstu3.model.ConceptMap src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ConceptMap tgt=new org.hl7.fhir.dstu2016may.model.ConceptMap();
  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.ConceptMap.ConceptMapContactComponent t : src.getContact())   tgt.addContact(convertConceptMapContactComponent(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.setSource(convertType(src.getSource()));
  tgt.setTarget(convertType(src.getTarget()));
  for (  org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent g : src.getGroup())   for (  org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent t : g.getElement())   tgt.addElement(convertSourceElementComponent(t,g));
  return tgt;
}
Program: 23894
Project: 23894
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Conformance.ResourceInteractionComponent convertResourceInteractionComponent(org.hl7.fhir.dstu3.model.Conformance.ResourceInteractionComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ResourceInteractionComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ResourceInteractionComponent();
  copyElement(src,tgt);
  tgt.setCode(convertTypeRestfulInteraction(src.getCode()));
  tgt.setDocumentation(src.getDocumentation());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Conformance.ResourceInteractionComponent convertResourceInteractionComponent(org.hl7.fhir.dstu3.model.Conformance.ResourceInteractionComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ResourceInteractionComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ResourceInteractionComponent();
  copyElement(src,tgt);
  tgt.setCode(convertTypeRestfulInteraction(src.getCode()));
  tgt.setDocumentation(src.getDocumentation());
  return tgt;
}
Program: 23896
Project: 23896
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Bundle convertBundle(org.hl7.fhir.dstu3.model.Bundle src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Bundle tgt=new org.hl7.fhir.dstu2016may.model.Bundle();
  copyResource(src,tgt);
  tgt.setType(convertBundleType(src.getType()));
  tgt.setTotal(src.getTotal());
  for (  org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent t : src.getLink())   tgt.addLink(convertBundleLinkComponent(t));
  for (  org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent t : src.getEntry())   tgt.addEntry(convertBundleEntryComponent(t));
  tgt.setSignature(convertSignature(src.getSignature()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Bundle convertBundle(org.hl7.fhir.dstu3.model.Bundle src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Bundle tgt=new org.hl7.fhir.dstu2016may.model.Bundle();
  copyResource(src,tgt);
  tgt.setType(convertBundleType(src.getType()));
  tgt.setTotal(src.getTotal());
  for (  org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent t : src.getLink())   tgt.addLink(convertBundleLinkComponent(t));
  for (  org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent t : src.getEntry())   tgt.addEntry(convertBundleEntryComponent(t));
  tgt.setSignature(convertSignature(src.getSignature()));
  return tgt;
}
Program: 23897
Project: 23897
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Range convertRange(org.hl7.fhir.dstu3.model.Range src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Range tgt=new org.hl7.fhir.dstu2016may.model.Range();
  copyElement(src,tgt);
  tgt.setLow(convertSimpleQuantity(src.getLow()));
  tgt.setHigh(convertSimpleQuantity(src.getHigh()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Range convertRange(org.hl7.fhir.dstu3.model.Range src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Range tgt=new org.hl7.fhir.dstu2016may.model.Range();
  copyElement(src,tgt);
  tgt.setLow(convertSimpleQuantity(src.getLow()));
  tgt.setHigh(convertSimpleQuantity(src.getHigh()));
  return tgt;
}
Program: 23898
Project: 23898
Buggy source:
public static org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionContactComponent convertStructureDefinitionContactComponent(org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionContactComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionContactComponent tgt=new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionContactComponent();
  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.StructureDefinition.StructureDefinitionContactComponent convertStructureDefinitionContactComponent(org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionContactComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionContactComponent tgt=new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionContactComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  return tgt;
}
Program: 23899
Project: 23899
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionBindingComponent convertElementDefinitionBindingComponent(org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionBindingComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionBindingComponent tgt=new org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionBindingComponent();
  copyElement(src,tgt);
  tgt.setStrength(convertBindingStrength(src.getStrength()));
  tgt.setDescription(src.getDescription());
  tgt.setValueSet(convertType(src.getValueSet()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionBindingComponent convertElementDefinitionBindingComponent(org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionBindingComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionBindingComponent tgt=new org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionBindingComponent();
  copyElement(src,tgt);
  tgt.setStrength(convertBindingStrength(src.getStrength()));
  tgt.setDescription(src.getDescription());
  tgt.setValueSet(convertType(src.getValueSet()));
  return tgt;
}
Program: 23900
Project: 23900
Buggy source:
public static org.hl7.fhir.dstu2016may.model.CodeableConcept convertCodeableConcept(org.hl7.fhir.dstu3.model.CodeableConcept src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.CodeableConcept tgt=new org.hl7.fhir.dstu2016may.model.CodeableConcept();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.Coding t : src.getCoding())   tgt.addCoding(convertCoding(t));
  tgt.setText(src.getText());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.CodeableConcept convertCodeableConcept(org.hl7.fhir.dstu3.model.CodeableConcept src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.CodeableConcept tgt=new org.hl7.fhir.dstu2016may.model.CodeableConcept();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.Coding t : src.getCoding())   tgt.addCoding(convertCoding(t));
  tgt.setText(src.getText());
  return tgt;
}
Program: 23901
Project: 23901
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRuleComponent convertTestScriptRuleComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptRuleComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRuleComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRuleComponent();
  copyElement(src,tgt);
  tgt.setResource(convertReference(src.getResource()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRuleComponent convertTestScriptRuleComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptRuleComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRuleComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRuleComponent();
  copyElement(src,tgt);
  tgt.setResource(convertReference(src.getResource()));
  return tgt;
}
Program: 23902
Project: 23902
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestOperationComponent convertConformanceRestOperationComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceRestOperationComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestOperationComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestOperationComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  tgt.setDefinition(convertReference(src.getDefinition()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestOperationComponent convertConformanceRestOperationComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceRestOperationComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestOperationComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestOperationComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  tgt.setDefinition(convertReference(src.getDefinition()));
  return tgt;
}
Program: 23903
Project: 23903
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionComponent convertValueSetExpansionComponent(org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionComponent tgt=new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionComponent();
  copyElement(src,tgt);
  tgt.setIdentifier(src.getIdentifier());
  tgt.setTimestamp(src.getTimestamp());
  tgt.setTotal(src.getTotal());
  tgt.setOffset(src.getOffset());
  for (  org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent t : src.getParameter())   tgt.addParameter(convertValueSetExpansionParameterComponent(t));
  for (  org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains())   tgt.addContains(convertValueSetExpansionContainsComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionComponent convertValueSetExpansionComponent(org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionComponent tgt=new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionComponent();
  copyElement(src,tgt);
  tgt.setIdentifier(src.getIdentifier());
  tgt.setTimestamp(src.getTimestamp());
  tgt.setTotal(src.getTotal());
  tgt.setOffset(src.getOffset());
  for (  org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent t : src.getParameter())   tgt.addParameter(convertValueSetExpansionParameterComponent(t));
  for (  org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains())   tgt.addContains(convertValueSetExpansionContainsComponent(t));
  return tgt;
}
Program: 23904
Project: 23904
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Period convertPeriod(org.hl7.fhir.dstu3.model.Period src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Period tgt=new org.hl7.fhir.dstu2016may.model.Period();
  copyElement(src,tgt);
  tgt.setStart(src.getStart());
  tgt.setEnd(src.getEnd());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Period convertPeriod(org.hl7.fhir.dstu3.model.Period src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Period tgt=new org.hl7.fhir.dstu2016may.model.Period();
  copyElement(src,tgt);
  tgt.setStart(src.getStart());
  tgt.setEnd(src.getEnd());
  return tgt;
}
Program: 23905
Project: 23905
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetComposeComponent convertValueSetComposeComponent(org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetComposeComponent tgt=new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetComposeComponent();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.UriType t : src.getImport())   tgt.addImport(t.getValue());
  for (  org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent t : src.getInclude())   tgt.addInclude(convertConceptSetComponent(t));
  for (  org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent t : src.getExclude())   tgt.addExclude(convertConceptSetComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetComposeComponent convertValueSetComposeComponent(org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetComposeComponent tgt=new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetComposeComponent();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.UriType t : src.getImport())   tgt.addImport(t.getValue());
  for (  org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent t : src.getInclude())   tgt.addInclude(convertConceptSetComponent(t));
  for (  org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent t : src.getExclude())   tgt.addExclude(convertConceptSetComponent(t));
  return tgt;
}
Program: 23906
Project: 23906
Buggy source:
public static org.hl7.fhir.dstu2016may.model.VisionPrescription convertVisionPrescription(org.hl7.fhir.dstu3.model.VisionPrescription src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.VisionPrescription tgt=new org.hl7.fhir.dstu2016may.model.VisionPrescription();
  copyDomainResource(src,tgt);
  for (  org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier())   tgt.addIdentifier(convertIdentifier(t));
  tgt.setDateWritten(src.getDateWritten());
  tgt.setPatient(convertReference(src.getPatient()));
  tgt.setPrescriber(convertReference(src.getPrescriber()));
  tgt.setEncounter(convertReference(src.getEncounter()));
  tgt.setReason(convertType(src.getReason()));
  for (  org.hl7.fhir.dstu3.model.VisionPrescription.VisionPrescriptionDispenseComponent t : src.getDispense())   tgt.addDispense(convertVisionPrescriptionDispenseComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.VisionPrescription convertVisionPrescription(org.hl7.fhir.dstu3.model.VisionPrescription src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.VisionPrescription tgt=new org.hl7.fhir.dstu2016may.model.VisionPrescription();
  copyDomainResource(src,tgt);
  for (  org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier())   tgt.addIdentifier(convertIdentifier(t));
  tgt.setDateWritten(src.getDateWritten());
  tgt.setPatient(convertReference(src.getPatient()));
  tgt.setPrescriber(convertReference(src.getPrescriber()));
  tgt.setEncounter(convertReference(src.getEncounter()));
  tgt.setReason(convertType(src.getReason()));
  for (  org.hl7.fhir.dstu3.model.VisionPrescription.VisionPrescriptionDispenseComponent t : src.getDispense())   tgt.addDispense(convertVisionPrescriptionDispenseComponent(t));
  return tgt;
}
Program: 23907
Project: 23907
Buggy source:
public static org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionSnapshotComponent convertStructureDefinitionSnapshotComponent(org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionSnapshotComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt=new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionSnapshotComponent();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement())   tgt.addElement(convertElementDefinition(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionSnapshotComponent convertStructureDefinitionSnapshotComponent(org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionSnapshotComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt=new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionSnapshotComponent();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement())   tgt.addElement(convertElementDefinition(t));
  return tgt;
}
Program: 23908
Project: 23908
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestComponent convertConformanceRestComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceRestComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestComponent();
  copyElement(src,tgt);
  tgt.setMode(convertRestfulConformanceMode(src.getMode()));
  tgt.setDocumentation(src.getDocumentation());
  tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity()));
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceRestResourceComponent t : src.getResource())   tgt.addResource(convertConformanceRestResourceComponent(t));
  for (  org.hl7.fhir.dstu3.model.Conformance.SystemInteractionComponent t : src.getInteraction())   tgt.addInteraction(convertSystemInteractionComponent(t));
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceRestResourceSearchParamComponent t : src.getSearchParam())   tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceRestOperationComponent t : src.getOperation())   tgt.addOperation(convertConformanceRestOperationComponent(t));
  for (  org.hl7.fhir.dstu3.model.UriType t : src.getCompartment())   tgt.addCompartment(t.getValue());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestComponent convertConformanceRestComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceRestComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestComponent();
  copyElement(src,tgt);
  tgt.setMode(convertRestfulConformanceMode(src.getMode()));
  tgt.setDocumentation(src.getDocumentation());
  tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity()));
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceRestResourceComponent t : src.getResource())   tgt.addResource(convertConformanceRestResourceComponent(t));
  for (  org.hl7.fhir.dstu3.model.Conformance.SystemInteractionComponent t : src.getInteraction())   tgt.addInteraction(convertSystemInteractionComponent(t));
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceRestResourceSearchParamComponent t : src.getSearchParam())   tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceRestOperationComponent t : src.getOperation())   tgt.addOperation(convertConformanceRestOperationComponent(t));
  for (  org.hl7.fhir.dstu3.model.UriType t : src.getCompartment())   tgt.addCompartment(t.getValue());
  return tgt;
}
Program: 23909
Project: 23909
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptContactComponent convertTestScriptContactComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptContactComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptContactComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptContactComponent();
  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.TestScript.TestScriptContactComponent convertTestScriptContactComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptContactComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptContactComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptContactComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  return tgt;
}
Program: 23910
Project: 23910
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionMappingComponent convertElementDefinitionMappingComponent(org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionMappingComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionMappingComponent tgt=new org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionMappingComponent();
  copyElement(src,tgt);
  tgt.setIdentity(src.getIdentity());
  tgt.setLanguage(src.getLanguage());
  tgt.setMap(src.getMap());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionMappingComponent convertElementDefinitionMappingComponent(org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionMappingComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionMappingComponent tgt=new org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionMappingComponent();
  copyElement(src,tgt);
  tgt.setIdentity(src.getIdentity());
  tgt.setLanguage(src.getLanguage());
  tgt.setMap(src.getMap());
  return tgt;
}
Program: 23911
Project: 23911
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Coding convertCoding(org.hl7.fhir.dstu3.model.Coding src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Coding tgt=new org.hl7.fhir.dstu2016may.model.Coding();
  copyElement(src,tgt);
  tgt.setSystem(src.getSystem());
  tgt.setVersion(src.getVersion());
  tgt.setCode(src.getCode());
  tgt.setDisplay(src.getDisplay());
  tgt.setUserSelected(src.getUserSelected());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Coding convertCoding(org.hl7.fhir.dstu3.model.Coding src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Coding tgt=new org.hl7.fhir.dstu2016may.model.Coding();
  copyElement(src,tgt);
  tgt.setSystem(src.getSystem());
  tgt.setVersion(src.getVersion());
  tgt.setCode(src.getCode());
  tgt.setDisplay(src.getDisplay());
  tgt.setUserSelected(src.getUserSelected());
  return tgt;
}
Program: 23912
Project: 23912
Buggy source:
public static org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionComponent convertConceptDefinitionComponent(org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionComponent tgt=new org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionComponent();
  copyElement(src,tgt);
  tgt.setCode(src.getCode());
  tgt.setDisplay(src.getDisplay());
  tgt.setDefinition(src.getDefinition());
  for (  org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionDesignationComponent t : src.getDesignation())   tgt.addDesignation(convertConceptDefinitionDesignationComponent(t));
  for (  org.hl7.fhir.dstu3.model.CodeSystem.ConceptPropertyComponent t : src.getProperty())   tgt.addProperty(convertConceptPropertyComponent(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.ConceptDefinitionComponent convertConceptDefinitionComponent(org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionComponent tgt=new org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionComponent();
  copyElement(src,tgt);
  tgt.setCode(src.getCode());
  tgt.setDisplay(src.getDisplay());
  tgt.setDefinition(src.getDefinition());
  for (  org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionDesignationComponent t : src.getDesignation())   tgt.addDesignation(convertConceptDefinitionDesignationComponent(t));
  for (  org.hl7.fhir.dstu3.model.CodeSystem.ConceptPropertyComponent t : src.getProperty())   tgt.addProperty(convertConceptPropertyComponent(t));
  for (  org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent t : src.getConcept())   tgt.addConcept(convertConceptDefinitionComponent(t));
  return tgt;
}
Program: 23913
Project: 23913
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceComponent convertConceptReferenceComponent(org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceComponent tgt=new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceComponent();
  copyElement(src,tgt);
  tgt.setCode(src.getCode());
  tgt.setDisplay(src.getDisplay());
  for (  org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent t : src.getDesignation())   tgt.addDesignation(convertConceptReferenceDesignationComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceComponent convertConceptReferenceComponent(org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceComponent tgt=new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceComponent();
  copyElement(src,tgt);
  tgt.setCode(src.getCode());
  tgt.setDisplay(src.getDisplay());
  for (  org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent t : src.getDesignation())   tgt.addDesignation(convertConceptReferenceDesignationComponent(t));
  return tgt;
}
Program: 23914
Project: 23914
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceDocumentComponent convertConformanceDocumentComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceDocumentComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceDocumentComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceDocumentComponent();
  copyElement(src,tgt);
  tgt.setMode(convertDocumentMode(src.getMode()));
  tgt.setDocumentation(src.getDocumentation());
  tgt.setProfile(convertReference(src.getProfile()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceDocumentComponent convertConformanceDocumentComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceDocumentComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceDocumentComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceDocumentComponent();
  copyElement(src,tgt);
  tgt.setMode(convertDocumentMode(src.getMode()));
  tgt.setDocumentation(src.getDocumentation());
  tgt.setProfile(convertReference(src.getProfile()));
  return tgt;
}
Program: 23915
Project: 23915
Buggy source:
public static org.hl7.fhir.dstu2016may.model.CompartmentDefinition convertCompartmentDefinition(org.hl7.fhir.dstu3.model.CompartmentDefinition src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.CompartmentDefinition tgt=new org.hl7.fhir.dstu2016may.model.CompartmentDefinition();
  copyDomainResource(src,tgt);
  tgt.setUrl(src.getUrl());
  tgt.setName(src.getName());
  tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
  tgt.setExperimental(src.getExperimental());
  tgt.setPublisher(src.getPublisher());
  for (  org.hl7.fhir.dstu3.model.CompartmentDefinition.CompartmentDefinitionContactComponent t : src.getContact())   tgt.addContact(convertCompartmentDefinitionContactComponent(t));
  tgt.setDate(src.getDate());
  tgt.setDescription(src.getDescription());
  tgt.setRequirements(src.getRequirements());
  tgt.setCode(convertCompartmentType(src.getCode()));
  tgt.setSearch(src.getSearch());
  for (  org.hl7.fhir.dstu3.model.CompartmentDefinition.CompartmentDefinitionResourceComponent t : src.getResource())   tgt.addResource(convertCompartmentDefinitionResourceComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.CompartmentDefinition convertCompartmentDefinition(org.hl7.fhir.dstu3.model.CompartmentDefinition src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.CompartmentDefinition tgt=new org.hl7.fhir.dstu2016may.model.CompartmentDefinition();
  copyDomainResource(src,tgt);
  tgt.setUrl(src.getUrl());
  tgt.setName(src.getName());
  tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
  tgt.setExperimental(src.getExperimental());
  tgt.setPublisher(src.getPublisher());
  for (  org.hl7.fhir.dstu3.model.CompartmentDefinition.CompartmentDefinitionContactComponent t : src.getContact())   tgt.addContact(convertCompartmentDefinitionContactComponent(t));
  tgt.setDate(src.getDate());
  tgt.setDescription(src.getDescription());
  tgt.setRequirements(src.getRequirements());
  tgt.setCode(convertCompartmentType(src.getCode()));
  tgt.setSearch(src.getSearch());
  for (  org.hl7.fhir.dstu3.model.CompartmentDefinition.CompartmentDefinitionResourceComponent t : src.getResource())   tgt.addResource(convertCompartmentDefinitionResourceComponent(t));
  return tgt;
}
Program: 23916
Project: 23916
Buggy source:
public static org.hl7.fhir.dstu2016may.model.OperationOutcome convertOperationOutcome(org.hl7.fhir.dstu3.model.OperationOutcome src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.OperationOutcome tgt=new org.hl7.fhir.dstu2016may.model.OperationOutcome();
  copyDomainResource(src,tgt);
  for (  org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent t : src.getIssue())   tgt.addIssue(convertOperationOutcomeIssueComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.OperationOutcome convertOperationOutcome(org.hl7.fhir.dstu3.model.OperationOutcome src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.OperationOutcome tgt=new org.hl7.fhir.dstu2016may.model.OperationOutcome();
  copyDomainResource(src,tgt);
  for (  org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent t : src.getIssue())   tgt.addIssue(convertOperationOutcomeIssueComponent(t));
  return tgt;
}
Program: 23917
Project: 23917
Buggy source:
public boolean IsLogicalAndHasPrimitiveValue(String name){
  if (canBePrimitive != null)   return canBePrimitive;
  canBePrimitive=false;
  if (structure.getKind() != StructureDefinitionKind.LOGICAL)   return false;
  if (!hasType(name))   return false;
  StructureDefinition sd=context.fetchResource(StructureDefinition.class,structure.getUrl().substring(0,structure.getUrl().lastIndexOf("String_Node_Str") + 1) + getType(name));
  if (sd == null || sd.getKind() != StructureDefinitionKind.LOGICAL)   return false;
  for (  ElementDefinition ed : sd.getSnapshot().getElement()) {
    if (ed.getPath().equals(sd.getId() + "String_Node_Str") && ed.getType().size() == 1 && isPrimitive(ed.getType().get(0).getCode())) {
      canBePrimitive=true;
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
public boolean IsLogicalAndHasPrimitiveValue(String name){
  canBePrimitive=false;
  if (structure.getKind() != StructureDefinitionKind.LOGICAL)   return false;
  if (!hasType(name))   return false;
  StructureDefinition sd=context.fetchResource(StructureDefinition.class,structure.getUrl().substring(0,structure.getUrl().lastIndexOf("String_Node_Str") + 1) + getType(name));
  if (sd == null)   sd=context.fetchResource(StructureDefinition.class,"String_Node_Str" + getType(name));
  if (sd != null && sd.getKind() == StructureDefinitionKind.PRIMITIVETYPE)   return true;
  if (sd == null || sd.getKind() != StructureDefinitionKind.LOGICAL)   return false;
  for (  ElementDefinition ed : sd.getSnapshot().getElement()) {
    if (ed.getPath().equals(sd.getId() + "String_Node_Str") && ed.getType().size() == 1 && isPrimitive(ed.getType().get(0).getCode())) {
      canBePrimitive=true;
      return true;
    }
  }
  return false;
}