nus-yam/ex-repair huggingface dataset:
Program: 23815
Project: 23815
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Timing.TimingRepeatComponent convertTimingRepeatComponent(org.hl7.fhir.dstu3.model.Timing.TimingRepeatComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Timing.TimingRepeatComponent tgt=new org.hl7.fhir.dstu2016may.model.Timing.TimingRepeatComponent();
  copyElement(src,tgt);
  tgt.setBounds(convertType(src.getBounds()));
  tgt.setCount(src.getCount());
  tgt.setCountMax(src.getCountMax());
  tgt.setDuration(src.getDuration());
  tgt.setDurationMax(src.getDurationMax());
  tgt.setDurationUnit(convertUnitsOfTime(src.getDurationUnit()));
  tgt.setFrequency(src.getFrequency());
  tgt.setFrequencyMax(src.getFrequencyMax());
  tgt.setPeriod(src.getPeriod());
  tgt.setPeriodMax(src.getPeriodMax());
  tgt.setPeriodUnit(convertUnitsOfTime(src.getPeriodUnit()));
  tgt.setWhen(convertEventTiming(src.getWhen()));
  tgt.setOffset(src.getOffset());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Timing.TimingRepeatComponent convertTimingRepeatComponent(org.hl7.fhir.dstu3.model.Timing.TimingRepeatComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Timing.TimingRepeatComponent tgt=new org.hl7.fhir.dstu2016may.model.Timing.TimingRepeatComponent();
  copyElement(src,tgt);
  tgt.setBounds(convertType(src.getBounds()));
  tgt.setCount(src.getCount());
  tgt.setCountMax(src.getCountMax());
  tgt.setDuration(src.getDuration());
  tgt.setDurationMax(src.getDurationMax());
  tgt.setDurationUnit(convertUnitsOfTime(src.getDurationUnit()));
  tgt.setFrequency(src.getFrequency());
  tgt.setFrequencyMax(src.getFrequencyMax());
  tgt.setPeriod(src.getPeriod());
  tgt.setPeriodMax(src.getPeriodMax());
  tgt.setPeriodUnit(convertUnitsOfTime(src.getPeriodUnit()));
  tgt.setWhen(convertEventTiming(src.getWhen()));
  tgt.setOffset(src.getOffset());
  return tgt;
}
Program: 23816
Project: 23816
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ConceptMap.SourceElementComponent convertSourceElementComponent(org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent src,org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent g) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ConceptMap.SourceElementComponent tgt=new org.hl7.fhir.dstu2016may.model.ConceptMap.SourceElementComponent();
  copyElement(src,tgt);
  tgt.setSystem(g.getSource());
  tgt.setCode(src.getCode());
  for (  org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent t : src.getTarget())   tgt.addTarget(convertTargetElementComponent(t,g));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ConceptMap.SourceElementComponent convertSourceElementComponent(org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent src,org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent g) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ConceptMap.SourceElementComponent tgt=new org.hl7.fhir.dstu2016may.model.ConceptMap.SourceElementComponent();
  copyElement(src,tgt);
  tgt.setSystem(g.getSource());
  tgt.setCode(src.getCode());
  for (  org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent t : src.getTarget())   tgt.addTarget(convertTargetElementComponent(t,g));
  return tgt;
}
Program: 23817
Project: 23817
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionContainsComponent convertValueSetExpansionContainsComponent(org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionContainsComponent tgt=new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionContainsComponent();
  copyElement(src,tgt);
  tgt.setSystem(src.getSystem());
  tgt.setAbstract(src.getAbstract());
  tgt.setVersion(src.getVersion());
  tgt.setCode(src.getCode());
  tgt.setDisplay(src.getDisplay());
  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.ValueSetExpansionContainsComponent convertValueSetExpansionContainsComponent(org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionContainsComponent tgt=new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionContainsComponent();
  copyElement(src,tgt);
  tgt.setSystem(src.getSystem());
  tgt.setAbstract(src.getAbstract());
  tgt.setVersion(src.getVersion());
  tgt.setCode(src.getCode());
  tgt.setDisplay(src.getDisplay());
  for (  org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains())   tgt.addContains(convertValueSetExpansionContainsComponent(t));
  return tgt;
}
Program: 23818
Project: 23818
Buggy source:
public static org.hl7.fhir.dstu2016may.model.DataElement.DataElementMappingComponent convertDataElementMappingComponent(org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.DataElement.DataElementMappingComponent tgt=new org.hl7.fhir.dstu2016may.model.DataElement.DataElementMappingComponent();
  copyElement(src,tgt);
  tgt.setIdentity(src.getIdentity());
  tgt.setUri(src.getUri());
  tgt.setName(src.getName());
  tgt.setComment(src.getComment());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.DataElement.DataElementMappingComponent convertDataElementMappingComponent(org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.DataElement.DataElementMappingComponent tgt=new org.hl7.fhir.dstu2016may.model.DataElement.DataElementMappingComponent();
  copyElement(src,tgt);
  tgt.setIdentity(src.getIdentity());
  tgt.setUri(src.getUri());
  tgt.setName(src.getName());
  tgt.setComment(src.getComment());
  return tgt;
}
Program: 23819
Project: 23819
Buggy source:
public static org.hl7.fhir.dstu2016may.model.HumanName convertHumanName(org.hl7.fhir.dstu3.model.HumanName src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.HumanName tgt=new org.hl7.fhir.dstu2016may.model.HumanName();
  copyElement(src,tgt);
  tgt.setUse(convertNameUse(src.getUse()));
  tgt.setText(src.getText());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getFamily())   tgt.addFamily(t.getValue());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getGiven())   tgt.addGiven(t.getValue());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getPrefix())   tgt.addPrefix(t.getValue());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getSuffix())   tgt.addSuffix(t.getValue());
  tgt.setPeriod(convertPeriod(src.getPeriod()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.HumanName convertHumanName(org.hl7.fhir.dstu3.model.HumanName src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.HumanName tgt=new org.hl7.fhir.dstu2016may.model.HumanName();
  copyElement(src,tgt);
  tgt.setUse(convertNameUse(src.getUse()));
  tgt.setText(src.getText());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getFamily())   tgt.addFamily(t.getValue());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getGiven())   tgt.addGiven(t.getValue());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getPrefix())   tgt.addPrefix(t.getValue());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getSuffix())   tgt.addSuffix(t.getValue());
  tgt.setPeriod(convertPeriod(src.getPeriod()));
  return tgt;
}
Program: 23820
Project: 23820
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Narrative convertNarrative(org.hl7.fhir.dstu3.model.Narrative src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Narrative tgt=new org.hl7.fhir.dstu2016may.model.Narrative();
  copyElement(src,tgt);
  tgt.setStatus(convertNarrativeStatus(src.getStatus()));
  tgt.setDiv(src.getDiv());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Narrative convertNarrative(org.hl7.fhir.dstu3.model.Narrative src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Narrative tgt=new org.hl7.fhir.dstu2016may.model.Narrative();
  copyElement(src,tgt);
  tgt.setStatus(convertNarrativeStatus(src.getStatus()));
  tgt.setDiv(src.getDiv());
  return tgt;
}
Program: 23821
Project: 23821
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.TestActionComponent convertTestActionComponent(org.hl7.fhir.dstu3.model.TestScript.TestActionComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestActionComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestActionComponent();
  copyElement(src,tgt);
  tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
  tgt.setAssert(convertSetupActionAssertComponent(src.getAssert()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.TestScript.TestActionComponent convertTestActionComponent(org.hl7.fhir.dstu3.model.TestScript.TestActionComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestActionComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestActionComponent();
  copyElement(src,tgt);
  tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
  tgt.setAssert(convertSetupActionAssertComponent(src.getAssert()));
  return tgt;
}
Program: 23822
Project: 23822
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceDesignationComponent convertConceptReferenceDesignationComponent(org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceDesignationComponent tgt=new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceDesignationComponent();
  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.ValueSet.ConceptReferenceDesignationComponent convertConceptReferenceDesignationComponent(org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceDesignationComponent tgt=new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceDesignationComponent();
  copyElement(src,tgt);
  tgt.setLanguage(src.getLanguage());
  tgt.setUse(convertCoding(src.getUse()));
  tgt.setValue(src.getValue());
  return tgt;
}
Program: 23824
Project: 23824
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetFilterComponent convertConceptSetFilterComponent(org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetFilterComponent tgt=new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetFilterComponent();
  copyElement(src,tgt);
  tgt.setProperty(src.getProperty());
  tgt.setOp(convertFilterOperator(src.getOp()));
  tgt.setValue(src.getValue());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetFilterComponent convertConceptSetFilterComponent(org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetFilterComponent tgt=new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetFilterComponent();
  copyElement(src,tgt);
  tgt.setProperty(src.getProperty());
  tgt.setOp(convertFilterOperator(src.getOp()));
  tgt.setValue(src.getValue());
  return tgt;
}
Program: 23825
Project: 23825
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Parameters.ParametersParameterComponent convertParametersParameterComponent(org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Parameters.ParametersParameterComponent tgt=new org.hl7.fhir.dstu2016may.model.Parameters.ParametersParameterComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  tgt.setValue(convertType(src.getValue()));
  tgt.setResource(convertResource(src.getResource()));
  for (  org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent t : src.getPart())   tgt.addPart(convertParametersParameterComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Parameters.ParametersParameterComponent convertParametersParameterComponent(org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Parameters.ParametersParameterComponent tgt=new org.hl7.fhir.dstu2016may.model.Parameters.ParametersParameterComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  tgt.setValue(convertType(src.getValue()));
  tgt.setResource(convertResource(src.getResource()));
  for (  org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent t : src.getPart())   tgt.addPart(convertParametersParameterComponent(t));
  return tgt;
}
Program: 23826
Project: 23826
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceImplementationComponent convertConformanceImplementationComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceImplementationComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceImplementationComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceImplementationComponent();
  copyElement(src,tgt);
  tgt.setDescription(src.getDescription());
  tgt.setUrl(src.getUrl());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceImplementationComponent convertConformanceImplementationComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceImplementationComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceImplementationComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceImplementationComponent();
  copyElement(src,tgt);
  tgt.setDescription(src.getDescription());
  tgt.setUrl(src.getUrl());
  return tgt;
}
Program: 23827
Project: 23827
Buggy source:
public static org.hl7.fhir.dstu2016may.model.OperationOutcome.OperationOutcomeIssueComponent convertOperationOutcomeIssueComponent(org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.OperationOutcome.OperationOutcomeIssueComponent tgt=new org.hl7.fhir.dstu2016may.model.OperationOutcome.OperationOutcomeIssueComponent();
  copyElement(src,tgt);
  tgt.setSeverity(convertIssueSeverity(src.getSeverity()));
  tgt.setCode(convertIssueType(src.getCode()));
  tgt.setDetails(convertCodeableConcept(src.getDetails()));
  tgt.setDiagnostics(src.getDiagnostics());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getLocation())   tgt.addLocation(t.getValue());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getExpression())   tgt.addExpression(t.getValue());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.OperationOutcome.OperationOutcomeIssueComponent convertOperationOutcomeIssueComponent(org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.OperationOutcome.OperationOutcomeIssueComponent tgt=new org.hl7.fhir.dstu2016may.model.OperationOutcome.OperationOutcomeIssueComponent();
  copyElement(src,tgt);
  tgt.setSeverity(convertIssueSeverity(src.getSeverity()));
  tgt.setCode(convertIssueType(src.getCode()));
  tgt.setDetails(convertCodeableConcept(src.getDetails()));
  tgt.setDiagnostics(src.getDiagnostics());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getLocation())   tgt.addLocation(t.getValue());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getExpression())   tgt.addExpression(t.getValue());
  return tgt;
}
Program: 23828
Project: 23828
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceSearchParamComponent convertConformanceRestResourceSearchParamComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceRestResourceSearchParamComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceSearchParamComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceSearchParamComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  tgt.setDefinition(src.getDefinition());
  tgt.setType(convertSearchParamType(src.getType()));
  tgt.setDocumentation(src.getDocumentation());
  for (  org.hl7.fhir.dstu3.model.CodeType t : src.getTarget())   tgt.addTarget(t.getValue());
  for (  org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.Conformance.SearchModifierCode> t : src.getModifier())   tgt.addModifier(convertSearchModifierCode(t.getValue()));
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getChain())   tgt.addChain(t.getValue());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceSearchParamComponent convertConformanceRestResourceSearchParamComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceRestResourceSearchParamComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceSearchParamComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceSearchParamComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  tgt.setDefinition(src.getDefinition());
  tgt.setType(convertSearchParamType(src.getType()));
  tgt.setDocumentation(src.getDocumentation());
  for (  org.hl7.fhir.dstu3.model.CodeType t : src.getTarget())   tgt.addTarget(t.getValue());
  for (  org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.Conformance.SearchModifierCode> t : src.getModifier())   tgt.addModifier(convertSearchModifierCode(t.getValue()));
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getChain())   tgt.addChain(t.getValue());
  return tgt;
}
Program: 23829
Project: 23829
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemOptionComponent convertQuestionnaireItemOptionComponent(org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemOptionComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemOptionComponent tgt=new org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemOptionComponent();
  copyElement(src,tgt);
  tgt.setValue(convertType(src.getValue()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemOptionComponent convertQuestionnaireItemOptionComponent(org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemOptionComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemOptionComponent tgt=new org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemOptionComponent();
  copyElement(src,tgt);
  tgt.setValue(convertType(src.getValue()));
  return tgt;
}
Program: 23830
Project: 23830
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityCertificateComponent convertConformanceRestSecurityCertificateComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceRestSecurityCertificateComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityCertificateComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityCertificateComponent();
  copyElement(src,tgt);
  tgt.setType(src.getType());
  tgt.setBlob(src.getBlob());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityCertificateComponent convertConformanceRestSecurityCertificateComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceRestSecurityCertificateComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityCertificateComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityCertificateComponent();
  copyElement(src,tgt);
  tgt.setType(src.getType());
  tgt.setBlob(src.getBlob());
  return tgt;
}
Program: 23831
Project: 23831
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityComponent convertConformanceRestSecurityComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceRestSecurityComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityComponent();
  copyElement(src,tgt);
  tgt.setCors(src.getCors());
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getService())   tgt.addService(convertCodeableConcept(t));
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceRestSecurityCertificateComponent t : src.getCertificate())   tgt.addCertificate(convertConformanceRestSecurityCertificateComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityComponent convertConformanceRestSecurityComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceRestSecurityComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityComponent();
  copyElement(src,tgt);
  tgt.setCors(src.getCors());
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getService())   tgt.addService(convertCodeableConcept(t));
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceRestSecurityCertificateComponent t : src.getCertificate())   tgt.addCertificate(convertConformanceRestSecurityCertificateComponent(t));
  return tgt;
}
Program: 23832
Project: 23832
Buggy source:
public static org.hl7.fhir.dstu2016may.model.SampledData convertSampledData(org.hl7.fhir.dstu3.model.SampledData src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.SampledData tgt=new org.hl7.fhir.dstu2016may.model.SampledData();
  copyElement(src,tgt);
  tgt.setOrigin(convertSimpleQuantity(src.getOrigin()));
  tgt.setPeriod(src.getPeriod());
  tgt.setFactor(src.getFactor());
  tgt.setLowerLimit(src.getLowerLimit());
  tgt.setUpperLimit(src.getUpperLimit());
  tgt.setDimensions(src.getDimensions());
  tgt.setData(src.getData());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.SampledData convertSampledData(org.hl7.fhir.dstu3.model.SampledData src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.SampledData tgt=new org.hl7.fhir.dstu2016may.model.SampledData();
  copyElement(src,tgt);
  tgt.setOrigin(convertSimpleQuantity(src.getOrigin()));
  tgt.setPeriod(src.getPeriod());
  tgt.setFactor(src.getFactor());
  tgt.setLowerLimit(src.getLowerLimit());
  tgt.setUpperLimit(src.getUpperLimit());
  tgt.setDimensions(src.getDimensions());
  tgt.setData(src.getData());
  return tgt;
}
Program: 23833
Project: 23833
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent convertBundleEntryResponseComponent(org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent tgt=new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent();
  copyElement(src,tgt);
  tgt.setStatus(src.getStatus());
  tgt.setLocation(src.getLocation());
  tgt.setEtag(src.getEtag());
  tgt.setLastModified(src.getLastModified());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent convertBundleEntryResponseComponent(org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent tgt=new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent();
  copyElement(src,tgt);
  tgt.setStatus(src.getStatus());
  tgt.setLocation(src.getLocation());
  tgt.setEtag(src.getEtag());
  tgt.setLastModified(src.getLastModified());
  return tgt;
}
Program: 23834
Project: 23834
Buggy source:
public static org.hl7.fhir.dstu2016may.model.QuestionnaireResponse convertQuestionnaireResponse(org.hl7.fhir.dstu3.model.QuestionnaireResponse src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.QuestionnaireResponse tgt=new org.hl7.fhir.dstu2016may.model.QuestionnaireResponse();
  copyDomainResource(src,tgt);
  tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
  tgt.setQuestionnaire(convertReference(src.getQuestionnaire()));
  tgt.setStatus(convertQuestionnaireResponseStatus(src.getStatus()));
  tgt.setSubject(convertReference(src.getSubject()));
  tgt.setEncounter(convertReference(src.getContext()));
  tgt.setAuthor(convertReference(src.getAuthor()));
  tgt.setAuthored(src.getAuthored());
  tgt.setSource(convertReference(src.getSource()));
  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 convertQuestionnaireResponse(org.hl7.fhir.dstu3.model.QuestionnaireResponse src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.QuestionnaireResponse tgt=new org.hl7.fhir.dstu2016may.model.QuestionnaireResponse();
  copyDomainResource(src,tgt);
  tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
  tgt.setQuestionnaire(convertReference(src.getQuestionnaire()));
  tgt.setStatus(convertQuestionnaireResponseStatus(src.getStatus()));
  tgt.setSubject(convertReference(src.getSubject()));
  tgt.setEncounter(convertReference(src.getContext()));
  tgt.setAuthor(convertReference(src.getAuthor()));
  tgt.setAuthored(src.getAuthored());
  tgt.setSource(convertReference(src.getSource()));
  for (  org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem())   tgt.addItem(convertQuestionnaireResponseItemComponent(t));
  return tgt;
}
Program: 23836
Project: 23836
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Ratio convertRatio(org.hl7.fhir.dstu3.model.Ratio src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Ratio tgt=new org.hl7.fhir.dstu2016may.model.Ratio();
  copyElement(src,tgt);
  tgt.setNumerator(convertQuantity(src.getNumerator()));
  tgt.setDenominator(convertQuantity(src.getDenominator()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Ratio convertRatio(org.hl7.fhir.dstu3.model.Ratio src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Ratio tgt=new org.hl7.fhir.dstu2016may.model.Ratio();
  copyElement(src,tgt);
  tgt.setNumerator(convertQuantity(src.getNumerator()));
  tgt.setDenominator(convertQuantity(src.getDenominator()));
  return tgt;
}
Program: 23837
Project: 23837
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageResourceComponent convertImplementationGuidePackageResourceComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageResourceComponent tgt=new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageResourceComponent();
  copyElement(src,tgt);
  tgt.setExample(src.getExample());
  tgt.setName(src.getName());
  tgt.setDescription(src.getDescription());
  tgt.setAcronym(src.getAcronym());
  tgt.setSource(convertType(src.getSource()));
  tgt.setExampleFor(convertReference(src.getExampleFor()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageResourceComponent convertImplementationGuidePackageResourceComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageResourceComponent tgt=new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageResourceComponent();
  copyElement(src,tgt);
  tgt.setExample(src.getExample());
  tgt.setName(src.getName());
  tgt.setDescription(src.getDescription());
  tgt.setAcronym(src.getAcronym());
  tgt.setSource(convertType(src.getSource()));
  tgt.setExampleFor(convertReference(src.getExampleFor()));
  return tgt;
}
Program: 23838
Project: 23838
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ValueSet convertValueSet(org.hl7.fhir.dstu3.model.ValueSet src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet tgt=new org.hl7.fhir.dstu2016may.model.ValueSet();
  copyDomainResource(src,tgt);
  tgt.setUrl(src.getUrl());
  for (  org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier())   tgt.setIdentifier(convertIdentifier(t));
  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.ValueSet.ValueSetContactComponent t : src.getContact())   tgt.addContact(convertValueSetContactComponent(t));
  tgt.setDate(src.getDate());
  tgt.setLockedDate(src.getLockedDate());
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext())   tgt.addUseContext(convertCodeableConcept(t));
  tgt.setImmutable(src.getImmutable());
  tgt.setRequirements(src.getRequirements());
  tgt.setCopyright(src.getCopyright());
  tgt.setExtensible(src.getExtensible());
  tgt.setCompose(convertValueSetComposeComponent(src.getCompose()));
  tgt.setExpansion(convertValueSetExpansionComponent(src.getExpansion()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ValueSet convertValueSet(org.hl7.fhir.dstu3.model.ValueSet src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ValueSet tgt=new org.hl7.fhir.dstu2016may.model.ValueSet();
  copyDomainResource(src,tgt);
  tgt.setUrl(src.getUrl());
  for (  org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier())   tgt.setIdentifier(convertIdentifier(t));
  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.ValueSet.ValueSetContactComponent t : src.getContact())   tgt.addContact(convertValueSetContactComponent(t));
  tgt.setDate(src.getDate());
  tgt.setLockedDate(src.getLockedDate());
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext())   tgt.addUseContext(convertCodeableConcept(t));
  tgt.setImmutable(src.getImmutable());
  tgt.setRequirements(src.getRequirements());
  tgt.setCopyright(src.getCopyright());
  tgt.setExtensible(src.getExtensible());
  tgt.setCompose(convertValueSetComposeComponent(src.getCompose()));
  tgt.setExpansion(convertValueSetExpansionComponent(src.getExpansion()));
  return tgt;
}
Program: 23839
Project: 23839
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Parameters convertParameters(org.hl7.fhir.dstu3.model.Parameters src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Parameters tgt=new org.hl7.fhir.dstu2016may.model.Parameters();
  copyResource(src,tgt);
  for (  org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent t : src.getParameter())   tgt.addParameter(convertParametersParameterComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Parameters convertParameters(org.hl7.fhir.dstu3.model.Parameters src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Parameters tgt=new org.hl7.fhir.dstu2016may.model.Parameters();
  copyResource(src,tgt);
  for (  org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent t : src.getParameter())   tgt.addParameter(convertParametersParameterComponent(t));
  return tgt;
}
Program: 23840
Project: 23840
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Distance convertDistance(org.hl7.fhir.dstu3.model.Distance src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Distance tgt=new org.hl7.fhir.dstu2016may.model.Distance();
  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.Distance convertDistance(org.hl7.fhir.dstu3.model.Distance src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Distance tgt=new org.hl7.fhir.dstu2016may.model.Distance();
  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: 23841
Project: 23841
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceContactComponent convertConformanceContactComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceContactComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceContactComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceContactComponent();
  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.Conformance.ConformanceContactComponent convertConformanceContactComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceContactComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceContactComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceContactComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  return tgt;
}
Program: 23842
Project: 23842
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTestComponent convertTestScriptTestComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTestComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTestComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.TestScript.TestActionComponent t : src.getAction())   tgt.addAction(convertTestActionComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTestComponent convertTestScriptTestComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTestComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTestComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.TestScript.TestActionComponent t : src.getAction())   tgt.addAction(convertTestActionComponent(t));
  return tgt;
}
Program: 23843
Project: 23843
Buggy source:
public static org.hl7.fhir.dstu2016may.model.DataElement convertDataElement(org.hl7.fhir.dstu3.model.DataElement src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.DataElement tgt=new org.hl7.fhir.dstu2016may.model.DataElement();
  copyDomainResource(src,tgt);
  tgt.setUrl(src.getUrl());
  for (  org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier())   tgt.addIdentifier(convertIdentifier(t));
  tgt.setVersion(src.getVersion());
  tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
  tgt.setExperimental(src.getExperimental());
  tgt.setPublisher(src.getPublisher());
  tgt.setDate(src.getDate());
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.DataElement.DataElementContactComponent t : src.getContact())   tgt.addContact(convertDataElementContactComponent(t));
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext())   tgt.addUseContext(convertCodeableConcept(t));
  tgt.setCopyright(src.getCopyright());
  tgt.setStringency(convertDataElementStringency(src.getStringency()));
  for (  org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent t : src.getMapping())   tgt.addMapping(convertDataElementMappingComponent(t));
  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.DataElement convertDataElement(org.hl7.fhir.dstu3.model.DataElement src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.DataElement tgt=new org.hl7.fhir.dstu2016may.model.DataElement();
  copyDomainResource(src,tgt);
  tgt.setUrl(src.getUrl());
  for (  org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier())   tgt.addIdentifier(convertIdentifier(t));
  tgt.setVersion(src.getVersion());
  tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
  tgt.setExperimental(src.getExperimental());
  tgt.setPublisher(src.getPublisher());
  tgt.setDate(src.getDate());
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.DataElement.DataElementContactComponent t : src.getContact())   tgt.addContact(convertDataElementContactComponent(t));
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext())   tgt.addUseContext(convertCodeableConcept(t));
  tgt.setCopyright(src.getCopyright());
  tgt.setStringency(convertDataElementStringency(src.getStringency()));
  for (  org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent t : src.getMapping())   tgt.addMapping(convertDataElementMappingComponent(t));
  for (  org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement())   tgt.addElement(convertElementDefinition(t));
  return tgt;
}
Program: 23844
Project: 23844
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.TeardownActionComponent convertTeardownActionComponent(org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TeardownActionComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TeardownActionComponent();
  copyElement(src,tgt);
  tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.TestScript.TeardownActionComponent convertTeardownActionComponent(org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TeardownActionComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TeardownActionComponent();
  copyElement(src,tgt);
  tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
  return tgt;
}
Program: 23845
Project: 23845
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTeardownComponent convertTestScriptTeardownComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTeardownComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTeardownComponent();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent t : src.getAction())   tgt.addAction(convertTeardownActionComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTeardownComponent convertTestScriptTeardownComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTeardownComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTeardownComponent();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent t : src.getAction())   tgt.addAction(convertTeardownActionComponent(t));
  return tgt;
}
Program: 23846
Project: 23846
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent convertBundleLinkComponent(org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent tgt=new org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent();
  copyElement(src,tgt);
  tgt.setRelation(src.getRelation());
  tgt.setUrl(src.getUrl());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent convertBundleLinkComponent(org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent tgt=new org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent();
  copyElement(src,tgt);
  tgt.setRelation(src.getRelation());
  tgt.setUrl(src.getUrl());
  return tgt;
}
Program: 23847
Project: 23847
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptOriginComponent convertTestScriptOriginComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptOriginComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptOriginComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptOriginComponent();
  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.TestScriptOriginComponent convertTestScriptOriginComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptOriginComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptOriginComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptOriginComponent();
  copyElement(src,tgt);
  tgt.setIndex(src.getIndex());
  tgt.setProfile(convertCoding(src.getProfile()));
  return tgt;
}
Program: 23848
Project: 23848
Buggy source:
public static org.hl7.fhir.dstu2016may.model.SearchParameter.SearchParameterContactComponent convertSearchParameterContactComponent(org.hl7.fhir.dstu3.model.SearchParameter.SearchParameterContactComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.SearchParameter.SearchParameterContactComponent tgt=new org.hl7.fhir.dstu2016may.model.SearchParameter.SearchParameterContactComponent();
  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.SearchParameter.SearchParameterContactComponent convertSearchParameterContactComponent(org.hl7.fhir.dstu3.model.SearchParameter.SearchParameterContactComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.SearchParameter.SearchParameterContactComponent tgt=new org.hl7.fhir.dstu2016may.model.SearchParameter.SearchParameterContactComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  return tgt;
}
Program: 23849
Project: 23849
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent convertTargetElementComponent(org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent src,org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent g) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent tgt=new org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent();
  copyElement(src,tgt);
  tgt.setSystem(g.getTarget());
  tgt.setCode(src.getCode());
  tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence()));
  tgt.setComments(src.getComments());
  for (  org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent t : src.getDependsOn())   tgt.addDependsOn(convertOtherElementComponent(t));
  for (  org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent t : src.getProduct())   tgt.addProduct(convertOtherElementComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent convertTargetElementComponent(org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent src,org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent g) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent tgt=new org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent();
  copyElement(src,tgt);
  tgt.setSystem(g.getTarget());
  tgt.setCode(src.getCode());
  tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence()));
  tgt.setComments(src.getComments());
  for (  org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent t : src.getDependsOn())   tgt.addDependsOn(convertOtherElementComponent(t));
  for (  org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent t : src.getProduct())   tgt.addProduct(convertOtherElementComponent(t));
  return tgt;
}