Program: 23011
Project: 23011
Buggy source:
public static org.hl7.fhir.dstu2016may.model.ConceptMap convertConceptMap(org.hl7.fhir.r4.model.ConceptMap src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ConceptMap tgt=new org.hl7.fhir.dstu2016may.model.ConceptMap();
  copyDomainResource(src,tgt);
  if (src.hasUrl())   tgt.setUrl(src.getUrl());
  tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
  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.r4.model.ContactDetail t : src.getContact())   tgt.addContact(convertConceptMapContactComponent(t));
  if (src.hasDate())   tgt.setDate(src.getDate());
  if (src.hasDescription())   tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.r4.model.UsageContext t : src.getUseContext())   if (t.hasValueCodeableConcept())   tgt.addUseContext(convertCodeableConcept(t.getValueCodeableConcept()));
  for (  org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction())   tgt.addUseContext(convertCodeableConcept(t));
  if (src.hasPurpose())   tgt.setRequirements(src.getPurpose());
  if (src.hasCopyright())   tgt.setCopyright(src.getCopyright());
  tgt.setSource(convertType(src.getSource()));
  tgt.setTarget(convertType(src.getTarget()));
  for (  org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent g : src.getGroup())   for (  org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent t : g.getElement())   tgt.addElement(convertSourceElementComponent(t,g));
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu2016may.model.ConceptMap convertConceptMap(org.hl7.fhir.r4.model.ConceptMap src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  org.hl7.fhir.dstu2016may.model.ConceptMap tgt=new org.hl7.fhir.dstu2016may.model.ConceptMap();
  copyDomainResource(src,tgt);
  if (src.hasUrl())   tgt.setUrl(src.getUrl());
  tgt.setIdentifier(convertIdentifier(src.getIdentifier()));
  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.r4.model.ContactDetail t : src.getContact())   tgt.addContact(convertConceptMapContactComponent(t));
  if (src.hasDate())   tgt.setDate(src.getDate());
  if (src.hasDescription())   tgt.setDescription(src.getDescription());
  for (  org.hl7.fhir.r4.model.UsageContext t : src.getUseContext())   if (t.hasValueCodeableConcept())   tgt.addUseContext(convertCodeableConcept(t.getValueCodeableConcept()));
  for (  org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction())   tgt.addUseContext(convertCodeableConcept(t));
  if (src.hasPurpose())   tgt.setRequirements(src.getPurpose());
  if (src.hasCopyright())   tgt.setCopyright(src.getCopyright());
  if (src.getSource() instanceof CanonicalType)   tgt.setSource(convertCanonicalToReference((CanonicalType)src.getSource()));
 else   tgt.setSource(convertType(src.getSource()));
  if (src.getTarget() instanceof CanonicalType)   tgt.setTarget(convertCanonicalToReference((CanonicalType)src.getTarget()));
 else   tgt.setTarget(convertType(src.getTarget()));
  tgt.setSource(convertType(src.getSource()));
  tgt.setTarget(convertType(src.getTarget()));
  for (  org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent g : src.getGroup())   for (  org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent t : g.getElement())   tgt.addElement(convertSourceElementComponent(t,g));
  return tgt;
}