Program: 24012
Project: 24012
Buggy source:
protected void composeLocation(Complex parent,String parentType,String name,Location element,int index){
  if (element == null)   return;
  Complex t;
  if (Utilities.noString(parentType))   t=parent;
 else {
    t=parent.predicate("String_Node_Str" + parentType + '.'+ name);
  }
  composeDomainResource(t,"String_Node_Str",name,element,index);
  for (int i=0; i < element.getIdentifier().size(); i++)   composeIdentifier(t,"String_Node_Str","String_Node_Str",element.getIdentifier().get(i),i);
  if (element.hasStatusElement())   composeEnum(t,"String_Node_Str","String_Node_Str",element.getStatusElement(),-1);
  if (element.hasNameElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getNameElement(),-1);
  if (element.hasDescriptionElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getDescriptionElement(),-1);
  if (element.hasModeElement())   composeEnum(t,"String_Node_Str","String_Node_Str",element.getModeElement(),-1);
  if (element.hasType())   composeCodeableConcept(t,"String_Node_Str","String_Node_Str",element.getType(),-1);
  for (int i=0; i < element.getTelecom().size(); i++)   composeContactPoint(t,"String_Node_Str","String_Node_Str",element.getTelecom().get(i),i);
  if (element.hasAddress())   composeAddress(t,"String_Node_Str","String_Node_Str",element.getAddress(),-1);
  if (element.hasPhysicalType())   composeCodeableConcept(t,"String_Node_Str","String_Node_Str",element.getPhysicalType(),-1);
  if (element.hasPosition())   composeLocationLocationPositionComponent(t,"String_Node_Str","String_Node_Str",element.getPosition(),-1);
  if (element.hasManagingOrganization())   composeReference(t,"String_Node_Str","String_Node_Str",element.getManagingOrganization(),-1);
  if (element.hasPartOf())   composeReference(t,"String_Node_Str","String_Node_Str",element.getPartOf(),-1);
}

Fixed version (ground truth):
protected void composeLocation(Complex parent,String parentType,String name,Location element,int index){
  if (element == null)   return;
  Complex t;
  if (Utilities.noString(parentType))   t=parent;
 else {
    t=parent.predicate("String_Node_Str" + parentType + '.'+ name);
  }
  composeDomainResource(t,"String_Node_Str",name,element,index);
  for (int i=0; i < element.getIdentifier().size(); i++)   composeIdentifier(t,"String_Node_Str","String_Node_Str",element.getIdentifier().get(i),i);
  if (element.hasStatusElement())   composeEnum(t,"String_Node_Str","String_Node_Str",element.getStatusElement(),-1);
  if (element.hasNameElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getNameElement(),-1);
  if (element.hasDescriptionElement())   composeString(t,"String_Node_Str","String_Node_Str",element.getDescriptionElement(),-1);
  if (element.hasModeElement())   composeEnum(t,"String_Node_Str","String_Node_Str",element.getModeElement(),-1);
  if (element.hasType())   composeCodeableConcept(t,"String_Node_Str","String_Node_Str",element.getType(),-1);
  for (int i=0; i < element.getTelecom().size(); i++)   composeContactPoint(t,"String_Node_Str","String_Node_Str",element.getTelecom().get(i),i);
  if (element.hasAddress())   composeAddress(t,"String_Node_Str","String_Node_Str",element.getAddress(),-1);
  if (element.hasPhysicalType())   composeCodeableConcept(t,"String_Node_Str","String_Node_Str",element.getPhysicalType(),-1);
  if (element.hasPosition())   composeLocationLocationPositionComponent(t,"String_Node_Str","String_Node_Str",element.getPosition(),-1);
  if (element.hasManagingOrganization())   composeReference(t,"String_Node_Str","String_Node_Str",element.getManagingOrganization(),-1);
  if (element.hasPartOf())   composeReference(t,"String_Node_Str","String_Node_Str",element.getPartOf(),-1);
  for (int i=0; i < element.getEndpoint().size(); i++)   composeReference(t,"String_Node_Str","String_Node_Str",element.getEndpoint().get(i),i);
}