Program: 23533
Project: 23533
Buggy source:
public org.hl7.fhir.dstu2.model.Type convertType(org.hl7.fhir.dstu3.model.Type src) throws FHIRException {
  if (src == null)   return null;
  if (src instanceof org.hl7.fhir.dstu3.model.Base64BinaryType)   return convertBase64Binary((org.hl7.fhir.dstu3.model.Base64BinaryType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.BooleanType)   return convertBoolean((org.hl7.fhir.dstu3.model.BooleanType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.CodeType)   return convertCode((org.hl7.fhir.dstu3.model.CodeType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.DateType)   return convertDate((org.hl7.fhir.dstu3.model.DateType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.DateTimeType)   return convertDateTime((org.hl7.fhir.dstu3.model.DateTimeType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.DecimalType)   return convertDecimal((org.hl7.fhir.dstu3.model.DecimalType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.IdType)   return convertId((org.hl7.fhir.dstu3.model.IdType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.InstantType)   return convertInstant((org.hl7.fhir.dstu3.model.InstantType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.IntegerType)   return convertInteger((org.hl7.fhir.dstu3.model.IntegerType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.MarkdownType)   return convertMarkdown((org.hl7.fhir.dstu3.model.MarkdownType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.OidType)   return convertOid((org.hl7.fhir.dstu3.model.OidType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.PositiveIntType)   return convertPositiveInt((org.hl7.fhir.dstu3.model.PositiveIntType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.StringType)   return convertString((org.hl7.fhir.dstu3.model.StringType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.TimeType)   return convertTime((org.hl7.fhir.dstu3.model.TimeType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.UnsignedIntType)   return convertUnsignedInt((org.hl7.fhir.dstu3.model.UnsignedIntType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.UriType)   return convertUri((org.hl7.fhir.dstu3.model.UriType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.UuidType)   return convertUuid((org.hl7.fhir.dstu3.model.UuidType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Extension)   return convertExtension((org.hl7.fhir.dstu3.model.Extension)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Narrative)   return convertNarrative((org.hl7.fhir.dstu3.model.Narrative)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Annotation)   return convertAnnotation((org.hl7.fhir.dstu3.model.Annotation)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Attachment)   return convertAttachment((org.hl7.fhir.dstu3.model.Attachment)src);
  if (src instanceof org.hl7.fhir.dstu3.model.CodeableConcept)   return convertCodeableConcept((org.hl7.fhir.dstu3.model.CodeableConcept)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Coding)   return convertCoding((org.hl7.fhir.dstu3.model.Coding)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Identifier)   return convertIdentifier((org.hl7.fhir.dstu3.model.Identifier)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Period)   return convertPeriod((org.hl7.fhir.dstu3.model.Period)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Quantity)   return convertQuantity((org.hl7.fhir.dstu3.model.Quantity)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Range)   return convertRange((org.hl7.fhir.dstu3.model.Range)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Ratio)   return convertRatio((org.hl7.fhir.dstu3.model.Ratio)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Reference)   return convertReference((org.hl7.fhir.dstu3.model.Reference)src);
  if (src instanceof org.hl7.fhir.dstu3.model.SampledData)   return convertSampledData((org.hl7.fhir.dstu3.model.SampledData)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Signature)   return convertSignature((org.hl7.fhir.dstu3.model.Signature)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Address)   return convertAddress((org.hl7.fhir.dstu3.model.Address)src);
  if (src instanceof org.hl7.fhir.dstu3.model.ContactPoint)   return convertContactPoint((org.hl7.fhir.dstu3.model.ContactPoint)src);
  if (src instanceof org.hl7.fhir.dstu3.model.ElementDefinition)   return convertElementDefinition((org.hl7.fhir.dstu3.model.ElementDefinition)src);
  if (src instanceof org.hl7.fhir.dstu3.model.HumanName)   return convertHumanName((org.hl7.fhir.dstu3.model.HumanName)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Meta)   return convertMeta((org.hl7.fhir.dstu3.model.Meta)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Timing)   return convertTiming((org.hl7.fhir.dstu3.model.Timing)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Age)   return convertAge((org.hl7.fhir.dstu3.model.Age)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Count)   return convertCount((org.hl7.fhir.dstu3.model.Count)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Distance)   return convertDistance((org.hl7.fhir.dstu3.model.Distance)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Duration)   return convertDuration((org.hl7.fhir.dstu3.model.Duration)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Money)   return convertMoney((org.hl7.fhir.dstu3.model.Money)src);
  if (src instanceof org.hl7.fhir.dstu3.model.SimpleQuantity)   return convertSimpleQuantity((org.hl7.fhir.dstu3.model.SimpleQuantity)src);
  throw new Error("String_Node_Str" + src.fhirType());
}

Fixed version (ground truth):
public org.hl7.fhir.dstu2.model.Type convertType(org.hl7.fhir.dstu3.model.Type src) throws FHIRException {
  if (src == null || src.isEmpty())   return null;
  if (src instanceof org.hl7.fhir.dstu3.model.Base64BinaryType)   return convertBase64Binary((org.hl7.fhir.dstu3.model.Base64BinaryType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.BooleanType)   return convertBoolean((org.hl7.fhir.dstu3.model.BooleanType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.CodeType)   return convertCode((org.hl7.fhir.dstu3.model.CodeType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.DateType)   return convertDate((org.hl7.fhir.dstu3.model.DateType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.DateTimeType)   return convertDateTime((org.hl7.fhir.dstu3.model.DateTimeType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.DecimalType)   return convertDecimal((org.hl7.fhir.dstu3.model.DecimalType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.IdType)   return convertId((org.hl7.fhir.dstu3.model.IdType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.InstantType)   return convertInstant((org.hl7.fhir.dstu3.model.InstantType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.IntegerType)   return convertInteger((org.hl7.fhir.dstu3.model.IntegerType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.MarkdownType)   return convertMarkdown((org.hl7.fhir.dstu3.model.MarkdownType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.OidType)   return convertOid((org.hl7.fhir.dstu3.model.OidType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.PositiveIntType)   return convertPositiveInt((org.hl7.fhir.dstu3.model.PositiveIntType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.StringType)   return convertString((org.hl7.fhir.dstu3.model.StringType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.TimeType)   return convertTime((org.hl7.fhir.dstu3.model.TimeType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.UnsignedIntType)   return convertUnsignedInt((org.hl7.fhir.dstu3.model.UnsignedIntType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.UriType)   return convertUri((org.hl7.fhir.dstu3.model.UriType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.UuidType)   return convertUuid((org.hl7.fhir.dstu3.model.UuidType)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Extension)   return convertExtension((org.hl7.fhir.dstu3.model.Extension)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Narrative)   return convertNarrative((org.hl7.fhir.dstu3.model.Narrative)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Annotation)   return convertAnnotation((org.hl7.fhir.dstu3.model.Annotation)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Attachment)   return convertAttachment((org.hl7.fhir.dstu3.model.Attachment)src);
  if (src instanceof org.hl7.fhir.dstu3.model.CodeableConcept)   return convertCodeableConcept((org.hl7.fhir.dstu3.model.CodeableConcept)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Coding)   return convertCoding((org.hl7.fhir.dstu3.model.Coding)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Identifier)   return convertIdentifier((org.hl7.fhir.dstu3.model.Identifier)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Period)   return convertPeriod((org.hl7.fhir.dstu3.model.Period)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Quantity)   return convertQuantity((org.hl7.fhir.dstu3.model.Quantity)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Range)   return convertRange((org.hl7.fhir.dstu3.model.Range)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Ratio)   return convertRatio((org.hl7.fhir.dstu3.model.Ratio)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Reference)   return convertReference((org.hl7.fhir.dstu3.model.Reference)src);
  if (src instanceof org.hl7.fhir.dstu3.model.SampledData)   return convertSampledData((org.hl7.fhir.dstu3.model.SampledData)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Signature)   return convertSignature((org.hl7.fhir.dstu3.model.Signature)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Address)   return convertAddress((org.hl7.fhir.dstu3.model.Address)src);
  if (src instanceof org.hl7.fhir.dstu3.model.ContactPoint)   return convertContactPoint((org.hl7.fhir.dstu3.model.ContactPoint)src);
  if (src instanceof org.hl7.fhir.dstu3.model.ElementDefinition)   return convertElementDefinition((org.hl7.fhir.dstu3.model.ElementDefinition)src);
  if (src instanceof org.hl7.fhir.dstu3.model.HumanName)   return convertHumanName((org.hl7.fhir.dstu3.model.HumanName)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Meta)   return convertMeta((org.hl7.fhir.dstu3.model.Meta)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Timing)   return convertTiming((org.hl7.fhir.dstu3.model.Timing)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Age)   return convertAge((org.hl7.fhir.dstu3.model.Age)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Count)   return convertCount((org.hl7.fhir.dstu3.model.Count)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Distance)   return convertDistance((org.hl7.fhir.dstu3.model.Distance)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Duration)   return convertDuration((org.hl7.fhir.dstu3.model.Duration)src);
  if (src instanceof org.hl7.fhir.dstu3.model.Money)   return convertMoney((org.hl7.fhir.dstu3.model.Money)src);
  if (src instanceof org.hl7.fhir.dstu3.model.SimpleQuantity)   return convertSimpleQuantity((org.hl7.fhir.dstu3.model.SimpleQuantity)src);
  throw new Error("String_Node_Str" + src.fhirType());
}