Program: 23253
Project: 23253
Buggy source:
public org.hl7.fhir.r4.model.StructureDefinition convertDataElement(org.hl7.fhir.dstu2.model.DataElement src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.r4.model.StructureDefinition tgt=new org.hl7.fhir.r4.model.StructureDefinition();
  copyDomainResource(src,tgt);
  tgt.setUrl(src.getUrl());
  for (  org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier())   tgt.addIdentifier(convertIdentifier(t));
  tgt.setVersion(src.getVersion());
  tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
  if (src.hasExperimental())   tgt.setExperimental(src.getExperimental());
  tgt.setPublisher(src.getPublisher());
  if (src.hasDate())   tgt.setDate(src.getDate());
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent t : src.getContact())   tgt.addContact(convertDataElementContactComponent(t));
  for (  org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext())   if (isJurisdiction(t))   tgt.addJurisdiction(convertCodeableConcept(t));
 else   tgt.addUseContext(convertCodeableConceptToUsageContext(t));
  tgt.setCopyright(src.getCopyright());
  for (  org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent t : src.getMapping())   tgt.addMapping(convertDataElementMappingComponent(t));
  List<String> slicePaths=new ArrayList<String>();
  for (  org.hl7.fhir.dstu2.model.ElementDefinition t : src.getElement()) {
    if (t.hasSlicing())     slicePaths.add(t.getPath());
    tgt.getSnapshot().addElement(convertElementDefinition(t,slicePaths));
  }
  tgt.setKind(StructureDefinitionKind.LOGICAL);
  tgt.setAbstract(false);
  tgt.setType(tgt.getName());
  tgt.setBaseDefinition("String_Node_Str");
  tgt.setDerivation(TypeDerivationRule.SPECIALIZATION);
  return tgt;
}

Fixed version (ground truth):
public org.hl7.fhir.r4.model.StructureDefinition convertDataElement(org.hl7.fhir.dstu2.model.DataElement src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.r4.model.StructureDefinition tgt=new org.hl7.fhir.r4.model.StructureDefinition();
  copyDomainResource(src,tgt);
  if (src.hasUrl())   tgt.setUrl(src.getUrl().replace("String_Node_Str","String_Node_Str"));
  for (  org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier())   tgt.addIdentifier(convertIdentifier(t));
  tgt.setVersion(src.getVersion());
  tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
  if (src.hasExperimental())   tgt.setExperimental(src.getExperimental());
  tgt.setPublisher(src.getPublisher());
  if (src.hasDate())   tgt.setDate(src.getDate());
  tgt.setName(src.getName());
  for (  org.hl7.fhir.dstu2.model.DataElement.DataElementContactComponent t : src.getContact())   tgt.addContact(convertDataElementContactComponent(t));
  for (  org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext())   if (isJurisdiction(t))   tgt.addJurisdiction(convertCodeableConcept(t));
 else   tgt.addUseContext(convertCodeableConceptToUsageContext(t));
  tgt.setCopyright(src.getCopyright());
  for (  org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent t : src.getMapping())   tgt.addMapping(convertDataElementMappingComponent(t));
  List<String> slicePaths=new ArrayList<String>();
  for (  org.hl7.fhir.dstu2.model.ElementDefinition t : src.getElement()) {
    if (t.hasSlicing())     slicePaths.add(t.getPath());
    tgt.getSnapshot().addElement(convertElementDefinition(t,slicePaths));
  }
  tgt.setKind(StructureDefinitionKind.LOGICAL);
  tgt.setAbstract(false);
  tgt.setType(tgt.getName());
  tgt.setBaseDefinition("String_Node_Str");
  tgt.setDerivation(TypeDerivationRule.SPECIALIZATION);
  return tgt;
}