Program: 7910
Project: 7910
Buggy source:
public static void main(String[] args) throws Exception {
  Document clinicalDocument=(Document)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  clinicalDocument.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  clinicalDocument.setTypeId(IIimpl.valueOf("String_Node_Str","String_Node_Str"));
  clinicalDocument.setId(makeId("String_Node_Str","String_Node_Str"));
  TS effectiveTime=TSjuDateAdapter.valueOf("String_Node_Str");
  ValueFactory valueFactory=new ValueFactoryImpl();
  SET<TS> effectiveTimeSet=valueFactory.IVLvalueOf(BLimpl.TRUE,effectiveTime,effectiveTime,BLimpl.TRUE);
  clinicalDocument.setEffectiveTime(effectiveTimeSet);
  clinicalDocument.setCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  clinicalDocument.setTypeId(IIimpl.valueOf("String_Node_Str","String_Node_Str"));
  List<CE> setConf=new ArrayList<CE>();
  setConf.add(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  SETjuSetAdapter.valueOf(setConf);
  clinicalDocument.setConfidentialityCode(SETjuSetAdapter.valueOf(setConf));
  clinicalDocument.setLanguageCode(CEimpl.valueOf("String_Node_Str","String_Node_Str","String_Node_Str"));
  Participation recordTarget=(Participation)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  recordTarget.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  Role patientRole=(Patient)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  patientRole.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  Person patient=(Person)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  patient.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  SET<II> mrnset=makeId("String_Node_Str","String_Node_Str");
  patient.setId(mrnset);
  BAG<EN> patName=null;
  patName=setGivenName(patName,"String_Node_Str");
  patName=setFamilyName(patName,"String_Node_Str");
  patient.setName(patName);
  patient.setAdministrativeGenderCode(CEimpl.valueOf("String_Node_Str","String_Node_Str","String_Node_Str"));
  patient.setBirthTime(TSjuDateAdapter.valueOf("String_Node_Str"));
  List<ADXP> patAddrElemList=new ArrayList<ADXP>();
  patAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",StreetType));
  patAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",PostalCode));
  patAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",Municipality));
  AD patAddr=ADimpl.valueOf(patAddrElemList);
  List<AD> patAddrList=new ArrayList<AD>();
  patAddrList.add(patAddr);
  BAG patAddrBag=BAGjuListAdapter.valueOf(patAddrList);
  patientRole.setAddr(patAddrBag);
  List<TEL> patTelList=new ArrayList<TEL>();
  patTelList.add(TELimpl.valueOf("String_Node_Str"));
  BAG patTelBag=BAGjuListAdapter.valueOf(patTelList);
  patientRole.setTelecom(patTelBag);
  Organization provOrg=(Organization)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  provOrg.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  List<ADXP> provOrgAddrElemList=new ArrayList<ADXP>();
  provOrgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",StreetType));
  provOrgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",PostalCode));
  provOrgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",Municipality));
  AD provOrgAddr=ADimpl.valueOf(provOrgAddrElemList);
  List<AD> provOrgAddrList=new ArrayList<AD>();
  provOrgAddrList.add(provOrgAddr);
  BAG provOrgAddrBag=BAGjuListAdapter.valueOf(provOrgAddrList);
  provOrg.setAddr(provOrgAddrBag);
  patientRole.setPlayer(patient);
  patientRole.setScoper(provOrg);
  recordTarget.setRole(patientRole);
  clinicalDocument.addParticipation(recordTarget);
  Participation author=(Participation)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  author.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  Role assignedAuthor=(Role)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  assignedAuthor.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  author.setRole(assignedAuthor);
  Person assignedPerson=(Person)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  assignedPerson.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  BAG<EN> authName=null;
  authName=setPrefixName(authName,"String_Node_Str");
  authName=setGivenName(authName,"String_Node_Str");
  authName=setFamilyName(authName,"String_Node_Str");
  assignedPerson.setName(authName);
  assignedAuthor.setPlayer(assignedPerson);
  Organization authOrg=(Organization)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  authOrg.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  List<ENXP> authReprNameParts=new ArrayList<ENXP>();
  authReprNameParts.add(ENXPimpl.valueOf("String_Node_Str",null));
  EN authReprOrgName=ENimpl.valueOf(authReprNameParts);
  List<EN> authReprNameList=new ArrayList<EN>();
  authReprNameList.add(authReprOrgName);
  BAG<EN> authReprNameBag=BAGjuCollectionAdapter.valueOf(authReprNameList);
  authOrg.setName(authReprNameBag);
  List<TEL> authOrgTelList=new ArrayList<TEL>();
  authOrgTelList.add(TELimpl.valueOf("String_Node_Str"));
  authOrgTelList.add(TELimpl.valueOf("String_Node_Str"));
  BAG authOrgTelBag=BAGjuListAdapter.valueOf(authOrgTelList);
  authOrg.setTelecom(authOrgTelBag);
  List<ADXP> authOrgAddrElemList=new ArrayList<ADXP>();
  authOrgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",StreetType));
  authOrgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",PostalCode));
  authOrgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",Municipality));
  AD authOrgAddr=ADimpl.valueOf(authOrgAddrElemList);
  List<AD> authOrgAddrList=new ArrayList<AD>();
  authOrgAddrList.add(authOrgAddr);
  BAG authOrgAddrBag=BAGjuListAdapter.valueOf(authOrgAddrList);
  authOrg.setAddr(authOrgAddrBag);
  assignedAuthor.setScoper(authOrg);
  clinicalDocument.addParticipation(author);
  Participation custodian=(Participation)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  custodian.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  Role assignedCustodian=(Role)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  assignedCustodian.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  custodian.setRole(assignedCustodian);
  Organization representedCustodianOrganization=(Organization)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  representedCustodianOrganization.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  representedCustodianOrganization.setId(makeId("String_Node_Str","String_Node_Str"));
  List<ENXP> orgNameParts=new ArrayList<ENXP>();
  orgNameParts.add(ENXPimpl.valueOf("String_Node_Str",null));
  EN orgName=ENimpl.valueOf(orgNameParts);
  List<EN> orgNameList=new ArrayList<EN>();
  orgNameList.add(orgName);
  BAG<EN> orgNameBag=BAGjuCollectionAdapter.valueOf(orgNameList);
  List<ADXP> orgAddrElemList=new ArrayList<ADXP>();
  orgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",StreetType));
  orgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",PostalCode));
  orgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",Municipality));
  AD orgAddr=ADimpl.valueOf(orgAddrElemList);
  List<AD> orgAddrList=new ArrayList<AD>();
  orgAddrList.add(orgAddr);
  BAG<AD> orgAddrBag=BAGjuListAdapter.valueOf(patAddrList);
  representedCustodianOrganization.setName(orgNameBag);
  representedCustodianOrganization.setAddr(orgAddrBag);
  assignedCustodian.setScoper(representedCustodianOrganization);
  clinicalDocument.addParticipation(custodian);
  ActRelationship relatedDocument=(ActRelationship)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  relatedDocument.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  relatedDocument.setType(ActRelationshipType.IsAppendage);
  Document parentDocument=(Document)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  parentDocument.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  parentDocument.setId(makeId("String_Node_Str","String_Node_Str"));
  relatedDocument.setTarget(parentDocument);
  clinicalDocument.addOutboundRelationship(relatedDocument);
  ActRelationship authorization=(ActRelationship)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  authorization.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  Document consent=(Document)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  consent.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  consent.setId(makeId("String_Node_Str","String_Node_Str"));
  consent.setCode(CDimpl.valueOf("String_Node_Str","String_Node_Str"));
  authorization.setTarget(consent);
  clinicalDocument.addOutboundRelationship(authorization);
  ActRelationship component=(ActRelationship)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  component.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  Act structuredBody=(Act)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  structuredBody.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  component.setTarget(structuredBody);
  ActRelationship subcomponent=(ActRelationship)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  subcomponent.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  Act section=(Act)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  section.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  ST title=STjlStringAdapter.valueOf("String_Node_Str");
  ST text=STjlStringAdapter.valueOf("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  section.setTitle(title);
  section.setText(text);
  subcomponent.setTarget(section);
  structuredBody.addOutboundRelationship(subcomponent);
  clinicalDocument.addOutboundRelationship(component);
  Util.buildMessage(clinicalDocument,"String_Node_Str");
}

Fixed version (ground truth):
public static void main(String[] args) throws Exception {
  Document clinicalDocument=(Document)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  clinicalDocument.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  clinicalDocument.setTypeId(IIimpl.valueOf("String_Node_Str","String_Node_Str"));
  clinicalDocument.setId(makeId("String_Node_Str","String_Node_Str"));
  clinicalDocument.setTitle(STjlStringAdapter.valueOf("String_Node_Str"));
  TS effectiveTime=TSjuDateAdapter.valueOf("String_Node_Str");
  ValueFactory valueFactory=new ValueFactoryImpl();
  SET<TS> effectiveTimeSet=valueFactory.IVLvalueOf(BLimpl.TRUE,effectiveTime,effectiveTime,BLimpl.TRUE);
  clinicalDocument.setEffectiveTime(effectiveTimeSet);
  clinicalDocument.setCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  clinicalDocument.setTypeId(IIimpl.valueOf("String_Node_Str","String_Node_Str"));
  List<CE> setConf=new ArrayList<CE>();
  setConf.add(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  SETjuSetAdapter.valueOf(setConf);
  clinicalDocument.setConfidentialityCode(SETjuSetAdapter.valueOf(setConf));
  clinicalDocument.setLanguageCode(CEimpl.valueOf("String_Node_Str","String_Node_Str","String_Node_Str"));
  Participation recordTarget=(Participation)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  recordTarget.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  Role patientRole=(Patient)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  patientRole.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  SET<II> mrnset=makeId("String_Node_Str","String_Node_Str");
  patientRole.setId(mrnset);
  Person patient=(Person)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  patient.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  BAG<EN> patName=null;
  patName=setGivenName(patName,"String_Node_Str");
  patName=setFamilyName(patName,"String_Node_Str");
  patient.setName(patName);
  patient.setAdministrativeGenderCode(CEimpl.valueOf("String_Node_Str","String_Node_Str","String_Node_Str"));
  patient.setBirthTime(TSjuDateAdapter.valueOf("String_Node_Str"));
  List<ADXP> patAddrElemList=new ArrayList<ADXP>();
  patAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",StreetAddressLine));
  patAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",PostalCode));
  patAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",Municipality));
  AD patAddr=ADimpl.valueOf(patAddrElemList);
  List<AD> patAddrList=new ArrayList<AD>();
  patAddrList.add(patAddr);
  BAG patAddrBag=BAGjuListAdapter.valueOf(patAddrList);
  patientRole.setAddr(patAddrBag);
  List<TEL> patTelList=new ArrayList<TEL>();
  patTelList.add(TELimpl.valueOf("String_Node_Str"));
  BAG patTelBag=BAGjuListAdapter.valueOf(patTelList);
  patientRole.setTelecom(patTelBag);
  Organization provOrg=(Organization)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  provOrg.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  List<ADXP> provOrgAddrElemList=new ArrayList<ADXP>();
  provOrgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",StreetName));
  provOrgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",PostalCode));
  provOrgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",Municipality));
  AD provOrgAddr=ADimpl.valueOf(provOrgAddrElemList);
  List<AD> provOrgAddrList=new ArrayList<AD>();
  provOrgAddrList.add(provOrgAddr);
  BAG provOrgAddrBag=BAGjuListAdapter.valueOf(provOrgAddrList);
  provOrg.setAddr(provOrgAddrBag);
  patientRole.setPlayer(patient);
  patientRole.setScoper(provOrg);
  recordTarget.setRole(patientRole);
  clinicalDocument.addParticipation(recordTarget);
  Participation author=(Participation)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  author.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  Role assignedAuthor=(Role)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  assignedAuthor.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  author.setRole(assignedAuthor);
  assignedAuthor.setId(makeId("String_Node_Str","String_Node_Str"));
  Person assignedPerson=(Person)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  assignedPerson.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  BAG<EN> authName=null;
  authName=setPrefixName(authName,"String_Node_Str");
  authName=setGivenName(authName,"String_Node_Str");
  authName=setFamilyName(authName,"String_Node_Str");
  assignedPerson.setName(authName);
  assignedAuthor.setPlayer(assignedPerson);
  Organization authOrg=(Organization)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  authOrg.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  List<ENXP> authReprNameParts=new ArrayList<ENXP>();
  authReprNameParts.add(ENXPimpl.valueOf("String_Node_Str",null));
  EN authReprOrgName=ENimpl.valueOf(authReprNameParts);
  List<EN> authReprNameList=new ArrayList<EN>();
  authReprNameList.add(authReprOrgName);
  BAG<EN> authReprNameBag=BAGjuCollectionAdapter.valueOf(authReprNameList);
  authOrg.setName(authReprNameBag);
  List<TEL> authOrgTelList=new ArrayList<TEL>();
  authOrgTelList.add(TELimpl.valueOf("String_Node_Str"));
  authOrgTelList.add(TELimpl.valueOf("String_Node_Str"));
  BAG authOrgTelBag=BAGjuListAdapter.valueOf(authOrgTelList);
  authOrg.setTelecom(authOrgTelBag);
  List<ADXP> authOrgAddrElemList=new ArrayList<ADXP>();
  authOrgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",StreetName));
  authOrgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",PostalCode));
  authOrgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",Municipality));
  AD authOrgAddr=ADimpl.valueOf(authOrgAddrElemList);
  List<AD> authOrgAddrList=new ArrayList<AD>();
  authOrgAddrList.add(authOrgAddr);
  BAG authOrgAddrBag=BAGjuListAdapter.valueOf(authOrgAddrList);
  authOrg.setAddr(authOrgAddrBag);
  assignedAuthor.setScoper(authOrg);
  clinicalDocument.addParticipation(author);
  Participation custodian=(Participation)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  custodian.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  Role assignedCustodian=(Role)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  assignedCustodian.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  custodian.setRole(assignedCustodian);
  Organization representedCustodianOrganization=(Organization)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  representedCustodianOrganization.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  representedCustodianOrganization.setId(makeId("String_Node_Str","String_Node_Str"));
  List<ENXP> orgNameParts=new ArrayList<ENXP>();
  orgNameParts.add(ENXPimpl.valueOf("String_Node_Str",null));
  EN orgName=ENimpl.valueOf(orgNameParts);
  List<EN> orgNameList=new ArrayList<EN>();
  orgNameList.add(orgName);
  BAG<EN> orgNameBag=BAGjuCollectionAdapter.valueOf(orgNameList);
  List<ADXP> orgAddrElemList=new ArrayList<ADXP>();
  orgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",StreetName));
  orgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",PostalCode));
  orgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",Municipality));
  AD orgAddr=ADimpl.valueOf(orgAddrElemList);
  List<AD> orgAddrList=new ArrayList<AD>();
  orgAddrList.add(orgAddr);
  BAG<AD> orgAddrBag=BAGjuListAdapter.valueOf(orgAddrList);
  representedCustodianOrganization.setName(orgNameBag);
  representedCustodianOrganization.setAddr(orgAddrBag);
  assignedCustodian.setScoper(representedCustodianOrganization);
  clinicalDocument.addParticipation(custodian);
  Participation informationRecipient=(Participation)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  informationRecipient.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  Role intendedRecipient=(Role)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  intendedRecipient.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  informationRecipient.setRole(intendedRecipient);
  Person infRecPerson=(Person)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  infRecPerson.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  BAG<EN> infRecPersonName=null;
  infRecPersonName=setPrefixName(infRecPersonName,"String_Node_Str");
  infRecPersonName=setGivenName(infRecPersonName,"String_Node_Str");
  infRecPersonName=setFamilyName(infRecPersonName,"String_Node_Str");
  infRecPerson.setName(infRecPersonName);
  intendedRecipient.setPlayer(infRecPerson);
  Organization receivedOrganization=(Organization)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  receivedOrganization.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  List<ENXP> recOrgNameParts=new ArrayList<ENXP>();
  recOrgNameParts.add(ENXPimpl.valueOf("String_Node_Str",null));
  EN recOrgName=ENimpl.valueOf(recOrgNameParts);
  List<EN> recOrgNameList=new ArrayList<EN>();
  recOrgNameList.add(recOrgName);
  BAG<EN> recOrgNameBag=BAGjuCollectionAdapter.valueOf(recOrgNameList);
  List<ADXP> recOrgAddrElemList=new ArrayList<ADXP>();
  recOrgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",StreetAddressLine));
  recOrgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",PostalCode));
  recOrgAddrElemList.add(ADXPimpl.valueOf("String_Node_Str",Municipality));
  AD recOrgAddr=ADimpl.valueOf(recOrgAddrElemList);
  List<AD> recOrgAddrList=new ArrayList<AD>();
  recOrgAddrList.add(recOrgAddr);
  BAG<AD> recOrgAddrBag=BAGjuListAdapter.valueOf(recOrgAddrList);
  List<TEL> recOrgTelList=new ArrayList<TEL>();
  recOrgTelList.add(TELimpl.valueOf("String_Node_Str"));
  BAG recOrgTelBag=BAGjuListAdapter.valueOf(recOrgTelList);
  receivedOrganization.setTelecom(recOrgTelBag);
  receivedOrganization.setName(recOrgNameBag);
  receivedOrganization.setAddr(recOrgAddrBag);
  intendedRecipient.setScoper(receivedOrganization);
  clinicalDocument.addParticipation(informationRecipient);
  ActRelationship relatedDocument=(ActRelationship)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  relatedDocument.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  relatedDocument.setTypeCode(ActRelationshipType.IsAppendage);
  Document parentDocument=(Document)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  parentDocument.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  parentDocument.setId(makeId("String_Node_Str","String_Node_Str"));
  relatedDocument.setTarget(parentDocument);
  clinicalDocument.addOutboundRelationship(relatedDocument);
  ActRelationship authorization=(ActRelationship)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  authorization.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  Document consent=(Document)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  consent.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  consent.setId(makeId("String_Node_Str","String_Node_Str"));
  consent.setCode(CDimpl.valueOf("String_Node_Str","String_Node_Str"));
  authorization.setTarget(consent);
  consent.setStatusCode(Completed);
  clinicalDocument.addOutboundRelationship(authorization);
  ActRelationship component=(ActRelationship)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  component.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  Act structuredBody=(Act)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  structuredBody.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  component.setTarget(structuredBody);
  ActRelationship subcomponent=(ActRelationship)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  subcomponent.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  Act section=(Act)RimObjectFactory.getInstance().createRimObject("String_Node_Str");
  section.setCloneCode(CSimpl.valueOf("String_Node_Str","String_Node_Str"));
  section.setCode(CDimpl.valueOf("String_Node_Str","String_Node_Str"));
  ST title=STjlStringAdapter.valueOf("String_Node_Str");
  ST text=STjlStringAdapter.valueOf("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  section.setTitle(title);
  section.setText(text);
  subcomponent.setTarget(section);
  structuredBody.addOutboundRelationship(subcomponent);
  clinicalDocument.addOutboundRelationship(component);
  Util.buildMessage(clinicalDocument,"String_Node_Str","String_Node_Str");
}