Program: 23069
Project: 23069
Buggy source:
@Override protected void composeResource(Complex parent,Resource resource){
  if (resource instanceof Parameters)   composeParameters(parent,null,"String_Node_Str",(Parameters)resource,-1);
 else   if (resource instanceof Account)   composeAccount(parent,null,"String_Node_Str",(Account)resource,-1);
 else   if (resource instanceof ActivityDefinition)   composeActivityDefinition(parent,null,"String_Node_Str",(ActivityDefinition)resource,-1);
 else   if (resource instanceof AdverseEvent)   composeAdverseEvent(parent,null,"String_Node_Str",(AdverseEvent)resource,-1);
 else   if (resource instanceof AllergyIntolerance)   composeAllergyIntolerance(parent,null,"String_Node_Str",(AllergyIntolerance)resource,-1);
 else   if (resource instanceof Appointment)   composeAppointment(parent,null,"String_Node_Str",(Appointment)resource,-1);
 else   if (resource instanceof AppointmentResponse)   composeAppointmentResponse(parent,null,"String_Node_Str",(AppointmentResponse)resource,-1);
 else   if (resource instanceof AuditEvent)   composeAuditEvent(parent,null,"String_Node_Str",(AuditEvent)resource,-1);
 else   if (resource instanceof Basic)   composeBasic(parent,null,"String_Node_Str",(Basic)resource,-1);
 else   if (resource instanceof Binary)   composeBinary(parent,null,"String_Node_Str",(Binary)resource,-1);
 else   if (resource instanceof BiologicallyDerivedProduct)   composeBiologicallyDerivedProduct(parent,null,"String_Node_Str",(BiologicallyDerivedProduct)resource,-1);
 else   if (resource instanceof BodyStructure)   composeBodyStructure(parent,null,"String_Node_Str",(BodyStructure)resource,-1);
 else   if (resource instanceof Bundle)   composeBundle(parent,null,"String_Node_Str",(Bundle)resource,-1);
 else   if (resource instanceof CapabilityStatement)   composeCapabilityStatement(parent,null,"String_Node_Str",(CapabilityStatement)resource,-1);
 else   if (resource instanceof CarePlan)   composeCarePlan(parent,null,"String_Node_Str",(CarePlan)resource,-1);
 else   if (resource instanceof CareTeam)   composeCareTeam(parent,null,"String_Node_Str",(CareTeam)resource,-1);
 else   if (resource instanceof ChargeItem)   composeChargeItem(parent,null,"String_Node_Str",(ChargeItem)resource,-1);
 else   if (resource instanceof Claim)   composeClaim(parent,null,"String_Node_Str",(Claim)resource,-1);
 else   if (resource instanceof ClaimResponse)   composeClaimResponse(parent,null,"String_Node_Str",(ClaimResponse)resource,-1);
 else   if (resource instanceof ClinicalImpression)   composeClinicalImpression(parent,null,"String_Node_Str",(ClinicalImpression)resource,-1);
 else   if (resource instanceof CodeSystem)   composeCodeSystem(parent,null,"String_Node_Str",(CodeSystem)resource,-1);
 else   if (resource instanceof Communication)   composeCommunication(parent,null,"String_Node_Str",(Communication)resource,-1);
 else   if (resource instanceof CommunicationRequest)   composeCommunicationRequest(parent,null,"String_Node_Str",(CommunicationRequest)resource,-1);
 else   if (resource instanceof CompartmentDefinition)   composeCompartmentDefinition(parent,null,"String_Node_Str",(CompartmentDefinition)resource,-1);
 else   if (resource instanceof Composition)   composeComposition(parent,null,"String_Node_Str",(Composition)resource,-1);
 else   if (resource instanceof ConceptMap)   composeConceptMap(parent,null,"String_Node_Str",(ConceptMap)resource,-1);
 else   if (resource instanceof Condition)   composeCondition(parent,null,"String_Node_Str",(Condition)resource,-1);
 else   if (resource instanceof Consent)   composeConsent(parent,null,"String_Node_Str",(Consent)resource,-1);
 else   if (resource instanceof Contract)   composeContract(parent,null,"String_Node_Str",(Contract)resource,-1);
 else   if (resource instanceof Coverage)   composeCoverage(parent,null,"String_Node_Str",(Coverage)resource,-1);
 else   if (resource instanceof DetectedIssue)   composeDetectedIssue(parent,null,"String_Node_Str",(DetectedIssue)resource,-1);
 else   if (resource instanceof Device)   composeDevice(parent,null,"String_Node_Str",(Device)resource,-1);
 else   if (resource instanceof DeviceComponent)   composeDeviceComponent(parent,null,"String_Node_Str",(DeviceComponent)resource,-1);
 else   if (resource instanceof DeviceMetric)   composeDeviceMetric(parent,null,"String_Node_Str",(DeviceMetric)resource,-1);
 else   if (resource instanceof DeviceRequest)   composeDeviceRequest(parent,null,"String_Node_Str",(DeviceRequest)resource,-1);
 else   if (resource instanceof DeviceUseStatement)   composeDeviceUseStatement(parent,null,"String_Node_Str",(DeviceUseStatement)resource,-1);
 else   if (resource instanceof DiagnosticReport)   composeDiagnosticReport(parent,null,"String_Node_Str",(DiagnosticReport)resource,-1);
 else   if (resource instanceof DocumentManifest)   composeDocumentManifest(parent,null,"String_Node_Str",(DocumentManifest)resource,-1);
 else   if (resource instanceof DocumentReference)   composeDocumentReference(parent,null,"String_Node_Str",(DocumentReference)resource,-1);
 else   if (resource instanceof EligibilityRequest)   composeEligibilityRequest(parent,null,"String_Node_Str",(EligibilityRequest)resource,-1);
 else   if (resource instanceof EligibilityResponse)   composeEligibilityResponse(parent,null,"String_Node_Str",(EligibilityResponse)resource,-1);
 else   if (resource instanceof Encounter)   composeEncounter(parent,null,"String_Node_Str",(Encounter)resource,-1);
 else   if (resource instanceof Endpoint)   composeEndpoint(parent,null,"String_Node_Str",(Endpoint)resource,-1);
 else   if (resource instanceof EnrollmentRequest)   composeEnrollmentRequest(parent,null,"String_Node_Str",(EnrollmentRequest)resource,-1);
 else   if (resource instanceof EnrollmentResponse)   composeEnrollmentResponse(parent,null,"String_Node_Str",(EnrollmentResponse)resource,-1);
 else   if (resource instanceof EntryDefinition)   composeEntryDefinition(parent,null,"String_Node_Str",(EntryDefinition)resource,-1);
 else   if (resource instanceof EpisodeOfCare)   composeEpisodeOfCare(parent,null,"String_Node_Str",(EpisodeOfCare)resource,-1);
 else   if (resource instanceof EventDefinition)   composeEventDefinition(parent,null,"String_Node_Str",(EventDefinition)resource,-1);
 else   if (resource instanceof ExampleScenario)   composeExampleScenario(parent,null,"String_Node_Str",(ExampleScenario)resource,-1);
 else   if (resource instanceof ExpansionProfile)   composeExpansionProfile(parent,null,"String_Node_Str",(ExpansionProfile)resource,-1);
 else   if (resource instanceof ExplanationOfBenefit)   composeExplanationOfBenefit(parent,null,"String_Node_Str",(ExplanationOfBenefit)resource,-1);
 else   if (resource instanceof FamilyMemberHistory)   composeFamilyMemberHistory(parent,null,"String_Node_Str",(FamilyMemberHistory)resource,-1);
 else   if (resource instanceof Flag)   composeFlag(parent,null,"String_Node_Str",(Flag)resource,-1);
 else   if (resource instanceof Goal)   composeGoal(parent,null,"String_Node_Str",(Goal)resource,-1);
 else   if (resource instanceof GraphDefinition)   composeGraphDefinition(parent,null,"String_Node_Str",(GraphDefinition)resource,-1);
 else   if (resource instanceof Group)   composeGroup(parent,null,"String_Node_Str",(Group)resource,-1);
 else   if (resource instanceof GuidanceResponse)   composeGuidanceResponse(parent,null,"String_Node_Str",(GuidanceResponse)resource,-1);
 else   if (resource instanceof HealthcareService)   composeHealthcareService(parent,null,"String_Node_Str",(HealthcareService)resource,-1);
 else   if (resource instanceof ImagingStudy)   composeImagingStudy(parent,null,"String_Node_Str",(ImagingStudy)resource,-1);
 else   if (resource instanceof Immunization)   composeImmunization(parent,null,"String_Node_Str",(Immunization)resource,-1);
 else   if (resource instanceof ImmunizationEvaluation)   composeImmunizationEvaluation(parent,null,"String_Node_Str",(ImmunizationEvaluation)resource,-1);
 else   if (resource instanceof ImmunizationRecommendation)   composeImmunizationRecommendation(parent,null,"String_Node_Str",(ImmunizationRecommendation)resource,-1);
 else   if (resource instanceof ImplementationGuide)   composeImplementationGuide(parent,null,"String_Node_Str",(ImplementationGuide)resource,-1);
 else   if (resource instanceof ImplementationGuideInput)   composeImplementationGuideInput(parent,null,"String_Node_Str",(ImplementationGuideInput)resource,-1);
 else   if (resource instanceof ImplementationGuideOutput)   composeImplementationGuideOutput(parent,null,"String_Node_Str",(ImplementationGuideOutput)resource,-1);
 else   if (resource instanceof Invoice)   composeInvoice(parent,null,"String_Node_Str",(Invoice)resource,-1);
 else   if (resource instanceof ItemInstance)   composeItemInstance(parent,null,"String_Node_Str",(ItemInstance)resource,-1);
 else   if (resource instanceof Library)   composeLibrary(parent,null,"String_Node_Str",(Library)resource,-1);
 else   if (resource instanceof Linkage)   composeLinkage(parent,null,"String_Node_Str",(Linkage)resource,-1);
 else   if (resource instanceof ListResource)   composeListResource(parent,null,"String_Node_Str",(ListResource)resource,-1);
 else   if (resource instanceof Location)   composeLocation(parent,null,"String_Node_Str",(Location)resource,-1);
 else   if (resource instanceof Measure)   composeMeasure(parent,null,"String_Node_Str",(Measure)resource,-1);
 else   if (resource instanceof MeasureReport)   composeMeasureReport(parent,null,"String_Node_Str",(MeasureReport)resource,-1);
 else   if (resource instanceof Media)   composeMedia(parent,null,"String_Node_Str",(Media)resource,-1);
 else   if (resource instanceof Medication)   composeMedication(parent,null,"String_Node_Str",(Medication)resource,-1);
 else   if (resource instanceof MedicationAdministration)   composeMedicationAdministration(parent,null,"String_Node_Str",(MedicationAdministration)resource,-1);
 else   if (resource instanceof MedicationDispense)   composeMedicationDispense(parent,null,"String_Node_Str",(MedicationDispense)resource,-1);
 else   if (resource instanceof MedicationRequest)   composeMedicationRequest(parent,null,"String_Node_Str",(MedicationRequest)resource,-1);
 else   if (resource instanceof MedicationStatement)   composeMedicationStatement(parent,null,"String_Node_Str",(MedicationStatement)resource,-1);
 else   if (resource instanceof MedicinalProduct)   composeMedicinalProduct(parent,null,"String_Node_Str",(MedicinalProduct)resource,-1);
 else   if (resource instanceof MedicinalProductAuthorization)   composeMedicinalProductAuthorization(parent,null,"String_Node_Str",(MedicinalProductAuthorization)resource,-1);
 else   if (resource instanceof MedicinalProductClinicals)   composeMedicinalProductClinicals(parent,null,"String_Node_Str",(MedicinalProductClinicals)resource,-1);
 else   if (resource instanceof MedicinalProductDeviceSpec)   composeMedicinalProductDeviceSpec(parent,null,"String_Node_Str",(MedicinalProductDeviceSpec)resource,-1);
 else   if (resource instanceof MedicinalProductIngredient)   composeMedicinalProductIngredient(parent,null,"String_Node_Str",(MedicinalProductIngredient)resource,-1);
 else   if (resource instanceof MedicinalProductPackaged)   composeMedicinalProductPackaged(parent,null,"String_Node_Str",(MedicinalProductPackaged)resource,-1);
 else   if (resource instanceof MedicinalProductPharmaceutical)   composeMedicinalProductPharmaceutical(parent,null,"String_Node_Str",(MedicinalProductPharmaceutical)resource,-1);
 else   if (resource instanceof MessageDefinition)   composeMessageDefinition(parent,null,"String_Node_Str",(MessageDefinition)resource,-1);
 else   if (resource instanceof MessageHeader)   composeMessageHeader(parent,null,"String_Node_Str",(MessageHeader)resource,-1);
 else   if (resource instanceof NamingSystem)   composeNamingSystem(parent,null,"String_Node_Str",(NamingSystem)resource,-1);
 else   if (resource instanceof NutritionOrder)   composeNutritionOrder(parent,null,"String_Node_Str",(NutritionOrder)resource,-1);
 else   if (resource instanceof Observation)   composeObservation(parent,null,"String_Node_Str",(Observation)resource,-1);
 else   if (resource instanceof ObservationDefinition)   composeObservationDefinition(parent,null,"String_Node_Str",(ObservationDefinition)resource,-1);
 else   if (resource instanceof OccupationalData)   composeOccupationalData(parent,null,"String_Node_Str",(OccupationalData)resource,-1);
 else   if (resource instanceof OperationDefinition)   composeOperationDefinition(parent,null,"String_Node_Str",(OperationDefinition)resource,-1);
 else   if (resource instanceof OperationOutcome)   composeOperationOutcome(parent,null,"String_Node_Str",(OperationOutcome)resource,-1);
 else   if (resource instanceof Organization)   composeOrganization(parent,null,"String_Node_Str",(Organization)resource,-1);
 else   if (resource instanceof OrganizationRole)   composeOrganizationRole(parent,null,"String_Node_Str",(OrganizationRole)resource,-1);
 else   if (resource instanceof Patient)   composePatient(parent,null,"String_Node_Str",(Patient)resource,-1);
 else   if (resource instanceof PaymentNotice)   composePaymentNotice(parent,null,"String_Node_Str",(PaymentNotice)resource,-1);
 else   if (resource instanceof PaymentReconciliation)   composePaymentReconciliation(parent,null,"String_Node_Str",(PaymentReconciliation)resource,-1);
 else   if (resource instanceof Person)   composePerson(parent,null,"String_Node_Str",(Person)resource,-1);
 else   if (resource instanceof PlanDefinition)   composePlanDefinition(parent,null,"String_Node_Str",(PlanDefinition)resource,-1);
 else   if (resource instanceof Practitioner)   composePractitioner(parent,null,"String_Node_Str",(Practitioner)resource,-1);
 else   if (resource instanceof PractitionerRole)   composePractitionerRole(parent,null,"String_Node_Str",(PractitionerRole)resource,-1);
 else   if (resource instanceof Procedure)   composeProcedure(parent,null,"String_Node_Str",(Procedure)resource,-1);
 else   if (resource instanceof ProcessRequest)   composeProcessRequest(parent,null,"String_Node_Str",(ProcessRequest)resource,-1);
 else   if (resource instanceof ProcessResponse)   composeProcessResponse(parent,null,"String_Node_Str",(ProcessResponse)resource,-1);
 else   if (resource instanceof ProductPlan)   composeProductPlan(parent,null,"String_Node_Str",(ProductPlan)resource,-1);
 else   if (resource instanceof Provenance)   composeProvenance(parent,null,"String_Node_Str",(Provenance)resource,-1);
 else   if (resource instanceof Questionnaire)   composeQuestionnaire(parent,null,"String_Node_Str",(Questionnaire)resource,-1);
 else   if (resource instanceof QuestionnaireResponse)   composeQuestionnaireResponse(parent,null,"String_Node_Str",(QuestionnaireResponse)resource,-1);
 else   if (resource instanceof RelatedPerson)   composeRelatedPerson(parent,null,"String_Node_Str",(RelatedPerson)resource,-1);
 else   if (resource instanceof RequestGroup)   composeRequestGroup(parent,null,"String_Node_Str",(RequestGroup)resource,-1);
 else   if (resource instanceof ResearchStudy)   composeResearchStudy(parent,null,"String_Node_Str",(ResearchStudy)resource,-1);
 else   if (resource instanceof ResearchSubject)   composeResearchSubject(parent,null,"String_Node_Str",(ResearchSubject)resource,-1);
 else   if (resource instanceof RiskAssessment)   composeRiskAssessment(parent,null,"String_Node_Str",(RiskAssessment)resource,-1);
 else   if (resource instanceof Schedule)   composeSchedule(parent,null,"String_Node_Str",(Schedule)resource,-1);
 else   if (resource instanceof SearchParameter)   composeSearchParameter(parent,null,"String_Node_Str",(SearchParameter)resource,-1);
 else   if (resource instanceof Sequence)   composeSequence(parent,null,"String_Node_Str",(Sequence)resource,-1);
 else   if (resource instanceof ServiceRequest)   composeServiceRequest(parent,null,"String_Node_Str",(ServiceRequest)resource,-1);
 else   if (resource instanceof Slot)   composeSlot(parent,null,"String_Node_Str",(Slot)resource,-1);
 else   if (resource instanceof Specimen)   composeSpecimen(parent,null,"String_Node_Str",(Specimen)resource,-1);
 else   if (resource instanceof SpecimenDefinition)   composeSpecimenDefinition(parent,null,"String_Node_Str",(SpecimenDefinition)resource,-1);
 else   if (resource instanceof StructureDefinition)   composeStructureDefinition(parent,null,"String_Node_Str",(StructureDefinition)resource,-1);
 else   if (resource instanceof StructureMap)   composeStructureMap(parent,null,"String_Node_Str",(StructureMap)resource,-1);
 else   if (resource instanceof Subscription)   composeSubscription(parent,null,"String_Node_Str",(Subscription)resource,-1);
 else   if (resource instanceof Substance)   composeSubstance(parent,null,"String_Node_Str",(Substance)resource,-1);
 else   if (resource instanceof SubstancePolymer)   composeSubstancePolymer(parent,null,"String_Node_Str",(SubstancePolymer)resource,-1);
 else   if (resource instanceof SubstanceReferenceInformation)   composeSubstanceReferenceInformation(parent,null,"String_Node_Str",(SubstanceReferenceInformation)resource,-1);
 else   if (resource instanceof SubstanceSpecification)   composeSubstanceSpecification(parent,null,"String_Node_Str",(SubstanceSpecification)resource,-1);
 else   if (resource instanceof SupplyDelivery)   composeSupplyDelivery(parent,null,"String_Node_Str",(SupplyDelivery)resource,-1);
 else   if (resource instanceof SupplyRequest)   composeSupplyRequest(parent,null,"String_Node_Str",(SupplyRequest)resource,-1);
 else   if (resource instanceof Task)   composeTask(parent,null,"String_Node_Str",(Task)resource,-1);
 else   if (resource instanceof TerminologyCapabilities)   composeTerminologyCapabilities(parent,null,"String_Node_Str",(TerminologyCapabilities)resource,-1);
 else   if (resource instanceof TestReport)   composeTestReport(parent,null,"String_Node_Str",(TestReport)resource,-1);
 else   if (resource instanceof TestScript)   composeTestScript(parent,null,"String_Node_Str",(TestScript)resource,-1);
 else   if (resource instanceof UserSession)   composeUserSession(parent,null,"String_Node_Str",(UserSession)resource,-1);
 else   if (resource instanceof ValueSet)   composeValueSet(parent,null,"String_Node_Str",(ValueSet)resource,-1);
 else   if (resource instanceof VerificationResult)   composeVerificationResult(parent,null,"String_Node_Str",(VerificationResult)resource,-1);
 else   if (resource instanceof VisionPrescription)   composeVisionPrescription(parent,null,"String_Node_Str",(VisionPrescription)resource,-1);
 else   throw new Error("String_Node_Str" + resource.getClass().getName());
}

