Program: 23254
Project: 23254
Buggy source:
public static org.hl7.fhir.r4.model.StructureDefinition convertDataElement(org.hl7.fhir.dstu3.model.DataElement src) throws FHIRException {
  if (src == null)   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());
  for (  org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier())   tgt.addIdentifier(convertIdentifier(t));
  if (src.hasVersion())   tgt.setVersion(src.getVersion());
  if (src.hasStatus())   tgt.setStatus(convertPublicationStatus(src.getStatus()));
  if (src.hasExperimental())   tgt.setExperimental(src.getExperimental());
  if (src.hasDate())   tgt.setDate(src.getDate());
  if (src.hasPublisher())   tgt.setPublisher(src.getPublisher());
  if (src.hasName())   tgt.setName(src.getName());
  if (src.hasTitle())   tgt.setTitle(src.getTitle());
  for (  org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact())   tgt.addContact(convertContactDetail(t));
  for (  org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext())   tgt.addUseContext(convertUsageContext(t));
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction())   tgt.addJurisdiction(convertCodeableConcept(t));
  if (src.hasCopyright())   tgt.setCopyright(src.getCopyright());
  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.getSnapshot().addElement(convertElementDefinition(t));
  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 static org.hl7.fhir.r4.model.StructureDefinition convertDataElement(org.hl7.fhir.dstu3.model.DataElement src) throws FHIRException {
  if (src == null)   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.dstu3.model.Identifier t : src.getIdentifier())   tgt.addIdentifier(convertIdentifier(t));
  if (src.hasVersion())   tgt.setVersion(src.getVersion());
  if (src.hasStatus())   tgt.setStatus(convertPublicationStatus(src.getStatus()));
  if (src.hasExperimental())   tgt.setExperimental(src.getExperimental());
  if (src.hasDate())   tgt.setDate(src.getDate());
  if (src.hasPublisher())   tgt.setPublisher(src.getPublisher());
  if (src.hasName())   tgt.setName(src.getName());
  if (src.hasTitle())   tgt.setTitle(src.getTitle());
  for (  org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact())   tgt.addContact(convertContactDetail(t));
  for (  org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext())   tgt.addUseContext(convertUsageContext(t));
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction())   tgt.addJurisdiction(convertCodeableConcept(t));
  if (src.hasCopyright())   tgt.setCopyright(src.getCopyright());
  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.getSnapshot().addElement(convertElementDefinition(t));
  tgt.setKind(StructureDefinitionKind.LOGICAL);
  tgt.setAbstract(false);
  tgt.setType(tgt.getName());
  tgt.setBaseDefinition("String_Node_Str");
  tgt.setDerivation(TypeDerivationRule.SPECIALIZATION);
  return tgt;
}