nus-yam/ex-repair huggingface dataset:
Program: 23049
Project: 23049
Buggy source:
public static org.hl7.fhir.dstu3.model.DataRequirement.DataRequirementCodeFilterComponent convertDataRequirementCodeFilterComponent(org.hl7.fhir.r4.model.DataRequirement.DataRequirementCodeFilterComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu3.model.DataRequirement.DataRequirementCodeFilterComponent tgt=new org.hl7.fhir.dstu3.model.DataRequirement.DataRequirementCodeFilterComponent();
  copyElement(src,tgt);
  if (src.hasPath())   tgt.setPath(src.getPath());
  if (src.hasValueSet())   tgt.setValueSet(convertType(src.getValueSet()));
  for (  org.hl7.fhir.r4.model.Coding t : src.getCode()) {
    tgt.addValueCoding(convertCoding(t));
  }
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu3.model.DataRequirement.DataRequirementCodeFilterComponent convertDataRequirementCodeFilterComponent(org.hl7.fhir.r4.model.DataRequirement.DataRequirementCodeFilterComponent src) throws FHIRException {
  if (src == null)   return null;
  org.hl7.fhir.dstu3.model.DataRequirement.DataRequirementCodeFilterComponent tgt=new org.hl7.fhir.dstu3.model.DataRequirement.DataRequirementCodeFilterComponent();
  copyElement(src,tgt);
  if (src.hasPath())   tgt.setPath(src.getPath());
  if (src.hasValueSet()) {
    if (src.getValueSet() instanceof org.hl7.fhir.r4.model.UriType)     tgt.setValueSet(new org.hl7.fhir.dstu3.model.StringType(src.getValueSetUriType().primitiveValue()));
 else     if (src.getValueSet() instanceof org.hl7.fhir.r4.model.CanonicalType)     tgt.setValueSet(new org.hl7.fhir.dstu3.model.Reference(src.getValueSetCanonicalType().primitiveValue()));
  }
  for (  org.hl7.fhir.r4.model.Coding t : src.getCode()) {
    tgt.addValueCoding(convertCoding(t));
  }
  return tgt;
}
Program: 23050
Project: 23050
Buggy source:
protected void composeParameterDefinitionInner(ParameterDefinition element) throws IOException {
  composeElement(element);
  if (element.hasNameElement()) {
    composeCodeCore("String_Node_Str",element.getNameElement(),false);
    composeCodeExtras("String_Node_Str",element.getNameElement(),false);
  }
  if (element.hasUseElement()) {
    composeEnumerationCore("String_Node_Str",element.getUseElement(),new ParameterDefinition.ParameterUseEnumFactory(),false);
    composeEnumerationExtras("String_Node_Str",element.getUseElement(),new ParameterDefinition.ParameterUseEnumFactory(),false);
  }
  if (element.hasMinElement()) {
    composeIntegerCore("String_Node_Str",element.getMinElement(),false);
    composeIntegerExtras("String_Node_Str",element.getMinElement(),false);
  }
  if (element.hasMaxElement()) {
    composeStringCore("String_Node_Str",element.getMaxElement(),false);
    composeStringExtras("String_Node_Str",element.getMaxElement(),false);
  }
  if (element.hasDocumentationElement()) {
    composeStringCore("String_Node_Str",element.getDocumentationElement(),false);
    composeStringExtras("String_Node_Str",element.getDocumentationElement(),false);
  }
  if (element.hasTypeElement()) {
    composeCodeCore("String_Node_Str",element.getTypeElement(),false);
    composeCodeExtras("String_Node_Str",element.getTypeElement(),false);
  }
  if (element.hasProfile()) {
    composeReference("String_Node_Str",element.getProfile());
  }
}

Fixed version (ground truth):
protected void composeParameterDefinitionInner(ParameterDefinition element) throws IOException {
  composeElement(element);
  if (element.hasNameElement()) {
    composeCodeCore("String_Node_Str",element.getNameElement(),false);
    composeCodeExtras("String_Node_Str",element.getNameElement(),false);
  }
  if (element.hasUseElement()) {
    composeEnumerationCore("String_Node_Str",element.getUseElement(),new ParameterDefinition.ParameterUseEnumFactory(),false);
    composeEnumerationExtras("String_Node_Str",element.getUseElement(),new ParameterDefinition.ParameterUseEnumFactory(),false);
  }
  if (element.hasMinElement()) {
    composeIntegerCore("String_Node_Str",element.getMinElement(),false);
    composeIntegerExtras("String_Node_Str",element.getMinElement(),false);
  }
  if (element.hasMaxElement()) {
    composeStringCore("String_Node_Str",element.getMaxElement(),false);
    composeStringExtras("String_Node_Str",element.getMaxElement(),false);
  }
  if (element.hasDocumentationElement()) {
    composeStringCore("String_Node_Str",element.getDocumentationElement(),false);
    composeStringExtras("String_Node_Str",element.getDocumentationElement(),false);
  }
  if (element.hasTypeElement()) {
    composeCodeCore("String_Node_Str",element.getTypeElement(),false);
    composeCodeExtras("String_Node_Str",element.getTypeElement(),false);
  }
  if (element.hasProfileElement()) {
    composeCanonicalCore("String_Node_Str",element.getProfileElement(),false);
    composeCanonicalExtras("String_Node_Str",element.getProfileElement(),false);
  }
}
Program: 23051
Project: 23051
Buggy source:
protected void parseExpansionProfileExpansionProfileFixedVersionComponentProperties(JsonObject json,ExpansionProfile owner,ExpansionProfile.ExpansionProfileFixedVersionComponent res) throws IOException, FHIRFormatError {
  parseBackboneElementProperties(json,res);
  if (json.has("String_Node_Str"))   res.setSystemElement(parseCanonical(json.get("String_Node_Str").getAsString()));
  if (json.has("String_Node_Str"))   parseElementProperties(json.getAsJsonObject("String_Node_Str"),res.getSystemElement());
  if (json.has("String_Node_Str"))   res.setVersionElement(parseString(json.get("String_Node_Str").getAsString()));
  if (json.has("String_Node_Str"))   parseElementProperties(json.getAsJsonObject("String_Node_Str"),res.getVersionElement());
  if (json.has("String_Node_Str"))   res.setModeElement(parseEnumeration(json.get("String_Node_Str").getAsString(),ExpansionProfile.SystemVersionProcessingMode.NULL,new ExpansionProfile.SystemVersionProcessingModeEnumFactory()));
  if (json.has("String_Node_Str"))   parseElementProperties(json.getAsJsonObject("String_Node_Str"),res.getModeElement());
}

Fixed version (ground truth):
protected void parseExpansionProfileExpansionProfileFixedVersionComponentProperties(JsonObject json,ExpansionProfile owner,ExpansionProfile.ExpansionProfileFixedVersionComponent res) throws IOException, FHIRFormatError {
  parseBackboneElementProperties(json,res);
  if (json.has("String_Node_Str"))   res.setSystemElement(parseUri(json.get("String_Node_Str").getAsString()));
  if (json.has("String_Node_Str"))   parseElementProperties(json.getAsJsonObject("String_Node_Str"),res.getSystemElement());
  if (json.has("String_Node_Str"))   res.setVersionElement(parseString(json.get("String_Node_Str").getAsString()));
  if (json.has("String_Node_Str"))   parseElementProperties(json.getAsJsonObject("String_Node_Str"),res.getVersionElement());
  if (json.has("String_Node_Str"))   res.setModeElement(parseEnumeration(json.get("String_Node_Str").getAsString(),ExpansionProfile.SystemVersionProcessingMode.NULL,new ExpansionProfile.SystemVersionProcessingModeEnumFactory()));
  if (json.has("String_Node_Str"))   parseElementProperties(json.getAsJsonObject("String_Node_Str"),res.getModeElement());
}
Program: 23055
Project: 23055
Buggy source:
protected void composeExpansionProfileExpansionProfileFixedVersionComponentInner(ExpansionProfile.ExpansionProfileFixedVersionComponent element) throws IOException {
  composeBackbone(element);
  if (element.hasSystemElement()) {
    composeCanonicalCore("String_Node_Str",element.getSystemElement(),false);
    composeCanonicalExtras("String_Node_Str",element.getSystemElement(),false);
  }
  if (element.hasVersionElement()) {
    composeStringCore("String_Node_Str",element.getVersionElement(),false);
    composeStringExtras("String_Node_Str",element.getVersionElement(),false);
  }
  if (element.hasModeElement()) {
    composeEnumerationCore("String_Node_Str",element.getModeElement(),new ExpansionProfile.SystemVersionProcessingModeEnumFactory(),false);
    composeEnumerationExtras("String_Node_Str",element.getModeElement(),new ExpansionProfile.SystemVersionProcessingModeEnumFactory(),false);
  }
}

Fixed version (ground truth):
protected void composeExpansionProfileExpansionProfileFixedVersionComponentInner(ExpansionProfile.ExpansionProfileFixedVersionComponent element) throws IOException {
  composeBackbone(element);
  if (element.hasSystemElement()) {
    composeUriCore("String_Node_Str",element.getSystemElement(),false);
    composeUriExtras("String_Node_Str",element.getSystemElement(),false);
  }
  if (element.hasVersionElement()) {
    composeStringCore("String_Node_Str",element.getVersionElement(),false);
    composeStringExtras("String_Node_Str",element.getVersionElement(),false);
  }
  if (element.hasModeElement()) {
    composeEnumerationCore("String_Node_Str",element.getModeElement(),new ExpansionProfile.SystemVersionProcessingModeEnumFactory(),false);
    composeEnumerationExtras("String_Node_Str",element.getModeElement(),new ExpansionProfile.SystemVersionProcessingModeEnumFactory(),false);
  }
}
Program: 23066
Project: 23066
Buggy source:
protected void composeExpansionProfileExpansionProfileFixedVersionComponent(Complex parent,String parentType,String name,ExpansionProfile.ExpansionProfileFixedVersionComponent element,int index){
  if (element == null)   return;
  Complex t;
  if (Utilities.noString(parentType))   t=parent;
 else {
    t=parent.predicate("String_Node_Str" + parentType + '.'+ name);
  }
  composeBackboneElement(t,"String_Node_Str",name,element,index);
  if (element.hasSystemElement())   composeCanonical(t,"String_Node_Str","String_Node_Str",element.getSystemElement(),-1);
  if (element.hasVersionElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getVersionElement(),-1);
  if (element.hasModeElement())   composeEnum(t,"String_Node_Str","String_Node_Str",element.getModeElement(),-1);
}

Fixed version (ground truth):
protected void composeExpansionProfileExpansionProfileFixedVersionComponent(Complex parent,String parentType,String name,ExpansionProfile.ExpansionProfileFixedVersionComponent element,int index){
  if (element == null)   return;
  Complex t;
  if (Utilities.noString(parentType))   t=parent;
 else {
    t=parent.predicate("String_Node_Str" + parentType + '.'+ name);
  }
  composeBackboneElement(t,"String_Node_Str",name,element,index);
  if (element.hasSystemElement())   composeUri(t,"String_Node_Str","String_Node_Str",element.getSystemElement(),-1);
  if (element.hasVersionElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getVersionElement(),-1);
  if (element.hasModeElement())   composeEnum(t,"String_Node_Str","String_Node_Str",element.getModeElement(),-1);
}
Program: 23067
Project: 23067
Buggy source:
protected void composeDataRequirement(Complex parent,String parentType,String name,DataRequirement element,int index){
  if (element == null)   return;
  Complex t;
  if (Utilities.noString(parentType))   t=parent;
 else {
    t=parent.predicate("String_Node_Str" + parentType + '.'+ name);
  }
  composeElement(t,"String_Node_Str",name,element,index);
  if (element.hasTypeElement())   composeCode(t,"String_Node_Str","String_Node_Str",element.getTypeElement(),-1);
  for (int i=0; i < element.getProfile().size(); i++)   composeCanonical(t,"String_Node_Str","String_Node_Str",element.getProfile().get(i),i);
  for (int i=0; i < element.getMustSupport().size(); i++)   composeString(t,"String_Node_Str","String_Node_Str",element.getMustSupport().get(i),i);
  for (int i=0; i < element.getCodeFilter().size(); i++)   composeDataRequirementDataRequirementCodeFilterComponent(t,"String_Node_Str","String_Node_Str",element.getCodeFilter().get(i),i);
  for (int i=0; i < element.getDateFilter().size(); i++)   composeDataRequirementDataRequirementDateFilterComponent(t,"String_Node_Str","String_Node_Str",element.getDateFilter().get(i),i);
}

Fixed version (ground truth):
protected void composeDataRequirement(Complex parent,String parentType,String name,DataRequirement element,int index){
  if (element == null)   return;
  Complex t;
  if (Utilities.noString(parentType))   t=parent;
 else {
    t=parent.predicate("String_Node_Str" + parentType + '.'+ name);
  }
  composeElement(t,"String_Node_Str",name,element,index);
  if (element.hasTypeElement())   composeCode(t,"String_Node_Str","String_Node_Str",element.getTypeElement(),-1);
  for (int i=0; i < element.getProfile().size(); i++)   composeCanonical(t,"String_Node_Str","String_Node_Str",element.getProfile().get(i),i);
  if (element.hasSubject())   composeType(t,"String_Node_Str","String_Node_Str",element.getSubject(),-1);
  for (int i=0; i < element.getMustSupport().size(); i++)   composeString(t,"String_Node_Str","String_Node_Str",element.getMustSupport().get(i),i);
  for (int i=0; i < element.getCodeFilter().size(); i++)   composeDataRequirementDataRequirementCodeFilterComponent(t,"String_Node_Str","String_Node_Str",element.getCodeFilter().get(i),i);
  for (int i=0; i < element.getDateFilter().size(); i++)   composeDataRequirementDataRequirementDateFilterComponent(t,"String_Node_Str","String_Node_Str",element.getDateFilter().get(i),i);
  if (element.hasLimitElement())   composePositiveInt(t,"String_Node_Str","String_Node_Str",element.getLimitElement(),-1);
  for (int i=0; i < element.getSort().size(); i++)   composeDataRequirementDataRequirementSortComponent(t,"String_Node_Str","String_Node_Str",element.getSort().get(i),i);
}
Program: 23070
Project: 23070
Buggy source:
protected void composeParameterDefinition(Complex parent,String parentType,String name,ParameterDefinition element,int index){
  if (element == null)   return;
  Complex t;
  if (Utilities.noString(parentType))   t=parent;
 else {
    t=parent.predicate("String_Node_Str" + parentType + '.'+ name);
  }
  composeElement(t,"String_Node_Str",name,element,index);
  if (element.hasNameElement())   composeCode(t,"String_Node_Str","String_Node_Str",element.getNameElement(),-1);
  if (element.hasUseElement())   composeEnum(t,"String_Node_Str","String_Node_Str",element.getUseElement(),-1);
  if (element.hasMinElement())   composeInteger(t,"String_Node_Str","String_Node_Str",element.getMinElement(),-1);
  if (element.hasMaxElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getMaxElement(),-1);
  if (element.hasDocumentationElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getDocumentationElement(),-1);
  if (element.hasTypeElement())   composeCode(t,"String_Node_Str","String_Node_Str",element.getTypeElement(),-1);
  if (element.hasProfile())   composeReference(t,"String_Node_Str","String_Node_Str",element.getProfile(),-1);
}

Fixed version (ground truth):
protected void composeParameterDefinition(Complex parent,String parentType,String name,ParameterDefinition element,int index){
  if (element == null)   return;
  Complex t;
  if (Utilities.noString(parentType))   t=parent;
 else {
    t=parent.predicate("String_Node_Str" + parentType + '.'+ name);
  }
  composeElement(t,"String_Node_Str",name,element,index);
  if (element.hasNameElement())   composeCode(t,"String_Node_Str","String_Node_Str",element.getNameElement(),-1);
  if (element.hasUseElement())   composeEnum(t,"String_Node_Str","String_Node_Str",element.getUseElement(),-1);
  if (element.hasMinElement())   composeInteger(t,"String_Node_Str","String_Node_Str",element.getMinElement(),-1);
  if (element.hasMaxElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getMaxElement(),-1);
  if (element.hasDocumentationElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getDocumentationElement(),-1);
  if (element.hasTypeElement())   composeCode(t,"String_Node_Str","String_Node_Str",element.getTypeElement(),-1);
  if (element.hasProfileElement())   composeCanonical(t,"String_Node_Str","String_Node_Str",element.getProfileElement(),-1);
}
Program: 23073
Project: 23073
Buggy source:
protected void composeDataRequirementElements(DataRequirement element) throws IOException {
  composeElementElements(element);
  if (element.hasTypeElement()) {
    composeCode("String_Node_Str",element.getTypeElement());
  }
  if (element.hasProfile()) {
    for (    CanonicalType e : element.getProfile())     composeCanonical("String_Node_Str",e);
  }
  if (element.hasMustSupport()) {
    for (    StringType e : element.getMustSupport())     composeString("String_Node_Str",e);
  }
  if (element.hasCodeFilter()) {
    for (    DataRequirement.DataRequirementCodeFilterComponent e : element.getCodeFilter())     composeDataRequirementDataRequirementCodeFilterComponent("String_Node_Str",e);
  }
  if (element.hasDateFilter()) {
    for (    DataRequirement.DataRequirementDateFilterComponent e : element.getDateFilter())     composeDataRequirementDataRequirementDateFilterComponent("String_Node_Str",e);
  }
}

Fixed version (ground truth):
protected void composeDataRequirementElements(DataRequirement element) throws IOException {
  composeElementElements(element);
  if (element.hasTypeElement()) {
    composeCode("String_Node_Str",element.getTypeElement());
  }
  if (element.hasProfile()) {
    for (    CanonicalType e : element.getProfile())     composeCanonical("String_Node_Str",e);
  }
  if (element.hasSubject()) {
    composeType("String_Node_Str",element.getSubject());
  }
  if (element.hasMustSupport()) {
    for (    StringType e : element.getMustSupport())     composeString("String_Node_Str",e);
  }
  if (element.hasCodeFilter()) {
    for (    DataRequirement.DataRequirementCodeFilterComponent e : element.getCodeFilter())     composeDataRequirementDataRequirementCodeFilterComponent("String_Node_Str",e);
  }
  if (element.hasDateFilter()) {
    for (    DataRequirement.DataRequirementDateFilterComponent e : element.getDateFilter())     composeDataRequirementDataRequirementDateFilterComponent("String_Node_Str",e);
  }
  if (element.hasLimitElement()) {
    composePositiveInt("String_Node_Str",element.getLimitElement());
  }
  if (element.hasSort()) {
    for (    DataRequirement.DataRequirementSortComponent e : element.getSort())     composeDataRequirementDataRequirementSortComponent("String_Node_Str",e);
  }
}
Program: 23079
Project: 23079
Buggy source:
protected void composeParameterDefinitionElements(ParameterDefinition element) throws IOException {
  composeElementElements(element);
  if (element.hasNameElement()) {
    composeCode("String_Node_Str",element.getNameElement());
  }
  if (element.hasUseElement())   composeEnumeration("String_Node_Str",element.getUseElement(),new ParameterDefinition.ParameterUseEnumFactory());
  if (element.hasMinElement()) {
    composeInteger("String_Node_Str",element.getMinElement());
  }
  if (element.hasMaxElement()) {
    composeString("String_Node_Str",element.getMaxElement());
  }
  if (element.hasDocumentationElement()) {
    composeString("String_Node_Str",element.getDocumentationElement());
  }
  if (element.hasTypeElement()) {
    composeCode("String_Node_Str",element.getTypeElement());
  }
  if (element.hasProfile()) {
    composeReference("String_Node_Str",element.getProfile());
  }
}

Fixed version (ground truth):
protected void composeParameterDefinitionElements(ParameterDefinition element) throws IOException {
  composeElementElements(element);
  if (element.hasNameElement()) {
    composeCode("String_Node_Str",element.getNameElement());
  }
  if (element.hasUseElement())   composeEnumeration("String_Node_Str",element.getUseElement(),new ParameterDefinition.ParameterUseEnumFactory());
  if (element.hasMinElement()) {
    composeInteger("String_Node_Str",element.getMinElement());
  }
  if (element.hasMaxElement()) {
    composeString("String_Node_Str",element.getMaxElement());
  }
  if (element.hasDocumentationElement()) {
    composeString("String_Node_Str",element.getDocumentationElement());
  }
  if (element.hasTypeElement()) {
    composeCode("String_Node_Str",element.getTypeElement());
  }
  if (element.hasProfileElement()) {
    composeCanonical("String_Node_Str",element.getProfileElement());
  }
}
Program: 23081
Project: 23081
Buggy source:
protected boolean parseParameterDefinitionContent(int eventType,XmlPullParser xpp,ParameterDefinition res) throws XmlPullParserException, IOException, FHIRFormatError {
  if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setNameElement(parseCode(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setUseElement(parseEnumeration(xpp,ParameterDefinition.ParameterUse.NULL,new ParameterDefinition.ParameterUseEnumFactory()));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setMinElement(parseInteger(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setMaxElement(parseString(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setDocumentationElement(parseString(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setTypeElement(parseCode(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setProfile(parseReference(xpp));
  }
 else   if (!parseElementContent(eventType,xpp,res))   return false;
  return true;
}

Fixed version (ground truth):
protected boolean parseParameterDefinitionContent(int eventType,XmlPullParser xpp,ParameterDefinition res) throws XmlPullParserException, IOException, FHIRFormatError {
  if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setNameElement(parseCode(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setUseElement(parseEnumeration(xpp,ParameterDefinition.ParameterUse.NULL,new ParameterDefinition.ParameterUseEnumFactory()));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setMinElement(parseInteger(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setMaxElement(parseString(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setDocumentationElement(parseString(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setTypeElement(parseCode(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setProfileElement(parseCanonical(xpp));
  }
 else   if (!parseElementContent(eventType,xpp,res))   return false;
  return true;
}
Program: 23082
Project: 23082
Buggy source:
protected CanonicalType parseCanonical(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
  CanonicalType res=new CanonicalType(xpp.getAttributeValue(null,"String_Node_Str"));
  parseElementAttributes(xpp,res);
  next(xpp);
  int eventType=nextNoWhitespace(xpp);
  while (eventType != XmlPullParser.END_TAG) {
    if (!parseElementContent(eventType,xpp,res))     if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
      res.setValue(parseString(xpp).primitiveValue());
    }
 else     unknownContent(xpp);
    eventType=nextNoWhitespace(xpp);
  }
  next(xpp);
  parseElementClose(res);
  return res;
}

Fixed version (ground truth):
protected CanonicalType parseCanonical(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError {
  CanonicalType res=new CanonicalType(xpp.getAttributeValue(null,"String_Node_Str"));
  parseElementAttributes(xpp,res);
  next(xpp);
  int eventType=nextNoWhitespace(xpp);
  while (eventType != XmlPullParser.END_TAG) {
    if (!parseElementContent(eventType,xpp,res))     unknownContent(xpp);
    eventType=nextNoWhitespace(xpp);
  }
  next(xpp);
  parseElementClose(res);
  return res;
}
Program: 23084
Project: 23084
Buggy source:
protected void composeExpansionProfileExpansionProfileFixedVersionComponentElements(ExpansionProfile.ExpansionProfileFixedVersionComponent element) throws IOException {
  composeBackboneElementElements(element);
  if (element.hasSystemElement()) {
    composeCanonical("String_Node_Str",element.getSystemElement());
  }
  if (element.hasVersionElement()) {
    composeString("String_Node_Str",element.getVersionElement());
  }
  if (element.hasModeElement())   composeEnumeration("String_Node_Str",element.getModeElement(),new ExpansionProfile.SystemVersionProcessingModeEnumFactory());
}

Fixed version (ground truth):
protected void composeExpansionProfileExpansionProfileFixedVersionComponentElements(ExpansionProfile.ExpansionProfileFixedVersionComponent element) throws IOException {
  composeBackboneElementElements(element);
  if (element.hasSystemElement()) {
    composeUri("String_Node_Str",element.getSystemElement());
  }
  if (element.hasVersionElement()) {
    composeString("String_Node_Str",element.getVersionElement());
  }
  if (element.hasModeElement())   composeEnumeration("String_Node_Str",element.getModeElement(),new ExpansionProfile.SystemVersionProcessingModeEnumFactory());
}
Program: 23086
Project: 23086
Buggy source:
protected boolean parseExpansionProfileExpansionProfileFixedVersionComponentContent(int eventType,XmlPullParser xpp,ExpansionProfile owner,ExpansionProfile.ExpansionProfileFixedVersionComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
  if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setSystemElement(parseCanonical(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setVersionElement(parseString(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setModeElement(parseEnumeration(xpp,ExpansionProfile.SystemVersionProcessingMode.NULL,new ExpansionProfile.SystemVersionProcessingModeEnumFactory()));
  }
 else   if (!parseBackboneElementContent(eventType,xpp,res))   return false;
  return true;
}

Fixed version (ground truth):
protected boolean parseExpansionProfileExpansionProfileFixedVersionComponentContent(int eventType,XmlPullParser xpp,ExpansionProfile owner,ExpansionProfile.ExpansionProfileFixedVersionComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
  if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setSystemElement(parseUri(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setVersionElement(parseString(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setModeElement(parseEnumeration(xpp,ExpansionProfile.SystemVersionProcessingMode.NULL,new ExpansionProfile.SystemVersionProcessingModeEnumFactory()));
  }
 else   if (!parseBackboneElementContent(eventType,xpp,res))   return false;
  return true;
}
Program: 23088
Project: 23088
Buggy source:
protected boolean parseDataRequirementContent(int eventType,XmlPullParser xpp,DataRequirement res) throws XmlPullParserException, IOException, FHIRFormatError {
  if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setTypeElement(parseCode(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.getProfile().add(parseCanonical(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.getMustSupport().add(parseString(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.getCodeFilter().add(parseDataRequirementDataRequirementCodeFilterComponent(xpp,res));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.getDateFilter().add(parseDataRequirementDataRequirementDateFilterComponent(xpp,res));
  }
 else   if (!parseElementContent(eventType,xpp,res))   return false;
  return true;
}

Fixed version (ground truth):
protected boolean parseDataRequirementContent(int eventType,XmlPullParser xpp,DataRequirement res) throws XmlPullParserException, IOException, FHIRFormatError {
  if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setTypeElement(parseCode(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.getProfile().add(parseCanonical(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp,"String_Node_Str")) {
    res.setSubject(parseType("String_Node_Str",xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.getMustSupport().add(parseString(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.getCodeFilter().add(parseDataRequirementDataRequirementCodeFilterComponent(xpp,res));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.getDateFilter().add(parseDataRequirementDataRequirementDateFilterComponent(xpp,res));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.setLimitElement(parsePositiveInt(xpp));
  }
 else   if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("String_Node_Str")) {
    res.getSort().add(parseDataRequirementDataRequirementSortComponent(xpp,res));
  }
 else   if (!parseElementContent(eventType,xpp,res))   return false;
  return true;
}
Program: 23090
Project: 23090
Buggy source:
/** 
 * @return {@link #dynamicValue} (Dynamic values that will be evaluated to produce values for elements of the resulting resource. For example, if the dosage of a medication must be computed based on the patient's weight, a dynamic value would be used to specify an expression that calculated the weight, and the path on the intent resource that would contain the result.)
 */
public List<ActivityDefinitionDynamicValueComponent> getDynamicValue(){
  if (this.dynamicValue == null)   this.dynamicValue=new ArrayList<ActivityDefinitionDynamicValueComponent>();
  return this.dynamicValue;
}

Fixed version (ground truth):
/** 
 * @return {@link #dynamicValue} (Dynamic values that will be evaluated to produce values for elements of the resulting resource. For example, if the dosage of a medication must be computed based on the patient's weight, a dynamic value would be used to specify an expression that calculated the weight, and the path on the request resource that would contain the result.)
 */
public List<ActivityDefinitionDynamicValueComponent> getDynamicValue(){
  if (this.dynamicValue == null)   this.dynamicValue=new ArrayList<ActivityDefinitionDynamicValueComponent>();
  return this.dynamicValue;
}
Program: 23091
Project: 23091
Buggy source:
/** 
 * @return {@link #profile} (A constraint on a resource used in the document.). This is the underlying object with id, value and extensions. The accessor "getProfile" gives direct access to the value
 */
public CanonicalType getProfileElement(){
  if (this.profile == null)   if (Configuration.errorOnAutoCreate())   throw new Error("String_Node_Str");
 else   if (Configuration.doAutoCreate())   this.profile=new CanonicalType();
  return this.profile;
}

Fixed version (ground truth):
/** 
 * @return {@link #profile} (A profile on the document bundle that constrains which resources are present, and their contents.). This is the underlying object with id, value and extensions. The accessor "getProfile" gives direct access to the value
 */
public CanonicalType getProfileElement(){
  if (this.profile == null)   if (Configuration.errorOnAutoCreate())   throw new Error("String_Node_Str");
 else   if (Configuration.doAutoCreate())   this.profile=new CanonicalType();
  return this.profile;
}
Program: 23092
Project: 23092
Buggy source:
/** 
 * @param value {@link #profile} (A constraint on a resource used in the document.). This is the underlying object with id, value and extensions. The accessor "getProfile" gives direct access to the value
 */
public CapabilityStatementDocumentComponent setProfileElement(CanonicalType value){
  this.profile=value;
  return this;
}

Fixed version (ground truth):
/** 
 * @param value {@link #profile} (A profile on the document bundle that constrains which resources are present, and their contents.). This is the underlying object with id, value and extensions. The accessor "getProfile" gives direct access to the value
 */
public CapabilityStatementDocumentComponent setProfileElement(CanonicalType value){
  this.profile=value;
  return this;
}
Program: 23093
Project: 23093
Buggy source:
/** 
 * @return A constraint on a resource used in the document.
 */
public String getProfile(){
  return this.profile == null ? null : this.profile.getValue();
}

Fixed version (ground truth):
/** 
 * @return A profile on the document bundle that constrains which resources are present, and their contents.
 */
public String getProfile(){
  return this.profile == null ? null : this.profile.getValue();
}
Program: 23094
Project: 23094
Buggy source:
/** 
 * @param value A constraint on a resource used in the document.
 */
public CapabilityStatementDocumentComponent setProfile(String value){
  if (this.profile == null)   this.profile=new CanonicalType();
  this.profile.setValue(value);
  return this;
}

Fixed version (ground truth):
/** 
 * @param value A profile on the document bundle that constrains which resources are present, and their contents.
 */
public CapabilityStatementDocumentComponent setProfile(String value){
  if (this.profile == null)   this.profile=new CanonicalType();
  this.profile.setValue(value);
  return this;
}
Program: 23095
Project: 23095
Buggy source:
private void parseChildComplex(String path,JsonObject object,Element context,Set<String> processed,Property property,String name) throws FHIRException {
  processed.add(name);
  String npath=path + "String_Node_Str" + property.getName();
  JsonElement e=object.get(name);
  if (property.isList() && (e instanceof JsonArray)) {
    JsonArray arr=(JsonArray)e;
    for (    JsonElement am : arr) {
      parseChildComplexInstance(npath,object,context,property,name,am);
    }
  }
 else {
    parseChildComplexInstance(npath,object,context,property,name,e);
  }
}

Fixed version (ground truth):
private void parseChildComplex(String path,JsonObject object,Element context,Set<String> processed,Property property,String name) throws FHIRException {
  processed.add(name);
  String npath=path + "String_Node_Str" + property.getName();
  JsonElement e=object.get(name);
  if (property.isList() && (e instanceof JsonArray)) {
    JsonArray arr=(JsonArray)e;
    for (    JsonElement am : arr) {
      parseChildComplexInstance(npath,object,context,property,name,am);
    }
  }
 else {
    if (property.isList()) {
      logError(line(e),col(e),npath,IssueType.INVALID,"String_Node_Str" + describeType(e),IssueSeverity.ERROR);
    }
    parseChildComplexInstance(npath,object,context,property,name,e);
  }
}
Program: 23101
Project: 23101
Buggy source:
public static void convertTypeRefComponent(org.hl7.fhir.r4.model.ElementDefinition.TypeRefComponent src,List<org.hl7.fhir.dstu2016may.model.ElementDefinition.TypeRefComponent> list) throws FHIRException {
  if (src == null)   return;
  org.hl7.fhir.dstu2016may.model.ElementDefinition.TypeRefComponent tgt=new org.hl7.fhir.dstu2016may.model.ElementDefinition.TypeRefComponent();
  copyElement(src,tgt);
  tgt.setCode(src.getCode());
  list.add(tgt);
  if (src.getCode().equals("String_Node_Str")) {
    for (    org.hl7.fhir.r4.model.UriType u : src.getTargetProfile()) {
      tgt.addProfile(u.getValue());
    }
  }
 else {
    for (    org.hl7.fhir.r4.model.UriType u : src.getProfile()) {
      tgt.addProfile(u.getValue());
    }
  }
}

Fixed version (ground truth):
public static void convertTypeRefComponent(org.hl7.fhir.r4.model.ElementDefinition.TypeRefComponent src,List<org.hl7.fhir.dstu2016may.model.ElementDefinition.TypeRefComponent> list) throws FHIRException {
  if (src == null)   return;
  org.hl7.fhir.dstu2016may.model.ElementDefinition.TypeRefComponent tgt=new org.hl7.fhir.dstu2016may.model.ElementDefinition.TypeRefComponent();
  copyElement(src,tgt);
  tgt.setCode(src.getCode());
  list.add(tgt);
  if (src.hasCode() && src.getCode().equals("String_Node_Str")) {
    for (    org.hl7.fhir.r4.model.UriType u : src.getTargetProfile()) {
      tgt.addProfile(u.getValue());
    }
  }
 else {
    for (    org.hl7.fhir.r4.model.UriType u : src.getProfile()) {
      tgt.addProfile(u.getValue());
    }
  }
}
Program: 23102
Project: 23102
Buggy source:
public static void convertTypeRefComponent(org.hl7.fhir.r4.model.ElementDefinition.TypeRefComponent src,List<org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent> list) throws FHIRException {
  if (src == null)   return;
  org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent tgt=new org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent();
  copyElement(src,tgt);
  tgt.setCode(src.getCode());
  if (src.getCode().equals("String_Node_Str")) {
    if (src.hasProfile())     tgt.setProfile(src.getProfile().get(0).getValue());
    for (    org.hl7.fhir.r4.model.UriType u : src.getTargetProfile()) {
      list.add(tgt);
      tgt=new org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent();
      copyElement(src,tgt);
      tgt.setCode(src.getCode());
      if (src.hasProfile())       tgt.setProfile(src.getProfile().get(0).getValue());
    }
  }
 else {
    list.add(tgt);
    for (    org.hl7.fhir.r4.model.UriType u : src.getProfile()) {
      list.add(tgt);
      tgt.setProfile(u.getValue());
      tgt=new org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent();
      copyElement(src,tgt);
      tgt.setCode(src.getCode());
    }
  }
}

Fixed version (ground truth):
public static void convertTypeRefComponent(org.hl7.fhir.r4.model.ElementDefinition.TypeRefComponent src,List<org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent> list) throws FHIRException {
  if (src == null)   return;
  org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent tgt=new org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent();
  copyElement(src,tgt);
  tgt.setCode(src.getCode());
  if ("String_Node_Str".equals(src.getCode())) {
    if (src.hasProfile())     tgt.setProfile(src.getProfile().get(0).getValue());
    for (    org.hl7.fhir.r4.model.UriType u : src.getTargetProfile()) {
      list.add(tgt);
      tgt=new org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent();
      copyElement(src,tgt);
      tgt.setCode(src.getCode());
      if (src.hasProfile())       tgt.setProfile(src.getProfile().get(0).getValue());
    }
  }
 else {
    list.add(tgt);
    for (    org.hl7.fhir.r4.model.UriType u : src.getProfile()) {
      list.add(tgt);
      tgt.setProfile(u.getValue());
      tgt=new org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent();
      copyElement(src,tgt);
      tgt.setCode(src.getCode());
    }
  }
}
Program: 23103
Project: 23103
Buggy source:
public void generateSchematrons(OutputStream dest,StructureDefinition structure) throws IOException, DefinitionException {
  if (structure.getDerivation() != TypeDerivationRule.CONSTRAINT)   throw new DefinitionException("String_Node_Str");
  if (!structure.hasSnapshot())   throw new DefinitionException("String_Node_Str");
  StructureDefinition base=context.fetchResource(StructureDefinition.class,structure.getBaseDefinition());
  SchematronWriter sch=new SchematronWriter(dest,SchematronType.PROFILE,base.getName());
  ElementDefinition ed=structure.getSnapshot().getElement().get(0);
  generateForChildren(sch,"String_Node_Str" + ed.getPath(),ed,structure,base);
  sch.dump();
}

Fixed version (ground truth):
public void generateSchematrons(OutputStream dest,StructureDefinition structure) throws IOException, DefinitionException {
  if (structure.getDerivation() != TypeDerivationRule.CONSTRAINT)   throw new DefinitionException("String_Node_Str");
  if (!structure.hasSnapshot())   throw new DefinitionException("String_Node_Str");
  StructureDefinition base=context.fetchResource(StructureDefinition.class,structure.getBaseDefinition());
  if (base != null) {
    SchematronWriter sch=new SchematronWriter(dest,SchematronType.PROFILE,base.getName());
    ElementDefinition ed=structure.getSnapshot().getElement().get(0);
    generateForChildren(sch,"String_Node_Str" + ed.getPath(),ed,structure,base);
    sch.dump();
  }
}
Program: 23104
Project: 23104
Buggy source:
private void genEntryItem(StringBuilder list,StringBuilder lists,StringBuilder table,FetchedFile f,FetchedResource r,String name,String prefixType) throws Exception {
  String ref=igpkp.doReplacements(igpkp.getLinkFor(r),r,null,null);
  if (prefixType != null)   ref=ref.substring(0,ref.lastIndexOf("String_Node_Str")) + "String_Node_Str" + prefixType+ ref.substring(ref.lastIndexOf("String_Node_Str"));
  PrimitiveType desc=new StringType(r.getTitle());
  if (r.getResource() != null && r.getResource() instanceof MetadataResource) {
    name=((MetadataResource)r.getResource()).getName();
    desc=getDesc((MetadataResource)r.getResource(),desc);
  }
  list.append("String_Node_Str" + ref + "String_Node_Str"+ Utilities.escapeXml(name)+ "String_Node_Str"+ Utilities.escapeXml(desc.asStringValue())+ "String_Node_Str");
  lists.append("String_Node_Str" + ref + "String_Node_Str"+ Utilities.escapeXml(name)+ "String_Node_Str");
  table.append("String_Node_Str" + ref + "String_Node_Str"+ Utilities.escapeXml(name)+ "String_Node_Str"+ new BaseRenderer(context,null,igpkp,specMaps,markdownEngine).processMarkdown("String_Node_Str",desc)+ "String_Node_Str");
}

Fixed version (ground truth):
private void genEntryItem(StringBuilder list,StringBuilder lists,StringBuilder table,FetchedFile f,FetchedResource r,String name,String prefixType) throws Exception {
  String ref=igpkp.doReplacements(igpkp.getLinkFor(r),r,null,null);
  if (Utilities.noString(ref))   throw new Exception("String_Node_Str" + r.getId());
  if (prefixType != null)   if (ref.contains("String_Node_Str"))   ref=ref.substring(0,ref.lastIndexOf("String_Node_Str")) + "String_Node_Str" + prefixType+ ref.substring(ref.lastIndexOf("String_Node_Str"));
 else   ref=ref + "String_Node_Str" + prefixType;
  PrimitiveType desc=new StringType(r.getTitle());
  if (r.getResource() != null && r.getResource() instanceof MetadataResource) {
    name=((MetadataResource)r.getResource()).getName();
    desc=getDesc((MetadataResource)r.getResource(),desc);
  }
  list.append("String_Node_Str" + ref + "String_Node_Str"+ Utilities.escapeXml(name)+ "String_Node_Str"+ Utilities.escapeXml(desc.asStringValue())+ "String_Node_Str");
  lists.append("String_Node_Str" + ref + "String_Node_Str"+ Utilities.escapeXml(name)+ "String_Node_Str");
  table.append("String_Node_Str" + ref + "String_Node_Str"+ Utilities.escapeXml(name)+ "String_Node_Str"+ new BaseRenderer(context,null,igpkp,specMaps,markdownEngine).processMarkdown("String_Node_Str",desc)+ "String_Node_Str");
}
Program: 23105
Project: 23105
Buggy source:
public org.hl7.fhir.dstu2.model.InstantType convertInstant(org.hl7.fhir.dstu3.model.InstantType src) throws FHIRException {
  org.hl7.fhir.dstu2.model.InstantType tgt=new org.hl7.fhir.dstu2.model.InstantType(src.getValue());
  copyElement(src,tgt);
  return tgt;
}

Fixed version (ground truth):
public org.hl7.fhir.dstu2.model.InstantType convertInstant(org.hl7.fhir.dstu3.model.InstantType src) throws FHIRException {
  org.hl7.fhir.dstu2.model.InstantType tgt=new org.hl7.fhir.dstu2.model.InstantType(src.getValueAsString());
  copyElement(src,tgt);
  return tgt;
}
Program: 23106
Project: 23106
Buggy source:
public org.hl7.fhir.dstu2.model.DateTimeType convertDateTime(org.hl7.fhir.dstu3.model.DateTimeType src) throws FHIRException {
  org.hl7.fhir.dstu2.model.DateTimeType tgt=new org.hl7.fhir.dstu2.model.DateTimeType(src.getValue());
  copyElement(src,tgt);
  return tgt;
}

Fixed version (ground truth):
public org.hl7.fhir.dstu2.model.DateTimeType convertDateTime(org.hl7.fhir.dstu3.model.DateTimeType src) throws FHIRException {
  org.hl7.fhir.dstu2.model.DateTimeType tgt=new org.hl7.fhir.dstu2.model.DateTimeType(src.getValueAsString());
  copyElement(src,tgt);
  return tgt;
}
Program: 23107
Project: 23107
Buggy source:
public org.hl7.fhir.dstu2.model.DateType convertDate(org.hl7.fhir.dstu3.model.DateTimeType src) throws FHIRException {
  org.hl7.fhir.dstu2.model.DateType tgt=new org.hl7.fhir.dstu2.model.DateType(src.getValue());
  copyElement(src,tgt);
  return tgt;
}

Fixed version (ground truth):
public org.hl7.fhir.dstu2.model.DateType convertDate(org.hl7.fhir.dstu3.model.DateTimeType src) throws FHIRException {
  org.hl7.fhir.dstu2.model.DateType tgt=new org.hl7.fhir.dstu2.model.DateType(src.getValueAsString());
  copyElement(src,tgt);
  return tgt;
}
Program: 23108
Project: 23108
Buggy source:
public org.hl7.fhir.dstu2.model.DateType convertDate(org.hl7.fhir.r4.model.DateTimeType src) throws FHIRException {
  org.hl7.fhir.dstu2.model.DateType tgt=new org.hl7.fhir.dstu2.model.DateType(src.getValue());
  copyElement(src,tgt);
  return tgt;
}

Fixed version (ground truth):
public org.hl7.fhir.dstu2.model.DateType convertDate(org.hl7.fhir.r4.model.DateTimeType src) throws FHIRException {
  org.hl7.fhir.dstu2.model.DateType tgt=new org.hl7.fhir.dstu2.model.DateType(src.getValueAsString());
  copyElement(src,tgt);
  return tgt;
}
Program: 23109
Project: 23109
Buggy source:
public org.hl7.fhir.dstu2.model.DateTimeType convertDateTime(org.hl7.fhir.r4.model.DateTimeType src) throws FHIRException {
  org.hl7.fhir.dstu2.model.DateTimeType tgt=new org.hl7.fhir.dstu2.model.DateTimeType(src.getValue());
  copyElement(src,tgt);
  return tgt;
}

Fixed version (ground truth):
public org.hl7.fhir.dstu2.model.DateTimeType convertDateTime(org.hl7.fhir.r4.model.DateTimeType src) throws FHIRException {
  org.hl7.fhir.dstu2.model.DateTimeType tgt=new org.hl7.fhir.dstu2.model.DateTimeType(src.getValueAsString());
  copyElement(src,tgt);
  return tgt;
}
Program: 23110
Project: 23110
Buggy source:
public static org.hl7.fhir.dstu3.model.InstantType convertInstant(org.hl7.fhir.r4.model.InstantType src) throws FHIRException {
  org.hl7.fhir.dstu3.model.InstantType tgt=new org.hl7.fhir.dstu3.model.InstantType(src.getValue());
  copyElement(src,tgt);
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu3.model.InstantType convertInstant(org.hl7.fhir.r4.model.InstantType src) throws FHIRException {
  org.hl7.fhir.dstu3.model.InstantType tgt=new org.hl7.fhir.dstu3.model.InstantType(src.getValueAsString());
  copyElement(src,tgt);
  return tgt;
}
Program: 23111
Project: 23111
Buggy source:
public static org.hl7.fhir.dstu3.model.DateTimeType convertDateTime(org.hl7.fhir.r4.model.DateTimeType src) throws FHIRException {
  org.hl7.fhir.dstu3.model.DateTimeType tgt=new org.hl7.fhir.dstu3.model.DateTimeType(src.getValue());
  copyElement(src,tgt);
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu3.model.DateTimeType convertDateTime(org.hl7.fhir.r4.model.DateTimeType src) throws FHIRException {
  org.hl7.fhir.dstu3.model.DateTimeType tgt=new org.hl7.fhir.dstu3.model.DateTimeType(src.getValueAsString());
  copyElement(src,tgt);
  return tgt;
}
Program: 23112
Project: 23112
Buggy source:
public static org.hl7.fhir.dstu3.model.DateType convertDate(org.hl7.fhir.r4.model.DateType src) throws FHIRException {
  org.hl7.fhir.dstu3.model.DateType tgt=new org.hl7.fhir.dstu3.model.DateType(src.getValue());
  copyElement(src,tgt);
  return tgt;
}

Fixed version (ground truth):
public static org.hl7.fhir.dstu3.model.DateType convertDate(org.hl7.fhir.r4.model.DateType src) throws FHIRException {
  org.hl7.fhir.dstu3.model.DateType tgt=new org.hl7.fhir.dstu3.model.DateType(src.getValueAsString());
  copyElement(src,tgt);
  return tgt;
}