Fixed version (ground truth):
@Override protected void composeResource(Complex parent,Resource resource){
  if (resource instanceof Parameters)   composeParameters(parent,null,"String_Node_Str",(Parameters)resource,-1);
 else   if (resource instanceof Account)   composeAccount(parent,null,"String_Node_Str",(Account)resource,-1);
 else   if (resource instanceof ActivityDefinition)   composeActivityDefinition(parent,null,"String_Node_Str",(ActivityDefinition)resource,-1);
 else   if (resource instanceof AdverseEvent)   composeAdverseEvent(parent,null,"String_Node_Str",(AdverseEvent)resource,-1);
 else   if (resource instanceof AllergyIntolerance)   composeAllergyIntolerance(parent,null,"String_Node_Str",(AllergyIntolerance)resource,-1);
 else   if (resource instanceof Appointment)   composeAppointment(parent,null,"String_Node_Str",(Appointment)resource,-1);
 else   if (resource instanceof AppointmentResponse)   composeAppointmentResponse(parent,null,"String_Node_Str",(AppointmentResponse)resource,-1);
 else   if (resource instanceof AuditEvent)   composeAuditEvent(parent,null,"String_Node_Str",(AuditEvent)resource,-1);
 else   if (resource instanceof Basic)   composeBasic(parent,null,"String_Node_Str",(Basic)resource,-1);
 else   if (resource instanceof Binary)   composeBinary(parent,null,"String_Node_Str",(Binary)resource,-1);
 else   if (resource instanceof BiologicallyDerivedProduct)   composeBiologicallyDerivedProduct(parent,null,"String_Node_Str",(BiologicallyDerivedProduct)resource,-1);
 else   if (resource instanceof BodyStructure)   composeBodyStructure(parent,null,"String_Node_Str",(BodyStructure)resource,-1);
 else   if (resource instanceof Bundle)   composeBundle(parent,null,"String_Node_Str",(Bundle)resource,-1);
 else   if (resource instanceof CapabilityStatement)   composeCapabilityStatement(parent,null,"String_Node_Str",(CapabilityStatement)resource,-1);
 else   if (resource instanceof CarePlan)   composeCarePlan(parent,null,"String_Node_Str",(CarePlan)resource,-1);
 else   if (resource instanceof CareTeam)   composeCareTeam(parent,null,"String_Node_Str",(CareTeam)resource,-1);
 else   if (resource instanceof ChargeItem)   composeChargeItem(parent,null,"String_Node_Str",(ChargeItem)resource,-1);
 else   if (resource instanceof Claim)   composeClaim(parent,null,"String_Node_Str",(Claim)resource,-1);
 else   if (resource instanceof ClaimResponse)   composeClaimResponse(parent,null,"String_Node_Str",(ClaimResponse)resource,-1);
 else   if (resource instanceof ClinicalImpression)   composeClinicalImpression(parent,null,"String_Node_Str",(ClinicalImpression)resource,-1);
 else   if (resource instanceof CodeSystem)   composeCodeSystem(parent,null,"String_Node_Str",(CodeSystem)resource,-1);
 else   if (resource instanceof Communication)   composeCommunication(parent,null,"String_Node_Str",(Communication)resource,-1);
 else   if (resource instanceof CommunicationRequest)   composeCommunicationRequest(parent,null,"String_Node_Str",(CommunicationRequest)resource,-1);
 else   if (resource instanceof CompartmentDefinition)   composeCompartmentDefinition(parent,null,"String_Node_Str",(CompartmentDefinition)resource,-1);
 else   if (resource instanceof Composition)   composeComposition(parent,null,"String_Node_Str",(Composition)resource,-1);
 else   if (resource instanceof ConceptMap)   composeConceptMap(parent,null,"String_Node_Str",(ConceptMap)resource,-1);
 else   if (resource instanceof Condition)   composeCondition(parent,null,"String_Node_Str",(Condition)resource,-1);
 else   if (resource instanceof Consent)   composeConsent(parent,null,"String_Node_Str",(Consent)resource,-1);
 else   if (resource instanceof Contract)   composeContract(parent,null,"String_Node_Str",(Contract)resource,-1);
 else   if (resource instanceof Coverage)   composeCoverage(parent,null,"String_Node_Str",(Coverage)resource,-1);
 else   if (resource instanceof DetectedIssue)   composeDetectedIssue(parent,null,"String_Node_Str",(DetectedIssue)resource,-1);
 else   if (resource instanceof Device)   composeDevice(parent,null,"String_Node_Str",(Device)resource,-1);
 else   if (resource instanceof DeviceComponent)   composeDeviceComponent(parent,null,"String_Node_Str",(DeviceComponent)resource,-1);
 else   if (resource instanceof DeviceMetric)   composeDeviceMetric(parent,null,"String_Node_Str",(DeviceMetric)resource,-1);
 else   if (resource instanceof DeviceRequest)   composeDeviceRequest(parent,null,"String_Node_Str",(DeviceRequest)resource,-1);
 else   if (resource instanceof DeviceUseStatement)   composeDeviceUseStatement(parent,null,"String_Node_Str",(DeviceUseStatement)resource,-1);
 else   if (resource instanceof DiagnosticReport)   composeDiagnosticReport(parent,null,"String_Node_Str",(DiagnosticReport)resource,-1);
 else   if (resource instanceof DocumentManifest)   composeDocumentManifest(parent,null,"String_Node_Str",(DocumentManifest)resource,-1);
 else   if (resource instanceof DocumentReference)   composeDocumentReference(parent,null,"String_Node_Str",(DocumentReference)resource,-1);
 else   if (resource instanceof EligibilityRequest)   composeEligibilityRequest(parent,null,"String_Node_Str",(EligibilityRequest)resource,-1);
 else   if (resource instanceof EligibilityResponse)   composeEligibilityResponse(parent,null,"String_Node_Str",(EligibilityResponse)resource,-1);
 else   if (resource instanceof Encounter)   composeEncounter(parent,null,"String_Node_Str",(Encounter)resource,-1);
 else   if (resource instanceof Endpoint)   composeEndpoint(parent,null,"String_Node_Str",(Endpoint)resource,-1);
 else   if (resource instanceof EnrollmentRequest)   composeEnrollmentRequest(parent,null,"String_Node_Str",(EnrollmentRequest)resource,-1);
 else   if (resource instanceof EnrollmentResponse)   composeEnrollmentResponse(parent,null,"String_Node_Str",(EnrollmentResponse)resource,-1);
 else   if (resource instanceof EntryDefinition)   composeEntryDefinition(parent,null,"String_Node_Str",(EntryDefinition)resource,-1);
 else   if (resource instanceof EpisodeOfCare)   composeEpisodeOfCare(parent,null,"String_Node_Str",(EpisodeOfCare)resource,-1);
 else   if (resource instanceof EventDefinition)   composeEventDefinition(parent,null,"String_Node_Str",(EventDefinition)resource,-1);
 else   if (resource instanceof ExampleScenario)   composeExampleScenario(parent,null,"String_Node_Str",(ExampleScenario)resource,-1);
 else   if (resource instanceof ExpansionProfile)   composeExpansionProfile(parent,null,"String_Node_Str",(ExpansionProfile)resource,-1);
 else   if (resource instanceof ExplanationOfBenefit)   composeExplanationOfBenefit(parent,null,"String_Node_Str",(ExplanationOfBenefit)resource,-1);
 else   if (resource instanceof FamilyMemberHistory)   composeFamilyMemberHistory(parent,null,"String_Node_Str",(FamilyMemberHistory)resource,-1);
 else   if (resource instanceof Flag)   composeFlag(parent,null,"String_Node_Str",(Flag)resource,-1);
 else   if (resource instanceof Goal)   composeGoal(parent,null,"String_Node_Str",(Goal)resource,-1);
 else   if (resource instanceof GraphDefinition)   composeGraphDefinition(parent,null,"String_Node_Str",(GraphDefinition)resource,-1);
 else   if (resource instanceof Group)   composeGroup(parent,null,"String_Node_Str",(Group)resource,-1);
 else   if (resource instanceof GuidanceResponse)   composeGuidanceResponse(parent,null,"String_Node_Str",(GuidanceResponse)resource,-1);
 else   if (resource instanceof HealthcareService)   composeHealthcareService(parent,null,"String_Node_Str",(HealthcareService)resource,-1);
 else   if (resource instanceof ImagingStudy)   composeImagingStudy(parent,null,"String_Node_Str",(ImagingStudy)resource,-1);
 else   if (resource instanceof Immunization)   composeImmunization(parent,null,"String_Node_Str",(Immunization)resource,-1);
 else   if (resource instanceof ImmunizationEvaluation)   composeImmunizationEvaluation(parent,null,"String_Node_Str",(ImmunizationEvaluation)resource,-1);
 else   if (resource instanceof ImmunizationRecommendation)   composeImmunizationRecommendation(parent,null,"String_Node_Str",(ImmunizationRecommendation)resource,-1);
 else   if (resource instanceof ImplementationGuide)   composeImplementationGuide(parent,null,"String_Node_Str",(ImplementationGuide)resource,-1);
 else   if (resource instanceof Invoice)   composeInvoice(parent,null,"String_Node_Str",(Invoice)resource,-1);
 else   if (resource instanceof ItemInstance)   composeItemInstance(parent,null,"String_Node_Str",(ItemInstance)resource,-1);
 else   if (resource instanceof Library)   composeLibrary(parent,null,"String_Node_Str",(Library)resource,-1);
 else   if (resource instanceof Linkage)   composeLinkage(parent,null,"String_Node_Str",(Linkage)resource,-1);
 else   if (resource instanceof ListResource)   composeListResource(parent,null,"String_Node_Str",(ListResource)resource,-1);
 else   if (resource instanceof Location)   composeLocation(parent,null,"String_Node_Str",(Location)resource,-1);
 else   if (resource instanceof Measure)   composeMeasure(parent,null,"String_Node_Str",(Measure)resource,-1);
 else   if (resource instanceof MeasureReport)   composeMeasureReport(parent,null,"String_Node_Str",(MeasureReport)resource,-1);
 else   if (resource instanceof Media)   composeMedia(parent,null,"String_Node_Str",(Media)resource,-1);
 else   if (resource instanceof Medication)   composeMedication(parent,null,"String_Node_Str",(Medication)resource,-1);
 else   if (resource instanceof MedicationAdministration)   composeMedicationAdministration(parent,null,"String_Node_Str",(MedicationAdministration)resource,-1);
 else   if (resource instanceof MedicationDispense)   composeMedicationDispense(parent,null,"String_Node_Str",(MedicationDispense)resource,-1);
 else   if (resource instanceof MedicationRequest)   composeMedicationRequest(parent,null,"String_Node_Str",(MedicationRequest)resource,-1);
 else   if (resource instanceof MedicationStatement)   composeMedicationStatement(parent,null,"String_Node_Str",(MedicationStatement)resource,-1);
 else   if (resource instanceof MedicinalProduct)   composeMedicinalProduct(parent,null,"String_Node_Str",(MedicinalProduct)resource,-1);
 else   if (resource instanceof MedicinalProductAuthorization)   composeMedicinalProductAuthorization(parent,null,"String_Node_Str",(MedicinalProductAuthorization)resource,-1);
 else   if (resource instanceof MedicinalProductClinicals)   composeMedicinalProductClinicals(parent,null,"String_Node_Str",(MedicinalProductClinicals)resource,-1);
 else   if (resource instanceof MedicinalProductDeviceSpec)   composeMedicinalProductDeviceSpec(parent,null,"String_Node_Str",(MedicinalProductDeviceSpec)resource,-1);
 else   if (resource instanceof MedicinalProductIngredient)   composeMedicinalProductIngredient(parent,null,"String_Node_Str",(MedicinalProductIngredient)resource,-1);
 else   if (resource instanceof MedicinalProductPackaged)   composeMedicinalProductPackaged(parent,null,"String_Node_Str",(MedicinalProductPackaged)resource,-1);
 else   if (resource instanceof MedicinalProductPharmaceutical)   composeMedicinalProductPharmaceutical(parent,null,"String_Node_Str",(MedicinalProductPharmaceutical)resource,-1);
 else   if (resource instanceof MessageDefinition)   composeMessageDefinition(parent,null,"String_Node_Str",(MessageDefinition)resource,-1);
 else   if (resource instanceof MessageHeader)   composeMessageHeader(parent,null,"String_Node_Str",(MessageHeader)resource,-1);
 else   if (resource instanceof NamingSystem)   composeNamingSystem(parent,null,"String_Node_Str",(NamingSystem)resource,-1);
 else   if (resource instanceof NutritionOrder)   composeNutritionOrder(parent,null,"String_Node_Str",(NutritionOrder)resource,-1);
 else   if (resource instanceof Observation)   composeObservation(parent,null,"String_Node_Str",(Observation)resource,-1);
 else   if (resource instanceof ObservationDefinition)   composeObservationDefinition(parent,null,"String_Node_Str",(ObservationDefinition)resource,-1);
 else   if (resource instanceof OccupationalData)   composeOccupationalData(parent,null,"String_Node_Str",(OccupationalData)resource,-1);
 else   if (resource instanceof OperationDefinition)   composeOperationDefinition(parent,null,"String_Node_Str",(OperationDefinition)resource,-1);
 else   if (resource instanceof OperationOutcome)   composeOperationOutcome(parent,null,"String_Node_Str",(OperationOutcome)resource,-1);
 else   if (resource instanceof Organization)   composeOrganization(parent,null,"String_Node_Str",(Organization)resource,-1);
 else   if (resource instanceof OrganizationRole)   composeOrganizationRole(parent,null,"String_Node_Str",(OrganizationRole)resource,-1);
 else   if (resource instanceof Patient)   composePatient(parent,null,"String_Node_Str",(Patient)resource,-1);
 else   if (resource instanceof PaymentNotice)   composePaymentNotice(parent,null,"String_Node_Str",(PaymentNotice)resource,-1);
 else   if (resource instanceof PaymentReconciliation)   composePaymentReconciliation(parent,null,"String_Node_Str",(PaymentReconciliation)resource,-1);
 else   if (resource instanceof Person)   composePerson(parent,null,"String_Node_Str",(Person)resource,-1);
 else   if (resource instanceof PlanDefinition)   composePlanDefinition(parent,null,"String_Node_Str",(PlanDefinition)resource,-1);
 else   if (resource instanceof Practitioner)   composePractitioner(parent,null,"String_Node_Str",(Practitioner)resource,-1);
 else   if (resource instanceof PractitionerRole)   composePractitionerRole(parent,null,"String_Node_Str",(PractitionerRole)resource,-1);
 else   if (resource instanceof Procedure)   composeProcedure(parent,null,"String_Node_Str",(Procedure)resource,-1);
 else   if (resource instanceof ProcessRequest)   composeProcessRequest(parent,null,"String_Node_Str",(ProcessRequest)resource,-1);
 else   if (resource instanceof ProcessResponse)   composeProcessResponse(parent,null,"String_Node_Str",(ProcessResponse)resource,-1);
 else   if (resource instanceof ProductPlan)   composeProductPlan(parent,null,"String_Node_Str",(ProductPlan)resource,-1);
 else   if (resource instanceof Provenance)   composeProvenance(parent,null,"String_Node_Str",(Provenance)resource,-1);
 else   if (resource instanceof Questionnaire)   composeQuestionnaire(parent,null,"String_Node_Str",(Questionnaire)resource,-1);
 else   if (resource instanceof QuestionnaireResponse)   composeQuestionnaireResponse(parent,null,"String_Node_Str",(QuestionnaireResponse)resource,-1);
 else   if (resource instanceof RelatedPerson)   composeRelatedPerson(parent,null,"String_Node_Str",(RelatedPerson)resource,-1);
 else   if (resource instanceof RequestGroup)   composeRequestGroup(parent,null,"String_Node_Str",(RequestGroup)resource,-1);
 else   if (resource instanceof ResearchStudy)   composeResearchStudy(parent,null,"String_Node_Str",(ResearchStudy)resource,-1);
 else   if (resource instanceof ResearchSubject)   composeResearchSubject(parent,null,"String_Node_Str",(ResearchSubject)resource,-1);
 else   if (resource instanceof RiskAssessment)   composeRiskAssessment(parent,null,"String_Node_Str",(RiskAssessment)resource,-1);
 else   if (resource instanceof Schedule)   composeSchedule(parent,null,"String_Node_Str",(Schedule)resource,-1);
 else   if (resource instanceof SearchParameter)   composeSearchParameter(parent,null,"String_Node_Str",(SearchParameter)resource,-1);
 else   if (resource instanceof Sequence)   composeSequence(parent,null,"String_Node_Str",(Sequence)resource,-1);
 else   if (resource instanceof ServiceRequest)   composeServiceRequest(parent,null,"String_Node_Str",(ServiceRequest)resource,-1);
 else   if (resource instanceof Slot)   composeSlot(parent,null,"String_Node_Str",(Slot)resource,-1);
 else   if (resource instanceof Specimen)   composeSpecimen(parent,null,"String_Node_Str",(Specimen)resource,-1);
 else   if (resource instanceof SpecimenDefinition)   composeSpecimenDefinition(parent,null,"String_Node_Str",(SpecimenDefinition)resource,-1);
 else   if (resource instanceof StructureDefinition)   composeStructureDefinition(parent,null,"String_Node_Str",(StructureDefinition)resource,-1);
 else   if (resource instanceof StructureMap)   composeStructureMap(parent,null,"String_Node_Str",(StructureMap)resource,-1);
 else   if (resource instanceof Subscription)   composeSubscription(parent,null,"String_Node_Str",(Subscription)resource,-1);
 else   if (resource instanceof Substance)   composeSubstance(parent,null,"String_Node_Str",(Substance)resource,-1);
 else   if (resource instanceof SubstancePolymer)   composeSubstancePolymer(parent,null,"String_Node_Str",(SubstancePolymer)resource,-1);
 else   if (resource instanceof SubstanceReferenceInformation)   composeSubstanceReferenceInformation(parent,null,"String_Node_Str",(SubstanceReferenceInformation)resource,-1);
 else   if (resource instanceof SubstanceSpecification)   composeSubstanceSpecification(parent,null,"String_Node_Str",(SubstanceSpecification)resource,-1);
 else   if (resource instanceof SupplyDelivery)   composeSupplyDelivery(parent,null,"String_Node_Str",(SupplyDelivery)resource,-1);
 else   if (resource instanceof SupplyRequest)   composeSupplyRequest(parent,null,"String_Node_Str",(SupplyRequest)resource,-1);
 else   if (resource instanceof Task)   composeTask(parent,null,"String_Node_Str",(Task)resource,-1);
 else   if (resource instanceof TerminologyCapabilities)   composeTerminologyCapabilities(parent,null,"String_Node_Str",(TerminologyCapabilities)resource,-1);
 else   if (resource instanceof TestReport)   composeTestReport(parent,null,"String_Node_Str",(TestReport)resource,-1);
 else   if (resource instanceof TestScript)   composeTestScript(parent,null,"String_Node_Str",(TestScript)resource,-1);
 else   if (resource instanceof UserSession)   composeUserSession(parent,null,"String_Node_Str",(UserSession)resource,-1);
 else   if (resource instanceof ValueSet)   composeValueSet(parent,null,"String_Node_Str",(ValueSet)resource,-1);
 else   if (resource instanceof VerificationResult)   composeVerificationResult(parent,null,"String_Node_Str",(VerificationResult)resource,-1);
 else   if (resource instanceof VisionPrescription)   composeVisionPrescription(parent,null,"String_Node_Str",(VisionPrescription)resource,-1);
 else   throw new Error("String_Node_Str" + resource.getClass().getName());
}