nus-yam/ex-repair huggingface dataset:
Program: 23850
Project: 23850
Buggy source:
public static org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionResourceComponent convertCompartmentDefinitionResourceComponent(org.hl7.fhir.dstu3.model.CompartmentDefinition.CompartmentDefinitionResourceComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt=new org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionResourceComponent();
  copyElement(src,tgt);
  tgt.setCode(src.getCode());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getParam())   tgt.addParam(t.getValue());
  tgt.setDocumentation(src.getDocumentation());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionResourceComponent convertCompartmentDefinitionResourceComponent(org.hl7.fhir.dstu3.model.CompartmentDefinition.CompartmentDefinitionResourceComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt=new org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionResourceComponent();
  copyElement(src,tgt);
  tgt.setCode(src.getCode());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getParam())   tgt.addParam(t.getValue());
  tgt.setDocumentation(src.getDocumentation());
  return tgt;
}
Program: 23851
Project: 23851
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertComponent convertSetupActionAssertComponent(org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertComponent();
  copyElement(src,tgt);
  tgt.setLabel(src.getLabel());
  tgt.setDescription(src.getDescription());
  tgt.setDirection(convertAssertionDirectionType(src.getDirection()));
  tgt.setCompareToSourceId(src.getCompareToSourceId());
  tgt.setCompareToSourcePath(src.getCompareToSourcePath());
  tgt.setContentType(convertContentType(src.getContentType()));
  tgt.setHeaderField(src.getHeaderField());
  tgt.setMinimumId(src.getMinimumId());
  tgt.setNavigationLinks(src.getNavigationLinks());
  tgt.setOperator(convertAssertionOperatorType(src.getOperator()));
  tgt.setPath(src.getPath());
  tgt.setResource(src.getResource());
  tgt.setResponse(convertAssertionResponseTypes(src.getResponse()));
  tgt.setResponseCode(src.getResponseCode());
  tgt.setSourceId(src.getSourceId());
  tgt.setValidateProfileId(src.getValidateProfileId());
  tgt.setValue(src.getValue());
  tgt.setWarningOnly(src.getWarningOnly());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertComponent convertSetupActionAssertComponent(org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertComponent();
  copyElement(src,tgt);
  tgt.setLabel(src.getLabel());
  tgt.setDescription(src.getDescription());
  tgt.setDirection(convertAssertionDirectionType(src.getDirection()));
  tgt.setCompareToSourceId(src.getCompareToSourceId());
  tgt.setCompareToSourcePath(src.getCompareToSourcePath());
  tgt.setContentType(convertContentType(src.getContentType()));
  tgt.setHeaderField(src.getHeaderField());
  tgt.setMinimumId(src.getMinimumId());
  tgt.setNavigationLinks(src.getNavigationLinks());
  tgt.setOperator(convertAssertionOperatorType(src.getOperator()));
  tgt.setPath(src.getPath());
  tgt.setResource(src.getResource());
  tgt.setResponse(convertAssertionResponseTypes(src.getResponse()));
  tgt.setResponseCode(src.getResponseCode());
  tgt.setSourceId(src.getSourceId());
  tgt.setValidateProfileId(src.getValidateProfileId());
  tgt.setValue(src.getValue());
  tgt.setWarningOnly(src.getWarningOnly());
  return tgt;
}
Program: 23852
Project: 23852
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEndpointComponent convertConformanceMessagingEndpointComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceMessagingEndpointComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEndpointComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEndpointComponent();
  copyElement(src,tgt);
  tgt.setProtocol(convertCoding(src.getProtocol()));
  tgt.setAddress(src.getAddress());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEndpointComponent convertConformanceMessagingEndpointComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceMessagingEndpointComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEndpointComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEndpointComponent();
  copyElement(src,tgt);
  tgt.setProtocol(convertCoding(src.getProtocol()));
  tgt.setAddress(src.getAddress());
  return tgt;
}
Program: 23853
Project: 23853
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.SetupActionOperationComponent convertSetupActionOperationComponent(org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.SetupActionOperationComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.SetupActionOperationComponent();
  copyElement(src,tgt);
  tgt.setType(convertCoding(src.getType()));
  tgt.setResource(src.getResource());
  tgt.setLabel(src.getLabel());
  tgt.setDescription(src.getDescription());
  tgt.setAccept(convertContentType(src.getAccept()));
  tgt.setContentType(convertContentType(src.getContentType()));
  tgt.setDestination(src.getDestination());
  tgt.setEncodeRequestUrl(src.getEncodeRequestUrl());
  tgt.setOrigin(src.getOrigin());
  tgt.setParams(src.getParams());
  for (  org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent t : src.getRequestHeader())   tgt.addRequestHeader(convertSetupActionOperationRequestHeaderComponent(t));
  tgt.setResponseId(src.getResponseId());
  tgt.setSourceId(src.getSourceId());
  tgt.setTargetId(src.getTargetId());
  tgt.setUrl(src.getUrl());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.TestScript.SetupActionOperationComponent convertSetupActionOperationComponent(org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.SetupActionOperationComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.SetupActionOperationComponent();
  copyElement(src,tgt);
  tgt.setType(convertCoding(src.getType()));
  tgt.setResource(src.getResource());
  tgt.setLabel(src.getLabel());
  tgt.setDescription(src.getDescription());
  tgt.setAccept(convertContentType(src.getAccept()));
  tgt.setContentType(convertContentType(src.getContentType()));
  tgt.setDestination(src.getDestination());
  tgt.setEncodeRequestUrl(src.getEncodeRequestUrl());
  tgt.setOrigin(src.getOrigin());
  tgt.setParams(src.getParams());
  for (  org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent t : src.getRequestHeader())   tgt.addRequestHeader(convertSetupActionOperationRequestHeaderComponent(t));
  tgt.setResponseId(src.getResponseId());
  tgt.setSourceId(src.getSourceId());
  tgt.setTargetId(src.getTargetId());
  tgt.setUrl(src.getUrl());
  return tgt;
}
Program: 23854
Project: 23854
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Count convertCount(org.hl7.fhir.dstu3.model.Count src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Count tgt=new org.hl7.fhir.dstu2016may.model.Count();
  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.Count convertCount(org.hl7.fhir.dstu3.model.Count src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Count tgt=new org.hl7.fhir.dstu2016may.model.Count();
  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: 23855
Project: 23855
Buggy source:
public static org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionDifferentialComponent convertStructureDefinitionDifferentialComponent(org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionDifferentialComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt=new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionDifferentialComponent();
  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.StructureDefinitionDifferentialComponent convertStructureDefinitionDifferentialComponent(org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionDifferentialComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt=new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionDifferentialComponent();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement())   tgt.addElement(convertElementDefinition(t));
  return tgt;
}
Program: 23856
Project: 23856
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Meta convertMeta(org.hl7.fhir.dstu3.model.Meta src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Meta tgt=new org.hl7.fhir.dstu2016may.model.Meta();
  copyElement(src,tgt);
  tgt.setVersionId(src.getVersionId());
  tgt.setLastUpdated(src.getLastUpdated());
  for (  org.hl7.fhir.dstu3.model.UriType t : src.getProfile())   tgt.addProfile(t.getValue());
  for (  org.hl7.fhir.dstu3.model.Coding t : src.getSecurity())   tgt.addSecurity(convertCoding(t));
  for (  org.hl7.fhir.dstu3.model.Coding t : src.getTag())   tgt.addTag(convertCoding(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Meta convertMeta(org.hl7.fhir.dstu3.model.Meta src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Meta tgt=new org.hl7.fhir.dstu2016may.model.Meta();
  copyElement(src,tgt);
  tgt.setVersionId(src.getVersionId());
  tgt.setLastUpdated(src.getLastUpdated());
  for (  org.hl7.fhir.dstu3.model.UriType t : src.getProfile())   tgt.addProfile(t.getValue());
  for (  org.hl7.fhir.dstu3.model.Coding t : src.getSecurity())   tgt.addSecurity(convertCoding(t));
  for (  org.hl7.fhir.dstu3.model.Coding t : src.getTag())   tgt.addTag(convertCoding(t));
  return tgt;
}
Program: 23857
Project: 23857
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Quantity convertQuantity(org.hl7.fhir.dstu3.model.Quantity src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Quantity tgt=new org.hl7.fhir.dstu2016may.model.Quantity();
  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.Quantity convertQuantity(org.hl7.fhir.dstu3.model.Quantity src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Quantity tgt=new org.hl7.fhir.dstu2016may.model.Quantity();
  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: 23860
Project: 23860
Buggy source:
public static org.hl7.fhir.dstu2016may.model.NamingSystem.NamingSystemContactComponent convertNamingSystemContactComponent(org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemContactComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.NamingSystem.NamingSystemContactComponent tgt=new org.hl7.fhir.dstu2016may.model.NamingSystem.NamingSystemContactComponent();
  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.NamingSystem.NamingSystemContactComponent convertNamingSystemContactComponent(org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemContactComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.NamingSystem.NamingSystemContactComponent tgt=new org.hl7.fhir.dstu2016may.model.NamingSystem.NamingSystemContactComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  return tgt;
}
Program: 23861
Project: 23861
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRulesetComponent convertTestScriptRulesetComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptRulesetComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRulesetComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRulesetComponent();
  copyElement(src,tgt);
  tgt.setResource(convertReference(src.getResource()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRulesetComponent convertTestScriptRulesetComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptRulesetComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRulesetComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRulesetComponent();
  copyElement(src,tgt);
  tgt.setResource(convertReference(src.getResource()));
  return tgt;
}
Program: 23862
Project: 23862
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataLinkComponent convertTestScriptMetadataLinkComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataLinkComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataLinkComponent();
  copyElement(src,tgt);
  tgt.setUrl(src.getUrl());
  tgt.setDescription(src.getDescription());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataLinkComponent convertTestScriptMetadataLinkComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataLinkComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataLinkComponent();
  copyElement(src,tgt);
  tgt.setUrl(src.getUrl());
  tgt.setDescription(src.getDescription());
  return tgt;
}
Program: 23863
Project: 23863
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.SetupActionComponent convertSetupActionComponent(org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.SetupActionComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.SetupActionComponent();
  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.SetupActionComponent convertSetupActionComponent(org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.SetupActionComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.SetupActionComponent();
  copyElement(src,tgt);
  tgt.setOperation(convertSetupActionOperationComponent(src.getOperation()));
  tgt.setAssert(convertSetupActionAssertComponent(src.getAssert()));
  return tgt;
}
Program: 23864
Project: 23864
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryRequestComponent convertBundleEntryRequestComponent(org.hl7.fhir.dstu3.model.Bundle.BundleEntryRequestComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryRequestComponent tgt=new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryRequestComponent();
  copyElement(src,tgt);
  tgt.setMethod(convertHTTPVerb(src.getMethod()));
  tgt.setUrl(src.getUrl());
  tgt.setIfNoneMatch(src.getIfNoneMatch());
  tgt.setIfModifiedSince(src.getIfModifiedSince());
  tgt.setIfMatch(src.getIfMatch());
  tgt.setIfNoneExist(src.getIfNoneExist());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryRequestComponent convertBundleEntryRequestComponent(org.hl7.fhir.dstu3.model.Bundle.BundleEntryRequestComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryRequestComponent tgt=new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryRequestComponent();
  copyElement(src,tgt);
  tgt.setMethod(convertHTTPVerb(src.getMethod()));
  tgt.setUrl(src.getUrl());
  tgt.setIfNoneMatch(src.getIfNoneMatch());
  tgt.setIfModifiedSince(src.getIfModifiedSince());
  tgt.setIfMatch(src.getIfMatch());
  tgt.setIfNoneExist(src.getIfNoneExist());
  return tgt;
}
Program: 23865
Project: 23865
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataComponent convertTestScriptMetadataComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataComponent();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink())   tgt.addLink(convertTestScriptMetadataLinkComponent(t));
  for (  org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability())   tgt.addCapability(convertTestScriptMetadataCapabilityComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataComponent convertTestScriptMetadataComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataComponent();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink())   tgt.addLink(convertTestScriptMetadataLinkComponent(t));
  for (  org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability())   tgt.addCapability(convertTestScriptMetadataCapabilityComponent(t));
  return tgt;
}
Program: 23866
Project: 23866
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Address convertAddress(org.hl7.fhir.dstu3.model.Address src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Address tgt=new org.hl7.fhir.dstu2016may.model.Address();
  copyElement(src,tgt);
  tgt.setUse(convertAddressUse(src.getUse()));
  tgt.setType(convertAddressType(src.getType()));
  tgt.setText(src.getText());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getLine())   tgt.addLine(t.getValue());
  tgt.setCity(src.getCity());
  tgt.setDistrict(src.getDistrict());
  tgt.setState(src.getState());
  tgt.setPostalCode(src.getPostalCode());
  tgt.setCountry(src.getCountry());
  tgt.setPeriod(convertPeriod(src.getPeriod()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Address convertAddress(org.hl7.fhir.dstu3.model.Address src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Address tgt=new org.hl7.fhir.dstu2016may.model.Address();
  copyElement(src,tgt);
  tgt.setUse(convertAddressUse(src.getUse()));
  tgt.setType(convertAddressType(src.getType()));
  tgt.setText(src.getText());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getLine())   tgt.addLine(t.getValue());
  tgt.setCity(src.getCity());
  tgt.setDistrict(src.getDistrict());
  tgt.setState(src.getState());
  tgt.setPostalCode(src.getPostalCode());
  tgt.setCountry(src.getCountry());
  tgt.setPeriod(convertPeriod(src.getPeriod()));
  return tgt;
}
Program: 23867
Project: 23867
Buggy source:
public static org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent convertQuestionnaireResponseItemAnswerComponent(org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt=new org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent();
  copyElement(src,tgt);
  tgt.setValue(convertType(src.getValue()));
  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.QuestionnaireResponseItemAnswerComponent convertQuestionnaireResponseItemAnswerComponent(org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt=new org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent();
  copyElement(src,tgt);
  tgt.setValue(convertType(src.getValue()));
  for (  org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem())   tgt.addItem(convertQuestionnaireResponseItemComponent(t));
  return tgt;
}
Program: 23868
Project: 23868
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Reference convertReference(org.hl7.fhir.dstu3.model.Reference src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Reference tgt=new org.hl7.fhir.dstu2016may.model.Reference();
  copyElement(src,tgt);
  tgt.setReference(src.getReference());
  tgt.setDisplay(src.getDisplay());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Reference convertReference(org.hl7.fhir.dstu3.model.Reference src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Reference tgt=new org.hl7.fhir.dstu2016may.model.Reference();
  copyElement(src,tgt);
  tgt.setReference(src.getReference());
  tgt.setDisplay(src.getDisplay());
  return tgt;
}
Program: 23869
Project: 23869
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemComponent convertQuestionnaireItemComponent(org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemComponent tgt=new org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemComponent();
  copyElement(src,tgt);
  tgt.setLinkId(src.getLinkId());
  for (  org.hl7.fhir.dstu3.model.Coding t : src.getConcept())   tgt.addConcept(convertCoding(t));
  tgt.setPrefix(src.getPrefix());
  tgt.setText(src.getText());
  tgt.setType(convertQuestionnaireItemType(src.getType()));
  for (  org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemEnableWhenComponent t : src.getEnableWhen())   tgt.addEnableWhen(convertQuestionnaireItemEnableWhenComponent(t));
  tgt.setRequired(src.getRequired());
  tgt.setRepeats(src.getRepeats());
  tgt.setReadOnly(src.getReadOnly());
  tgt.setMaxLength(src.getMaxLength());
  tgt.setOptions(convertReference(src.getOptions()));
  for (  org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemOptionComponent t : src.getOption())   tgt.addOption(convertQuestionnaireItemOptionComponent(t));
  tgt.setInitial(convertType(src.getInitial()));
  for (  org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent t : src.getItem())   tgt.addItem(convertQuestionnaireItemComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemComponent convertQuestionnaireItemComponent(org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemComponent tgt=new org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemComponent();
  copyElement(src,tgt);
  tgt.setLinkId(src.getLinkId());
  for (  org.hl7.fhir.dstu3.model.Coding t : src.getConcept())   tgt.addConcept(convertCoding(t));
  tgt.setPrefix(src.getPrefix());
  tgt.setText(src.getText());
  tgt.setType(convertQuestionnaireItemType(src.getType()));
  for (  org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemEnableWhenComponent t : src.getEnableWhen())   tgt.addEnableWhen(convertQuestionnaireItemEnableWhenComponent(t));
  tgt.setRequired(src.getRequired());
  tgt.setRepeats(src.getRepeats());
  tgt.setReadOnly(src.getReadOnly());
  tgt.setMaxLength(src.getMaxLength());
  tgt.setOptions(convertReference(src.getOptions()));
  for (  org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemOptionComponent t : src.getOption())   tgt.addOption(convertQuestionnaireItemOptionComponent(t));
  tgt.setInitial(convertType(src.getInitial()));
  for (  org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent t : src.getItem())   tgt.addItem(convertQuestionnaireItemComponent(t));
  return tgt;
}
Program: 23870
Project: 23870
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceComponent convertConformanceRestResourceComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceRestResourceComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceComponent();
  copyElement(src,tgt);
  tgt.setType(src.getType());
  tgt.setProfile(convertReference(src.getProfile()));
  for (  org.hl7.fhir.dstu3.model.Conformance.ResourceInteractionComponent t : src.getInteraction())   tgt.addInteraction(convertResourceInteractionComponent(t));
  tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning()));
  tgt.setReadHistory(src.getReadHistory());
  tgt.setUpdateCreate(src.getUpdateCreate());
  tgt.setConditionalCreate(src.getConditionalCreate());
  tgt.setConditionalUpdate(src.getConditionalUpdate());
  tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete()));
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getSearchInclude())   tgt.addSearchInclude(t.getValue());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getSearchRevInclude())   tgt.addSearchRevInclude(t.getValue());
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceRestResourceSearchParamComponent t : src.getSearchParam())   tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceComponent convertConformanceRestResourceComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceRestResourceComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceComponent();
  copyElement(src,tgt);
  tgt.setType(src.getType());
  tgt.setProfile(convertReference(src.getProfile()));
  for (  org.hl7.fhir.dstu3.model.Conformance.ResourceInteractionComponent t : src.getInteraction())   tgt.addInteraction(convertResourceInteractionComponent(t));
  tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning()));
  tgt.setReadHistory(src.getReadHistory());
  tgt.setUpdateCreate(src.getUpdateCreate());
  tgt.setConditionalCreate(src.getConditionalCreate());
  tgt.setConditionalUpdate(src.getConditionalUpdate());
  tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete()));
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getSearchInclude())   tgt.addSearchInclude(t.getValue());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getSearchRevInclude())   tgt.addSearchRevInclude(t.getValue());
  for (  org.hl7.fhir.dstu3.model.Conformance.ConformanceRestResourceSearchParamComponent t : src.getSearchParam())   tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
  return tgt;
}
Program: 23871
Project: 23871
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.SetupActionOperationRequestHeaderComponent convertSetupActionOperationRequestHeaderComponent(org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.SetupActionOperationRequestHeaderComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.SetupActionOperationRequestHeaderComponent();
  copyElement(src,tgt);
  tgt.setField(src.getField());
  tgt.setValue(src.getValue());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.TestScript.SetupActionOperationRequestHeaderComponent convertSetupActionOperationRequestHeaderComponent(org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.SetupActionOperationRequestHeaderComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.SetupActionOperationRequestHeaderComponent();
  copyElement(src,tgt);
  tgt.setField(src.getField());
  tgt.setValue(src.getValue());
  return tgt;
}
Program: 23872
Project: 23872
Buggy source:
public static org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent convertCodeSystemFilterComponent(org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemFilterComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent tgt=new org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent();
  copyElement(src,tgt);
  tgt.setCode(src.getCode());
  tgt.setDescription(src.getDescription());
  for (  Enumeration<FilterOperator> t : src.getOperator())   tgt.addOperator(t.getValue().toCode());
  tgt.setValue(src.getValue());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent convertCodeSystemFilterComponent(org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemFilterComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent tgt=new org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent();
  copyElement(src,tgt);
  tgt.setCode(src.getCode());
  tgt.setDescription(src.getDescription());
  for (  Enumeration<FilterOperator> t : src.getOperator())   tgt.addOperator(t.getValue().toCode());
  tgt.setValue(src.getValue());
  return tgt;
}
Program: 23874
Project: 23874
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptFixtureComponent convertTestScriptFixtureComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptFixtureComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptFixtureComponent();
  copyElement(src,tgt);
  tgt.setAutocreate(src.getAutocreate());
  tgt.setAutodelete(src.getAutodelete());
  tgt.setResource(convertReference(src.getResource()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptFixtureComponent convertTestScriptFixtureComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptFixtureComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptFixtureComponent();
  copyElement(src,tgt);
  tgt.setAutocreate(src.getAutocreate());
  tgt.setAutodelete(src.getAutodelete());
  tgt.setResource(convertReference(src.getResource()));
  return tgt;
}
Program: 23875
Project: 23875
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Questionnaire convertQuestionnaire(org.hl7.fhir.dstu3.model.Questionnaire src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Questionnaire tgt=new org.hl7.fhir.dstu2016may.model.Questionnaire();
  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(convertQuestionnaireStatus(src.getStatus()));
  tgt.setDate(src.getDate());
  tgt.setPublisher(src.getPublisher());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext())   tgt.addUseContext(convertCodeableConcept(t));
  tgt.setTitle(src.getTitle());
  for (  org.hl7.fhir.dstu3.model.Coding t : src.getConcept())   tgt.addConcept(convertCoding(t));
  for (  org.hl7.fhir.dstu3.model.CodeType t : src.getSubjectType())   tgt.addSubjectType(t.getValue());
  for (  org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent t : src.getItem())   tgt.addItem(convertQuestionnaireItemComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Questionnaire convertQuestionnaire(org.hl7.fhir.dstu3.model.Questionnaire src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Questionnaire tgt=new org.hl7.fhir.dstu2016may.model.Questionnaire();
  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(convertQuestionnaireStatus(src.getStatus()));
  tgt.setDate(src.getDate());
  tgt.setPublisher(src.getPublisher());
  for (  org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom())   tgt.addTelecom(convertContactPoint(t));
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getUseContext())   tgt.addUseContext(convertCodeableConcept(t));
  tgt.setTitle(src.getTitle());
  for (  org.hl7.fhir.dstu3.model.Coding t : src.getConcept())   tgt.addConcept(convertCoding(t));
  for (  org.hl7.fhir.dstu3.model.CodeType t : src.getSubjectType())   tgt.addSubjectType(t.getValue());
  for (  org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent t : src.getItem())   tgt.addItem(convertQuestionnaireItemComponent(t));
  return tgt;
}
Program: 23876
Project: 23876
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Age convertAge(org.hl7.fhir.dstu3.model.Age src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Age tgt=new org.hl7.fhir.dstu2016may.model.Age();
  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.Age convertAge(org.hl7.fhir.dstu3.model.Age src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Age tgt=new org.hl7.fhir.dstu2016may.model.Age();
  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: 23877
Project: 23877
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Identifier convertIdentifier(org.hl7.fhir.dstu3.model.Identifier src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Identifier tgt=new org.hl7.fhir.dstu2016may.model.Identifier();
  copyElement(src,tgt);
  tgt.setUse(convertIdentifierUse(src.getUse()));
  tgt.setType(convertCodeableConcept(src.getType()));
  tgt.setSystem(src.getSystem());
  tgt.setValue(src.getValue());
  tgt.setPeriod(convertPeriod(src.getPeriod()));
  tgt.setAssigner(convertReference(src.getAssigner()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Identifier convertIdentifier(org.hl7.fhir.dstu3.model.Identifier src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Identifier tgt=new org.hl7.fhir.dstu2016may.model.Identifier();
  copyElement(src,tgt);
  tgt.setUse(convertIdentifierUse(src.getUse()));
  tgt.setType(convertCodeableConcept(src.getType()));
  tgt.setSystem(src.getSystem());
  tgt.setValue(src.getValue());
  tgt.setPeriod(convertPeriod(src.getPeriod()));
  tgt.setAssigner(convertReference(src.getAssigner()));
  return tgt;
}
Program: 23878
Project: 23878
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceSoftwareComponent convertConformanceSoftwareComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceSoftwareComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceSoftwareComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceSoftwareComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  tgt.setVersion(src.getVersion());
  tgt.setReleaseDate(src.getReleaseDate());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceSoftwareComponent convertConformanceSoftwareComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceSoftwareComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceSoftwareComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceSoftwareComponent();
  copyElement(src,tgt);
  tgt.setName(src.getName());
  tgt.setVersion(src.getVersion());
  tgt.setReleaseDate(src.getReleaseDate());
  return tgt;
}
Program: 23879
Project: 23879
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ContactPoint convertContactPoint(org.hl7.fhir.dstu3.model.ContactPoint src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.ContactPoint tgt=new org.hl7.fhir.dstu2016may.model.ContactPoint();
  copyElement(src,tgt);
  tgt.setSystem(convertContactPointSystem(src.getSystem()));
  tgt.setValue(src.getValue());
  tgt.setUse(convertContactPointUse(src.getUse()));
  tgt.setRank(src.getRank());
  tgt.setPeriod(convertPeriod(src.getPeriod()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ContactPoint convertContactPoint(org.hl7.fhir.dstu3.model.ContactPoint src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ContactPoint tgt=new org.hl7.fhir.dstu2016may.model.ContactPoint();
  copyElement(src,tgt);
  tgt.setSystem(convertContactPointSystem(src.getSystem()));
  tgt.setValue(src.getValue());
  tgt.setUse(convertContactPointUse(src.getUse()));
  tgt.setRank(src.getRank());
  tgt.setPeriod(convertPeriod(src.getPeriod()));
  return tgt;
}
Program: 23880
Project: 23880
Buggy source:
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEventComponent convertConformanceMessagingEventComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceMessagingEventComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEventComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEventComponent();
  copyElement(src,tgt);
  tgt.setCode(convertCoding(src.getCode()));
  tgt.setCategory(convertMessageSignificanceCategory(src.getCategory()));
  tgt.setMode(convertConformanceEventMode(src.getMode()));
  tgt.setFocus(src.getFocus());
  tgt.setRequest(convertReference(src.getRequest()));
  tgt.setResponse(convertReference(src.getResponse()));
  tgt.setDocumentation(src.getDocumentation());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEventComponent convertConformanceMessagingEventComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceMessagingEventComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEventComponent tgt=new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEventComponent();
  copyElement(src,tgt);
  tgt.setCode(convertCoding(src.getCode()));
  tgt.setCategory(convertMessageSignificanceCategory(src.getCategory()));
  tgt.setMode(convertConformanceEventMode(src.getMode()));
  tgt.setFocus(src.getFocus());
  tgt.setRequest(convertReference(src.getRequest()));
  tgt.setResponse(convertReference(src.getResponse()));
  tgt.setDocumentation(src.getDocumentation());
  return tgt;
}
Program: 23881
Project: 23881
Buggy source:
public static org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionMappingComponent convertStructureDefinitionMappingComponent(org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionMappingComponent tgt=new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionMappingComponent();
  copyElement(src,tgt);
  tgt.setIdentity(src.getIdentity());
  tgt.setUri(src.getUri());
  tgt.setName(src.getName());
  tgt.setComments(src.getComments());
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionMappingComponent convertStructureDefinitionMappingComponent(org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionMappingComponent tgt=new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionMappingComponent();
  copyElement(src,tgt);
  tgt.setIdentity(src.getIdentity());
  tgt.setUri(src.getUri());
  tgt.setName(src.getName());
  tgt.setComments(src.getComments());
  return tgt;
}
Program: 23882
Project: 23882
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataCapabilityComponent convertTestScriptMetadataCapabilityComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataCapabilityComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataCapabilityComponent();
  copyElement(src,tgt);
  tgt.setRequired(src.getRequired());
  tgt.setValidated(src.getValidated());
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.IntegerType t : src.getOrigin())   tgt.addOrigin(t.getValue());
  tgt.setDestination(src.getDestination());
  for (  org.hl7.fhir.dstu3.model.UriType t : src.getLink())   tgt.addLink(t.getValue());
  tgt.setConformance(convertReference(src.getConformance()));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataCapabilityComponent convertTestScriptMetadataCapabilityComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataCapabilityComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataCapabilityComponent();
  copyElement(src,tgt);
  tgt.setRequired(src.getRequired());
  tgt.setValidated(src.getValidated());
  tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.IntegerType t : src.getOrigin())   tgt.addOrigin(t.getValue());
  tgt.setDestination(src.getDestination());
  for (  org.hl7.fhir.dstu3.model.UriType t : src.getLink())   tgt.addLink(t.getValue());
  tgt.setConformance(convertReference(src.getConformance()));
  return tgt;
}
Program: 23883
Project: 23883
Buggy source:
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptSetupComponent convertTestScriptSetupComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptSetupComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptSetupComponent();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent t : src.getAction())   tgt.addAction(convertSetupActionComponent(t));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptSetupComponent convertTestScriptSetupComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.TestScript.TestScriptSetupComponent tgt=new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptSetupComponent();
  copyElement(src,tgt);
  for (  org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent t : src.getAction())   tgt.addAction(convertSetupActionComponent(t));
  return tgt;
}