Program: 23682
Project: 23682
Buggy source:
public org.hl7.fhir.dstu2.model.ProcessRequest convertProcessRequest(org.hl7.fhir.dstu3.model.ProcessRequest src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu2.model.ProcessRequest tgt=new org.hl7.fhir.dstu2.model.ProcessRequest();
  copyDomainResource(src,tgt);
  tgt.setAction(convertActionList(src.getAction()));
  for (  org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier())   tgt.addIdentifier(convertIdentifier(t));
  tgt.setRuleset(convertCoding(src.getRuleset()));
  tgt.setOriginalRuleset(convertCoding(src.getOriginalRuleset()));
  tgt.setCreated(src.getCreated());
  if (src.hasTargetReference())   tgt.setTarget((org.hl7.fhir.dstu2.model.Reference)convertType(src.getTarget()));
  if (src.hasProviderReference())   tgt.setProvider((org.hl7.fhir.dstu2.model.Reference)convertType(src.getProvider()));
  if (src.hasOrganizationReference())   tgt.setOrganization((org.hl7.fhir.dstu2.model.Reference)convertType(src.getOrganization()));
  if (src.hasRequestReference())   tgt.setRequest((org.hl7.fhir.dstu2.model.Reference)convertType(src.getRequest()));
  if (src.hasResponseReference())   tgt.setResponse((org.hl7.fhir.dstu2.model.Reference)convertType(src.getResponse()));
  tgt.setNullify(src.getNullify());
  tgt.setReference(src.getReference());
  for (  org.hl7.fhir.dstu3.model.ProcessRequest.ItemsComponent t : src.getItem())   tgt.addItem(convertItemsComponent(t));
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getInclude())   tgt.addInclude(t.getValue());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getExclude())   tgt.addExclude(t.getValue());
  tgt.setPeriod(convertPeriod(src.getPeriod()));
  return tgt;
}

Fixed version (ground truth):
public org.hl7.fhir.dstu2.model.ProcessRequest convertProcessRequest(org.hl7.fhir.dstu3.model.ProcessRequest src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2.model.ProcessRequest tgt=new org.hl7.fhir.dstu2.model.ProcessRequest();
  copyDomainResource(src,tgt);
  tgt.setAction(convertActionList(src.getAction()));
  for (  org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier())   tgt.addIdentifier(convertIdentifier(t));
  tgt.setRuleset(convertCoding(src.getRuleset()));
  tgt.setOriginalRuleset(convertCoding(src.getOriginalRuleset()));
  tgt.setCreated(src.getCreated());
  if (src.hasTargetReference())   tgt.setTarget((org.hl7.fhir.dstu2.model.Reference)convertType(src.getTarget()));
  if (src.hasProviderReference())   tgt.setProvider((org.hl7.fhir.dstu2.model.Reference)convertType(src.getProvider()));
  if (src.hasOrganizationReference())   tgt.setOrganization((org.hl7.fhir.dstu2.model.Reference)convertType(src.getOrganization()));
  if (src.hasRequestReference())   tgt.setRequest((org.hl7.fhir.dstu2.model.Reference)convertType(src.getRequest()));
  if (src.hasResponseReference())   tgt.setResponse((org.hl7.fhir.dstu2.model.Reference)convertType(src.getResponse()));
  tgt.setNullify(src.getNullify());
  tgt.setReference(src.getReference());
  for (  org.hl7.fhir.dstu3.model.ProcessRequest.ItemsComponent t : src.getItem())   tgt.addItem(convertItemsComponent(t));
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getInclude())   tgt.addInclude(t.getValue());
  for (  org.hl7.fhir.dstu3.model.StringType t : src.getExclude())   tgt.addExclude(t.getValue());
  tgt.setPeriod(convertPeriod(src.getPeriod()));
  return tgt;
}