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

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