Program: 23342
Project: 23342
Buggy source:
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);
  if (src.hasUrl())   tgt.setUrl(src.getUrl());
  for (  org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier())   tgt.setIdentifier(convertIdentifier(t));
  if (src.hasVersion())   tgt.setVersion(src.getVersion());
  if (src.hasName())   tgt.setName(src.getName());
  tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
  if (src.hasExperimental())   tgt.setExperimental(src.getExperimental());
  if (src.hasPublisher())   tgt.setPublisher(src.getPublisher());
  for (  org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact())   tgt.addContact(convertValueSetContactComponent(t));
  if (src.hasDate())   tgt.setDate(src.getDate());
  if (src.getCompose().hasLockedDate())   tgt.setLockedDate(src.getCompose().getLockedDate());
  if (src.hasDescription())   tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext())   if (t.hasValueCodeableConcept())   tgt.addUseContext(convertCodeableConcept(t.getValueCodeableConcept()));
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction())   tgt.addUseContext(convertCodeableConcept(t));
  if (src.hasImmutable())   tgt.setImmutable(src.getImmutable());
  if (src.hasPurpose())   tgt.setRequirements(src.getPurpose());
  if (src.hasCopyright())   tgt.setCopyright(src.getCopyright());
  if (src.hasExtensible())   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);
  if (src.hasUrl())   tgt.setUrl(src.getUrl());
  for (  org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier())   tgt.setIdentifier(convertIdentifier(t));
  if (src.hasVersion())   tgt.setVersion(src.getVersion());
  if (src.hasName())   tgt.setName(src.getName());
  tgt.setStatus(convertConformanceResourceStatus(src.getStatus()));
  if (src.hasExperimental())   tgt.setExperimental(src.getExperimental());
  if (src.hasPublisher())   tgt.setPublisher(src.getPublisher());
  for (  org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact())   tgt.addContact(convertValueSetContactComponent(t));
  if (src.hasDate())   tgt.setDate(src.getDate());
  if (src.getCompose().hasLockedDate())   tgt.setLockedDate(src.getCompose().getLockedDate());
  if (src.hasDescription())   tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext())   if (t.hasValueCodeableConcept())   tgt.addUseContext(convertCodeableConcept(t.getValueCodeableConcept()));
  for (  org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction())   tgt.addUseContext(convertCodeableConcept(t));
  if (src.hasImmutable())   tgt.setImmutable(src.getImmutable());
  if (src.hasPurpose())   tgt.setRequirements(src.getPurpose());
  if (src.hasCopyright())   tgt.setCopyright(src.getCopyright());
  if (src.hasExtensible())   tgt.setExtensible(src.getExtensible());
  tgt.setCompose(convertValueSetComposeComponent(src.getCompose()));
  if (src.hasExpansion())   tgt.setExpansion(convertValueSetExpansionComponent(src.getExpansion()));
  return tgt;
}