From b213d00f6d3a66784d370f7bfa58a0162f73c3cb Mon Sep 17 00:00:00 2001 From: dotasek Date: Mon, 25 Jul 2022 16:10:13 -0400 Subject: [PATCH] Fix for #869 Use backbone element conversion (#870) * Add new copyBackboneElement methods Plus bring BackboneElement40_50 closer to matching Element40_50 * BackboneElement 40_50 * Undo replacement in commented code. * add new conv30_50 copyBackboneElement methods * BackboneElement 30_50 * add new conv30_40 copyBackboneElement methods * Fix typos + reference * BackboneElement 30_40 * add new conv14_50 copyBackboneElement methods * BackboneElement 14_50 * add new conv14_40 copyBackboneElement methods * BackboneElement 14_40 * add new conv14_30 copyBackboneElement methods * BackboneElement 14_30 * add new conv10_50 copyBackboneElement methods * BackboneElement 10_50 * Add new conv10_40 copyBackboneElement methods * BackboneElement 10_40 * Add new conv10_30 copyBackboneElement methods * BackboneElement 10_30 * Remove incorrect, commented code * Add minimal examples for backbone element tests * Add test code Co-authored-by: dotasek --- .../conv10_30/VersionConvertor_10_30.java | 16 +++ .../datatypes10_30/BackboneElement10_30.java | 26 +++++ .../AllergyIntolerance10_30.java | 4 +- .../resources10_30/Appointment10_30.java | 4 +- .../resources10_30/AuditEvent10_30.java | 20 ++-- .../conv10_30/resources10_30/Bundle10_30.java | 20 ++-- .../resources10_30/CarePlan10_30.java | 8 +- .../ClinicalImpression10_30.java | 4 +- .../resources10_30/Communication10_30.java | 4 +- .../CommunicationRequest10_30.java | 4 +- .../resources10_30/Composition10_30.java | 12 +- .../resources10_30/ConceptMap10_30.java | 12 +- .../resources10_30/Condition10_30.java | 8 +- .../resources10_30/Conformance10_30.java | 56 +++++----- .../resources10_30/Contract10_30.java | 36 +++--- .../resources10_30/DataElement10_30.java | 4 +- .../resources10_30/DetectedIssue10_30.java | 4 +- .../resources10_30/DeviceComponent10_30.java | 4 +- .../resources10_30/DeviceMetric10_30.java | 4 +- .../resources10_30/DiagnosticReport10_30.java | 4 +- .../resources10_30/DocumentManifest10_30.java | 8 +- .../DocumentReference10_30.java | 16 +-- .../resources10_30/Encounter10_30.java | 12 +- .../resources10_30/EpisodeOfCare10_30.java | 4 +- .../FamilyMemberHistory10_30.java | 4 +- .../conv10_30/resources10_30/Group10_30.java | 8 +- .../HealthcareService10_30.java | 8 +- .../resources10_30/ImagingStudy10_30.java | 8 +- .../resources10_30/Immunization10_30.java | 12 +- .../ImmunizationRecommendation10_30.java | 12 +- .../ImplementationGuide10_30.java | 20 ++-- .../conv10_30/resources10_30/List10_30.java | 4 +- .../resources10_30/Location10_30.java | 4 +- .../resources10_30/Medication10_30.java | 8 +- .../MedicationDispense10_30.java | 4 +- .../resources10_30/MessageHeader10_30.java | 12 +- .../resources10_30/NamingSystem10_30.java | 4 +- .../resources10_30/Observation10_30.java | 12 +- .../OperationDefinition10_30.java | 8 +- .../resources10_30/OperationOutcome10_30.java | 4 +- .../resources10_30/Organization10_30.java | 4 +- .../resources10_30/Parameters10_30.java | 4 +- .../resources10_30/Patient10_30.java | 16 +-- .../conv10_30/resources10_30/Person10_30.java | 4 +- .../resources10_30/Practitioner10_30.java | 4 +- .../resources10_30/Procedure10_30.java | 8 +- .../resources10_30/ProcessRequest10_30.java | 4 +- .../resources10_30/Provenance10_30.java | 8 +- .../resources10_30/Questionnaire10_30.java | 8 +- .../QuestionnaireResponse10_30.java | 12 +- .../resources10_30/RiskAssessment10_30.java | 4 +- .../resources10_30/Specimen10_30.java | 6 +- .../StructureDefinition10_30.java | 12 +- .../resources10_30/Subscription10_30.java | 4 +- .../resources10_30/Substance10_30.java | 8 +- .../resources10_30/TestScript10_30.java | 56 +++++----- .../resources10_30/ValueSet10_30.java | 36 +++--- .../conv10_40/VersionConvertor_10_40.java | 15 +++ .../datatypes10_40/BackboneElement10_40.java | 24 ++++ .../AllergyIntolerance10_40.java | 6 +- .../resources10_40/Appointment10_40.java | 4 +- .../resources10_40/AuditEvent10_40.java | 20 ++-- .../conv10_40/resources10_40/Bundle10_40.java | 20 ++-- .../resources10_40/CarePlan10_40.java | 8 +- .../resources10_40/Communication10_40.java | 4 +- .../CommunicationRequest10_40.java | 4 +- .../resources10_40/Composition10_40.java | 12 +- .../resources10_40/ConceptMap10_40.java | 12 +- .../resources10_40/Condition10_40.java | 8 +- .../resources10_40/Conformance10_40.java | 48 ++++---- .../resources10_40/DataElement10_40.java | 2 +- .../resources10_40/DetectedIssue10_40.java | 4 +- .../resources10_40/DeviceMetric10_40.java | 4 +- .../resources10_40/DiagnosticReport10_40.java | 4 +- .../resources10_40/DocumentManifest10_40.java | 4 +- .../DocumentReference10_40.java | 12 +- .../resources10_40/Encounter10_40.java | 12 +- .../resources10_40/EpisodeOfCare10_40.java | 4 +- .../FamilyMemberHistory10_40.java | 4 +- .../conv10_40/resources10_40/Group10_40.java | 8 +- .../HealthcareService10_40.java | 8 +- .../ImplementationGuide10_40.java | 20 ++-- .../conv10_40/resources10_40/List10_40.java | 4 +- .../resources10_40/Location10_40.java | 4 +- .../resources10_40/Medication10_40.java | 4 +- .../MedicationDispense10_40.java | 4 +- .../resources10_40/MessageHeader10_40.java | 12 +- .../resources10_40/NamingSystem10_40.java | 4 +- .../resources10_40/Observation10_40.java | 8 +- .../OperationDefinition10_40.java | 8 +- .../resources10_40/OperationOutcome10_40.java | 4 +- .../resources10_40/Organization10_40.java | 4 +- .../resources10_40/Parameters10_40.java | 4 +- .../resources10_40/Patient10_40.java | 12 +- .../conv10_40/resources10_40/Person10_40.java | 4 +- .../resources10_40/Practitioner10_40.java | 4 +- .../resources10_40/Procedure10_40.java | 4 +- .../resources10_40/Questionnaire10_40.java | 8 +- .../QuestionnaireResponse10_40.java | 12 +- .../resources10_40/RiskAssessment10_40.java | 4 +- .../StructureDefinition10_40.java | 12 +- .../resources10_40/Subscription10_40.java | 4 +- .../resources10_40/Substance10_40.java | 8 +- .../resources10_40/TestScript10_40.java | 56 +++++----- .../resources10_40/ValueSet10_40.java | 36 +++--- .../conv10_50/VersionConvertor_10_50.java | 17 +++ .../datatypes10_50/BackboneElement10_50.java | 24 ++++ .../resources10_50/Appointment10_50.java | 4 +- .../resources10_50/AuditEvent10_50.java | 16 +-- .../conv10_50/resources10_50/Bundle10_50.java | 20 ++-- .../resources10_50/CarePlan10_50.java | 8 +- .../resources10_50/Communication10_50.java | 4 +- .../CommunicationRequest10_50.java | 4 +- .../resources10_50/Composition10_50.java | 12 +- .../resources10_50/ConceptMap10_50.java | 12 +- .../resources10_50/Condition10_50.java | 4 +- .../resources10_50/Conformance10_50.java | 48 ++++---- .../resources10_50/DataElement10_50.java | 2 +- .../resources10_50/DetectedIssue10_50.java | 4 +- .../resources10_50/DeviceMetric10_50.java | 4 +- .../resources10_50/DiagnosticReport10_50.java | 4 +- .../resources10_50/DocumentManifest10_50.java | 4 +- .../DocumentReference10_50.java | 8 +- .../resources10_50/Encounter10_50.java | 12 +- .../resources10_50/EpisodeOfCare10_50.java | 4 +- .../FamilyMemberHistory10_50.java | 4 +- .../conv10_50/resources10_50/Group10_50.java | 8 +- .../HealthcareService10_50.java | 8 +- .../ImplementationGuide10_50.java | 20 ++-- .../conv10_50/resources10_50/List10_50.java | 4 +- .../resources10_50/Location10_50.java | 4 +- .../MedicationDispense10_50.java | 4 +- .../resources10_50/MessageHeader10_50.java | 12 +- .../resources10_50/NamingSystem10_50.java | 4 +- .../resources10_50/Observation10_50.java | 8 +- .../OperationDefinition10_50.java | 8 +- .../resources10_50/OperationOutcome10_50.java | 4 +- .../resources10_50/Parameters10_50.java | 4 +- .../resources10_50/Patient10_50.java | 12 +- .../conv10_50/resources10_50/Person10_50.java | 4 +- .../resources10_50/Practitioner10_50.java | 4 +- .../resources10_50/Provenance10_50.java | 8 +- .../resources10_50/Questionnaire10_50.java | 8 +- .../QuestionnaireResponse10_50.java | 12 +- .../resources10_50/RiskAssessment10_50.java | 4 +- .../StructureDefinition10_50.java | 12 +- .../resources10_50/Substance10_50.java | 4 +- .../resources10_50/TestScript10_50.java | 56 +++++----- .../resources10_50/ValueSet10_50.java | 36 +++--- .../conv14_30/VersionConvertor_14_30.java | 16 +++ .../datatypes14_30/BackboneElement14_30.java | 12 +- .../conv14_30/resources14_30/Bundle14_30.java | 20 ++-- .../resources14_30/CodeSystem14_30.java | 20 ++-- .../CompartmentDefinition14_30.java | 4 +- .../resources14_30/ConceptMap14_30.java | 12 +- .../resources14_30/Conformance14_30.java | 56 +++++----- .../resources14_30/DataElement14_30.java | 4 +- .../ImplementationGuide14_30.java | 20 ++-- .../resources14_30/NamingSystem14_30.java | 4 +- .../OperationDefinition14_30.java | 8 +- .../resources14_30/OperationOutcome14_30.java | 4 +- .../resources14_30/Parameters14_30.java | 4 +- .../resources14_30/Questionnaire14_30.java | 12 +- .../QuestionnaireResponse14_30.java | 8 +- .../StructureDefinition14_30.java | 12 +- .../resources14_30/TestScript14_30.java | 104 +++++++++--------- .../resources14_30/ValueSet14_30.java | 32 +++--- .../conv14_40/VersionConvertor_14_40.java | 16 +++ .../datatypes14_40/BackboneElement14_40.java | 12 +- .../conv14_40/resources14_40/Bundle14_40.java | 20 ++-- .../resources14_40/CodeSystem14_40.java | 20 ++-- .../CompartmentDefinition14_40.java | 4 +- .../resources14_40/ConceptMap14_40.java | 12 +- .../resources14_40/Conformance14_40.java | 48 ++++---- .../resources14_40/DataElement14_40.java | 2 +- .../ImplementationGuide14_40.java | 20 ++-- .../resources14_40/NamingSystem14_40.java | 4 +- .../OperationDefinition14_40.java | 8 +- .../resources14_40/OperationOutcome14_40.java | 4 +- .../resources14_40/Parameters14_40.java | 4 +- .../resources14_40/Questionnaire14_40.java | 12 +- .../QuestionnaireResponse14_40.java | 8 +- .../StructureDefinition14_40.java | 12 +- .../resources14_40/StructureMap14_40.java | 32 +++--- .../resources14_40/ValueSet14_40.java | 32 +++--- .../conv14_50/VersionConvertor_14_50.java | 17 +++ .../datatypes14_50/BackboneElement14_50.java | 12 +- .../conv14_50/resources14_50/Bundle14_50.java | 20 ++-- .../resources14_50/CodeSystem14_50.java | 20 ++-- .../CompartmentDefinition14_50.java | 4 +- .../resources14_50/ConceptMap14_50.java | 12 +- .../resources14_50/Conformance14_50.java | 48 ++++---- .../resources14_50/DataElement14_50.java | 2 +- .../ImplementationGuide14_50.java | 20 ++-- .../resources14_50/NamingSystem14_50.java | 4 +- .../OperationDefinition14_50.java | 8 +- .../resources14_50/OperationOutcome14_50.java | 4 +- .../resources14_50/Parameters14_50.java | 4 +- .../resources14_50/Questionnaire14_50.java | 12 +- .../QuestionnaireResponse14_50.java | 8 +- .../StructureDefinition14_50.java | 12 +- .../resources14_50/StructureMap14_50.java | 32 +++--- .../resources14_50/ValueSet14_50.java | 32 +++--- .../conv30_40/VersionConvertor_30_40.java | 17 +++ .../datatypes30_40/BackboneElement30_40.java | 8 +- .../resources30_40/Account30_40.java | 8 +- .../ActivityDefinition30_40.java | 8 +- .../AllergyIntolerance30_40.java | 4 +- .../resources30_40/Appointment30_40.java | 4 +- .../resources30_40/AuditEvent30_40.java | 20 ++-- .../conv30_40/resources30_40/Bundle30_40.java | 20 ++-- .../CapabilityStatement30_40.java | 52 ++++----- .../resources30_40/CarePlan30_40.java | 8 +- .../resources30_40/CareTeam30_40.java | 4 +- .../ClinicalImpression30_40.java | 8 +- .../resources30_40/CodeSystem30_40.java | 20 ++-- .../resources30_40/Communication30_40.java | 4 +- .../CompartmentDefinition30_40.java | 4 +- .../resources30_40/Composition30_40.java | 16 +-- .../resources30_40/ConceptMap30_40.java | 20 ++-- .../resources30_40/Condition30_40.java | 8 +- .../resources30_40/Consent30_40.java | 24 ++-- .../resources30_40/DataElement30_40.java | 2 +- .../resources30_40/DetectedIssue30_40.java | 4 +- .../resources30_40/DiagnosticReport30_40.java | 4 +- .../resources30_40/DocumentManifest30_40.java | 4 +- .../DocumentReference30_40.java | 12 +- .../resources30_40/Encounter30_40.java | 24 ++-- .../resources30_40/EpisodeOfCare30_40.java | 8 +- .../FamilyMemberHistory30_40.java | 4 +- .../conv30_40/resources30_40/Goal30_40.java | 4 +- .../resources30_40/GraphDefinition30_40.java | 12 +- .../conv30_40/resources30_40/Group30_40.java | 8 +- .../HealthcareService30_40.java | 8 +- .../resources30_40/ImagingStudy30_40.java | 8 +- .../resources30_40/Immunization30_40.java | 4 +- .../ImplementationGuide30_40.java | 20 ++-- .../resources30_40/Linkage30_40.java | 4 +- .../conv30_40/resources30_40/List30_40.java | 4 +- .../resources30_40/Location30_40.java | 4 +- .../resources30_40/Medication30_40.java | 8 +- .../MedicationAdministration30_40.java | 8 +- .../MedicationDispense30_40.java | 8 +- .../MedicationRequest30_40.java | 8 +- .../MessageDefinition30_40.java | 8 +- .../resources30_40/MessageHeader30_40.java | 12 +- .../resources30_40/NamingSystem30_40.java | 4 +- .../resources30_40/Observation30_40.java | 8 +- .../OperationDefinition30_40.java | 12 +- .../resources30_40/OperationOutcome30_40.java | 4 +- .../resources30_40/Organization30_40.java | 4 +- .../resources30_40/Parameters30_40.java | 4 +- .../resources30_40/Patient30_40.java | 12 +- .../conv30_40/resources30_40/Person30_40.java | 4 +- .../resources30_40/PlanDefinition30_40.java | 28 ++--- .../resources30_40/Practitioner30_40.java | 4 +- .../resources30_40/PractitionerRole30_40.java | 8 +- .../resources30_40/Procedure30_40.java | 8 +- .../resources30_40/Provenance30_40.java | 8 +- .../resources30_40/Questionnaire30_40.java | 12 +- .../QuestionnaireResponse30_40.java | 8 +- .../resources30_40/RiskAssessment30_40.java | 4 +- .../resources30_40/SearchParameter30_40.java | 4 +- .../resources30_40/Sequence30_40.java | 16 +-- .../resources30_40/Specimen30_40.java | 12 +- .../StructureDefinition30_40.java | 12 +- .../resources30_40/StructureMap30_40.java | 32 +++--- .../resources30_40/Subscription30_40.java | 4 +- .../resources30_40/Substance30_40.java | 8 +- .../resources30_40/SupplyDelivery30_40.java | 4 +- .../resources30_40/TestReport30_40.java | 36 +++--- .../resources30_40/TestScript30_40.java | 64 +++++------ .../resources30_40/ValueSet30_40.java | 32 +++--- .../conv30_50/VersionConvertor_30_50.java | 15 +++ .../datatypes30_50/BackboneElement30_50.java | 8 +- .../ActivityDefinition30_50.java | 8 +- .../AllergyIntolerance30_50.java | 4 +- .../resources30_50/Appointment30_50.java | 4 +- .../resources30_50/AuditEvent30_50.java | 16 +-- .../conv30_50/resources30_50/Bundle30_50.java | 20 ++-- .../CapabilityStatement30_50.java | 52 ++++----- .../resources30_50/CarePlan30_50.java | 8 +- .../resources30_50/CareTeam30_50.java | 4 +- .../ClinicalImpression30_50.java | 4 +- .../resources30_50/CodeSystem30_50.java | 20 ++-- .../resources30_50/Communication30_50.java | 4 +- .../CompartmentDefinition30_50.java | 4 +- .../resources30_50/Composition30_50.java | 12 +- .../resources30_50/ConceptMap30_50.java | 20 ++-- .../resources30_50/Condition30_50.java | 4 +- .../resources30_50/Consent30_50.java | 4 +- .../resources30_50/DataElement30_50.java | 2 +- .../resources30_50/DetectedIssue30_50.java | 4 +- .../resources30_50/DiagnosticReport30_50.java | 4 +- .../resources30_50/DocumentManifest30_50.java | 4 +- .../DocumentReference30_50.java | 8 +- .../resources30_50/Encounter30_50.java | 24 ++-- .../resources30_50/EpisodeOfCare30_50.java | 8 +- .../FamilyMemberHistory30_50.java | 4 +- .../conv30_50/resources30_50/Goal30_50.java | 4 +- .../resources30_50/GraphDefinition30_50.java | 12 +- .../conv30_50/resources30_50/Group30_50.java | 8 +- .../HealthcareService30_50.java | 8 +- .../resources30_50/ImagingStudy30_50.java | 8 +- .../resources30_50/Immunization30_50.java | 4 +- .../ImplementationGuide30_50.java | 20 ++-- .../resources30_50/Linkage30_50.java | 4 +- .../conv30_50/resources30_50/List30_50.java | 4 +- .../resources30_50/Location30_50.java | 4 +- .../resources30_50/Medication30_50.java | 8 +- .../MedicationAdministration30_50.java | 8 +- .../MedicationDispense30_50.java | 8 +- .../MedicationRequest30_50.java | 8 +- .../MessageDefinition30_50.java | 8 +- .../resources30_50/MessageHeader30_50.java | 12 +- .../resources30_50/NamingSystem30_50.java | 4 +- .../resources30_50/Observation30_50.java | 8 +- .../OperationDefinition30_50.java | 12 +- .../resources30_50/OperationOutcome30_50.java | 4 +- .../resources30_50/Parameters30_50.java | 4 +- .../resources30_50/Patient30_50.java | 12 +- .../conv30_50/resources30_50/Person30_50.java | 4 +- .../resources30_50/PlanDefinition30_50.java | 28 ++--- .../resources30_50/Practitioner30_50.java | 4 +- .../resources30_50/PractitionerRole30_50.java | 8 +- .../resources30_50/Provenance30_50.java | 8 +- .../resources30_50/Questionnaire30_50.java | 12 +- .../QuestionnaireResponse30_50.java | 8 +- .../resources30_50/RiskAssessment30_50.java | 4 +- .../resources30_50/SearchParameter30_50.java | 4 +- .../resources30_50/Specimen30_50.java | 12 +- .../StructureDefinition30_50.java | 12 +- .../resources30_50/StructureMap30_50.java | 32 +++--- .../resources30_50/Substance30_50.java | 4 +- .../resources30_50/SupplyDelivery30_50.java | 4 +- .../resources30_50/TestReport30_50.java | 36 +++--- .../resources30_50/TestScript30_50.java | 64 +++++------ .../resources30_50/ValueSet30_50.java | 32 +++--- .../conv40_50/VersionConvertor_40_50.java | 16 +++ .../datatypes40_50/BackboneElement40_50.java | 16 +-- .../resources40_50/Account40_50.java | 8 +- .../ActivityDefinition40_50.java | 8 +- .../AllergyIntolerance40_50.java | 4 +- .../resources40_50/Appointment40_50.java | 4 +- .../resources40_50/AuditEvent40_50.java | 18 +-- .../BiologicallyDerivedProduct40_50.java | 6 +- .../conv40_50/resources40_50/Bundle40_50.java | 20 ++-- .../CapabilityStatement40_50.java | 52 ++++----- .../resources40_50/CarePlan40_50.java | 8 +- .../resources40_50/CareTeam40_50.java | 4 +- .../resources40_50/ChargeItem40_50.java | 4 +- .../ChargeItemDefinition40_50.java | 12 +- .../conv40_50/resources40_50/Claim40_50.java | 44 ++++---- .../resources40_50/ClaimResponse40_50.java | 48 ++++---- .../ClinicalImpression40_50.java | 4 +- .../resources40_50/CodeSystem40_50.java | 20 ++-- .../resources40_50/Communication40_50.java | 4 +- .../CommunicationRequest40_50.java | 4 +- .../CompartmentDefinition40_50.java | 4 +- .../resources40_50/Composition40_50.java | 12 +- .../resources40_50/ConceptMap40_50.java | 20 ++-- .../resources40_50/Condition40_50.java | 4 +- .../resources40_50/Consent40_50.java | 19 ++-- .../resources40_50/Contract40_50.java | 60 +++++----- .../resources40_50/Coverage40_50.java | 12 +- .../CoverageEligibilityRequest40_50.java | 16 +-- .../resources40_50/DetectedIssue40_50.java | 8 +- .../conv40_50/resources40_50/Device40_50.java | 18 +-- .../resources40_50/DeviceDefinition40_50.java | 18 +-- .../resources40_50/DeviceMetric40_50.java | 4 +- .../resources40_50/DeviceRequest40_50.java | 4 +- .../resources40_50/DiagnosticReport40_50.java | 4 +- .../resources40_50/DocumentManifest40_50.java | 4 +- .../DocumentReference40_50.java | 8 +- .../resources40_50/Encounter40_50.java | 24 ++-- .../resources40_50/EpisodeOfCare40_50.java | 8 +- .../resources40_50/ExampleScenario40_50.java | 32 +++--- .../ExplanationOfBenefit40_50.java | 80 +++++++------- .../FamilyMemberHistory40_50.java | 4 +- .../conv40_50/resources40_50/Goal40_50.java | 4 +- .../resources40_50/GraphDefinition40_50.java | 12 +- .../conv40_50/resources40_50/Group40_50.java | 8 +- .../HealthcareService40_50.java | 12 +- .../resources40_50/ImagingStudy40_50.java | 12 +- .../resources40_50/Immunization40_50.java | 16 +-- .../ImmunizationRecommendation40_50.java | 8 +- .../ImplementationGuide40_50.java | 44 ++++---- .../resources40_50/InsurancePlan40_50.java | 32 +++--- .../resources40_50/Invoice40_50.java | 12 +- .../resources40_50/Linkage40_50.java | 4 +- .../resources40_50/ListResource40_50.java | 4 +- .../resources40_50/Location40_50.java | 8 +- .../resources40_50/Measure40_50.java | 20 ++-- .../resources40_50/MeasureReport40_50.java | 24 ++-- .../resources40_50/Medication40_50.java | 8 +- .../MedicationAdministration40_50.java | 8 +- .../MedicationDispense40_50.java | 8 +- .../MedicationKnowledge40_50.java | 38 +++---- .../MedicationRequest40_50.java | 12 +- .../MessageDefinition40_50.java | 8 +- .../resources40_50/MessageHeader40_50.java | 12 +- .../resources40_50/NamingSystem40_50.java | 4 +- .../resources40_50/NutritionOrder40_50.java | 24 ++-- .../resources40_50/Observation40_50.java | 8 +- .../ObservationDefinition40_50.java | 4 +- .../OperationDefinition40_50.java | 16 +-- .../resources40_50/OperationOutcome40_50.java | 4 +- .../resources40_50/Parameters40_50.java | 4 +- .../resources40_50/Patient40_50.java | 12 +- .../conv40_50/resources40_50/Person40_50.java | 4 +- .../resources40_50/PlanDefinition40_50.java | 28 ++--- .../resources40_50/Practitioner40_50.java | 4 +- .../resources40_50/PractitionerRole40_50.java | 8 +- .../resources40_50/Procedure40_50.java | 8 +- .../resources40_50/Provenance40_50.java | 8 +- .../resources40_50/Questionnaire40_50.java | 16 +-- .../QuestionnaireResponse40_50.java | 8 +- .../resources40_50/RelatedPerson40_50.java | 4 +- .../resources40_50/RiskAssessment40_50.java | 4 +- .../resources40_50/SearchParameter40_50.java | 4 +- .../resources40_50/Specimen40_50.java | 12 +- .../SpecimenDefinition40_50.java | 16 +-- .../StructureDefinition40_50.java | 16 +-- .../resources40_50/StructureMap40_50.java | 32 +++--- .../resources40_50/Substance40_50.java | 4 +- .../SubstanceNucleicAcid40_50.java | 12 +- .../resources40_50/SubstancePolymer40_50.java | 24 ++-- .../resources40_50/SubstanceProtein40_50.java | 4 +- .../SubstanceReferenceInformation40_50.java | 12 +- .../SubstanceSourceMaterial40_50.java | 24 ++-- .../resources40_50/SupplyDelivery40_50.java | 4 +- .../resources40_50/SupplyRequest40_50.java | 4 +- .../conv40_50/resources40_50/Task40_50.java | 12 +- .../TerminologyCapabilities40_50.java | 40 +++---- .../resources40_50/TestReport40_50.java | 36 +++--- .../resources40_50/TestScript40_50.java | 64 +++++------ .../resources40_50/ValueSet40_50.java | 32 +++--- .../VerificationResult40_50.java | 12 +- .../VisionPrescription40_50.java | 8 +- .../conv10_30/BackboneElement10_30Test.java | 47 ++++++++ .../conv10_40/BackboneElement10_40Test.java | 47 ++++++++ .../conv10_50/BackboneElement10_50Test.java | 47 ++++++++ .../conv30_40/BackboneElement30_40Test.java | 47 ++++++++ .../conv30_50/BackboneElement30_50Test.java | 47 ++++++++ .../conv40_50/BackboneElement40_50Test.java | 49 +++++++++ .../test/resources/backbone_element_10.json | 15 +++ .../test/resources/backbone_element_30.json | 15 +++ .../test/resources/backbone_element_40.json | 15 +++ .../test/resources/backbone_element_50.json | 15 +++ 449 files changed, 3218 insertions(+), 2646 deletions(-) create mode 100644 org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/BackboneElement10_30.java create mode 100644 org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/BackboneElement10_40.java create mode 100644 org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/BackboneElement10_50.java create mode 100644 org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv10_30/BackboneElement10_30Test.java create mode 100644 org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv10_40/BackboneElement10_40Test.java create mode 100644 org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv10_50/BackboneElement10_50Test.java create mode 100644 org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv30_40/BackboneElement30_40Test.java create mode 100644 org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv30_50/BackboneElement30_50Test.java create mode 100644 org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv40_50/BackboneElement40_50Test.java create mode 100644 org.hl7.fhir.convertors/src/test/resources/backbone_element_10.json create mode 100644 org.hl7.fhir.convertors/src/test/resources/backbone_element_30.json create mode 100644 org.hl7.fhir.convertors/src/test/resources/backbone_element_40.json create mode 100644 org.hl7.fhir.convertors/src/test/resources/backbone_element_50.json diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/VersionConvertor_10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/VersionConvertor_10_30.java index 7050531cb..2ccac7ce0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/VersionConvertor_10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/VersionConvertor_10_30.java @@ -2,9 +2,11 @@ package org.hl7.fhir.convertors.conv10_30; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_30; import org.hl7.fhir.convertors.context.ConversionContext10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.BackboneElement10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Element10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Type10_30; import org.hl7.fhir.convertors.conv10_30.resources10_30.Resource10_30; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.BackboneElement10_40; import org.hl7.fhir.dstu2.model.CodeableConcept; import org.hl7.fhir.exceptions.FHIRException; @@ -42,12 +44,15 @@ public class VersionConvertor_10_30 { private final BaseAdvisor_10_30 advisor; private final Element10_30 elementConvertor; + + private final BackboneElement10_30 backboneElementConvertor; private final Resource10_30 resourceConvertor; private final Type10_30 typeConvertor; public VersionConvertor_10_30(@Nonnull BaseAdvisor_10_30 advisor) { this.advisor = advisor; this.elementConvertor = new Element10_30(advisor); + this.backboneElementConvertor = new BackboneElement10_30(); this.resourceConvertor = new Resource10_30(advisor); this.typeConvertor = new Type10_30(advisor); } @@ -136,4 +141,15 @@ public class VersionConvertor_10_30 { elementConvertor.copyElement(src, tgt, ConversionContext10_30.INSTANCE.path(), var); } + public void copyBackboneElement(@Nonnull org.hl7.fhir.dstu3.model.BackboneElement src, + @Nonnull org.hl7.fhir.dstu2.model.BackboneElement tgt, + String... var) throws FHIRException { + backboneElementConvertor.copyBackboneElement(src, tgt, var); + } + + public void copyBackboneElement(@Nonnull org.hl7.fhir.dstu2.model.BackboneElement src, + @Nonnull org.hl7.fhir.dstu3.model.BackboneElement tgt, + String... var) throws FHIRException { + backboneElementConvertor.copyBackboneElement(src, tgt, var); + } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/BackboneElement10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/BackboneElement10_30.java new file mode 100644 index 000000000..82346156a --- /dev/null +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/BackboneElement10_30.java @@ -0,0 +1,26 @@ +package org.hl7.fhir.convertors.conv10_30.datatypes10_30; + +import org.hl7.fhir.convertors.context.ConversionContext10_30; +import org.hl7.fhir.convertors.context.ConversionContext10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Extension10_40; +import org.hl7.fhir.exceptions.FHIRException; + +public class BackboneElement10_30 { + static public void copyBackboneElement(org.hl7.fhir.dstu2.model.BackboneElement src, + org.hl7.fhir.dstu3.model.BackboneElement tgt, + String ... var) throws FHIRException { + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt, var); + for (org.hl7.fhir.dstu2.model.Extension e : src.getModifierExtension()) { + tgt.addModifierExtension(Extension10_30.convertExtension(e)); + } + } + + static public void copyBackboneElement(org.hl7.fhir.dstu3.model.BackboneElement src, + org.hl7.fhir.dstu2.model.BackboneElement tgt, + String ... var) throws FHIRException { + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt, var); + for (org.hl7.fhir.dstu3.model.Extension e : src.getModifierExtension()) { + tgt.addModifierExtension(Extension10_30.convertExtension(e)); + } + } +} diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AllergyIntolerance10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AllergyIntolerance10_30.java index eeeec0b64..df64fa93a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AllergyIntolerance10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AllergyIntolerance10_30.java @@ -60,9 +60,7 @@ public class AllergyIntolerance10_30 { if (src == null) return null; org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceReactionComponent tgt = new org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceReactionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); - for (org.hl7.fhir.dstu2.model.Extension extension : src.getModifierExtension()) - tgt.addExtension(Extension10_30.convertExtension(extension)); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSubstance()) tgt.setSubstance(CodeableConcept10_30.convertCodeableConcept(src.getSubstance())); if (src.hasCertainty()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Appointment10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Appointment10_30.java index 7028dac8e..f6c047e59 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Appointment10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Appointment10_30.java @@ -74,7 +74,7 @@ public class Appointment10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept10_30.convertCodeableConcept(t)); if (src.hasActor()) @@ -90,7 +90,7 @@ public class Appointment10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept10_30.convertCodeableConcept(t)); if (src.hasActor()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AuditEvent10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AuditEvent10_30.java index 757e5768f..51d0c6710 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AuditEvent10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AuditEvent10_30.java @@ -121,7 +121,7 @@ public class AuditEvent10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole()) tgt.addRole(CodeableConcept10_30.convertCodeableConcept(t)); if (src.hasReference()) @@ -150,7 +150,7 @@ public class AuditEvent10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole()) tgt.addRole(CodeableConcept10_30.convertCodeableConcept(t)); if (src.hasReference()) @@ -179,7 +179,7 @@ public class AuditEvent10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasAddressElement()) tgt.setAddressElement(String10_30.convertString(src.getAddressElement())); if (src.hasType()) @@ -191,7 +191,7 @@ public class AuditEvent10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasAddressElement()) tgt.setAddressElement(String10_30.convertString(src.getAddressElement())); if (src.hasType()) @@ -203,7 +203,7 @@ public class AuditEvent10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier())); if (src.hasReference()) @@ -230,7 +230,7 @@ public class AuditEvent10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier())); if (src.hasReference()) @@ -257,7 +257,7 @@ public class AuditEvent10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(String10_30.convertString(src.getTypeElement())); if (src.hasValueElement()) @@ -269,7 +269,7 @@ public class AuditEvent10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(String10_30.convertString(src.getTypeElement())); if (src.hasValueElement()) @@ -387,7 +387,7 @@ public class AuditEvent10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSiteElement()) tgt.setSiteElement(String10_30.convertString(src.getSiteElement())); if (src.hasIdentifier()) @@ -400,7 +400,7 @@ public class AuditEvent10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventSourceComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSiteElement()) tgt.setSiteElement(String10_30.convertString(src.getSiteElement())); if (src.hasIdentifier()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Bundle10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Bundle10_30.java index 5da42718a..bc42bf0ed 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Bundle10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Bundle10_30.java @@ -55,7 +55,7 @@ public class Bundle10_30 { if (advisor.ignoreEntry(src, FhirPublication.DSTU2)) return null; org.hl7.fhir.dstu2.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); if (src.hasFullUrlElement()) @@ -79,7 +79,7 @@ public class Bundle10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); if (src.hasFullUrlElement()) @@ -99,7 +99,7 @@ public class Bundle10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasMethod()) tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); if (src.hasUrlElement()) @@ -119,7 +119,7 @@ public class Bundle10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryRequestComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasMethod()) tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); if (src.hasUrlElement()) @@ -139,7 +139,7 @@ public class Bundle10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasStatusElement()) tgt.setStatusElement(String10_30.convertString(src.getStatusElement())); if (src.hasLocationElement()) @@ -155,7 +155,7 @@ public class Bundle10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasStatusElement()) tgt.setStatusElement(String10_30.convertString(src.getStatusElement())); if (src.hasLocationElement()) @@ -171,7 +171,7 @@ public class Bundle10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); if (src.hasScoreElement()) @@ -183,7 +183,7 @@ public class Bundle10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); if (src.hasScoreElement()) @@ -195,7 +195,7 @@ public class Bundle10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasRelationElement()) tgt.setRelationElement(String10_30.convertString(src.getRelationElement())); if (src.hasUrlElement()) @@ -207,7 +207,7 @@ public class Bundle10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasRelationElement()) tgt.setRelationElement(String10_30.convertString(src.getRelationElement())); if (src.hasUrlElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/CarePlan10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/CarePlan10_30.java index 9d81c0014..51a34c79c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/CarePlan10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/CarePlan10_30.java @@ -69,7 +69,7 @@ public class CarePlan10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.Annotation t : src.getProgress()) tgt.addProgress(Annotation10_30.convertAnnotation(t)); if (src.hasReference()) @@ -83,7 +83,7 @@ public class CarePlan10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.Annotation t : src.getProgress()) tgt.addProgress(Annotation10_30.convertAnnotation(t)); if (src.hasReference()) @@ -97,7 +97,7 @@ public class CarePlan10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept10_30.convertCodeableConcept(src.getCategory())); if (src.hasCode()) @@ -132,7 +132,7 @@ public class CarePlan10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept10_30.convertCodeableConcept(src.getCategory())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ClinicalImpression10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ClinicalImpression10_30.java index 4a27aaa4e..f53be89bf 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ClinicalImpression10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ClinicalImpression10_30.java @@ -72,7 +72,7 @@ public class ClinicalImpression10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent tgt = new org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasItem()) tgt.setItem(CodeableConcept10_30.convertCodeableConcept(src.getItem())); return tgt; @@ -82,7 +82,7 @@ public class ClinicalImpression10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionFindingComponent tgt = new org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionFindingComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasItemCodeableConcept()) try { if (src.hasItemCodeableConcept()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Communication10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Communication10_30.java index 4a31300c0..0ec05a439 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Communication10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Communication10_30.java @@ -77,7 +77,7 @@ public class Communication10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent())); return tgt; @@ -87,7 +87,7 @@ public class Communication10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/CommunicationRequest10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/CommunicationRequest10_30.java index eff95e366..f37d6e187 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/CommunicationRequest10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/CommunicationRequest10_30.java @@ -83,7 +83,7 @@ public class CommunicationRequest10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent())); return tgt; @@ -93,7 +93,7 @@ public class CommunicationRequest10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestPayloadComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Composition10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Composition10_30.java index aa0457055..ba64bfafe 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Composition10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Composition10_30.java @@ -141,7 +141,7 @@ public class Composition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); tgt.setMode(src.getMode().stream() .map(Composition10_30::convertCompositionAttestationMode) .collect(Collectors.toList())); @@ -156,7 +156,7 @@ public class Composition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); tgt.setMode(src.getMode().stream() .map(Composition10_30::convertCompositionAttestationMode) .collect(Collectors.toList())); @@ -171,7 +171,7 @@ public class Composition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCode()) tgt.addCode(CodeableConcept10_30.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -184,7 +184,7 @@ public class Composition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCode()) tgt.addCode(CodeableConcept10_30.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -247,7 +247,7 @@ public class Composition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu3.model.Composition.SectionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasTitleElement()) tgt.setTitleElement(String10_30.convertString(src.getTitleElement())); if (src.hasCode()) @@ -274,7 +274,7 @@ public class Composition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu2.model.Composition.SectionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasTitleElement()) tgt.setTitleElement(String10_30.convertString(src.getTitleElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ConceptMap10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ConceptMap10_30.java index cc6b960a8..bd6752b1d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ConceptMap10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ConceptMap10_30.java @@ -214,7 +214,7 @@ public class ConceptMap10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasElementElement()) tgt.setPropertyElement(Uri10_30.convertUri(src.getElementElement())); if (src.hasCodeSystemElement()) @@ -228,7 +228,7 @@ public class ConceptMap10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasPropertyElement()) tgt.setElementElement(Uri10_30.convertUri(src.getPropertyElement())); if (src.hasSystemElement()) @@ -244,7 +244,7 @@ public class ConceptMap10_30 { return res; for (org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent t : src.getTarget()) { org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); tgt.setCode(src.getCode()); tgt.addTarget(convertTargetElementComponent(t)); res.add(new SourceElementComponentWrapper<>(tgt, src.getCodeSystem(), t.getCodeSystem())); @@ -256,7 +256,7 @@ public class ConceptMap10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); tgt.setCodeSystem(g.getSource()); if (src.hasCodeElement()) tgt.setCodeElement(Code10_30.convertCode(src.getCodeElement())); @@ -269,7 +269,7 @@ public class ConceptMap10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); tgt.setCodeSystem(g.getTarget()); if (src.hasCodeElement()) tgt.setCodeElement(Code10_30.convertCode(src.getCodeElement())); @@ -288,7 +288,7 @@ public class ConceptMap10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code10_30.convertCode(src.getCodeElement())); if (src.hasEquivalence()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Condition10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Condition10_30.java index 2ea950984..c705d7758 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Condition10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Condition10_30.java @@ -91,7 +91,7 @@ public class Condition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept cc : src.getCode()) tgt.setCode(CodeableConcept10_30.convertCodeableConcept(cc)); for (org.hl7.fhir.dstu3.model.Reference t : src.getDetail()) tgt.addDetail(Reference10_30.convertReference(t)); @@ -102,7 +102,7 @@ public class Condition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.dstu3.model.Condition.ConditionEvidenceComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.addCode(CodeableConcept10_30.convertCodeableConcept(src.getCode())); for (org.hl7.fhir.dstu2.model.Reference t : src.getDetail()) tgt.addDetail(Reference10_30.convertReference(t)); @@ -113,7 +113,7 @@ public class Condition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.dstu3.model.Condition.ConditionStageComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSummary()) tgt.setSummary(CodeableConcept10_30.convertCodeableConcept(src.getSummary())); for (org.hl7.fhir.dstu2.model.Reference t : src.getAssessment()) @@ -125,7 +125,7 @@ public class Condition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSummary()) tgt.setSummary(CodeableConcept10_30.convertCodeableConcept(src.getSummary())); for (org.hl7.fhir.dstu3.model.Reference t : src.getAssessment()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Conformance10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Conformance10_30.java index d063fbc95..0d6e8c3ee 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Conformance10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Conformance10_30.java @@ -179,7 +179,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertDocumentMode(src.getModeElement())); if (src.hasDocumentationElement()) @@ -193,7 +193,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertDocumentMode(src.getModeElement())); if (src.hasDocumentationElement()) @@ -245,7 +245,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasDescriptionElement()) tgt.setDescriptionElement(String10_30.convertString(src.getDescriptionElement())); if (src.hasUrlElement()) @@ -257,7 +257,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasDescriptionElement()) tgt.setDescriptionElement(String10_30.convertString(src.getDescriptionElement())); if (src.hasUrlElement()) @@ -269,7 +269,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t)); if (src.hasReliableCacheElement()) @@ -285,7 +285,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t)); if (src.hasReliableCacheElement()) @@ -301,7 +301,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasProtocol()) tgt.setProtocol(Coding10_30.convertCoding(src.getProtocol())); if (src.hasAddressElement()) @@ -313,7 +313,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasProtocol()) tgt.setProtocol(Coding10_30.convertCoding(src.getProtocol())); if (src.hasAddressElement()) @@ -325,7 +325,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEventComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEventComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(Coding10_30.convertCoding(src.getCode())); if (src.hasCategory()) @@ -347,7 +347,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEventComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(Coding10_30.convertCoding(src.getCode())); if (src.hasCategory()) @@ -369,7 +369,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertRestfulConformanceMode(src.getModeElement())); if (src.hasDocumentationElement()) @@ -394,7 +394,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertRestfulConformanceMode(src.getModeElement())); if (src.hasDocumentationElement()) @@ -429,7 +429,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -441,7 +441,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -453,7 +453,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code10_30.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -483,7 +483,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code10_30.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -513,7 +513,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasDefinitionElement()) @@ -529,7 +529,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasDefinitionElement()) @@ -545,7 +545,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityCertificateComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityCertificateComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code10_30.convertCode(src.getTypeElement())); if (src.hasBlobElement()) @@ -557,7 +557,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityCertificateComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityCertificateComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code10_30.convertCode(src.getTypeElement())); if (src.hasBlobElement()) @@ -569,7 +569,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCorsElement()) tgt.setCorsElement(Boolean10_30.convertBoolean(src.getCorsElement())); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getService()) @@ -585,7 +585,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCorsElement()) tgt.setCorsElement(Boolean10_30.convertBoolean(src.getCorsElement())); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getService()) @@ -601,7 +601,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementSoftwareComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasVersionElement()) @@ -615,7 +615,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasVersionElement()) @@ -755,7 +755,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement())); if (src.hasDocumentationElement()) @@ -767,7 +767,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement())); if (src.hasDocumentationElement()) @@ -861,7 +861,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement())); if (src.hasDocumentationElement()) @@ -873,7 +873,7 @@ public class Conformance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement())); if (src.hasDocumentationElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Contract10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Contract10_30.java index 6129455cd..c9af6b489 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Contract10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Contract10_30.java @@ -15,7 +15,7 @@ public class Contract10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Contract.AgentComponent tgt = new org.hl7.fhir.dstu3.model.Contract.AgentComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasEntity()) tgt.setActor(Reference10_30.convertReference(src.getEntity())); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole()) @@ -27,7 +27,7 @@ public class Contract10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Contract.ActorComponent tgt = new org.hl7.fhir.dstu2.model.Contract.ActorComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasActor()) tgt.setEntity(Reference10_30.convertReference(src.getActor())); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole()) @@ -39,7 +39,7 @@ public class Contract10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Contract.ComputableLanguageComponent tgt = new org.hl7.fhir.dstu3.model.Contract.ComputableLanguageComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent())); return tgt; @@ -49,7 +49,7 @@ public class Contract10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Contract.ComputableLanguageComponent tgt = new org.hl7.fhir.dstu2.model.Contract.ComputableLanguageComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent())); return tgt; @@ -139,7 +139,7 @@ public class Contract10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Contract.FriendlyLanguageComponent tgt = new org.hl7.fhir.dstu3.model.Contract.FriendlyLanguageComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent())); return tgt; @@ -149,7 +149,7 @@ public class Contract10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Contract.FriendlyLanguageComponent tgt = new org.hl7.fhir.dstu2.model.Contract.FriendlyLanguageComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent())); return tgt; @@ -159,7 +159,7 @@ public class Contract10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Contract.LegalLanguageComponent tgt = new org.hl7.fhir.dstu2.model.Contract.LegalLanguageComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent())); return tgt; @@ -169,7 +169,7 @@ public class Contract10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Contract.LegalLanguageComponent tgt = new org.hl7.fhir.dstu3.model.Contract.LegalLanguageComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getContent())); return tgt; @@ -179,7 +179,7 @@ public class Contract10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Contract.SignatoryComponent tgt = new org.hl7.fhir.dstu3.model.Contract.SignatoryComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(Coding10_30.convertCoding(src.getType())); if (src.hasParty()) @@ -193,7 +193,7 @@ public class Contract10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Contract.SignatoryComponent tgt = new org.hl7.fhir.dstu2.model.Contract.SignatoryComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(Coding10_30.convertCoding(src.getType())); if (src.hasParty()) @@ -207,7 +207,7 @@ public class Contract10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Contract.TermActorComponent tgt = new org.hl7.fhir.dstu2.model.Contract.TermActorComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasActor()) tgt.setEntity(Reference10_30.convertReference(src.getActor())); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole()) @@ -219,7 +219,7 @@ public class Contract10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Contract.TermAgentComponent tgt = new org.hl7.fhir.dstu3.model.Contract.TermAgentComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasEntity()) tgt.setActor(Reference10_30.convertReference(src.getEntity())); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole()) @@ -231,7 +231,7 @@ public class Contract10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Contract.TermComponent tgt = new org.hl7.fhir.dstu3.model.Contract.TermComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier())); if (src.hasIssuedElement()) @@ -260,7 +260,7 @@ public class Contract10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Contract.TermComponent tgt = new org.hl7.fhir.dstu2.model.Contract.TermComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier())); if (src.hasIssuedElement()) @@ -289,7 +289,7 @@ public class Contract10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Contract.TermValuedItemComponent tgt = new org.hl7.fhir.dstu2.model.Contract.TermValuedItemComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasEntity()) tgt.setEntity(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getEntity())); if (src.hasIdentifier()) @@ -313,7 +313,7 @@ public class Contract10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Contract.TermValuedItemComponent tgt = new org.hl7.fhir.dstu3.model.Contract.TermValuedItemComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasEntity()) tgt.setEntity(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getEntity())); if (src.hasIdentifier()) @@ -337,7 +337,7 @@ public class Contract10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Contract.ValuedItemComponent tgt = new org.hl7.fhir.dstu2.model.Contract.ValuedItemComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasEntity()) tgt.setEntity(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getEntity())); if (src.hasIdentifier()) @@ -361,7 +361,7 @@ public class Contract10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Contract.ValuedItemComponent tgt = new org.hl7.fhir.dstu3.model.Contract.ValuedItemComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasEntity()) tgt.setEntity(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getEntity())); if (src.hasIdentifier()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DataElement10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DataElement10_30.java index d3df8ec8b..91c1afcd2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DataElement10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DataElement10_30.java @@ -124,7 +124,7 @@ public class DataElement10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent tgt = new org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id10_30.convertId(src.getIdentityElement())); if (src.hasUriElement()) @@ -140,7 +140,7 @@ public class DataElement10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent tgt = new org.hl7.fhir.dstu2.model.DataElement.DataElementMappingComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id10_30.convertId(src.getIdentityElement())); if (src.hasUriElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DetectedIssue10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DetectedIssue10_30.java index dc6042117..8606560ec 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DetectedIssue10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DetectedIssue10_30.java @@ -71,7 +71,7 @@ public class DetectedIssue10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasAction()) tgt.setAction(CodeableConcept10_30.convertCodeableConcept(src.getAction())); if (src.hasDate()) @@ -85,7 +85,7 @@ public class DetectedIssue10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasAction()) tgt.setAction(CodeableConcept10_30.convertCodeableConcept(src.getAction())); if (src.hasDate()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DeviceComponent10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DeviceComponent10_30.java index f8bd7eddc..e4581ba03 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DeviceComponent10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DeviceComponent10_30.java @@ -70,7 +70,7 @@ public class DeviceComponent10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.DeviceComponent.DeviceComponentProductionSpecificationComponent tgt = new org.hl7.fhir.dstu3.model.DeviceComponent.DeviceComponentProductionSpecificationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSpecType()) tgt.setSpecType(CodeableConcept10_30.convertCodeableConcept(src.getSpecType())); if (src.hasComponentId()) @@ -84,7 +84,7 @@ public class DeviceComponent10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DeviceComponent.DeviceComponentProductionSpecificationComponent tgt = new org.hl7.fhir.dstu2.model.DeviceComponent.DeviceComponentProductionSpecificationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSpecType()) tgt.setSpecType(CodeableConcept10_30.convertCodeableConcept(src.getSpecType())); if (src.hasComponentId()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DeviceMetric10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DeviceMetric10_30.java index 94976db40..cc076fe6e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DeviceMetric10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DeviceMetric10_30.java @@ -70,7 +70,7 @@ public class DeviceMetric10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.dstu3.model.DeviceMetric.DeviceMetricCalibrationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertDeviceMetricCalibrationType(src.getTypeElement())); if (src.hasState()) @@ -84,7 +84,7 @@ public class DeviceMetric10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertDeviceMetricCalibrationType(src.getTypeElement())); if (src.hasState()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DiagnosticReport10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DiagnosticReport10_30.java index d2a3055cd..e68c7b8f8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DiagnosticReport10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DiagnosticReport10_30.java @@ -89,7 +89,7 @@ public class DiagnosticReport10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCommentElement()) tgt.setCommentElement(String10_30.convertString(src.getCommentElement())); if (src.hasLink()) @@ -101,7 +101,7 @@ public class DiagnosticReport10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCommentElement()) tgt.setCommentElement(String10_30.convertString(src.getCommentElement())); if (src.hasLink()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DocumentManifest10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DocumentManifest10_30.java index a79e9044e..fab015de3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DocumentManifest10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DocumentManifest10_30.java @@ -77,7 +77,7 @@ public class DocumentManifest10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestContentComponent tgt = new org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestContentComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasP()) tgt.setP(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getP())); return tgt; @@ -87,7 +87,7 @@ public class DocumentManifest10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestContentComponent tgt = new org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestContentComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasP()) tgt.setP(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getP())); return tgt; @@ -97,7 +97,7 @@ public class DocumentManifest10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier())); if (src.hasRef()) @@ -109,7 +109,7 @@ public class DocumentManifest10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier())); if (src.hasRef()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DocumentReference10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DocumentReference10_30.java index 873f34d5e..acbf99939 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DocumentReference10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DocumentReference10_30.java @@ -131,7 +131,7 @@ public class DocumentReference10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasAttachment()) tgt.setAttachment(Attachment10_30.convertAttachment(src.getAttachment())); if (src.hasFormat()) @@ -143,7 +143,7 @@ public class DocumentReference10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContentComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasAttachment()) tgt.setAttachment(Attachment10_30.convertAttachment(src.getAttachment())); for (org.hl7.fhir.dstu2.model.Coding t : src.getFormat()) tgt.setFormat(Coding10_30.convertCoding(t)); @@ -154,7 +154,7 @@ public class DocumentReference10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasEncounter()) tgt.setEncounter(Reference10_30.convertReference(src.getEncounter())); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getEvent()) @@ -176,7 +176,7 @@ public class DocumentReference10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasEncounter()) tgt.setEncounter(Reference10_30.convertReference(src.getEncounter())); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getEvent()) @@ -198,7 +198,7 @@ public class DocumentReference10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextRelatedComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier())); if (src.hasRef()) @@ -210,7 +210,7 @@ public class DocumentReference10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextRelatedComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextRelatedComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier())); if (src.hasRef()) @@ -222,7 +222,7 @@ public class DocumentReference10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertDocumentRelationshipType(src.getCodeElement())); if (src.hasTarget()) @@ -234,7 +234,7 @@ public class DocumentReference10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertDocumentRelationshipType(src.getCodeElement())); if (src.hasTarget()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Encounter10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Encounter10_30.java index f07da9bdd..ef931e9dd 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Encounter10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Encounter10_30.java @@ -145,7 +145,7 @@ public class Encounter10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterHospitalizationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasPreAdmissionIdentifier()) tgt.setPreAdmissionIdentifier(Identifier10_30.convertIdentifier(src.getPreAdmissionIdentifier())); if (src.hasOrigin()) @@ -171,7 +171,7 @@ public class Encounter10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasPreAdmissionIdentifier()) tgt.setPreAdmissionIdentifier(Identifier10_30.convertIdentifier(src.getPreAdmissionIdentifier())); if (src.hasOrigin()) @@ -197,7 +197,7 @@ public class Encounter10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLocation()) tgt.setLocation(Reference10_30.convertReference(src.getLocation())); if (src.hasStatus()) @@ -211,7 +211,7 @@ public class Encounter10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLocation()) tgt.setLocation(Reference10_30.convertReference(src.getLocation())); if (src.hasStatus()) @@ -275,7 +275,7 @@ public class Encounter10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept10_30.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -289,7 +289,7 @@ public class Encounter10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept10_30.convertCodeableConcept(t)); if (src.hasPeriod()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/EpisodeOfCare10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/EpisodeOfCare10_30.java index a293415fd..f820cc292 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/EpisodeOfCare10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/EpisodeOfCare10_30.java @@ -127,7 +127,7 @@ public class EpisodeOfCare10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasStatus()) tgt.setStatusElement(convertEpisodeOfCareStatus(src.getStatusElement())); if (src.hasPeriod()) @@ -139,7 +139,7 @@ public class EpisodeOfCare10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.dstu3.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasStatus()) tgt.setStatusElement(convertEpisodeOfCareStatus(src.getStatusElement())); if (src.hasPeriod()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/FamilyMemberHistory10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/FamilyMemberHistory10_30.java index ddb9a47fa..533b12688 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/FamilyMemberHistory10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/FamilyMemberHistory10_30.java @@ -124,7 +124,7 @@ public class FamilyMemberHistory10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.dstu3.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_30.convertCodeableConcept(src.getCode())); if (src.hasOutcome()) @@ -138,7 +138,7 @@ public class FamilyMemberHistory10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_30.convertCodeableConcept(src.getCode())); if (src.hasOutcome()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Group10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Group10_30.java index 456eed62d..e3ce5089f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Group10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Group10_30.java @@ -64,7 +64,7 @@ public class Group10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.dstu3.model.Group.GroupCharacteristicComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_30.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -80,7 +80,7 @@ public class Group10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_30.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -96,7 +96,7 @@ public class Group10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupMemberComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasEntity()) tgt.setEntity(Reference10_30.convertReference(src.getEntity())); if (src.hasPeriod()) @@ -110,7 +110,7 @@ public class Group10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.dstu3.model.Group.GroupMemberComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasEntity()) tgt.setEntity(Reference10_30.convertReference(src.getEntity())); if (src.hasPeriod()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/HealthcareService10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/HealthcareService10_30.java index 10451ef40..d3a43075a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/HealthcareService10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/HealthcareService10_30.java @@ -178,7 +178,7 @@ public class HealthcareService10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(HealthcareService10_30::convertDaysOfWeek) .collect(Collectors.toList())); @@ -195,7 +195,7 @@ public class HealthcareService10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(HealthcareService10_30::convertDaysOfWeek) .collect(Collectors.toList())); @@ -212,7 +212,7 @@ public class HealthcareService10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasDescriptionElement()) tgt.setDescriptionElement(String10_30.convertString(src.getDescriptionElement())); if (src.hasDuring()) @@ -224,7 +224,7 @@ public class HealthcareService10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasDescriptionElement()) tgt.setDescriptionElement(String10_30.convertString(src.getDescriptionElement())); if (src.hasDuring()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ImagingStudy10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ImagingStudy10_30.java index c0adc0278..2e15d7a43 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ImagingStudy10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ImagingStudy10_30.java @@ -86,7 +86,7 @@ public class ImagingStudy10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesComponent tgt = new org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasUidElement()) tgt.setUidElement(Oid10_30.convertOid(src.getUidElement())); if (src.hasNumberElement()) @@ -114,7 +114,7 @@ public class ImagingStudy10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent tgt = new org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasUidElement()) tgt.setUidElement(Oid10_30.convertOid(src.getUidElement())); if (src.hasNumberElement()) @@ -142,7 +142,7 @@ public class ImagingStudy10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent tgt = new org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasUidElement()) tgt.setUidElement(Oid10_30.convertOid(src.getUidElement())); if (src.hasNumberElement()) @@ -158,7 +158,7 @@ public class ImagingStudy10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesInstanceComponent tgt = new org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesInstanceComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasUidElement()) tgt.setUidElement(Oid10_30.convertOid(src.getUidElement())); if (src.hasNumberElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Immunization10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Immunization10_30.java index ad283741a..94046093e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Immunization10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Immunization10_30.java @@ -116,7 +116,7 @@ public class Immunization10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Immunization.ImmunizationExplanationComponent tgt = new org.hl7.fhir.dstu2.model.Immunization.ImmunizationExplanationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReason()) tgt.addReason(CodeableConcept10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonNotGiven()) @@ -128,7 +128,7 @@ public class Immunization10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Immunization.ImmunizationExplanationComponent tgt = new org.hl7.fhir.dstu3.model.Immunization.ImmunizationExplanationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) tgt.addReason(CodeableConcept10_30.convertCodeableConcept(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReasonNotGiven()) @@ -140,7 +140,7 @@ public class Immunization10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Immunization.ImmunizationReactionComponent tgt = new org.hl7.fhir.dstu3.model.Immunization.ImmunizationReactionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasDate()) tgt.setDateElement(DateTime10_30.convertDateTime(src.getDateElement())); if (src.hasDetail()) @@ -154,7 +154,7 @@ public class Immunization10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Immunization.ImmunizationReactionComponent tgt = new org.hl7.fhir.dstu2.model.Immunization.ImmunizationReactionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasDate()) tgt.setDateElement(DateTime10_30.convertDateTime(src.getDateElement())); if (src.hasDetail()) @@ -168,7 +168,7 @@ public class Immunization10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Immunization.ImmunizationVaccinationProtocolComponent tgt = new org.hl7.fhir.dstu2.model.Immunization.ImmunizationVaccinationProtocolComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasDoseSequenceElement()) tgt.setDoseSequenceElement(PositiveInt10_30.convertPositiveInt(src.getDoseSequenceElement())); if (src.hasDescriptionElement()) @@ -192,7 +192,7 @@ public class Immunization10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Immunization.ImmunizationVaccinationProtocolComponent tgt = new org.hl7.fhir.dstu3.model.Immunization.ImmunizationVaccinationProtocolComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasDoseSequenceElement()) tgt.setDoseSequenceElement(PositiveInt10_30.convertPositiveInt(src.getDoseSequenceElement())); if (src.hasDescriptionElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ImmunizationRecommendation10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ImmunizationRecommendation10_30.java index b5ef8177e..fe30f9ba7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ImmunizationRecommendation10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ImmunizationRecommendation10_30.java @@ -43,7 +43,7 @@ public class ImmunizationRecommendation10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent tgt = new org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasDate()) tgt.setDateElement(DateTime10_30.convertDateTime(src.getDateElement())); if (src.hasVaccineCode()) @@ -67,7 +67,7 @@ public class ImmunizationRecommendation10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent tgt = new org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasDate()) tgt.setDateElement(DateTime10_30.convertDateTime(src.getDateElement())); if (src.hasVaccineCode()) @@ -91,7 +91,7 @@ public class ImmunizationRecommendation10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent tgt = new org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_30.convertCodeableConcept(src.getCode())); if (src.hasValueElement()) @@ -103,7 +103,7 @@ public class ImmunizationRecommendation10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent tgt = new org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_30.convertCodeableConcept(src.getCode())); if (src.hasValueElement()) @@ -115,7 +115,7 @@ public class ImmunizationRecommendation10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent tgt = new org.hl7.fhir.dstu2.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasDoseSequence()) tgt.setDoseSequence(src.getDoseSequence()); if (src.hasDescriptionElement()) @@ -131,7 +131,7 @@ public class ImmunizationRecommendation10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent tgt = new org.hl7.fhir.dstu3.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationProtocolComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasDoseSequence()) tgt.setDoseSequence(src.getDoseSequence()); if (src.hasDescriptionElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ImplementationGuide10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ImplementationGuide10_30.java index d8f3a288c..85a245fb1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ImplementationGuide10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ImplementationGuide10_30.java @@ -238,7 +238,7 @@ public class ImplementationGuide10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertGuideDependencyType(src.getTypeElement())); if (src.hasUriElement()) @@ -250,7 +250,7 @@ public class ImplementationGuide10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertGuideDependencyType(src.getTypeElement())); if (src.hasUriElement()) @@ -262,7 +262,7 @@ public class ImplementationGuide10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code10_30.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -274,7 +274,7 @@ public class ImplementationGuide10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code10_30.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -286,7 +286,7 @@ public class ImplementationGuide10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasDescriptionElement()) @@ -300,7 +300,7 @@ public class ImplementationGuide10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasDescriptionElement()) @@ -314,7 +314,7 @@ public class ImplementationGuide10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); tgt.setExample(src.getPurpose() == org.hl7.fhir.dstu2.model.ImplementationGuide.GuideResourcePurpose.EXAMPLE); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); @@ -333,7 +333,7 @@ public class ImplementationGuide10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageResourceComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageResourceComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.getExample()) tgt.setPurpose(org.hl7.fhir.dstu2.model.ImplementationGuide.GuideResourcePurpose.EXAMPLE); else @@ -355,7 +355,7 @@ public class ImplementationGuide10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSourceElement()) tgt.setSourceElement(Uri10_30.convertUri(src.getSourceElement())); if (src.hasTitleElement()) @@ -375,7 +375,7 @@ public class ImplementationGuide10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSourceElement()) tgt.setSourceElement(Uri10_30.convertUri(src.getSourceElement())); if (src.hasNameElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/List10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/List10_30.java index 9771734f4..41bfe1795 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/List10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/List10_30.java @@ -194,14 +194,14 @@ public class List10_30 { } public static void copyBackboneElement(org.hl7.fhir.dstu2.model.BackboneElement src, org.hl7.fhir.dstu3.model.BackboneElement tgt) throws FHIRException { - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension10_30.convertExtension(e)); } } public static void copyBackboneElement(org.hl7.fhir.dstu3.model.BackboneElement src, org.hl7.fhir.dstu2.model.BackboneElement tgt) throws FHIRException { - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension10_30.convertExtension(e)); } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Location10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Location10_30.java index e661a9c0f..98fe30ecc 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Location10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Location10_30.java @@ -118,7 +118,7 @@ public class Location10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.dstu3.model.Location.LocationPositionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLongitudeElement()) tgt.setLongitudeElement(Decimal10_30.convertDecimal(src.getLongitudeElement())); if (src.hasLatitudeElement()) @@ -132,7 +132,7 @@ public class Location10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.dstu2.model.Location.LocationPositionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLongitudeElement()) tgt.setLongitudeElement(Decimal10_30.convertDecimal(src.getLongitudeElement())); if (src.hasLatitudeElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Medication10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Medication10_30.java index a20a68593..0b1252ba3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Medication10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Medication10_30.java @@ -45,7 +45,7 @@ public class Medication10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Medication.MedicationPackageComponent tgt = new org.hl7.fhir.dstu2.model.Medication.MedicationPackageComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasContainer()) tgt.setContainer(CodeableConcept10_30.convertCodeableConcept(src.getContainer())); for (org.hl7.fhir.dstu3.model.Medication.MedicationPackageContentComponent t : src.getContent()) @@ -57,7 +57,7 @@ public class Medication10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Medication.MedicationPackageComponent tgt = new org.hl7.fhir.dstu3.model.Medication.MedicationPackageComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasContainer()) tgt.setContainer(CodeableConcept10_30.convertCodeableConcept(src.getContainer())); for (org.hl7.fhir.dstu2.model.Medication.MedicationPackageContentComponent t : src.getContent()) @@ -69,7 +69,7 @@ public class Medication10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Medication.MedicationPackageContentComponent tgt = new org.hl7.fhir.dstu2.model.Medication.MedicationPackageContentComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasItemReference()) tgt.setItem((org.hl7.fhir.dstu2.model.Reference) ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getItem())); if (src.hasAmount()) @@ -81,7 +81,7 @@ public class Medication10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Medication.MedicationPackageContentComponent tgt = new org.hl7.fhir.dstu3.model.Medication.MedicationPackageContentComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasItem()) tgt.setItem(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getItem())); if (src.hasAmount()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/MedicationDispense10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/MedicationDispense10_30.java index 5a23e89c6..466b5edfc 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/MedicationDispense10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/MedicationDispense10_30.java @@ -186,7 +186,7 @@ public class MedicationDispense10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseSubstitutionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(CodeableConcept10_30.convertCodeableConcept(src.getType())); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReason()) @@ -200,7 +200,7 @@ public class MedicationDispense10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(CodeableConcept10_30.convertCodeableConcept(src.getType())); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/MessageHeader10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/MessageHeader10_30.java index 76eb5c3ee..d2e0988d1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/MessageHeader10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/MessageHeader10_30.java @@ -17,7 +17,7 @@ public class MessageHeader10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasTarget()) @@ -31,7 +31,7 @@ public class MessageHeader10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasTarget()) @@ -103,7 +103,7 @@ public class MessageHeader10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageHeaderResponseComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasIdentifierElement()) tgt.setIdentifierElement(Id10_30.convertId(src.getIdentifierElement())); if (src.hasCode()) @@ -117,7 +117,7 @@ public class MessageHeader10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasIdentifierElement()) tgt.setIdentifierElement(Id10_30.convertId(src.getIdentifierElement())); if (src.hasCode()) @@ -131,7 +131,7 @@ public class MessageHeader10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageSourceComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasSoftwareElement()) @@ -149,7 +149,7 @@ public class MessageHeader10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageSourceComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasSoftwareElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/NamingSystem10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/NamingSystem10_30.java index 04a6894df..ce0411f94 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/NamingSystem10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/NamingSystem10_30.java @@ -209,7 +209,7 @@ public class NamingSystem10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement())); if (src.hasValueElement()) @@ -225,7 +225,7 @@ public class NamingSystem10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement())); if (src.hasValueElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Observation10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Observation10_30.java index c8a518317..052f1cce8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Observation10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Observation10_30.java @@ -112,7 +112,7 @@ public class Observation10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_30.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -128,7 +128,7 @@ public class Observation10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_30.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -144,7 +144,7 @@ public class Observation10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLow()) tgt.setLow(SimpleQuantity10_30.convertSimpleQuantity(src.getLow())); if (src.hasHigh()) @@ -162,7 +162,7 @@ public class Observation10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLow()) tgt.setLow(SimpleQuantity10_30.convertSimpleQuantity(src.getLow())); if (src.hasHigh()) @@ -180,7 +180,7 @@ public class Observation10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Observation.ObservationRelatedComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationRelatedComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertObservationRelationshipType(src.getTypeElement())); if (src.hasTarget()) @@ -192,7 +192,7 @@ public class Observation10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Observation.ObservationRelatedComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationRelatedComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertObservationRelationshipType(src.getTypeElement())); if (src.hasTarget()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/OperationDefinition10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/OperationDefinition10_30.java index ec194dce5..b83dc08e7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/OperationDefinition10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/OperationDefinition10_30.java @@ -131,7 +131,7 @@ public class OperationDefinition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasStrength()) tgt.setStrengthElement(ElementDefinition10_30.convertBindingStrength(src.getStrengthElement())); if (src.hasValueSet()) @@ -143,7 +143,7 @@ public class OperationDefinition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasStrength()) tgt.setStrengthElement(ElementDefinition10_30.convertBindingStrength(src.getStrengthElement())); if (src.hasValueSet()) @@ -155,7 +155,7 @@ public class OperationDefinition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Code10_30.convertCode(src.getNameElement())); if (src.hasUse()) @@ -183,7 +183,7 @@ public class OperationDefinition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Code10_30.convertCode(src.getNameElement())); if (src.hasUse()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/OperationOutcome10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/OperationOutcome10_30.java index 831e0e63f..1b2ff6aa8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/OperationOutcome10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/OperationOutcome10_30.java @@ -281,7 +281,7 @@ public class OperationOutcome10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSeverity()) tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement())); if (src.hasCode()) @@ -298,7 +298,7 @@ public class OperationOutcome10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSeverity()) tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Organization10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Organization10_30.java index e000ab1ec..3961e5a6e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Organization10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Organization10_30.java @@ -59,7 +59,7 @@ public class Organization10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.dstu2.model.Organization.OrganizationContactComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasPurpose()) tgt.setPurpose(CodeableConcept10_30.convertCodeableConcept(src.getPurpose())); if (src.hasName()) @@ -75,7 +75,7 @@ public class Organization10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.dstu3.model.Organization.OrganizationContactComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasPurpose()) tgt.setPurpose(CodeableConcept10_30.convertCodeableConcept(src.getPurpose())); if (src.hasName()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Parameters10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Parameters10_30.java index 65f1f3901..f2624f508 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Parameters10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Parameters10_30.java @@ -30,7 +30,7 @@ public class Parameters10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasValue()) @@ -46,7 +46,7 @@ public class Parameters10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Patient10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Patient10_30.java index 820573fee..bf43e0346 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Patient10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Patient10_30.java @@ -13,7 +13,7 @@ public class Patient10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Patient.AnimalComponent tgt = new org.hl7.fhir.dstu3.model.Patient.AnimalComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSpecies()) tgt.setSpecies(CodeableConcept10_30.convertCodeableConcept(src.getSpecies())); if (src.hasBreed()) @@ -27,7 +27,7 @@ public class Patient10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Patient.AnimalComponent tgt = new org.hl7.fhir.dstu2.model.Patient.AnimalComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSpecies()) tgt.setSpecies(CodeableConcept10_30.convertCodeableConcept(src.getSpecies())); if (src.hasBreed()) @@ -41,7 +41,7 @@ public class Patient10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Patient.ContactComponent tgt = new org.hl7.fhir.dstu3.model.Patient.ContactComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(CodeableConcept10_30.convertCodeableConcept(t)); if (src.hasName()) @@ -63,7 +63,7 @@ public class Patient10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Patient.ContactComponent tgt = new org.hl7.fhir.dstu2.model.Patient.ContactComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(CodeableConcept10_30.convertCodeableConcept(t)); if (src.hasName()) @@ -210,7 +210,7 @@ public class Patient10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguage(CodeableConcept10_30.convertCodeableConcept(src.getLanguage())); if (src.hasPreferredElement()) @@ -222,7 +222,7 @@ public class Patient10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguage(CodeableConcept10_30.convertCodeableConcept(src.getLanguage())); if (src.hasPreferredElement()) @@ -234,7 +234,7 @@ public class Patient10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasOther()) tgt.setOther(Reference10_30.convertReference(src.getOther())); if (src.hasType()) @@ -246,7 +246,7 @@ public class Patient10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.dstu3.model.Patient.PatientLinkComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasOther()) tgt.setOther(Reference10_30.convertReference(src.getOther())); if (src.hasType()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Person10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Person10_30.java index 6bd78170f..0e16d9eb6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Person10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Person10_30.java @@ -115,7 +115,7 @@ public class Person10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.dstu3.model.Person.PersonLinkComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasTarget()) tgt.setTarget(Reference10_30.convertReference(src.getTarget())); if (src.hasAssurance()) @@ -127,7 +127,7 @@ public class Person10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.dstu2.model.Person.PersonLinkComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasTarget()) tgt.setTarget(Reference10_30.convertReference(src.getTarget())); if (src.hasAssurance()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Practitioner10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Practitioner10_30.java index a8528caad..ecc0df040 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Practitioner10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Practitioner10_30.java @@ -64,7 +64,7 @@ public class Practitioner10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier10_30.convertIdentifier(t)); if (src.hasCode()) @@ -80,7 +80,7 @@ public class Practitioner10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.dstu3.model.Practitioner.PractitionerQualificationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier10_30.convertIdentifier(t)); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Procedure10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Procedure10_30.java index b35db2fec..decb9e25f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Procedure10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Procedure10_30.java @@ -110,7 +110,7 @@ public class Procedure10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Procedure.ProcedureFocalDeviceComponent tgt = new org.hl7.fhir.dstu3.model.Procedure.ProcedureFocalDeviceComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasAction()) tgt.setAction(CodeableConcept10_30.convertCodeableConcept(src.getAction())); if (src.hasManipulated()) @@ -122,7 +122,7 @@ public class Procedure10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Procedure.ProcedureFocalDeviceComponent tgt = new org.hl7.fhir.dstu2.model.Procedure.ProcedureFocalDeviceComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasAction()) tgt.setAction(CodeableConcept10_30.convertCodeableConcept(src.getAction())); if (src.hasManipulated()) @@ -134,7 +134,7 @@ public class Procedure10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Procedure.ProcedurePerformerComponent tgt = new org.hl7.fhir.dstu2.model.Procedure.ProcedurePerformerComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasActor()) tgt.setActor(Reference10_30.convertReference(src.getActor())); if (src.hasRole()) @@ -146,7 +146,7 @@ public class Procedure10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent tgt = new org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasActor()) tgt.setActor(Reference10_30.convertReference(src.getActor())); if (src.hasRole()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ProcessRequest10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ProcessRequest10_30.java index 4ba0e1df6..65e6beb3a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ProcessRequest10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ProcessRequest10_30.java @@ -8,7 +8,7 @@ public class ProcessRequest10_30 { public static org.hl7.fhir.dstu3.model.ProcessRequest.ItemsComponent convertItemsComponent(org.hl7.fhir.dstu2.model.ProcessRequest.ItemsComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ProcessRequest.ItemsComponent tgt = new org.hl7.fhir.dstu3.model.ProcessRequest.ItemsComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSequenceLinkIdElement()) tgt.setSequenceLinkIdElement(Integer10_30.convertInteger(src.getSequenceLinkIdElement())); return tgt; @@ -17,7 +17,7 @@ public class ProcessRequest10_30 { public static org.hl7.fhir.dstu2.model.ProcessRequest.ItemsComponent convertItemsComponent(org.hl7.fhir.dstu3.model.ProcessRequest.ItemsComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ProcessRequest.ItemsComponent tgt = new org.hl7.fhir.dstu2.model.ProcessRequest.ItemsComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSequenceLinkIdElement()) tgt.setSequenceLinkIdElement(Integer10_30.convertInteger(src.getSequenceLinkIdElement())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Provenance10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Provenance10_30.java index 14c9bafcf..0f5a28dad 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Provenance10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Provenance10_30.java @@ -64,7 +64,7 @@ public class Provenance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Provenance.ProvenanceAgentComponent tgt = new org.hl7.fhir.dstu2.model.Provenance.ProvenanceAgentComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasWhoReference()) tgt.setActor(Reference10_30.convertReference(src.getWhoReference())); return tgt; @@ -74,7 +74,7 @@ public class Provenance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent tgt = new org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasActor()) tgt.setWho(Reference10_30.convertReference(src.getActor())); return tgt; @@ -84,7 +84,7 @@ public class Provenance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.dstu2.model.Provenance.ProvenanceEntityComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasRole()) tgt.setRoleElement(convertProvenanceEntityRole(src.getRoleElement())); if (src.hasWhatReference() && src.getWhatReference().hasReference()) @@ -98,7 +98,7 @@ public class Provenance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasRole()) tgt.setRoleElement(convertProvenanceEntityRole(src.getRoleElement())); if (src.hasReference()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Questionnaire10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Questionnaire10_30.java index 282b54352..0bfbb1686 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Questionnaire10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Questionnaire10_30.java @@ -83,7 +83,7 @@ public class Questionnaire10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent tgt = new org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_30.convertString(src.getLinkIdElement())); for (org.hl7.fhir.dstu3.model.Coding t : src.getCode()) tgt.addConcept(Coding10_30.convertCoding(t)); @@ -105,7 +105,7 @@ public class Questionnaire10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_30.convertString(src.getLinkIdElement())); for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(Coding10_30.convertCoding(t)); @@ -182,7 +182,7 @@ public class Questionnaire10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_30.convertString(src.getLinkIdElement())); for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(Coding10_30.convertCoding(t)); @@ -206,7 +206,7 @@ public class Questionnaire10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent tgt = new org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_30.convertString(src.getLinkIdElement())); for (org.hl7.fhir.dstu3.model.Coding t : src.getCode()) tgt.addConcept(Coding10_30.convertCoding(t)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/QuestionnaireResponse10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/QuestionnaireResponse10_30.java index f77a3e408..da448e322 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/QuestionnaireResponse10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/QuestionnaireResponse10_30.java @@ -13,7 +13,7 @@ public class QuestionnaireResponse10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_30.convertString(src.getLinkIdElement())); if (src.hasTextElement()) @@ -32,7 +32,7 @@ public class QuestionnaireResponse10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_30.convertString(src.getLinkIdElement())); if (src.hasTextElement()) @@ -99,7 +99,7 @@ public class QuestionnaireResponse10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_30.convertString(src.getLinkIdElement())); if (src.hasTextElement()) @@ -117,7 +117,7 @@ public class QuestionnaireResponse10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getValue())); for (org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) @@ -129,7 +129,7 @@ public class QuestionnaireResponse10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().convertType(src.getValue())); for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent t : src.getGroup()) @@ -141,7 +141,7 @@ public class QuestionnaireResponse10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_30.convertString(src.getLinkIdElement())); if (src.hasTextElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/RiskAssessment10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/RiskAssessment10_30.java index 7bbfb30fe..dc91df421 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/RiskAssessment10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/RiskAssessment10_30.java @@ -64,7 +64,7 @@ public class RiskAssessment10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasOutcome()) tgt.setOutcome(CodeableConcept10_30.convertCodeableConcept(src.getOutcome())); if (src.hasProbability()) @@ -82,7 +82,7 @@ public class RiskAssessment10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasOutcome()) tgt.setOutcome(CodeableConcept10_30.convertCodeableConcept(src.getOutcome())); if (src.hasProbability()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Specimen10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Specimen10_30.java index 01453ca69..e8357f88d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Specimen10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Specimen10_30.java @@ -43,7 +43,7 @@ public class Specimen10_30 { if (src == null) return null; org.hl7.fhir.dstu2.model.Specimen.SpecimenCollectionComponent tgt = new org.hl7.fhir.dstu2.model.Specimen.SpecimenCollectionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCollector()) tgt.setCollector(Reference10_30.convertReference(src.getCollector())); if (src.hasCollected()) @@ -61,7 +61,7 @@ public class Specimen10_30 { if (src == null) return null; org.hl7.fhir.dstu2.model.Specimen.SpecimenContainerComponent tgt = new org.hl7.fhir.dstu2.model.Specimen.SpecimenContainerComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier10_30.convertIdentifier(t)); if (src.hasDescription()) @@ -81,7 +81,7 @@ public class Specimen10_30 { if (src == null) return null; org.hl7.fhir.dstu2.model.Specimen.SpecimenTreatmentComponent tgt = new org.hl7.fhir.dstu2.model.Specimen.SpecimenTreatmentComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.setDescriptionElement(String10_30.convertString(src.getDescriptionElement())); if (src.hasProcedure()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/StructureDefinition10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/StructureDefinition10_30.java index a7d3a5596..b9cb8ec1c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/StructureDefinition10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/StructureDefinition10_30.java @@ -230,7 +230,7 @@ public class StructureDefinition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionDifferentialComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition10_30.convertElementDefinition(t)); return tgt; @@ -240,7 +240,7 @@ public class StructureDefinition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionDifferentialComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); List slicePaths = new ArrayList(); for (org.hl7.fhir.dstu2.model.ElementDefinition t : src.getElement()) { if (t.hasSlicing()) @@ -306,7 +306,7 @@ public class StructureDefinition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id10_30.convertId(src.getIdentityElement())); if (src.hasUriElement()) @@ -322,7 +322,7 @@ public class StructureDefinition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id10_30.convertId(src.getIdentityElement())); if (src.hasUriElement()) @@ -338,7 +338,7 @@ public class StructureDefinition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionSnapshotComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition10_30.convertElementDefinition(t)); return tgt; @@ -348,7 +348,7 @@ public class StructureDefinition10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionSnapshotComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); List slicePaths = new ArrayList(); for (org.hl7.fhir.dstu2.model.ElementDefinition t : src.getElement()) { if (t.hasSlicing()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Subscription10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Subscription10_30.java index 3c72282fa..88dfba6cb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Subscription10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Subscription10_30.java @@ -60,7 +60,7 @@ public class Subscription10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Subscription.SubscriptionChannelComponent tgt = new org.hl7.fhir.dstu2.model.Subscription.SubscriptionChannelComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertSubscriptionChannelType(src.getTypeElement())); if (src.hasEndpointElement()) @@ -76,7 +76,7 @@ public class Subscription10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Subscription.SubscriptionChannelComponent tgt = new org.hl7.fhir.dstu3.model.Subscription.SubscriptionChannelComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertSubscriptionChannelType(src.getTypeElement())); if (src.hasEndpointElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Substance10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Substance10_30.java index 01898713d..1eebbe53e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Substance10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Substance10_30.java @@ -56,7 +56,7 @@ public class Substance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasQuantity()) tgt.setQuantity(Ratio10_30.convertRatio(src.getQuantity())); if (src.hasSubstance()) @@ -68,7 +68,7 @@ public class Substance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasQuantity()) tgt.setQuantity(Ratio10_30.convertRatio(src.getQuantity())); return tgt; @@ -78,7 +78,7 @@ public class Substance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier())); if (src.hasExpiryElement()) @@ -92,7 +92,7 @@ public class Substance10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier10_30.convertIdentifier(src.getIdentifier())); if (src.hasExpiryElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/TestScript10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/TestScript10_30.java index 5e0270302..1f2c45c9e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/TestScript10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/TestScript10_30.java @@ -276,7 +276,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLabelElement()) tgt.setLabelElement(String10_30.convertString(src.getLabelElement())); if (src.hasDescriptionElement()) @@ -320,7 +320,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionAssertComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionAssertComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLabelElement()) tgt.setLabelElement(String10_30.convertString(src.getLabelElement())); if (src.hasDescriptionElement()) @@ -364,7 +364,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -376,7 +376,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -388,7 +388,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(Coding10_30.convertCoding(src.getType())); if (src.hasResourceElement()) @@ -424,7 +424,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(Coding10_30.convertCoding(src.getType())); if (src.hasResourceElement()) @@ -460,7 +460,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasFieldElement()) tgt.setFieldElement(String10_30.convertString(src.getFieldElement())); if (src.hasValueElement()) @@ -472,7 +472,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasFieldElement()) tgt.setFieldElement(String10_30.convertString(src.getFieldElement())); if (src.hasValueElement()) @@ -484,7 +484,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; @@ -494,7 +494,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; @@ -504,7 +504,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestActionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -516,7 +516,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptTestActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTestActionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -652,7 +652,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasAutocreateElement()) tgt.setAutocreateElement(Boolean10_30.convertBoolean(src.getAutocreateElement())); if (src.hasAutodeleteElement()) @@ -666,7 +666,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptFixtureComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasAutocreateElement()) tgt.setAutocreateElement(Boolean10_30.convertBoolean(src.getAutocreateElement())); if (src.hasAutodeleteElement()) @@ -680,7 +680,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasRequiredElement()) tgt.setRequiredElement(Boolean10_30.convertBoolean(src.getRequiredElement())); if (src.hasValidatedElement()) @@ -699,7 +699,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasRequiredElement()) tgt.setRequiredElement(Boolean10_30.convertBoolean(src.getRequiredElement())); if (src.hasValidatedElement()) @@ -718,7 +718,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t)); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) @@ -730,7 +730,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t)); for (org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) @@ -742,7 +742,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasUrlElement()) tgt.setUrlElement(Uri10_30.convertUri(src.getUrlElement())); if (src.hasDescriptionElement()) @@ -754,7 +754,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasUrlElement()) tgt.setUrlElement(Uri10_30.convertUri(src.getUrlElement())); if (src.hasDescriptionElement()) @@ -766,7 +766,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -776,7 +776,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -786,7 +786,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -796,7 +796,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -806,7 +806,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasDescriptionElement()) @@ -820,7 +820,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTestComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasDescriptionElement()) @@ -834,7 +834,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasHeaderFieldElement()) @@ -850,7 +850,7 @@ public class TestScript10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptVariableComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasHeaderFieldElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ValueSet10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ValueSet10_30.java index b354447d5..cd4bced59 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ValueSet10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ValueSet10_30.java @@ -23,7 +23,7 @@ public class ValueSet10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code10_30.convertCode(src.getCodeElement())); if (src.hasDisplayElement()) @@ -37,7 +37,7 @@ public class ValueSet10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code10_30.convertCode(src.getCodeElement())); if (src.hasDisplayElement()) @@ -51,7 +51,7 @@ public class ValueSet10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLanguageElement()) tgt.setLanguageElement(Code10_30.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -65,7 +65,7 @@ public class ValueSet10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasLanguageElement()) tgt.setLanguageElement(Code10_30.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -79,7 +79,7 @@ public class ValueSet10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSystemElement()) tgt.setSystemElement(Uri10_30.convertUri(src.getSystemElement())); if (src.hasVersionElement()) @@ -95,7 +95,7 @@ public class ValueSet10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSystemElement()) tgt.setSystemElement(Uri10_30.convertUri(src.getSystemElement())); if (src.hasVersionElement()) @@ -111,7 +111,7 @@ public class ValueSet10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasPropertyElement()) tgt.setPropertyElement(Code10_30.convertCode(src.getPropertyElement())); if (src.hasOp()) @@ -125,7 +125,7 @@ public class ValueSet10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasPropertyElement()) tgt.setPropertyElement(Code10_30.convertCode(src.getPropertyElement())); if (src.hasOp()) @@ -345,7 +345,7 @@ public class ValueSet10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.UriType t : src.getImport()) tgt.addInclude().addValueSet(t.getValue()); for (org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent t : src.getInclude()) tgt.addInclude(convertConceptSetComponent(t)); @@ -358,7 +358,7 @@ public class ValueSet10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetComposeComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent t : src.getInclude()) { for (org.hl7.fhir.dstu3.model.UriType ti : t.getValueSet()) tgt.addImport(ti.getValue()); if (noSystem == null || !t.getSystem().equals(noSystem)) @@ -397,7 +397,7 @@ public class ValueSet10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasIdentifierElement()) tgt.setIdentifierElement(Uri10_30.convertUri(src.getIdentifierElement())); if (src.hasTimestampElement()) @@ -417,7 +417,7 @@ public class ValueSet10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasIdentifierElement()) tgt.setIdentifierElement(Uri10_30.convertUri(src.getIdentifierElement())); if (src.hasTimestampElement()) @@ -437,7 +437,7 @@ public class ValueSet10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSystemElement()) tgt.setSystemElement(Uri10_30.convertUri(src.getSystemElement())); if (src.hasAbstractElement()) @@ -457,7 +457,7 @@ public class ValueSet10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasSystemElement()) tgt.setSystemElement(Uri10_30.convertUri(src.getSystemElement())); if (src.hasAbstractElement()) @@ -477,7 +477,7 @@ public class ValueSet10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionParameterComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasValue()) @@ -489,7 +489,7 @@ public class ValueSet10_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_30.convertString(src.getNameElement())); if (src.hasValue()) @@ -547,7 +547,7 @@ public class ValueSet10_30 { public static ValueSet.ConceptDefinitionComponent convertCodeSystemConcept(CodeSystem cs, ConceptDefinitionComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; ValueSet.ConceptDefinitionComponent tgt = new ValueSet.ConceptDefinitionComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); tgt.setAbstract(CodeSystemUtilities.isNotSelectable(cs, src)); tgt.setCode(src.getCode()); tgt.setDefinition(src.getDefinition()); @@ -561,7 +561,7 @@ public class ValueSet10_30 { public static ValueSet.ConceptDefinitionDesignationComponent convertCodeSystemDesignation(CodeSystem.ConceptDefinitionDesignationComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; ValueSet.ConceptDefinitionDesignationComponent tgt = new ValueSet.ConceptDefinitionDesignationComponent(); - ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt); + ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyBackboneElement(src,tgt); tgt.setUse(Coding10_30.convertCoding(src.getUse())); tgt.setLanguage(src.getLanguage()); tgt.setValue(src.getValue()); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/VersionConvertor_10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/VersionConvertor_10_40.java index 4fdd7fda5..c126cb137 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/VersionConvertor_10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/VersionConvertor_10_40.java @@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv10_40; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_40; import org.hl7.fhir.convertors.context.ConversionContext10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.BackboneElement10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Element10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Type10_40; import org.hl7.fhir.convertors.conv10_40.resources10_40.Resource10_40; @@ -65,12 +66,15 @@ public class VersionConvertor_10_40 { private final BaseAdvisor_10_40 advisor; private final Element10_40 elementConvertor; + + private final BackboneElement10_40 backboneElementConvertor; private final Resource10_40 resourceConvertor; private final Type10_40 typeConvertor; public VersionConvertor_10_40(@Nonnull BaseAdvisor_10_40 advisor) { this.advisor = advisor; this.elementConvertor = new Element10_40(advisor); + this.backboneElementConvertor = new BackboneElement10_40(); this.resourceConvertor = new Resource10_40(advisor); this.typeConvertor = new Type10_40(advisor); } @@ -166,4 +170,15 @@ public class VersionConvertor_10_40 { elementConvertor.copyElement(src, tgt, ConversionContext10_40.INSTANCE.path(), var); } + public void copyBackboneElement(@Nonnull org.hl7.fhir.r4.model.BackboneElement src, + @Nonnull org.hl7.fhir.dstu2.model.BackboneElement tgt, + String... var) throws FHIRException { + backboneElementConvertor.copyBackboneElement(src, tgt, var); + } + + public void copyBackboneElement(@Nonnull org.hl7.fhir.dstu2.model.BackboneElement src, + @Nonnull org.hl7.fhir.r4.model.BackboneElement tgt, + String... var) throws FHIRException { + backboneElementConvertor.copyBackboneElement(src, tgt, var); + } } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/BackboneElement10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/BackboneElement10_40.java new file mode 100644 index 000000000..0fbc37574 --- /dev/null +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/BackboneElement10_40.java @@ -0,0 +1,24 @@ +package org.hl7.fhir.convertors.conv10_40.datatypes10_40; + +import org.hl7.fhir.convertors.context.ConversionContext10_40; +import org.hl7.fhir.exceptions.FHIRException; + +public class BackboneElement10_40 { + static public void copyBackboneElement(org.hl7.fhir.dstu2.model.BackboneElement src, + org.hl7.fhir.r4.model.BackboneElement tgt, + String ... var) throws FHIRException { + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt, var); + for (org.hl7.fhir.dstu2.model.Extension e : src.getModifierExtension()) { + tgt.addModifierExtension(Extension10_40.convertExtension(e)); + } + } + + static public void copyBackboneElement(org.hl7.fhir.r4.model.BackboneElement src, + org.hl7.fhir.dstu2.model.BackboneElement tgt, + String ... var) throws FHIRException { + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt, var); + for (org.hl7.fhir.r4.model.Extension e : src.getModifierExtension()) { + tgt.addModifierExtension(Extension10_40.convertExtension(e)); + } + } +} diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/AllergyIntolerance10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/AllergyIntolerance10_40.java index 5d5a49f66..48ca8e9b0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/AllergyIntolerance10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/AllergyIntolerance10_40.java @@ -66,9 +66,9 @@ public class AllergyIntolerance10_40 { if (src == null) return null; org.hl7.fhir.r4.model.AllergyIntolerance.AllergyIntoleranceReactionComponent tgt = new org.hl7.fhir.r4.model.AllergyIntolerance.AllergyIntoleranceReactionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); - for (org.hl7.fhir.dstu2.model.Extension extension : src.getModifierExtension()) - tgt.addExtension(Extension10_40.convertExtension(extension)); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); + //for (org.hl7.fhir.dstu2.model.Extension extension : src.getModifierExtension()) + // tgt.addExtension(Extension10_40.convertExtension(extension)); if (src.hasSubstance()) tgt.setSubstance(CodeableConcept10_40.convertCodeableConcept(src.getSubstance())); if (src.hasCertainty()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Appointment10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Appointment10_40.java index 53782fac3..2520d6897 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Appointment10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Appointment10_40.java @@ -74,7 +74,7 @@ public class Appointment10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.r4.model.Appointment.AppointmentParticipantComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept10_40.convertCodeableConcept(t)); if (src.hasActor()) @@ -90,7 +90,7 @@ public class Appointment10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept10_40.convertCodeableConcept(t)); if (src.hasActor()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/AuditEvent10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/AuditEvent10_40.java index 6bc29038c..7433e9592 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/AuditEvent10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/AuditEvent10_40.java @@ -121,7 +121,7 @@ public class AuditEvent10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole()) tgt.addRole(CodeableConcept10_40.convertCodeableConcept(t)); if (src.hasReference()) @@ -150,7 +150,7 @@ public class AuditEvent10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRole()) tgt.addRole(CodeableConcept10_40.convertCodeableConcept(t)); if (src.hasWho()) { @@ -181,7 +181,7 @@ public class AuditEvent10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasAddressElement()) tgt.setAddressElement(String10_40.convertString(src.getAddressElement())); if (src.hasType()) @@ -193,7 +193,7 @@ public class AuditEvent10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentNetworkComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentNetworkComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasAddressElement()) tgt.setAddressElement(String10_40.convertString(src.getAddressElement())); if (src.hasType()) @@ -205,7 +205,7 @@ public class AuditEvent10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.getWhat().setIdentifier(Identifier10_40.convertIdentifier(src.getIdentifier())); if (src.hasReference()) @@ -232,7 +232,7 @@ public class AuditEvent10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasWhat()) { if (src.getWhat().hasIdentifier()) tgt.setIdentifier(Identifier10_40.convertIdentifier(src.getWhat().getIdentifier())); @@ -261,7 +261,7 @@ public class AuditEvent10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(String10_40.convertString(src.getTypeElement())); if (src.hasValueStringType()) @@ -275,7 +275,7 @@ public class AuditEvent10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(String10_40.convertString(src.getTypeElement())); if (src.hasValue()) @@ -393,7 +393,7 @@ public class AuditEvent10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventSourceComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasSiteElement()) tgt.setSiteElement(String10_40.convertString(src.getSiteElement())); if (src.hasIdentifier()) @@ -406,7 +406,7 @@ public class AuditEvent10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasSiteElement()) tgt.setSiteElement(String10_40.convertString(src.getSiteElement())); if (src.hasObserver()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Bundle10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Bundle10_40.java index c3a6cf501..71868a21d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Bundle10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Bundle10_40.java @@ -52,7 +52,7 @@ public class Bundle10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); if (src.hasFullUrlElement()) @@ -74,7 +74,7 @@ public class Bundle10_40 { if (advisor.ignoreEntry(src, FhirPublication.DSTU2)) return null; org.hl7.fhir.dstu2.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); if (src.hasFullUrlElement()) tgt.setFullUrlElement(Uri10_40.convertUri(src.getFullUrlElement())); @@ -97,7 +97,7 @@ public class Bundle10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasMethod()) tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); if (src.hasUrlElement()) @@ -117,7 +117,7 @@ public class Bundle10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasMethod()) tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); if (src.hasUrlElement()) @@ -137,7 +137,7 @@ public class Bundle10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasStatusElement()) tgt.setStatusElement(String10_40.convertString(src.getStatusElement())); if (src.hasLocationElement()) @@ -153,7 +153,7 @@ public class Bundle10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasStatusElement()) tgt.setStatusElement(String10_40.convertString(src.getStatusElement())); if (src.hasLocationElement()) @@ -169,7 +169,7 @@ public class Bundle10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); if (src.hasScoreElement()) @@ -181,7 +181,7 @@ public class Bundle10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); if (src.hasScoreElement()) @@ -193,7 +193,7 @@ public class Bundle10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleLinkComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasRelationElement()) tgt.setRelationElement(String10_40.convertString(src.getRelationElement())); if (src.hasUrlElement()) @@ -205,7 +205,7 @@ public class Bundle10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasRelationElement()) tgt.setRelationElement(String10_40.convertString(src.getRelationElement())); if (src.hasUrlElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/CarePlan10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/CarePlan10_40.java index 075149f31..f3e7823b6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/CarePlan10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/CarePlan10_40.java @@ -74,7 +74,7 @@ public class CarePlan10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.Annotation t : src.getProgress()) tgt.addProgress(Annotation10_40.convertAnnotation(t)); if (src.hasReference()) @@ -88,7 +88,7 @@ public class CarePlan10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.Annotation t : src.getProgress()) tgt.addProgress(Annotation10_40.convertAnnotation(t)); if (src.hasReference()) tgt.setReference(Reference10_40.convertReference(src.getReference())); @@ -101,7 +101,7 @@ public class CarePlan10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_40.convertCodeableConcept(src.getCode())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) @@ -133,7 +133,7 @@ public class CarePlan10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_40.convertCodeableConcept(src.getCode())); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReasonCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Communication10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Communication10_40.java index 88afcdee5..4dd847290 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Communication10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Communication10_40.java @@ -76,7 +76,7 @@ public class Communication10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().convertType(src.getContent())); return tgt; @@ -86,7 +86,7 @@ public class Communication10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.r4.model.Communication.CommunicationPayloadComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().convertType(src.getContent())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/CommunicationRequest10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/CommunicationRequest10_40.java index 7d2b772bd..02dd9226c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/CommunicationRequest10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/CommunicationRequest10_40.java @@ -84,7 +84,7 @@ public class CommunicationRequest10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestPayloadComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().convertType(src.getContent())); return tgt; @@ -94,7 +94,7 @@ public class CommunicationRequest10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().convertType(src.getContent())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Composition10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Composition10_40.java index a4e52fbe6..cdd7d4783 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Composition10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Composition10_40.java @@ -141,7 +141,7 @@ public class Composition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setMode(Collections.singletonList(convertCompositionAttestationMode(src.getModeElement()))); if (src.hasTimeElement()) @@ -155,7 +155,7 @@ public class Composition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.r4.model.Composition.CompositionAttesterComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertCompositionAttestationMode(src.getMode().get(0))); if (src.hasTimeElement()) @@ -169,7 +169,7 @@ public class Composition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode()) tgt.addCode(CodeableConcept10_40.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -182,7 +182,7 @@ public class Composition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.r4.model.Composition.CompositionEventComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCode()) tgt.addCode(CodeableConcept10_40.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -245,7 +245,7 @@ public class Composition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Composition.SectionComponent tgt = new org.hl7.fhir.r4.model.Composition.SectionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasTitleElement()) tgt.setTitleElement(String10_40.convertString(src.getTitleElement())); if (src.hasCode()) @@ -272,7 +272,7 @@ public class Composition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu2.model.Composition.SectionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasTitleElement()) tgt.setTitleElement(String10_40.convertString(src.getTitleElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ConceptMap10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ConceptMap10_40.java index 42327f655..8cb735acc 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ConceptMap10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ConceptMap10_40.java @@ -214,7 +214,7 @@ public class ConceptMap10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasElementElement()) tgt.setPropertyElement(Uri10_40.convertUri(src.getElementElement())); if (src.hasCodeSystem()) @@ -228,7 +228,7 @@ public class ConceptMap10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasPropertyElement()) tgt.setElementElement(Uri10_40.convertUri(src.getPropertyElement())); if (src.hasSystem()) @@ -244,7 +244,7 @@ public class ConceptMap10_40 { return res; for (org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent t : src.getTarget()) { org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); tgt.setCode(src.getCode()); tgt.addTarget(convertTargetElementComponent(t)); res.add(new SourceElementComponentWrapper<>(tgt, src.getCodeSystem(), t.getCodeSystem())); @@ -256,7 +256,7 @@ public class ConceptMap10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); tgt.setCodeSystem(g.getSource()); if (src.hasCodeElement()) tgt.setCodeElement(Code10_40.convertCode(src.getCodeElement())); @@ -269,7 +269,7 @@ public class ConceptMap10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); tgt.setCodeSystem(g.getTarget()); if (src.hasCodeElement()) tgt.setCodeElement(Code10_40.convertCode(src.getCodeElement())); @@ -288,7 +288,7 @@ public class ConceptMap10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code10_40.convertCode(src.getCodeElement())); if (src.hasEquivalence()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Condition10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Condition10_40.java index 595a89a00..f54952385 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Condition10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Condition10_40.java @@ -106,7 +106,7 @@ public class Condition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.r4.model.Condition.ConditionEvidenceComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.addCode(CodeableConcept10_40.convertCodeableConcept(src.getCode())); for (org.hl7.fhir.dstu2.model.Reference t : src.getDetail()) tgt.addDetail(Reference10_40.convertReference(t)); @@ -117,7 +117,7 @@ public class Condition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionEvidenceComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.CodeableConcept cc : src.getCode()) tgt.setCode(CodeableConcept10_40.convertCodeableConcept(cc)); for (org.hl7.fhir.r4.model.Reference t : src.getDetail()) tgt.addDetail(Reference10_40.convertReference(t)); @@ -128,7 +128,7 @@ public class Condition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasSummary()) tgt.setSummary(CodeableConcept10_40.convertCodeableConcept(src.getSummary())); for (org.hl7.fhir.r4.model.Reference t : src.getAssessment()) tgt.addAssessment(Reference10_40.convertReference(t)); @@ -139,7 +139,7 @@ public class Condition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.r4.model.Condition.ConditionStageComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasSummary()) tgt.setSummary(CodeableConcept10_40.convertCodeableConcept(src.getSummary())); for (org.hl7.fhir.dstu2.model.Reference t : src.getAssessment()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Conformance10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Conformance10_40.java index 8fd2f06a0..f4545ed9f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Conformance10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Conformance10_40.java @@ -185,7 +185,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertDocumentMode(src.getModeElement())); if (src.hasDocumentation()) @@ -199,7 +199,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertDocumentMode(src.getModeElement())); if (src.hasDocumentation()) @@ -213,7 +213,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementImplementationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasDescriptionElement()) tgt.setDescriptionElement(String10_40.convertString(src.getDescriptionElement())); if (src.hasUrl()) @@ -225,7 +225,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasDescriptionElement()) tgt.setDescriptionElement(String10_40.convertString(src.getDescriptionElement())); if (src.hasUrl()) @@ -237,7 +237,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t)); if (src.hasReliableCacheElement()) @@ -270,7 +270,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t)); if (src.hasReliableCacheElement()) @@ -304,7 +304,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasProtocol()) tgt.setProtocol(Coding10_40.convertCoding(src.getProtocol())); if (src.hasAddress()) @@ -316,7 +316,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasProtocol()) tgt.setProtocol(Coding10_40.convertCoding(src.getProtocol())); if (src.hasAddress()) @@ -328,7 +328,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertRestfulConformanceMode(src.getModeElement())); if (src.hasDocumentation()) @@ -353,7 +353,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertRestfulConformanceMode(src.getModeElement())); if (src.hasDocumentation()) @@ -388,7 +388,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -400,7 +400,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasDefinitionElement()) @@ -412,7 +412,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code10_40.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -442,7 +442,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code10_40.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -472,7 +472,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -488,7 +488,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -504,7 +504,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCorsElement()) tgt.setCorsElement(Boolean10_40.convertBoolean(src.getCorsElement())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getService()) @@ -518,7 +518,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCorsElement()) tgt.setCorsElement(Boolean10_40.convertBoolean(src.getCorsElement())); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getService()) @@ -532,7 +532,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasVersionElement()) @@ -546,7 +546,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasVersionElement()) @@ -642,7 +642,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -654,7 +654,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -748,7 +748,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -760,7 +760,7 @@ public class Conformance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.SystemInteractionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DataElement10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DataElement10_40.java index 96bea9144..40b8db38c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DataElement10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DataElement10_40.java @@ -90,7 +90,7 @@ public class DataElement10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id10_40.convertId(src.getIdentityElement())); if (src.hasUriElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DetectedIssue10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DetectedIssue10_40.java index b63ead12d..67f413e38 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DetectedIssue10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DetectedIssue10_40.java @@ -70,7 +70,7 @@ public class DetectedIssue10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasAction()) tgt.setAction(CodeableConcept10_40.convertCodeableConcept(src.getAction())); if (src.hasDate()) @@ -84,7 +84,7 @@ public class DetectedIssue10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasAction()) tgt.setAction(CodeableConcept10_40.convertCodeableConcept(src.getAction())); if (src.hasDate()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DeviceMetric10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DeviceMetric10_40.java index a1f3f7811..6c5a095ed 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DeviceMetric10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DeviceMetric10_40.java @@ -70,7 +70,7 @@ public class DeviceMetric10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertDeviceMetricCalibrationType(src.getTypeElement())); if (src.hasState()) @@ -84,7 +84,7 @@ public class DeviceMetric10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.r4.model.DeviceMetric.DeviceMetricCalibrationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertDeviceMetricCalibrationType(src.getTypeElement())); if (src.hasState()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DiagnosticReport10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DiagnosticReport10_40.java index 48dee61ac..1049a490d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DiagnosticReport10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DiagnosticReport10_40.java @@ -87,7 +87,7 @@ public class DiagnosticReport10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCommentElement()) tgt.setCommentElement(String10_40.convertString(src.getCommentElement())); if (src.hasLink()) @@ -99,7 +99,7 @@ public class DiagnosticReport10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent tgt = new org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCommentElement()) tgt.setCommentElement(String10_40.convertString(src.getCommentElement())); if (src.hasLink()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DocumentManifest10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DocumentManifest10_40.java index 8ccd4658a..2268fdec5 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DocumentManifest10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DocumentManifest10_40.java @@ -9,7 +9,7 @@ public class DocumentManifest10_40 { public static org.hl7.fhir.r4.model.DocumentManifest.DocumentManifestRelatedComponent convertDocumentManifestRelatedComponent(org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.r4.model.DocumentManifest.DocumentManifestRelatedComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier10_40.convertIdentifier(src.getIdentifier())); if (src.hasRef()) tgt.setRef(Reference10_40.convertReference(src.getRef())); return tgt; @@ -18,7 +18,7 @@ public class DocumentManifest10_40 { public static org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent convertDocumentManifestRelatedComponent(org.hl7.fhir.r4.model.DocumentManifest.DocumentManifestRelatedComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier10_40.convertIdentifier(src.getIdentifier())); if (src.hasRef()) tgt.setRef(Reference10_40.convertReference(src.getRef())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DocumentReference10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DocumentReference10_40.java index 7643f8de8..4d43903e9 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DocumentReference10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DocumentReference10_40.java @@ -123,7 +123,7 @@ public class DocumentReference10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContentComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasAttachment()) tgt.setAttachment(Attachment10_40.convertAttachment(src.getAttachment())); for (org.hl7.fhir.dstu2.model.Coding t : src.getFormat()) tgt.setFormat(Coding10_40.convertCoding(t)); @@ -134,7 +134,7 @@ public class DocumentReference10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasAttachment()) tgt.setAttachment(Attachment10_40.convertAttachment(src.getAttachment())); if (src.hasFormat()) @@ -146,7 +146,7 @@ public class DocumentReference10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContextComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasEncounter()) tgt.addEncounter(Reference10_40.convertReference(src.getEncounter())); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getEvent()) @@ -168,7 +168,7 @@ public class DocumentReference10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasEncounter()) tgt.setEncounter(Reference10_40.convertReference(src.getEncounterFirstRep())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getEvent()) @@ -211,7 +211,7 @@ public class DocumentReference10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertDocumentRelationshipType(src.getCodeElement())); if (src.hasTarget()) @@ -223,7 +223,7 @@ public class DocumentReference10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertDocumentRelationshipType(src.getCodeElement())); if (src.hasTarget()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Encounter10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Encounter10_40.java index 7c7003c3c..b647c297a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Encounter10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Encounter10_40.java @@ -145,7 +145,7 @@ public class Encounter10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterHospitalizationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasPreAdmissionIdentifier()) tgt.setPreAdmissionIdentifier(Identifier10_40.convertIdentifier(src.getPreAdmissionIdentifier())); if (src.hasOrigin()) @@ -171,7 +171,7 @@ public class Encounter10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasPreAdmissionIdentifier()) tgt.setPreAdmissionIdentifier(Identifier10_40.convertIdentifier(src.getPreAdmissionIdentifier())); if (src.hasOrigin()) @@ -197,7 +197,7 @@ public class Encounter10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterLocationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLocation()) tgt.setLocation(Reference10_40.convertReference(src.getLocation())); if (src.hasStatus()) @@ -211,7 +211,7 @@ public class Encounter10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLocation()) tgt.setLocation(Reference10_40.convertReference(src.getLocation())); if (src.hasStatus()) @@ -275,7 +275,7 @@ public class Encounter10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterParticipantComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept10_40.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -289,7 +289,7 @@ public class Encounter10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept10_40.convertCodeableConcept(t)); if (src.hasPeriod()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/EpisodeOfCare10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/EpisodeOfCare10_40.java index bf62cac4f..6852b93df 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/EpisodeOfCare10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/EpisodeOfCare10_40.java @@ -127,7 +127,7 @@ public class EpisodeOfCare10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.r4.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasStatus()) tgt.setStatusElement(convertEpisodeOfCareStatus(src.getStatusElement())); if (src.hasPeriod()) @@ -139,7 +139,7 @@ public class EpisodeOfCare10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasStatus()) tgt.setStatusElement(convertEpisodeOfCareStatus(src.getStatusElement())); if (src.hasPeriod()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/FamilyMemberHistory10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/FamilyMemberHistory10_40.java index fb3d8f6f7..55af2a770 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/FamilyMemberHistory10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/FamilyMemberHistory10_40.java @@ -120,7 +120,7 @@ public class FamilyMemberHistory10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_40.convertCodeableConcept(src.getCode())); if (src.hasOutcome()) @@ -134,7 +134,7 @@ public class FamilyMemberHistory10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.r4.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_40.convertCodeableConcept(src.getCode())); if (src.hasOutcome()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Group10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Group10_40.java index e1db9c95e..244efcd7e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Group10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Group10_40.java @@ -64,7 +64,7 @@ public class Group10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_40.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -80,7 +80,7 @@ public class Group10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_40.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -96,7 +96,7 @@ public class Group10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.r4.model.Group.GroupMemberComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasEntity()) tgt.setEntity(Reference10_40.convertReference(src.getEntity())); if (src.hasPeriod()) @@ -110,7 +110,7 @@ public class Group10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupMemberComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasEntity()) tgt.setEntity(Reference10_40.convertReference(src.getEntity())); if (src.hasPeriod()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/HealthcareService10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/HealthcareService10_40.java index 5ab78a09d..b66ae8400 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/HealthcareService10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/HealthcareService10_40.java @@ -179,7 +179,7 @@ public class HealthcareService10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(HealthcareService10_40::convertDaysOfWeek) .collect(Collectors.toList())); @@ -196,7 +196,7 @@ public class HealthcareService10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(HealthcareService10_40::convertDaysOfWeek) .collect(Collectors.toList())); @@ -213,7 +213,7 @@ public class HealthcareService10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasDescriptionElement()) tgt.setDescriptionElement(String10_40.convertString(src.getDescriptionElement())); if (src.hasDuring()) @@ -225,7 +225,7 @@ public class HealthcareService10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasDescriptionElement()) tgt.setDescriptionElement(String10_40.convertString(src.getDescriptionElement())); if (src.hasDuring()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ImplementationGuide10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ImplementationGuide10_40.java index 733ba8a9b..c25d29d49 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ImplementationGuide10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ImplementationGuide10_40.java @@ -131,7 +131,7 @@ public class ImplementationGuide10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasUri()) tgt.setUri(src.getUri()); return tgt; @@ -141,7 +141,7 @@ public class ImplementationGuide10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); tgt.setType(org.hl7.fhir.dstu2.model.ImplementationGuide.GuideDependencyType.REFERENCE); if (src.hasUri()) tgt.setUri(src.getUri()); @@ -152,7 +152,7 @@ public class ImplementationGuide10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code10_40.convertCode(src.getTypeElement())); if (src.hasProfileElement()) @@ -164,7 +164,7 @@ public class ImplementationGuide10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code10_40.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -176,7 +176,7 @@ public class ImplementationGuide10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); tgt.setId(src.getId()); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); @@ -190,7 +190,7 @@ public class ImplementationGuide10_40 { return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent(); tgt.setId("p" + (context.getGrouping().size() + 1)); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasDescription()) @@ -207,7 +207,7 @@ public class ImplementationGuide10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageResourceComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageResourceComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasExampleCanonicalType()) tgt.setExampleFor(Canonical10_40.convertCanonicalToReference(src.getExampleCanonicalType())); if (src.hasName()) @@ -223,7 +223,7 @@ public class ImplementationGuide10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasExampleFor()) tgt.setExample(Canonical10_40.convertReferenceToCanonical(src.getExampleFor())); if (src.hasName()) @@ -241,7 +241,7 @@ public class ImplementationGuide10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasSource()) { if (src.hasSourceElement()) tgt.setName(convertUriToUrl(src.getSourceElement())); @@ -259,7 +259,7 @@ public class ImplementationGuide10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameUrlType()) tgt.setSource(src.getNameUrlType().getValue()); if (src.hasTitleElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/List10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/List10_40.java index 539c00fb7..63322bdb8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/List10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/List10_40.java @@ -194,14 +194,14 @@ public class List10_40 { } public static void copyBackboneElement(org.hl7.fhir.r4.model.BackboneElement src, org.hl7.fhir.dstu2.model.BackboneElement tgt) throws FHIRException { - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension10_40.convertExtension(e)); } } public static void copyBackboneElement(org.hl7.fhir.dstu2.model.BackboneElement src, org.hl7.fhir.r4.model.BackboneElement tgt) throws FHIRException { - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension10_40.convertExtension(e)); } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Location10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Location10_40.java index 5aa34369d..6193b3ad5 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Location10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Location10_40.java @@ -118,7 +118,7 @@ public class Location10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.r4.model.Location.LocationPositionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLongitudeElement()) tgt.setLongitudeElement(Decimal10_40.convertDecimal(src.getLongitudeElement())); if (src.hasLatitudeElement()) @@ -132,7 +132,7 @@ public class Location10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.dstu2.model.Location.LocationPositionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLongitudeElement()) tgt.setLongitudeElement(Decimal10_40.convertDecimal(src.getLongitudeElement())); if (src.hasLatitudeElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Medication10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Medication10_40.java index 9136dba90..b730d4830 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Medication10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Medication10_40.java @@ -52,7 +52,7 @@ public class Medication10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Medication.MedicationBatchComponent tgt = new org.hl7.fhir.r4.model.Medication.MedicationBatchComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLotNumber()) tgt.setLotNumber(src.getLotNumber()); if (src.hasExpirationDate()) @@ -82,7 +82,7 @@ public class Medication10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Medication.MedicationIngredientComponent tgt = new org.hl7.fhir.r4.model.Medication.MedicationIngredientComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasItem()) tgt.setItem(Reference10_40.convertReference(src.getItem())); if (src.hasAmount()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/MedicationDispense10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/MedicationDispense10_40.java index 299fb94e9..3e4cd7d22 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/MedicationDispense10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/MedicationDispense10_40.java @@ -204,7 +204,7 @@ public class MedicationDispense10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseSubstitutionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(CodeableConcept10_40.convertCodeableConcept(src.getType())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReason()) @@ -218,7 +218,7 @@ public class MedicationDispense10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.r4.model.MedicationDispense.MedicationDispenseSubstitutionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(CodeableConcept10_40.convertCodeableConcept(src.getType())); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/MessageHeader10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/MessageHeader10_40.java index 132f5e696..18ba45aa3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/MessageHeader10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/MessageHeader10_40.java @@ -15,7 +15,7 @@ public class MessageHeader10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasTarget()) @@ -29,7 +29,7 @@ public class MessageHeader10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.r4.model.MessageHeader.MessageDestinationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasTarget()) @@ -93,7 +93,7 @@ public class MessageHeader10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageHeaderResponseComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasIdentifierElement()) tgt.setIdentifierElement(Id10_40.convertId(src.getIdentifierElement())); if (src.hasCode()) @@ -107,7 +107,7 @@ public class MessageHeader10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.r4.model.MessageHeader.MessageHeaderResponseComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasIdentifierElement()) tgt.setIdentifierElement(Id10_40.convertId(src.getIdentifierElement())); if (src.hasCode()) @@ -121,7 +121,7 @@ public class MessageHeader10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.r4.model.MessageHeader.MessageSourceComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasSoftwareElement()) @@ -139,7 +139,7 @@ public class MessageHeader10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageSourceComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasSoftwareElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/NamingSystem10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/NamingSystem10_40.java index e12569194..4b59804c5 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/NamingSystem10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/NamingSystem10_40.java @@ -204,7 +204,7 @@ public class NamingSystem10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.r4.model.NamingSystem.NamingSystemUniqueIdComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement())); if (src.hasValueElement()) @@ -220,7 +220,7 @@ public class NamingSystem10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement())); if (src.hasValueElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Observation10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Observation10_40.java index 6fe6a2704..bd2ebaefb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Observation10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Observation10_40.java @@ -116,7 +116,7 @@ public class Observation10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_40.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -132,7 +132,7 @@ public class Observation10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.r4.model.Observation.ObservationComponentComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_40.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -148,7 +148,7 @@ public class Observation10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.r4.model.Observation.ObservationReferenceRangeComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLow()) tgt.setLow(SimpleQuantity10_40.convertSimpleQuantity(src.getLow())); if (src.hasHigh()) @@ -166,7 +166,7 @@ public class Observation10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLow()) tgt.setLow(SimpleQuantity10_40.convertSimpleQuantity(src.getLow())); if (src.hasHigh()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/OperationDefinition10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/OperationDefinition10_40.java index 5640cb0ca..a97d52509 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/OperationDefinition10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/OperationDefinition10_40.java @@ -132,7 +132,7 @@ public class OperationDefinition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasStrength()) tgt.setStrengthElement(ElementDefinition10_40.convertBindingStrength(src.getStrengthElement())); Type t = ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().convertType(src.getValueSet()); @@ -150,7 +150,7 @@ public class OperationDefinition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasStrength()) tgt.setStrengthElement(ElementDefinition10_40.convertBindingStrength(src.getStrengthElement())); if (src.hasValueSet()) { @@ -167,7 +167,7 @@ public class OperationDefinition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Code10_40.convertCode(src.getNameElement())); if (src.hasUse()) @@ -194,7 +194,7 @@ public class OperationDefinition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Code10_40.convertCode(src.getNameElement())); if (src.hasUse()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/OperationOutcome10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/OperationOutcome10_40.java index 3eed648b8..52c635507 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/OperationOutcome10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/OperationOutcome10_40.java @@ -281,7 +281,7 @@ public class OperationOutcome10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.r4.model.OperationOutcome.OperationOutcomeIssueComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasSeverity()) tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement())); if (src.hasCode()) @@ -298,7 +298,7 @@ public class OperationOutcome10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasSeverity()) tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Organization10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Organization10_40.java index dd2061e20..bd00b6110 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Organization10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Organization10_40.java @@ -59,7 +59,7 @@ public class Organization10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.dstu2.model.Organization.OrganizationContactComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasPurpose()) tgt.setPurpose(CodeableConcept10_40.convertCodeableConcept(src.getPurpose())); if (src.hasName()) @@ -75,7 +75,7 @@ public class Organization10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.r4.model.Organization.OrganizationContactComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasPurpose()) tgt.setPurpose(CodeableConcept10_40.convertCodeableConcept(src.getPurpose())); if (src.hasName()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Parameters10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Parameters10_40.java index f65823cca..3649a9a8b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Parameters10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Parameters10_40.java @@ -30,7 +30,7 @@ public class Parameters10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasValue()) @@ -46,7 +46,7 @@ public class Parameters10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Patient10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Patient10_40.java index 5592160cb..21fb93738 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Patient10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Patient10_40.java @@ -42,7 +42,7 @@ public class Patient10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Patient.ContactComponent tgt = new org.hl7.fhir.r4.model.Patient.ContactComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(CodeableConcept10_40.convertCodeableConcept(t)); if (src.hasName()) @@ -64,7 +64,7 @@ public class Patient10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Patient.ContactComponent tgt = new org.hl7.fhir.dstu2.model.Patient.ContactComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(CodeableConcept10_40.convertCodeableConcept(t)); if (src.hasName()) @@ -211,7 +211,7 @@ public class Patient10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.r4.model.Patient.PatientCommunicationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguage(CodeableConcept10_40.convertCodeableConcept(src.getLanguage())); if (src.hasPreferredElement()) @@ -223,7 +223,7 @@ public class Patient10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguage(CodeableConcept10_40.convertCodeableConcept(src.getLanguage())); if (src.hasPreferredElement()) @@ -235,7 +235,7 @@ public class Patient10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasOther()) tgt.setOther(Reference10_40.convertReference(src.getOther())); if (src.hasType()) @@ -247,7 +247,7 @@ public class Patient10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.r4.model.Patient.PatientLinkComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasOther()) tgt.setOther(Reference10_40.convertReference(src.getOther())); if (src.hasType()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Person10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Person10_40.java index 556354df5..9ebecd39c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Person10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Person10_40.java @@ -114,7 +114,7 @@ public class Person10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.dstu2.model.Person.PersonLinkComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasTarget()) tgt.setTarget(Reference10_40.convertReference(src.getTarget())); if (src.hasAssurance()) @@ -126,7 +126,7 @@ public class Person10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.r4.model.Person.PersonLinkComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasTarget()) tgt.setTarget(Reference10_40.convertReference(src.getTarget())); if (src.hasAssurance()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Practitioner10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Practitioner10_40.java index 563b98684..219f700a7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Practitioner10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Practitioner10_40.java @@ -64,7 +64,7 @@ public class Practitioner10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier10_40.convertIdentifier(t)); if (src.hasCode()) @@ -80,7 +80,7 @@ public class Practitioner10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.r4.model.Practitioner.PractitionerQualificationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier10_40.convertIdentifier(t)); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Procedure10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Procedure10_40.java index 2963eb2b2..cb176ecb2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Procedure10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Procedure10_40.java @@ -82,7 +82,7 @@ public class Procedure10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Procedure.ProcedurePerformerComponent tgt = new org.hl7.fhir.r4.model.Procedure.ProcedurePerformerComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasActor()) tgt.setActor(Reference10_40.convertReference(src.getActor())); if (src.hasRole()) @@ -94,7 +94,7 @@ public class Procedure10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Procedure.ProcedureFocalDeviceComponent tgt = new org.hl7.fhir.r4.model.Procedure.ProcedureFocalDeviceComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasAction()) tgt.setAction(CodeableConcept10_40.convertCodeableConcept(src.getAction())); if (src.hasManipulated()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Questionnaire10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Questionnaire10_40.java index d8d6f144a..384193bfb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Questionnaire10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Questionnaire10_40.java @@ -89,7 +89,7 @@ public class Questionnaire10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent tgt = new org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_40.convertString(src.getLinkIdElement())); for (org.hl7.fhir.r4.model.Coding t : src.getCode()) tgt.addConcept(Coding10_40.convertCoding(t)); @@ -111,7 +111,7 @@ public class Questionnaire10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_40.convertString(src.getLinkIdElement())); for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(Coding10_40.convertCoding(t)); @@ -188,7 +188,7 @@ public class Questionnaire10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent tgt = new org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_40.convertString(src.getLinkIdElement())); for (org.hl7.fhir.r4.model.Coding t : src.getCode()) tgt.addConcept(Coding10_40.convertCoding(t)); @@ -218,7 +218,7 @@ public class Questionnaire10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_40.convertString(src.getLinkIdElement())); for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(Coding10_40.convertCoding(t)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/QuestionnaireResponse10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/QuestionnaireResponse10_40.java index 8c6d0a055..06e6b64be 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/QuestionnaireResponse10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/QuestionnaireResponse10_40.java @@ -14,7 +14,7 @@ public class QuestionnaireResponse10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_40.convertString(src.getLinkIdElement())); if (src.hasTextElement()) @@ -31,7 +31,7 @@ public class QuestionnaireResponse10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_40.convertString(src.getLinkIdElement())); if (src.hasTextElement()) @@ -98,7 +98,7 @@ public class QuestionnaireResponse10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_40.convertString(src.getLinkIdElement())); if (src.hasTextElement()) @@ -114,7 +114,7 @@ public class QuestionnaireResponse10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().convertType(src.getValue())); for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent t : src.getGroup()) @@ -126,7 +126,7 @@ public class QuestionnaireResponse10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().convertType(src.getValue())); for (org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) @@ -138,7 +138,7 @@ public class QuestionnaireResponse10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_40.convertString(src.getLinkIdElement())); if (src.hasTextElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/RiskAssessment10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/RiskAssessment10_40.java index 24ccc5de4..faaeafde9 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/RiskAssessment10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/RiskAssessment10_40.java @@ -64,7 +64,7 @@ public class RiskAssessment10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasOutcome()) tgt.setOutcome(CodeableConcept10_40.convertCodeableConcept(src.getOutcome())); if (src.hasProbability()) @@ -82,7 +82,7 @@ public class RiskAssessment10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.r4.model.RiskAssessment.RiskAssessmentPredictionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasOutcome()) tgt.setOutcome(CodeableConcept10_40.convertCodeableConcept(src.getOutcome())); if (src.hasProbability()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/StructureDefinition10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/StructureDefinition10_40.java index 4ff99a000..ef1dc7175 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/StructureDefinition10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/StructureDefinition10_40.java @@ -247,7 +247,7 @@ public class StructureDefinition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionDifferentialComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); List slicePaths = new ArrayList(); for (org.hl7.fhir.dstu2.model.ElementDefinition t : src.getElement()) { if (t.hasSlicing()) @@ -261,7 +261,7 @@ public class StructureDefinition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionDifferentialComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition10_40.convertElementDefinition(t)); return tgt; @@ -320,7 +320,7 @@ public class StructureDefinition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id10_40.convertId(src.getIdentityElement())); if (src.hasUriElement()) @@ -336,7 +336,7 @@ public class StructureDefinition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id10_40.convertId(src.getIdentityElement())); if (src.hasUriElement()) @@ -352,7 +352,7 @@ public class StructureDefinition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionSnapshotComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); List slicePaths = new ArrayList(); for (org.hl7.fhir.dstu2.model.ElementDefinition t : src.getElement()) { if (t.hasSlicing()) @@ -366,7 +366,7 @@ public class StructureDefinition10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionSnapshotComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition10_40.convertElementDefinition(t)); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Subscription10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Subscription10_40.java index f44fe9c62..f55b98d96 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Subscription10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Subscription10_40.java @@ -56,7 +56,7 @@ public class Subscription10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Subscription.SubscriptionChannelComponent tgt = new org.hl7.fhir.r4.model.Subscription.SubscriptionChannelComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertSubscriptionChannelType(src.getTypeElement())); if (src.hasEndpoint()) @@ -71,7 +71,7 @@ public class Subscription10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Subscription.SubscriptionChannelComponent tgt = new org.hl7.fhir.dstu2.model.Subscription.SubscriptionChannelComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertSubscriptionChannelType(src.getTypeElement())); if (src.hasEndpoint()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Substance10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Substance10_40.java index 5020af0b8..088a40893 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Substance10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Substance10_40.java @@ -56,7 +56,7 @@ public class Substance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasQuantity()) tgt.setQuantity(Ratio10_40.convertRatio(src.getQuantity())); return tgt; @@ -66,7 +66,7 @@ public class Substance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.r4.model.Substance.SubstanceIngredientComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasQuantity()) tgt.setQuantity(Ratio10_40.convertRatio(src.getQuantity())); if (src.hasSubstance()) @@ -78,7 +78,7 @@ public class Substance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier10_40.convertIdentifier(src.getIdentifier())); if (src.hasExpiryElement()) @@ -92,7 +92,7 @@ public class Substance10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier10_40.convertIdentifier(src.getIdentifier())); if (src.hasExpiryElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/TestScript10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/TestScript10_40.java index fb528663e..507032fbd 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/TestScript10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/TestScript10_40.java @@ -261,7 +261,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionAssertComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionAssertComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLabelElement()) tgt.setLabelElement(String10_40.convertString(src.getLabelElement())); if (src.hasDescriptionElement()) @@ -305,7 +305,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.SetupActionAssertComponent tgt = new org.hl7.fhir.r4.model.TestScript.SetupActionAssertComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLabelElement()) tgt.setLabelElement(String10_40.convertString(src.getLabelElement())); if (src.hasDescriptionElement()) @@ -349,7 +349,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -361,7 +361,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.SetupActionComponent tgt = new org.hl7.fhir.r4.model.TestScript.SetupActionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -373,7 +373,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(Coding10_40.convertCoding(src.getType())); if (src.hasResourceElement()) @@ -409,7 +409,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(Coding10_40.convertCoding(src.getType())); if (src.hasResourceElement()) @@ -445,7 +445,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.SetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.r4.model.TestScript.SetupActionOperationRequestHeaderComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasFieldElement()) tgt.setFieldElement(String10_40.convertString(src.getFieldElement())); if (src.hasValueElement()) @@ -457,7 +457,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasFieldElement()) tgt.setFieldElement(String10_40.convertString(src.getFieldElement())); if (src.hasValueElement()) @@ -469,7 +469,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; @@ -479,7 +479,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.TeardownActionComponent tgt = new org.hl7.fhir.r4.model.TestScript.TeardownActionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; @@ -489,7 +489,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptTestActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTestActionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -501,7 +501,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.TestActionComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestActionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -636,7 +636,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptFixtureComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasAutocreateElement()) tgt.setAutocreateElement(Boolean10_40.convertBoolean(src.getAutocreateElement())); if (src.hasAutodeleteElement()) @@ -650,7 +650,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptFixtureComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasAutocreateElement()) tgt.setAutocreateElement(Boolean10_40.convertBoolean(src.getAutocreateElement())); if (src.hasAutodeleteElement()) @@ -664,7 +664,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasRequiredElement()) tgt.setRequiredElement(Boolean10_40.convertBoolean(src.getRequiredElement())); if (src.hasValidatedElement()) @@ -683,7 +683,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasRequiredElement()) tgt.setRequiredElement(Boolean10_40.convertBoolean(src.getRequiredElement())); if (src.hasValidatedElement()) @@ -702,7 +702,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t)); for (org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) @@ -714,7 +714,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptMetadataComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t)); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) @@ -726,7 +726,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptMetadataLinkComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasUrlElement()) tgt.setUrlElement(Uri10_40.convertUri(src.getUrlElement())); if (src.hasDescriptionElement()) @@ -738,7 +738,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasUrlElement()) tgt.setUrlElement(Uri10_40.convertUri(src.getUrlElement())); if (src.hasDescriptionElement()) @@ -750,7 +750,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptSetupComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -760,7 +760,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.TestScript.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -770,7 +770,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.TestScript.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -780,7 +780,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptTeardownComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -790,7 +790,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptTestComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasDescriptionElement()) @@ -804,7 +804,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTestComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasDescriptionElement()) @@ -818,7 +818,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptVariableComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasHeaderFieldElement()) @@ -834,7 +834,7 @@ public class TestScript10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptVariableComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasHeaderFieldElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ValueSet10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ValueSet10_40.java index 3b8069b8c..e0ba502f2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ValueSet10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ValueSet10_40.java @@ -24,7 +24,7 @@ public class ValueSet10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptReferenceComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code10_40.convertCode(src.getCodeElement())); if (src.hasDisplayElement()) @@ -38,7 +38,7 @@ public class ValueSet10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code10_40.convertCode(src.getCodeElement())); if (src.hasDisplayElement()) @@ -52,7 +52,7 @@ public class ValueSet10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptReferenceDesignationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLanguageElement()) tgt.setLanguageElement(Code10_40.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -66,7 +66,7 @@ public class ValueSet10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasLanguageElement()) tgt.setLanguageElement(Code10_40.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -80,7 +80,7 @@ public class ValueSet10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasSystemElement()) tgt.setSystemElement(Uri10_40.convertUri(src.getSystemElement())); if (src.hasVersionElement()) @@ -96,7 +96,7 @@ public class ValueSet10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasSystemElement()) tgt.setSystemElement(Uri10_40.convertUri(src.getSystemElement())); if (src.hasVersionElement()) @@ -112,7 +112,7 @@ public class ValueSet10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasPropertyElement()) tgt.setPropertyElement(Code10_40.convertCode(src.getPropertyElement())); if (src.hasOp()) @@ -126,7 +126,7 @@ public class ValueSet10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptSetFilterComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasPropertyElement()) tgt.setPropertyElement(Code10_40.convertCode(src.getPropertyElement())); if (src.hasOp()) @@ -344,7 +344,7 @@ public class ValueSet10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetComposeComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent t : src.getInclude()) { for (org.hl7.fhir.r4.model.UriType ti : t.getValueSet()) tgt.addImport(ti.getValue()); if (noSystem == null || !t.getSystem().equals(noSystem)) @@ -359,7 +359,7 @@ public class ValueSet10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetComposeComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.UriType t : src.getImport()) tgt.addInclude().addValueSet(t.getValue()); for (org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent t : src.getInclude()) tgt.addInclude(convertConceptSetComponent(t)); @@ -396,7 +396,7 @@ public class ValueSet10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasIdentifierElement()) tgt.setIdentifierElement(Uri10_40.convertUri(src.getIdentifierElement())); if (src.hasTimestampElement()) @@ -416,7 +416,7 @@ public class ValueSet10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasIdentifierElement()) tgt.setIdentifierElement(Uri10_40.convertUri(src.getIdentifierElement())); if (src.hasTimestampElement()) @@ -436,7 +436,7 @@ public class ValueSet10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasSystemElement()) tgt.setSystemElement(Uri10_40.convertUri(src.getSystemElement())); if (src.hasAbstractElement()) @@ -456,7 +456,7 @@ public class ValueSet10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionContainsComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasSystemElement()) tgt.setSystemElement(Uri10_40.convertUri(src.getSystemElement())); if (src.hasAbstractElement()) @@ -476,7 +476,7 @@ public class ValueSet10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionParameterComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasValue()) @@ -488,7 +488,7 @@ public class ValueSet10_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionParameterComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_40.convertString(src.getNameElement())); if (src.hasValue()) @@ -546,7 +546,7 @@ public class ValueSet10_40 { public static ValueSet.ConceptDefinitionComponent convertCodeSystemConcept(CodeSystem cs, ConceptDefinitionComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; ValueSet.ConceptDefinitionComponent tgt = new ValueSet.ConceptDefinitionComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); tgt.setAbstract(CodeSystemUtilities.isNotSelectable(cs, src)); tgt.setCode(src.getCode()); tgt.setDefinition(src.getDefinition()); @@ -560,7 +560,7 @@ public class ValueSet10_40 { public static ValueSet.ConceptDefinitionDesignationComponent convertCodeSystemDesignation(CodeSystem.ConceptDefinitionDesignationComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; ValueSet.ConceptDefinitionDesignationComponent tgt = new ValueSet.ConceptDefinitionDesignationComponent(); - ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyElement(src, tgt); + ConversionContext10_40.INSTANCE.getVersionConvertor_10_40().copyBackboneElement(src,tgt); tgt.setUse(Coding10_40.convertCoding(src.getUse())); tgt.setLanguage(src.getLanguage()); tgt.setValue(src.getValue()); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/VersionConvertor_10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/VersionConvertor_10_50.java index b19704b69..36b2f93f5 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/VersionConvertor_10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/VersionConvertor_10_50.java @@ -2,9 +2,11 @@ package org.hl7.fhir.convertors.conv10_50; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_50; import org.hl7.fhir.convertors.context.ConversionContext10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.BackboneElement10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Element10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Type10_50; import org.hl7.fhir.convertors.conv10_50.resources10_50.Resource10_50; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.BackboneElement14_40; import org.hl7.fhir.dstu2.model.CodeableConcept; import org.hl7.fhir.exceptions.FHIRException; @@ -65,12 +67,15 @@ public class VersionConvertor_10_50 { private final BaseAdvisor_10_50 advisor; private final Element10_50 elementConvertor; + + private final BackboneElement10_50 backboneElementConvertor; private final Resource10_50 resourceConvertor; private final Type10_50 typeConvertor; public VersionConvertor_10_50(@Nonnull BaseAdvisor_10_50 advisor) { this.advisor = advisor; this.elementConvertor = new Element10_50(advisor); + backboneElementConvertor = new BackboneElement10_50(); this.resourceConvertor = new Resource10_50(advisor); this.typeConvertor = new Type10_50(advisor); } @@ -166,4 +171,16 @@ public class VersionConvertor_10_50 { String... var) throws FHIRException { elementConvertor.copyElement(src, tgt, ConversionContext10_50.INSTANCE.path(), var); } + + public void copyBackboneElement(@Nonnull org.hl7.fhir.r5.model.BackboneElement src, + @Nonnull org.hl7.fhir.dstu2.model.BackboneElement tgt, + String... var) throws FHIRException { + backboneElementConvertor.copyBackboneElement(src, tgt, var); + } + + public void copyBackboneElement(@Nonnull org.hl7.fhir.dstu2.model.BackboneElement src, + @Nonnull org.hl7.fhir.r5.model.BackboneElement tgt, + String... var) throws FHIRException { + backboneElementConvertor.copyBackboneElement(src, tgt, var); + } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/BackboneElement10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/BackboneElement10_50.java new file mode 100644 index 000000000..fc5b83be5 --- /dev/null +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/BackboneElement10_50.java @@ -0,0 +1,24 @@ +package org.hl7.fhir.convertors.conv10_50.datatypes10_50; + +import org.hl7.fhir.convertors.context.ConversionContext10_50; +import org.hl7.fhir.exceptions.FHIRException; + +public class BackboneElement10_50 { + static public void copyBackboneElement(org.hl7.fhir.dstu2.model.BackboneElement src, + org.hl7.fhir.r5.model.BackboneElement tgt, + String ... var) throws FHIRException { + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt, var); + for (org.hl7.fhir.dstu2.model.Extension e : src.getModifierExtension()) { + tgt.addModifierExtension(Extension10_50.convertExtension(e)); + } + } + + static public void copyBackboneElement(org.hl7.fhir.r5.model.BackboneElement src, + org.hl7.fhir.dstu2.model.BackboneElement tgt, + String ... var) throws FHIRException { + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt, var); + for (org.hl7.fhir.r5.model.Extension e : src.getModifierExtension()) { + tgt.addModifierExtension(Extension10_50.convertExtension(e)); + } + } +} diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Appointment10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Appointment10_50.java index 041fbf90d..318ef9c07 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Appointment10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Appointment10_50.java @@ -97,7 +97,7 @@ public class Appointment10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept10_50.convertCodeableConcept(t)); if (src.hasActor()) @@ -113,7 +113,7 @@ public class Appointment10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.r5.model.Appointment.AppointmentParticipantComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept10_50.convertCodeableConcept(t)); if (src.hasActor()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/AuditEvent10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/AuditEvent10_50.java index 23314c5d8..cccfda868 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/AuditEvent10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/AuditEvent10_50.java @@ -131,7 +131,7 @@ public class AuditEvent10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getRole()) tgt.addRole(CodeableConcept10_50.convertCodeableConcept(t)); if (src.hasWho()) { @@ -162,7 +162,7 @@ public class AuditEvent10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.AuditEvent.AuditEventAgentComponent tgt = new org.hl7.fhir.r5.model.AuditEvent.AuditEventAgentComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRole()) tgt.addRole(CodeableConcept10_50.convertCodeableConcept(t)); if (src.hasReference()) @@ -215,7 +215,7 @@ public class AuditEvent10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.AuditEvent.AuditEventEntityComponent tgt = new org.hl7.fhir.r5.model.AuditEvent.AuditEventEntityComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.getWhat().setIdentifier(Identifier10_50.convertIdentifier(src.getIdentifier())); if (src.hasReference()) @@ -240,7 +240,7 @@ public class AuditEvent10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasWhat()) { if (src.getWhat().hasIdentifier()) tgt.setIdentifier(Identifier10_50.convertIdentifier(src.getWhat().getIdentifier())); @@ -267,7 +267,7 @@ public class AuditEvent10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.r5.model.AuditEvent.AuditEventEntityDetailComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.getType().setTextElement(String10_50.convertString(src.getTypeElement())); if (src.hasValue()) @@ -279,7 +279,7 @@ public class AuditEvent10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventObjectDetailComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.getType().hasTextElement()) tgt.setTypeElement(String10_50.convertString(src.getType().getTextElement())); if (src.hasValueStringType()) @@ -350,7 +350,7 @@ public class AuditEvent10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); // if (src.hasSiteElement()) // tgt.setSiteElement(String10_50.convertString(src.getSiteElement())); if (src.hasObserver()) @@ -363,7 +363,7 @@ public class AuditEvent10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.r5.model.AuditEvent.AuditEventSourceComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); // if (src.hasSiteElement()) // tgt.setSiteElement(String10_50.convertString(src.getSiteElement())); if (src.hasIdentifier()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Bundle10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Bundle10_50.java index 0f0c5782b..07afc2a77 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Bundle10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Bundle10_50.java @@ -52,7 +52,7 @@ public class Bundle10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleEntryComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); if (src.hasFullUrlElement()) @@ -74,7 +74,7 @@ public class Bundle10_50 { if (advisor.ignoreEntry(src, FhirPublication.DSTU2)) return null; org.hl7.fhir.dstu2.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); if (src.hasFullUrlElement()) tgt.setFullUrlElement(Uri10_50.convertUri(src.getFullUrlElement())); @@ -97,7 +97,7 @@ public class Bundle10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryRequestComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasMethod()) tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); if (src.hasUrlElement()) @@ -117,7 +117,7 @@ public class Bundle10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleEntryRequestComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasMethod()) tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); if (src.hasUrlElement()) @@ -137,7 +137,7 @@ public class Bundle10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntryResponseComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasStatusElement()) tgt.setStatusElement(String10_50.convertString(src.getStatusElement())); if (src.hasLocationElement()) @@ -153,7 +153,7 @@ public class Bundle10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleEntryResponseComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasStatusElement()) tgt.setStatusElement(String10_50.convertString(src.getStatusElement())); if (src.hasLocationElement()) @@ -169,7 +169,7 @@ public class Bundle10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleEntrySearchComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); if (src.hasScoreElement()) @@ -181,7 +181,7 @@ public class Bundle10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleEntrySearchComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); if (src.hasScoreElement()) @@ -193,7 +193,7 @@ public class Bundle10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleLinkComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasRelationElement()) tgt.setRelationElement(String10_50.convertString(src.getRelationElement())); if (src.hasUrlElement()) @@ -205,7 +205,7 @@ public class Bundle10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu2.model.Bundle.BundleLinkComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasRelationElement()) tgt.setRelationElement(String10_50.convertString(src.getRelationElement())); if (src.hasUrlElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/CarePlan10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/CarePlan10_50.java index 4132618d0..c8a10bdcf 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/CarePlan10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/CarePlan10_50.java @@ -80,7 +80,7 @@ public class CarePlan10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.Annotation t : src.getProgress()) tgt.addProgress(Annotation10_50.convertAnnotation(t)); if (src.hasPlannedActivityReference()) tgt.setReference(Reference10_50.convertReference(src.getPlannedActivityReference())); @@ -93,7 +93,7 @@ public class CarePlan10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.Annotation t : src.getProgress()) tgt.addProgress(Annotation10_50.convertAnnotation(t)); if (src.hasReference()) @@ -107,7 +107,7 @@ public class CarePlan10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_50.convertCodeableConcept(src.getCode())); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReasonCode()) @@ -140,7 +140,7 @@ public class CarePlan10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_50.convertCodeableConcept(src.getCode())); for (CodeableReference t : src.getReason()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Communication10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Communication10_50.java index 5d1cb1adb..d01cc64f9 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Communication10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Communication10_50.java @@ -78,7 +78,7 @@ public class Communication10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.dstu2.model.Communication.CommunicationPayloadComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().convertType(src.getContent())); return tgt; @@ -88,7 +88,7 @@ public class Communication10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.r5.model.Communication.CommunicationPayloadComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().convertType(src.getContent())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/CommunicationRequest10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/CommunicationRequest10_50.java index 800180c2c..8cfd1d76a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/CommunicationRequest10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/CommunicationRequest10_50.java @@ -86,7 +86,7 @@ public class CommunicationRequest10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestPayloadComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().convertType(src.getContent())); return tgt; @@ -96,7 +96,7 @@ public class CommunicationRequest10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestPayloadComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().convertType(src.getContent())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Composition10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Composition10_50.java index dd43ae046..964affc1f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Composition10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Composition10_50.java @@ -140,7 +140,7 @@ public class Composition10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setMode(Collections.singletonList(convertCompositionAttestationMode(src.getMode()))); if (src.hasTimeElement()) @@ -154,7 +154,7 @@ public class Composition10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.r5.model.Composition.CompositionAttesterComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setMode(convertCompositionAttestationMode(src.getMode().get(0))); if (src.hasTimeElement()) @@ -168,7 +168,7 @@ public class Composition10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCode()) tgt.addCode(CodeableConcept10_50.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -181,7 +181,7 @@ public class Composition10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.r5.model.Composition.CompositionEventComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCode()) tgt.addCode(CodeableConcept10_50.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -244,7 +244,7 @@ public class Composition10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu2.model.Composition.SectionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasTitleElement()) tgt.setTitleElement(String10_50.convertString(src.getTitleElement())); if (src.hasCode()) @@ -266,7 +266,7 @@ public class Composition10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Composition.SectionComponent tgt = new org.hl7.fhir.r5.model.Composition.SectionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasTitleElement()) tgt.setTitleElement(String10_50.convertString(src.getTitleElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ConceptMap10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ConceptMap10_50.java index 6ec00225f..531944ec9 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ConceptMap10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ConceptMap10_50.java @@ -214,7 +214,7 @@ public class ConceptMap10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasPropertyElement()) tgt.setElementElement(Uri10_50.convertUri(src.getPropertyElement())); if (src.hasValueCoding()) { @@ -229,7 +229,7 @@ public class ConceptMap10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.OtherElementComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasElementElement()) tgt.setPropertyElement(Uri10_50.convertUri(src.getElementElement())); tgt.setValue(String10_50.convertString(src.getCodeElement())); @@ -240,7 +240,7 @@ public class ConceptMap10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.SourceElementComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); tgt.setCodeSystem(g.getSource()); if (src.hasCodeElement()) tgt.setCodeElement(Code10_50.convertCode(src.getCodeElement())); @@ -259,7 +259,7 @@ public class ConceptMap10_50 { return res; for (org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent t : src.getTarget()) { org.hl7.fhir.r5.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.SourceElementComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); tgt.setCode(src.getCode()); if (t.getEquivalence() == org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.UNMATCHED) { tgt.setNoMap(true); @@ -275,7 +275,7 @@ public class ConceptMap10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu2.model.ConceptMap.TargetElementComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); tgt.setCodeSystem(g.getTarget()); if (src.hasCodeElement()) tgt.setCodeElement(Code10_50.convertCode(src.getCodeElement())); @@ -294,7 +294,7 @@ public class ConceptMap10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.TargetElementComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code10_50.convertCode(src.getCodeElement())); if (src.hasEquivalence()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Condition10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Condition10_50.java index c09077ea9..ca0f9a8bd 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Condition10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Condition10_50.java @@ -148,7 +148,7 @@ public class Condition10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasSummary()) tgt.setSummary(CodeableConcept10_50.convertCodeableConcept(src.getSummary())); for (org.hl7.fhir.r5.model.Reference t : src.getAssessment()) tgt.addAssessment(Reference10_50.convertReference(t)); @@ -159,7 +159,7 @@ public class Condition10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.r5.model.Condition.ConditionStageComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasSummary()) tgt.setSummary(CodeableConcept10_50.convertCodeableConcept(src.getSummary())); for (org.hl7.fhir.dstu2.model.Reference t : src.getAssessment()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Conformance10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Conformance10_50.java index 4cb927343..ba2973125 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Conformance10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Conformance10_50.java @@ -189,7 +189,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementDocumentComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertDocumentMode(src.getModeElement())); if (src.hasDocumentation()) @@ -203,7 +203,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceDocumentComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertDocumentMode(src.getModeElement())); if (src.hasDocumentation()) @@ -217,7 +217,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasDescriptionElement()) tgt.setDescriptionElement(String10_50.convertString(src.getDescriptionElement())); if (src.hasUrl()) @@ -229,7 +229,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementImplementationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasDescriptionElement()) tgt.setDescriptionElement(String10_50.convertString(src.getDescriptionElement())); if (src.hasUrl()) @@ -241,7 +241,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t)); if (src.hasReliableCacheElement()) @@ -275,7 +275,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t)); if (src.hasReliableCacheElement()) @@ -309,7 +309,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasProtocol()) tgt.setProtocol(Coding10_50.convertCoding(src.getProtocol())); if (src.hasAddress()) @@ -321,7 +321,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceMessagingEndpointComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasProtocol()) tgt.setProtocol(Coding10_50.convertCoding(src.getProtocol())); if (src.hasAddress()) @@ -333,7 +333,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertRestfulConformanceMode(src.getModeElement())); if (src.hasDocumentation()) @@ -358,7 +358,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertRestfulConformanceMode(src.getModeElement())); if (src.hasDocumentation()) @@ -393,7 +393,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasDefinitionElement()) @@ -405,7 +405,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -417,7 +417,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code10_50.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -447,7 +447,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasType()) { if (src.hasTypeElement()) tgt.setTypeElement(Code10_50.convertCode(src.getTypeElement())); @@ -479,7 +479,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -495,7 +495,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceSearchParamComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -511,7 +511,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestSecurityComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCorsElement()) tgt.setCorsElement(Boolean10_50.convertBoolean(src.getCorsElement())); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getService()) @@ -525,7 +525,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceRestSecurityComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCorsElement()) tgt.setCorsElement(Boolean10_50.convertBoolean(src.getCorsElement())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getService()) @@ -539,7 +539,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasVersionElement()) @@ -553,7 +553,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementSoftwareComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasVersionElement()) @@ -649,7 +649,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.ResourceInteractionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -661,7 +661,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -755,7 +755,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent tgt = new org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -767,7 +767,7 @@ public class Conformance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.SystemInteractionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DataElement10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DataElement10_50.java index b330f1269..4741459de 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DataElement10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DataElement10_50.java @@ -90,7 +90,7 @@ public class DataElement10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id10_50.convertId(src.getIdentityElement())); if (src.hasUriElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DetectedIssue10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DetectedIssue10_50.java index b831a9b08..e04a2079c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DetectedIssue10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DetectedIssue10_50.java @@ -70,7 +70,7 @@ public class DetectedIssue10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasAction()) tgt.setAction(CodeableConcept10_50.convertCodeableConcept(src.getAction())); if (src.hasDate()) @@ -84,7 +84,7 @@ public class DetectedIssue10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueMitigationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasAction()) tgt.setAction(CodeableConcept10_50.convertCodeableConcept(src.getAction())); if (src.hasDate()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DeviceMetric10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DeviceMetric10_50.java index 6dcd1feec..f3960f8f1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DeviceMetric10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DeviceMetric10_50.java @@ -70,7 +70,7 @@ public class DeviceMetric10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.r5.model.DeviceMetric.DeviceMetricCalibrationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertDeviceMetricCalibrationType(src.getTypeElement())); if (src.hasState()) @@ -84,7 +84,7 @@ public class DeviceMetric10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertDeviceMetricCalibrationType(src.getTypeElement())); if (src.hasState()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DiagnosticReport10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DiagnosticReport10_50.java index 17cfb3134..6d227f0d0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DiagnosticReport10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DiagnosticReport10_50.java @@ -87,7 +87,7 @@ public class DiagnosticReport10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.DiagnosticReport.DiagnosticReportMediaComponent tgt = new org.hl7.fhir.r5.model.DiagnosticReport.DiagnosticReportMediaComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCommentElement()) tgt.setCommentElement(String10_50.convertString(src.getCommentElement())); if (src.hasLink()) @@ -99,7 +99,7 @@ public class DiagnosticReport10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu2.model.DiagnosticReport.DiagnosticReportImageComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCommentElement()) tgt.setCommentElement(String10_50.convertString(src.getCommentElement())); if (src.hasLink()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DocumentManifest10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DocumentManifest10_50.java index bb316a831..161201b8c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DocumentManifest10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DocumentManifest10_50.java @@ -9,7 +9,7 @@ public class DocumentManifest10_50 { public static org.hl7.fhir.r5.model.DocumentManifest.DocumentManifestRelatedComponent convertDocumentManifestRelatedComponent(org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.r5.model.DocumentManifest.DocumentManifestRelatedComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier10_50.convertIdentifier(src.getIdentifier())); if (src.hasRef()) tgt.setRef(Reference10_50.convertReference(src.getRef())); return tgt; @@ -18,7 +18,7 @@ public class DocumentManifest10_50 { public static org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent convertDocumentManifestRelatedComponent(org.hl7.fhir.r5.model.DocumentManifest.DocumentManifestRelatedComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier10_50.convertIdentifier(src.getIdentifier())); if (src.hasRef()) tgt.setRef(Reference10_50.convertReference(src.getRef())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DocumentReference10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DocumentReference10_50.java index 5e95700c6..60bf0aa37 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DocumentReference10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DocumentReference10_50.java @@ -127,7 +127,7 @@ public class DocumentReference10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContentComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasAttachment()) tgt.setAttachment(Attachment10_50.convertAttachment(src.getAttachment())); return tgt; @@ -137,7 +137,7 @@ public class DocumentReference10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.r5.model.DocumentReference.DocumentReferenceContentComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasAttachment()) tgt.setAttachment(Attachment10_50.convertAttachment(src.getAttachment())); return tgt; @@ -203,7 +203,7 @@ public class DocumentReference10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceRelatesToComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertDocumentRelationshipType(src.getCode())); if (src.hasTarget()) @@ -215,7 +215,7 @@ public class DocumentReference10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.r5.model.DocumentReference.DocumentReferenceRelatesToComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(convertDocumentRelationshipType(src.getCodeElement())); if (src.hasTarget()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Encounter10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Encounter10_50.java index 85baf77cf..8be6b75f1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Encounter10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Encounter10_50.java @@ -147,7 +147,7 @@ public class Encounter10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.r5.model.Encounter.EncounterHospitalizationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasPreAdmissionIdentifier()) tgt.setPreAdmissionIdentifier(Identifier10_50.convertIdentifier(src.getPreAdmissionIdentifier())); if (src.hasOrigin()) @@ -173,7 +173,7 @@ public class Encounter10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasPreAdmissionIdentifier()) tgt.setPreAdmissionIdentifier(Identifier10_50.convertIdentifier(src.getPreAdmissionIdentifier())); if (src.hasOrigin()) @@ -199,7 +199,7 @@ public class Encounter10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.r5.model.Encounter.EncounterLocationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLocation()) tgt.setLocation(Reference10_50.convertReference(src.getLocation())); if (src.hasStatus()) @@ -213,7 +213,7 @@ public class Encounter10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLocation()) tgt.setLocation(Reference10_50.convertReference(src.getLocation())); if (src.hasStatus()) @@ -277,7 +277,7 @@ public class Encounter10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.r5.model.Encounter.EncounterParticipantComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept10_50.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -291,7 +291,7 @@ public class Encounter10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.dstu2.model.Encounter.EncounterParticipantComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept10_50.convertCodeableConcept(t)); if (src.hasPeriod()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/EpisodeOfCare10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/EpisodeOfCare10_50.java index efdd85208..a08d08e9e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/EpisodeOfCare10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/EpisodeOfCare10_50.java @@ -127,7 +127,7 @@ public class EpisodeOfCare10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.dstu2.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasStatus()) tgt.setStatusElement(convertEpisodeOfCareStatus(src.getStatusElement())); if (src.hasPeriod()) @@ -139,7 +139,7 @@ public class EpisodeOfCare10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.r5.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasStatus()) tgt.setStatusElement(convertEpisodeOfCareStatus(src.getStatusElement())); if (src.hasPeriod()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/FamilyMemberHistory10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/FamilyMemberHistory10_50.java index e03c7c0db..c602dd222 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/FamilyMemberHistory10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/FamilyMemberHistory10_50.java @@ -120,7 +120,7 @@ public class FamilyMemberHistory10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.r5.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_50.convertCodeableConcept(src.getCode())); if (src.hasOutcome()) @@ -134,7 +134,7 @@ public class FamilyMemberHistory10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.dstu2.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_50.convertCodeableConcept(src.getCode())); if (src.hasOutcome()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Group10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Group10_50.java index ba305a62f..0a12e70cb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Group10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Group10_50.java @@ -64,7 +64,7 @@ public class Group10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupCharacteristicComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -80,7 +80,7 @@ public class Group10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.r5.model.Group.GroupCharacteristicComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -96,7 +96,7 @@ public class Group10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.r5.model.Group.GroupMemberComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasEntity()) tgt.setEntity(Reference10_50.convertReference(src.getEntity())); if (src.hasPeriod()) @@ -110,7 +110,7 @@ public class Group10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.dstu2.model.Group.GroupMemberComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasEntity()) tgt.setEntity(Reference10_50.convertReference(src.getEntity())); if (src.hasPeriod()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/HealthcareService10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/HealthcareService10_50.java index ebfb69800..048e5abae 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/HealthcareService10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/HealthcareService10_50.java @@ -179,7 +179,7 @@ public class HealthcareService10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceAvailableTimeComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(HealthcareService10_50::convertDaysOfWeek) .collect(Collectors.toList())); @@ -196,7 +196,7 @@ public class HealthcareService10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.r5.model.HealthcareService.HealthcareServiceAvailableTimeComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(HealthcareService10_50::convertDaysOfWeek) .collect(Collectors.toList())); @@ -213,7 +213,7 @@ public class HealthcareService10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.r5.model.HealthcareService.HealthcareServiceNotAvailableComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasDescriptionElement()) tgt.setDescriptionElement(String10_50.convertString(src.getDescriptionElement())); if (src.hasDuring()) @@ -225,7 +225,7 @@ public class HealthcareService10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu2.model.HealthcareService.HealthcareServiceNotAvailableComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasDescriptionElement()) tgt.setDescriptionElement(String10_50.convertString(src.getDescriptionElement())); if (src.hasDuring()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ImplementationGuide10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ImplementationGuide10_50.java index 4c0ade774..24ffdbc72 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ImplementationGuide10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ImplementationGuide10_50.java @@ -133,7 +133,7 @@ public class ImplementationGuide10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); tgt.setType(org.hl7.fhir.dstu2.model.ImplementationGuide.GuideDependencyType.REFERENCE); if (src.hasUri()) tgt.setUri(src.getUri()); @@ -144,7 +144,7 @@ public class ImplementationGuide10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDependsOnComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDependsOnComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasUri()) tgt.setUri(src.getUri()); return tgt; @@ -154,7 +154,7 @@ public class ImplementationGuide10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideGlobalComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code10_50.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -166,7 +166,7 @@ public class ImplementationGuide10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasType()) { if (src.hasTypeElement()) tgt.setTypeElement(Code10_50.convertCode(src.getTypeElement())); @@ -180,7 +180,7 @@ public class ImplementationGuide10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); tgt.setId(src.getId()); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); @@ -194,7 +194,7 @@ public class ImplementationGuide10_50 { return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent(); tgt.setId("p" + (context.getGrouping().size() + 1)); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasDescription()) @@ -211,7 +211,7 @@ public class ImplementationGuide10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageResourceComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePackageResourceComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasExampleCanonicalType()) tgt.setExampleFor(Reference10_50.convertCanonicalToReference(src.getExampleCanonicalType())); if (src.hasName()) @@ -227,7 +227,7 @@ public class ImplementationGuide10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasExampleFor()) tgt.setExample(Reference10_50.convertReferenceToCanonical(src.getExampleFor())); if (src.hasName()) @@ -245,7 +245,7 @@ public class ImplementationGuide10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasSource()) { if (src.hasSourceElement()) tgt.setName(convertUriToUrl(src.getSourceElement())); @@ -263,7 +263,7 @@ public class ImplementationGuide10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuidePageComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameUrlType()) tgt.setSource(src.getNameUrlType().getValue()); if (src.hasTitleElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/List10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/List10_50.java index 9c5761208..4207c582e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/List10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/List10_50.java @@ -195,14 +195,14 @@ public class List10_50 { } public static void copyBackboneElement(org.hl7.fhir.dstu2.model.BackboneElement src, org.hl7.fhir.r5.model.BackboneElement tgt) throws FHIRException { - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension10_50.convertExtension(e)); } } public static void copyBackboneElement(org.hl7.fhir.r5.model.BackboneElement src, org.hl7.fhir.dstu2.model.BackboneElement tgt) throws FHIRException { - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension10_50.convertExtension(e)); } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Location10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Location10_50.java index aa8894db3..ff8e64cfe 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Location10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Location10_50.java @@ -118,7 +118,7 @@ public class Location10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.r5.model.Location.LocationPositionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLongitudeElement()) tgt.setLongitudeElement(Decimal10_50.convertDecimal(src.getLongitudeElement())); if (src.hasLatitudeElement()) @@ -132,7 +132,7 @@ public class Location10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.dstu2.model.Location.LocationPositionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLongitudeElement()) tgt.setLongitudeElement(Decimal10_50.convertDecimal(src.getLongitudeElement())); if (src.hasLatitudeElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/MedicationDispense10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/MedicationDispense10_50.java index 536f48aa2..6e884d9c0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/MedicationDispense10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/MedicationDispense10_50.java @@ -199,7 +199,7 @@ public class MedicationDispense10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.dstu2.model.MedicationDispense.MedicationDispenseSubstitutionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(CodeableConcept10_50.convertCodeableConcept(src.getType())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReason()) @@ -213,7 +213,7 @@ public class MedicationDispense10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseSubstitutionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(CodeableConcept10_50.convertCodeableConcept(src.getType())); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/MessageHeader10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/MessageHeader10_50.java index 62612c549..751d995ed 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/MessageHeader10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/MessageHeader10_50.java @@ -15,7 +15,7 @@ public class MessageHeader10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasTarget()) @@ -29,7 +29,7 @@ public class MessageHeader10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.r5.model.MessageHeader.MessageDestinationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasTarget()) @@ -93,7 +93,7 @@ public class MessageHeader10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageHeaderResponseComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifierElement(new org.hl7.fhir.dstu2.model.IdType(src.getIdentifier().getValue())); if (src.hasCode()) @@ -107,7 +107,7 @@ public class MessageHeader10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.r5.model.MessageHeader.MessageHeaderResponseComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasIdentifierElement()) tgt.setIdentifier(new org.hl7.fhir.r5.model.Identifier().setValue(src.getIdentifier())); if (src.hasCode()) @@ -121,7 +121,7 @@ public class MessageHeader10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.dstu2.model.MessageHeader.MessageSourceComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasSoftwareElement()) @@ -139,7 +139,7 @@ public class MessageHeader10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.r5.model.MessageHeader.MessageSourceComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasSoftwareElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/NamingSystem10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/NamingSystem10_50.java index 4b9843e0b..1bbab8de2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/NamingSystem10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/NamingSystem10_50.java @@ -204,7 +204,7 @@ public class NamingSystem10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.r5.model.NamingSystem.NamingSystemUniqueIdComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement())); if (src.hasValueElement()) @@ -220,7 +220,7 @@ public class NamingSystem10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu2.model.NamingSystem.NamingSystemUniqueIdComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement())); if (src.hasValueElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Observation10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Observation10_50.java index b2955cf00..f621eee54 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Observation10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Observation10_50.java @@ -116,7 +116,7 @@ public class Observation10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.r5.model.Observation.ObservationComponentComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -132,7 +132,7 @@ public class Observation10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept10_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -148,7 +148,7 @@ public class Observation10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.r5.model.Observation.ObservationReferenceRangeComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLow()) tgt.setLow(SimpleQuantity10_50.convertSimpleQuantity(src.getLow())); if (src.hasHigh()) @@ -166,7 +166,7 @@ public class Observation10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLow()) tgt.setLow(SimpleQuantity10_50.convertSimpleQuantity(src.getLow())); if (src.hasHigh()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/OperationDefinition10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/OperationDefinition10_50.java index 733016cd4..a82f595ae 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/OperationDefinition10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/OperationDefinition10_50.java @@ -135,7 +135,7 @@ public class OperationDefinition10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasStrength()) tgt.setStrengthElement(Enumerations10_50.convertBindingStrength(src.getStrengthElement())); if (src.hasValueSet()) { @@ -152,7 +152,7 @@ public class OperationDefinition10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasStrength()) tgt.setStrengthElement(Enumerations10_50.convertBindingStrength(src.getStrengthElement())); DataType t = ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().convertType(src.getValueSet()); @@ -170,7 +170,7 @@ public class OperationDefinition10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Code10_50.convertCode(src.getNameElement())); if (src.hasUse()) @@ -201,7 +201,7 @@ public class OperationDefinition10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionParameterComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Code10_50.convertCode(src.getNameElement())); if (src.hasUse()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/OperationOutcome10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/OperationOutcome10_50.java index 0c5acd62e..21f965f57 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/OperationOutcome10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/OperationOutcome10_50.java @@ -281,7 +281,7 @@ public class OperationOutcome10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.r5.model.OperationOutcome.OperationOutcomeIssueComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasSeverity()) tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement())); if (src.hasCode()) @@ -298,7 +298,7 @@ public class OperationOutcome10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu2.model.OperationOutcome.OperationOutcomeIssueComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasSeverity()) tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Parameters10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Parameters10_50.java index f9a96d797..ae05dca8c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Parameters10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Parameters10_50.java @@ -30,7 +30,7 @@ public class Parameters10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu2.model.Parameters.ParametersParameterComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasValue()) @@ -46,7 +46,7 @@ public class Parameters10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Patient10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Patient10_50.java index 94b59c77e..5e54e11c4 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Patient10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Patient10_50.java @@ -42,7 +42,7 @@ public class Patient10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Patient.ContactComponent tgt = new org.hl7.fhir.r5.model.Patient.ContactComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(CodeableConcept10_50.convertCodeableConcept(t)); if (src.hasName()) @@ -64,7 +64,7 @@ public class Patient10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Patient.ContactComponent tgt = new org.hl7.fhir.dstu2.model.Patient.ContactComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(CodeableConcept10_50.convertCodeableConcept(t)); if (src.hasName()) @@ -211,7 +211,7 @@ public class Patient10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.dstu2.model.Patient.PatientCommunicationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguage(CodeableConcept10_50.convertCodeableConcept(src.getLanguage())); if (src.hasPreferredElement()) @@ -223,7 +223,7 @@ public class Patient10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.r5.model.Patient.PatientCommunicationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguage(CodeableConcept10_50.convertCodeableConcept(src.getLanguage())); if (src.hasPreferredElement()) @@ -235,7 +235,7 @@ public class Patient10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.r5.model.Patient.PatientLinkComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasOther()) tgt.setOther(Reference10_50.convertReference(src.getOther())); if (src.hasType()) @@ -247,7 +247,7 @@ public class Patient10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.dstu2.model.Patient.PatientLinkComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasOther()) tgt.setOther(Reference10_50.convertReference(src.getOther())); if (src.hasType()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Person10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Person10_50.java index e11cae7d6..cb579c8e2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Person10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Person10_50.java @@ -114,7 +114,7 @@ public class Person10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.dstu2.model.Person.PersonLinkComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasTarget()) tgt.setTarget(Reference10_50.convertReference(src.getTarget())); if (src.hasAssurance()) @@ -126,7 +126,7 @@ public class Person10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.r5.model.Person.PersonLinkComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasTarget()) tgt.setTarget(Reference10_50.convertReference(src.getTarget())); if (src.hasAssurance()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Practitioner10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Practitioner10_50.java index 9cccd2658..29e7cc4ae 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Practitioner10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Practitioner10_50.java @@ -64,7 +64,7 @@ public class Practitioner10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.r5.model.Practitioner.PractitionerQualificationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier10_50.convertIdentifier(t)); if (src.hasCode()) @@ -80,7 +80,7 @@ public class Practitioner10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.dstu2.model.Practitioner.PractitionerQualificationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier10_50.convertIdentifier(t)); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Provenance10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Provenance10_50.java index 4f1edcdf0..dfe923723 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Provenance10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Provenance10_50.java @@ -100,7 +100,7 @@ public class Provenance10_50 { if (src == null) return null; org.hl7.fhir.r5.model.Provenance.ProvenanceAgentComponent tgt = new org.hl7.fhir.r5.model.Provenance.ProvenanceAgentComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); // if (src.hasType()) // tgt.setType(convertCodeableConcept(src.getType())); if (src.hasRole()) @@ -114,7 +114,7 @@ public class Provenance10_50 { if (src == null) return null; org.hl7.fhir.dstu2.model.Provenance.ProvenanceAgentComponent tgt = new org.hl7.fhir.dstu2.model.Provenance.ProvenanceAgentComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); // if (src.hasType()) // tgt.setType(convertCodeableConcept(src.getType())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getRole()) @@ -129,7 +129,7 @@ public class Provenance10_50 { if (src == null) return null; org.hl7.fhir.r5.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.r5.model.Provenance.ProvenanceEntityComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasRole()) tgt.setRoleElement(convertProvenanceEntityRole(src.getRoleElement())); if (src.hasReference()) @@ -142,7 +142,7 @@ public class Provenance10_50 { if (src == null) return null; org.hl7.fhir.dstu2.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.dstu2.model.Provenance.ProvenanceEntityComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasRole()) tgt.setRoleElement(convertProvenanceEntityRole(src.getRoleElement())); if (Utilities.isAbsoluteUrl(src.getWhat().getReference())) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Questionnaire10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Questionnaire10_50.java index d725b48df..0fe82d209 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Questionnaire10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Questionnaire10_50.java @@ -89,7 +89,7 @@ public class Questionnaire10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent tgt = new org.hl7.fhir.dstu2.model.Questionnaire.GroupComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_50.convertString(src.getLinkIdElement())); for (org.hl7.fhir.r5.model.Coding t : src.getCode()) tgt.addConcept(Coding10_50.convertCoding(t)); @@ -111,7 +111,7 @@ public class Questionnaire10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_50.convertString(src.getLinkIdElement())); for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(Coding10_50.convertCoding(t)); @@ -192,7 +192,7 @@ public class Questionnaire10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent tgt = new org.hl7.fhir.dstu2.model.Questionnaire.QuestionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_50.convertString(src.getLinkIdElement())); for (org.hl7.fhir.r5.model.Coding t : src.getCode()) tgt.addConcept(Coding10_50.convertCoding(t)); @@ -222,7 +222,7 @@ public class Questionnaire10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_50.convertString(src.getLinkIdElement())); for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(Coding10_50.convertCoding(t)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/QuestionnaireResponse10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/QuestionnaireResponse10_50.java index b0d7c5fc6..fc45dceaf 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/QuestionnaireResponse10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/QuestionnaireResponse10_50.java @@ -13,7 +13,7 @@ public class QuestionnaireResponse10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_50.convertString(src.getLinkIdElement())); if (src.hasTextElement()) @@ -30,7 +30,7 @@ public class QuestionnaireResponse10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_50.convertString(src.getLinkIdElement())); if (src.hasTextElement()) @@ -97,7 +97,7 @@ public class QuestionnaireResponse10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_50.convertString(src.getLinkIdElement())); if (src.hasTextElement()) @@ -113,7 +113,7 @@ public class QuestionnaireResponse10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent tgt = new org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().convertType(src.getValue())); for (org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) @@ -125,7 +125,7 @@ public class QuestionnaireResponse10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().convertType(src.getValue())); for (org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent t : src.getGroup()) @@ -137,7 +137,7 @@ public class QuestionnaireResponse10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLinkIdElement()) tgt.setLinkIdElement(String10_50.convertString(src.getLinkIdElement())); if (src.hasTextElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/RiskAssessment10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/RiskAssessment10_50.java index 2ee89713e..8a1d400d9 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/RiskAssessment10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/RiskAssessment10_50.java @@ -64,7 +64,7 @@ public class RiskAssessment10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentPredictionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasOutcome()) tgt.setOutcome(CodeableConcept10_50.convertCodeableConcept(src.getOutcome())); if (src.hasProbability()) @@ -82,7 +82,7 @@ public class RiskAssessment10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.dstu2.model.RiskAssessment.RiskAssessmentPredictionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasOutcome()) tgt.setOutcome(CodeableConcept10_50.convertCodeableConcept(src.getOutcome())); if (src.hasProbability()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/StructureDefinition10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/StructureDefinition10_50.java index 095be81c8..859595894 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/StructureDefinition10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/StructureDefinition10_50.java @@ -247,7 +247,7 @@ public class StructureDefinition10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionDifferentialComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition10_50.convertElementDefinition(t)); return tgt; @@ -257,7 +257,7 @@ public class StructureDefinition10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionDifferentialComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); List slicePaths = new ArrayList(); for (org.hl7.fhir.dstu2.model.ElementDefinition t : src.getElement()) { if (t.hasSlicing()) @@ -324,7 +324,7 @@ public class StructureDefinition10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id10_50.convertId(src.getIdentityElement())); if (src.hasUriElement()) @@ -340,7 +340,7 @@ public class StructureDefinition10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id10_50.convertId(src.getIdentityElement())); if (src.hasUriElement()) @@ -356,7 +356,7 @@ public class StructureDefinition10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionSnapshotComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); List slicePaths = new ArrayList(); for (org.hl7.fhir.dstu2.model.ElementDefinition t : src.getElement()) { if (t.hasSlicing()) @@ -370,7 +370,7 @@ public class StructureDefinition10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionSnapshotComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition10_50.convertElementDefinition(t)); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Substance10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Substance10_50.java index 6fcf73c7f..e4948a11b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Substance10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Substance10_50.java @@ -58,7 +58,7 @@ public class Substance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasQuantity()) tgt.setQuantity(Ratio10_50.convertRatio(src.getQuantity())); return tgt; @@ -68,7 +68,7 @@ public class Substance10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.r5.model.Substance.SubstanceIngredientComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasQuantity()) tgt.setQuantity(Ratio10_50.convertRatio(src.getQuantity())); if (src.hasSubstance()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/TestScript10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/TestScript10_50.java index 9f298afa5..0eef2ddd6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/TestScript10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/TestScript10_50.java @@ -262,7 +262,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.TestScript.SetupActionAssertComponent tgt = new org.hl7.fhir.r5.model.TestScript.SetupActionAssertComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLabelElement()) tgt.setLabelElement(String10_50.convertString(src.getLabelElement())); if (src.hasDescriptionElement()) @@ -306,7 +306,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionAssertComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionAssertComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLabelElement()) tgt.setLabelElement(String10_50.convertString(src.getLabelElement())); if (src.hasDescriptionElement()) @@ -349,7 +349,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.TestScript.SetupActionComponent tgt = new org.hl7.fhir.r5.model.TestScript.SetupActionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -361,7 +361,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -373,7 +373,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(Coding10_50.convertCoding(src.getType())); tgt.setResource(src.getResource()); @@ -408,7 +408,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.r5.model.TestScript.SetupActionOperationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(Coding10_50.convertCoding(src.getType())); if (src.hasResource()) @@ -444,7 +444,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.TestScript.SetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.r5.model.TestScript.SetupActionOperationRequestHeaderComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasFieldElement()) tgt.setFieldElement(String10_50.convertString(src.getFieldElement())); if (src.hasValueElement()) @@ -456,7 +456,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasFieldElement()) tgt.setFieldElement(String10_50.convertString(src.getFieldElement())); if (src.hasValueElement()) @@ -468,7 +468,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.TestScript.TeardownActionComponent tgt = new org.hl7.fhir.r5.model.TestScript.TeardownActionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; @@ -478,7 +478,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; @@ -488,7 +488,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.TestScript.TestActionComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestActionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -500,7 +500,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptTestActionComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTestActionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -636,7 +636,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptFixtureComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasAutocreateElement()) tgt.setAutocreateElement(Boolean10_50.convertBoolean(src.getAutocreateElement())); if (src.hasAutodeleteElement()) @@ -650,7 +650,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptFixtureComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasAutocreateElement()) tgt.setAutocreateElement(Boolean10_50.convertBoolean(src.getAutocreateElement())); if (src.hasAutodeleteElement()) @@ -664,7 +664,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasRequiredElement()) tgt.setRequiredElement(Boolean10_50.convertBoolean(src.getRequiredElement())); if (src.hasValidatedElement()) @@ -683,7 +683,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptMetadataCapabilityComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasRequiredElement()) tgt.setRequiredElement(Boolean10_50.convertBoolean(src.getRequiredElement())); if (src.hasValidatedElement()) @@ -702,7 +702,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptMetadataComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t)); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) @@ -714,7 +714,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t)); for (org.hl7.fhir.r5.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) @@ -726,7 +726,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptMetadataLinkComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasUrlElement()) tgt.setUrlElement(Uri10_50.convertUri(src.getUrlElement())); if (src.hasDescriptionElement()) @@ -738,7 +738,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptMetadataLinkComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasUrlElement()) tgt.setUrlElement(Uri10_50.convertUri(src.getUrlElement())); if (src.hasDescriptionElement()) @@ -750,7 +750,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptSetupComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -760,7 +760,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptSetupComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.TestScript.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -770,7 +770,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.TestScript.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -780,7 +780,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptTeardownComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -790,7 +790,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptTestComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasDescriptionElement()) @@ -804,7 +804,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptTestComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasDescriptionElement()) @@ -818,7 +818,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.dstu2.model.TestScript.TestScriptVariableComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasHeaderFieldElement()) @@ -834,7 +834,7 @@ public class TestScript10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptVariableComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasHeaderFieldElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ValueSet10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ValueSet10_50.java index 48c5461ae..47abf7396 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ValueSet10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ValueSet10_50.java @@ -24,7 +24,7 @@ public class ValueSet10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ConceptReferenceComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code10_50.convertCode(src.getCodeElement())); if (src.hasDisplayElement()) @@ -38,7 +38,7 @@ public class ValueSet10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code10_50.convertCode(src.getCodeElement())); if (src.hasDisplayElement()) @@ -52,7 +52,7 @@ public class ValueSet10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ConceptReferenceDesignationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLanguageElement()) tgt.setLanguageElement(Code10_50.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -66,7 +66,7 @@ public class ValueSet10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasLanguageElement()) tgt.setLanguageElement(Code10_50.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -80,7 +80,7 @@ public class ValueSet10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasSystemElement()) tgt.setSystemElement(Uri10_50.convertUri(src.getSystemElement())); if (src.hasVersionElement()) @@ -96,7 +96,7 @@ public class ValueSet10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasSystemElement()) tgt.setSystemElement(Uri10_50.convertUri(src.getSystemElement())); if (src.hasVersionElement()) @@ -112,7 +112,7 @@ public class ValueSet10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasPropertyElement()) tgt.setPropertyElement(Code10_50.convertCode(src.getPropertyElement())); if (src.hasOp()) @@ -126,7 +126,7 @@ public class ValueSet10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ConceptSetFilterComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasPropertyElement()) tgt.setPropertyElement(Code10_50.convertCode(src.getPropertyElement())); if (src.hasOp()) @@ -344,7 +344,7 @@ public class ValueSet10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ValueSetComposeComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2.model.UriType t : src.getImport()) tgt.addInclude().addValueSet(t.getValue()); for (org.hl7.fhir.dstu2.model.ValueSet.ConceptSetComponent t : src.getInclude()) tgt.addInclude(convertConceptSetComponent(t)); @@ -357,7 +357,7 @@ public class ValueSet10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetComposeComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent t : src.getInclude()) { for (org.hl7.fhir.r5.model.UriType ti : t.getValueSet()) tgt.addImport(ti.getValue()); if (noSystem == null || !t.getSystem().equals(noSystem)) @@ -396,7 +396,7 @@ public class ValueSet10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasIdentifierElement()) tgt.setIdentifierElement(Uri10_50.convertUri(src.getIdentifierElement())); if (src.hasTimestampElement()) @@ -416,7 +416,7 @@ public class ValueSet10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasIdentifierElement()) tgt.setIdentifierElement(Uri10_50.convertUri(src.getIdentifierElement())); if (src.hasTimestampElement()) @@ -436,7 +436,7 @@ public class ValueSet10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionContainsComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasSystemElement()) tgt.setSystemElement(Uri10_50.convertUri(src.getSystemElement())); if (src.hasAbstractElement()) @@ -456,7 +456,7 @@ public class ValueSet10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionContainsComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasSystemElement()) tgt.setSystemElement(Uri10_50.convertUri(src.getSystemElement())); if (src.hasAbstractElement()) @@ -476,7 +476,7 @@ public class ValueSet10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu2.model.ValueSet.ValueSetExpansionParameterComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasValue()) @@ -488,7 +488,7 @@ public class ValueSet10_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionParameterComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); if (src.hasValue()) @@ -546,7 +546,7 @@ public class ValueSet10_50 { public static ValueSet.ConceptDefinitionComponent convertCodeSystemConcept(CodeSystem cs, ConceptDefinitionComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; ValueSet.ConceptDefinitionComponent tgt = new ValueSet.ConceptDefinitionComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); tgt.setAbstract(CodeSystemUtilities.isNotSelectable(cs, src)); if (src.hasCode()) tgt.setCode(src.getCode()); if (src.hasDefinition()) tgt.setDefinition(src.getDefinition()); @@ -560,7 +560,7 @@ public class ValueSet10_50 { public static ValueSet.ConceptDefinitionDesignationComponent convertCodeSystemDesignation(CodeSystem.ConceptDefinitionDesignationComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; ValueSet.ConceptDefinitionDesignationComponent tgt = new ValueSet.ConceptDefinitionDesignationComponent(); - ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); + ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyBackboneElement(src,tgt); if (src.hasUse()) tgt.setUse(Coding10_50.convertCoding(src.getUse())); if (src.hasLanguage()) tgt.setLanguage(src.getLanguage()); if (src.hasValue()) tgt.setValue(src.getValue()); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/VersionConvertor_14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/VersionConvertor_14_30.java index a0c9849aa..4b2a6a9c1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/VersionConvertor_14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/VersionConvertor_14_30.java @@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv14_30; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_14_30; import org.hl7.fhir.convertors.context.ConversionContext14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.BackboneElement14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.Element14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.Type14_30; import org.hl7.fhir.convertors.conv14_30.resources14_30.Resource14_30; @@ -42,12 +43,15 @@ public class VersionConvertor_14_30 { private final BaseAdvisor_14_30 advisor; private final Element14_30 elementConvertor; + + private final BackboneElement14_30 backboneElementConvertor; private final Resource14_30 resourceConvertor; private final Type14_30 typeConvertor; public VersionConvertor_14_30(@Nonnull BaseAdvisor_14_30 advisor) { this.advisor = advisor; this.elementConvertor = new Element14_30(advisor); + this.backboneElementConvertor = new BackboneElement14_30(); this.resourceConvertor = new Resource14_30(advisor); this.typeConvertor = new Type14_30(advisor); } @@ -130,4 +134,16 @@ public class VersionConvertor_14_30 { String... var) throws FHIRException { elementConvertor.copyElement(src, tgt, ConversionContext14_30.INSTANCE.path(), var); } + + public void copyBackboneElement(@Nonnull org.hl7.fhir.dstu2016may.model.BackboneElement src, + @Nonnull org.hl7.fhir.dstu3.model.BackboneElement tgt, + String... var) throws FHIRException { + backboneElementConvertor.copyBackboneElement(src, tgt, var); + } + + public void copyBackboneElement(@Nonnull org.hl7.fhir.dstu3.model.BackboneElement src, + @Nonnull org.hl7.fhir.dstu2016may.model.BackboneElement tgt, + String... var) throws FHIRException { + backboneElementConvertor.copyBackboneElement(src, tgt, var); + } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/BackboneElement14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/BackboneElement14_30.java index d0f98cb21..0adbc503e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/BackboneElement14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/BackboneElement14_30.java @@ -4,15 +4,19 @@ import org.hl7.fhir.convertors.context.ConversionContext14_30; import org.hl7.fhir.exceptions.FHIRException; public class BackboneElement14_30 { - static public void copyBackboneElement(org.hl7.fhir.dstu2016may.model.BackboneElement src, org.hl7.fhir.dstu3.model.BackboneElement tgt) throws FHIRException { - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + static public void copyBackboneElement(org.hl7.fhir.dstu2016may.model.BackboneElement src, + org.hl7.fhir.dstu3.model.BackboneElement tgt, + String ... var) throws FHIRException { + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt, var); for (org.hl7.fhir.dstu2016may.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension14_30.convertExtension(e)); } } - static public void copyBackboneElement(org.hl7.fhir.dstu3.model.BackboneElement src, org.hl7.fhir.dstu2016may.model.BackboneElement tgt) throws FHIRException { - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + static public void copyBackboneElement(org.hl7.fhir.dstu3.model.BackboneElement src, + org.hl7.fhir.dstu2016may.model.BackboneElement tgt, + String ... var) throws FHIRException { + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt, var); for (org.hl7.fhir.dstu3.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension14_30.convertExtension(e)); } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Bundle14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Bundle14_30.java index abeccbf9e..aaef01a97 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Bundle14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Bundle14_30.java @@ -47,7 +47,7 @@ public class Bundle14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); if (src.hasFullUrl()) @@ -67,7 +67,7 @@ public class Bundle14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); if (src.hasFullUrl()) @@ -87,7 +87,7 @@ public class Bundle14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryRequestComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasMethod()) tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); if (src.hasUrlElement()) @@ -107,7 +107,7 @@ public class Bundle14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryRequestComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasMethod()) tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); if (src.hasUrlElement()) @@ -127,7 +127,7 @@ public class Bundle14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasStatusElement()) tgt.setStatusElement(String14_30.convertString(src.getStatusElement())); if (src.hasLocation()) @@ -143,7 +143,7 @@ public class Bundle14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasStatusElement()) tgt.setStatusElement(String14_30.convertString(src.getStatusElement())); if (src.hasLocation()) @@ -159,7 +159,7 @@ public class Bundle14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); if (src.hasScore()) @@ -171,7 +171,7 @@ public class Bundle14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntrySearchComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); if (src.hasScore()) @@ -183,7 +183,7 @@ public class Bundle14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasRelationElement()) tgt.setRelationElement(String14_30.convertString(src.getRelationElement())); if (src.hasUrlElement()) @@ -195,7 +195,7 @@ public class Bundle14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasRelationElement()) tgt.setRelationElement(String14_30.convertString(src.getRelationElement())); if (src.hasUrlElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/CodeSystem14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/CodeSystem14_30.java index 548f17906..e0c4fdbe3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/CodeSystem14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/CodeSystem14_30.java @@ -202,7 +202,7 @@ public class CodeSystem14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemFilterComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemFilterComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_30.convertCode(src.getCodeElement())); if (src.hasDescription()) @@ -222,7 +222,7 @@ public class CodeSystem14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_30.convertCode(src.getCodeElement())); if (src.hasDescription()) @@ -237,7 +237,7 @@ public class CodeSystem14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_30.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -257,7 +257,7 @@ public class CodeSystem14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_30.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -276,7 +276,7 @@ public class CodeSystem14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionDesignationComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code14_30.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -290,7 +290,7 @@ public class CodeSystem14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionDesignationComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code14_30.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -304,7 +304,7 @@ public class CodeSystem14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionPropertyComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionPropertyComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_30.convertCode(src.getCodeElement())); if (src.hasValue()) @@ -316,7 +316,7 @@ public class CodeSystem14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CodeSystem.ConceptPropertyComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.ConceptPropertyComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_30.convertCode(src.getCodeElement())); if (src.hasValue()) @@ -328,7 +328,7 @@ public class CodeSystem14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CodeSystem.PropertyComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.PropertyComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_30.convertCode(src.getCodeElement())); if (src.hasDescription()) @@ -342,7 +342,7 @@ public class CodeSystem14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemPropertyComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemPropertyComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_30.convertCode(src.getCodeElement())); if (src.hasDescription()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/CompartmentDefinition14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/CompartmentDefinition14_30.java index 0c77481e1..97b1efbc1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/CompartmentDefinition14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/CompartmentDefinition14_30.java @@ -99,7 +99,7 @@ public class CompartmentDefinition14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.dstu3.model.CompartmentDefinition.CompartmentDefinitionResourceComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_30.convertCode(src.getCodeElement())); for (org.hl7.fhir.dstu2016may.model.StringType t : src.getParam()) tgt.addParam(t.getValue()); @@ -112,7 +112,7 @@ public class CompartmentDefinition14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionResourceComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_30.convertCode(src.getCodeElement())); for (org.hl7.fhir.dstu3.model.StringType t : src.getParam()) tgt.addParam(t.getValue()); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ConceptMap14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ConceptMap14_30.java index f25e445b3..88c802de2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ConceptMap14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ConceptMap14_30.java @@ -214,7 +214,7 @@ public class ConceptMap14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasPropertyElement()) tgt.setElementElement(Uri14_30.convertUri(src.getPropertyElement())); if (src.hasSystemElement()) @@ -228,7 +228,7 @@ public class ConceptMap14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasElementElement()) tgt.setPropertyElement(Uri14_30.convertUri(src.getElementElement())); if (src.hasSystemElement()) @@ -242,7 +242,7 @@ public class ConceptMap14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu2016may.model.ConceptMap.SourceElementComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (g.hasSource()) tgt.setSystem(g.getSource()); if (src.hasCode()) @@ -258,7 +258,7 @@ public class ConceptMap14_30 { return res; for (org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent t : src.getTarget()) { org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(src.getCode()); tgt.addTarget(convertTargetElementComponent(t)); @@ -271,7 +271,7 @@ public class ConceptMap14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (g.hasTarget()) tgt.setSystem(g.getTarget()); if (src.hasCode()) @@ -291,7 +291,7 @@ public class ConceptMap14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code14_30.convertCode(src.getCodeElement())); if (src.hasEquivalence()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Conformance14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Conformance14_30.java index f776dd6ff..130c9a626 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Conformance14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Conformance14_30.java @@ -189,7 +189,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceDocumentComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceDocumentComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertDocumentMode(src.getModeElement())); if (src.hasDocumentation()) @@ -203,7 +203,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertDocumentMode(src.getModeElement())); if (src.hasDocumentation()) @@ -255,7 +255,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceImplementationComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceImplementationComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasDescriptionElement()) tgt.setDescriptionElement(String14_30.convertString(src.getDescriptionElement())); if (src.hasUrl()) @@ -267,7 +267,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasDescriptionElement()) tgt.setDescriptionElement(String14_30.convertString(src.getDescriptionElement())); if (src.hasUrl()) @@ -279,7 +279,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t)); if (src.hasReliableCache()) @@ -295,7 +295,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t)); if (src.hasReliableCache()) @@ -311,7 +311,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasProtocol()) tgt.setProtocol(Code14_30.convertCoding(src.getProtocol())); if (src.hasAddressElement()) @@ -323,7 +323,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEndpointComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEndpointComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasProtocol()) tgt.setProtocol(Code14_30.convertCoding(src.getProtocol())); if (src.hasAddressElement()) @@ -335,7 +335,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEventComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEventComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(Code14_30.convertCoding(src.getCode())); if (src.hasCategory()) @@ -357,7 +357,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEventComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEventComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(Code14_30.convertCoding(src.getCode())); if (src.hasCategory()) @@ -379,7 +379,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertRestfulConformanceMode(src.getModeElement())); if (src.hasDocumentation()) @@ -402,7 +402,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertRestfulConformanceMode(src.getModeElement())); if (src.hasDocumentation()) @@ -425,7 +425,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestOperationComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestOperationComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -437,7 +437,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -449,7 +449,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code14_30.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -479,7 +479,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code14_30.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -509,7 +509,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -525,7 +525,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceSearchParamComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -541,7 +541,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityCertificateComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityCertificateComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(Code14_30.convertCode(src.getTypeElement())); if (src.hasBlob()) @@ -553,7 +553,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityCertificateComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityCertificateComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(Code14_30.convertCode(src.getTypeElement())); if (src.hasBlob()) @@ -565,7 +565,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCors()) tgt.setCorsElement(Boolean14_30.convertBoolean(src.getCorsElement())); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getService()) @@ -581,7 +581,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCors()) tgt.setCorsElement(Boolean14_30.convertBoolean(src.getCorsElement())); for (org.hl7.fhir.dstu2016may.model.CodeableConcept t : src.getService()) @@ -597,7 +597,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementSoftwareComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasVersion()) @@ -611,7 +611,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceSoftwareComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceSoftwareComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasVersion()) @@ -751,7 +751,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -763,7 +763,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ResourceInteractionComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -857,7 +857,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.SystemInteractionComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.SystemInteractionComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -869,7 +869,7 @@ public class Conformance14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/DataElement14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/DataElement14_30.java index 3a3c9507f..822c55a71 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/DataElement14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/DataElement14_30.java @@ -117,7 +117,7 @@ public class DataElement14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent tgt = new org.hl7.fhir.dstu3.model.DataElement.DataElementMappingComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id14_30.convertId(src.getIdentityElement())); if (src.hasUri()) @@ -133,7 +133,7 @@ public class DataElement14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.DataElement.DataElementMappingComponent tgt = new org.hl7.fhir.dstu2016may.model.DataElement.DataElementMappingComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id14_30.convertId(src.getIdentityElement())); if (src.hasUri()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ImplementationGuide14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ImplementationGuide14_30.java index aa79e7ed7..2e31aba0b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ImplementationGuide14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ImplementationGuide14_30.java @@ -238,7 +238,7 @@ public class ImplementationGuide14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertGuideDependencyType(src.getTypeElement())); if (src.hasUriElement()) @@ -250,7 +250,7 @@ public class ImplementationGuide14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertGuideDependencyType(src.getTypeElement())); if (src.hasUriElement()) @@ -262,7 +262,7 @@ public class ImplementationGuide14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code14_30.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -274,7 +274,7 @@ public class ImplementationGuide14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code14_30.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -286,7 +286,7 @@ public class ImplementationGuide14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasDescription()) @@ -300,7 +300,7 @@ public class ImplementationGuide14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasDescription()) @@ -314,7 +314,7 @@ public class ImplementationGuide14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageResourceComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageResourceComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasExampleElement()) tgt.setExampleElement(Boolean14_30.convertBoolean(src.getExampleElement())); if (src.hasName()) @@ -334,7 +334,7 @@ public class ImplementationGuide14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasExampleElement()) tgt.setExampleElement(Boolean14_30.convertBoolean(src.getExampleElement())); if (src.hasName()) @@ -354,7 +354,7 @@ public class ImplementationGuide14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasSourceElement()) tgt.setSourceElement(Uri14_30.convertUri(src.getSourceElement())); if (src.hasNameElement()) @@ -374,7 +374,7 @@ public class ImplementationGuide14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasSourceElement()) tgt.setSourceElement(Uri14_30.convertUri(src.getSourceElement())); if (src.hasTitleElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/NamingSystem14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/NamingSystem14_30.java index ab6f2b12b..473eb0e5a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/NamingSystem14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/NamingSystem14_30.java @@ -209,7 +209,7 @@ public class NamingSystem14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement())); if (src.hasValueElement()) @@ -225,7 +225,7 @@ public class NamingSystem14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu2016may.model.NamingSystem.NamingSystemUniqueIdComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement())); if (src.hasValueElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/OperationDefinition14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/OperationDefinition14_30.java index 5a8730ca5..1d9a40736 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/OperationDefinition14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/OperationDefinition14_30.java @@ -142,7 +142,7 @@ public class OperationDefinition14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasStrength()) tgt.setStrengthElement(Enumerations14_30.convertBindingStrength(src.getStrengthElement())); if (src.hasValueSet()) @@ -154,7 +154,7 @@ public class OperationDefinition14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasStrength()) tgt.setStrengthElement(Enumerations14_30.convertBindingStrength(src.getStrengthElement())); if (src.hasValueSet()) @@ -166,7 +166,7 @@ public class OperationDefinition14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Code14_30.convertCode(src.getNameElement())); if (src.hasUse()) @@ -194,7 +194,7 @@ public class OperationDefinition14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Code14_30.convertCode(src.getNameElement())); if (src.hasUse()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/OperationOutcome14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/OperationOutcome14_30.java index 8876e99df..e11b9468e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/OperationOutcome14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/OperationOutcome14_30.java @@ -281,7 +281,7 @@ public class OperationOutcome14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu2016may.model.OperationOutcome.OperationOutcomeIssueComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasSeverity()) tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement())); if (src.hasCode()) @@ -299,7 +299,7 @@ public class OperationOutcome14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasSeverity()) tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Parameters14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Parameters14_30.java index b113c2c26..3caf5498b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Parameters14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Parameters14_30.java @@ -30,7 +30,7 @@ public class Parameters14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasValue()) @@ -46,7 +46,7 @@ public class Parameters14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu2016may.model.Parameters.ParametersParameterComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Questionnaire14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Questionnaire14_30.java index fe7a72d28..2904f096b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Questionnaire14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Questionnaire14_30.java @@ -92,7 +92,7 @@ public class Questionnaire14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String14_30.convertString(src.getLinkIdElement())); for (org.hl7.fhir.dstu2016may.model.Coding t : src.getConcept()) tgt.addCode(Code14_30.convertCoding(t)); @@ -127,7 +127,7 @@ public class Questionnaire14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String14_30.convertString(src.getLinkIdElement())); for (org.hl7.fhir.dstu3.model.Coding t : src.getCode()) tgt.addConcept(Code14_30.convertCoding(t)); @@ -162,7 +162,7 @@ public class Questionnaire14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemEnableWhenComponent tgt = new org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemEnableWhenComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasQuestionElement()) tgt.setQuestionElement(String14_30.convertString(src.getQuestionElement())); if (src.hasHasAnswer()) @@ -176,7 +176,7 @@ public class Questionnaire14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemEnableWhenComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemEnableWhenComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasQuestionElement()) tgt.setQuestionElement(String14_30.convertString(src.getQuestionElement())); if (src.hasAnswered()) @@ -190,7 +190,7 @@ public class Questionnaire14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemOptionComponent tgt = new org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemOptionComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().convertType(src.getValue())); return tgt; @@ -200,7 +200,7 @@ public class Questionnaire14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemOptionComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemOptionComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().convertType(src.getValue())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/QuestionnaireResponse14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/QuestionnaireResponse14_30.java index 2f0f7cec7..e30e145c7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/QuestionnaireResponse14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/QuestionnaireResponse14_30.java @@ -65,7 +65,7 @@ public class QuestionnaireResponse14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().convertType(src.getValue())); for (org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) @@ -77,7 +77,7 @@ public class QuestionnaireResponse14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().convertType(src.getValue())); for (org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) @@ -89,7 +89,7 @@ public class QuestionnaireResponse14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String14_30.convertString(src.getLinkIdElement())); if (src.hasText()) @@ -107,7 +107,7 @@ public class QuestionnaireResponse14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String14_30.convertString(src.getLinkIdElement())); if (src.hasText()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/StructureDefinition14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/StructureDefinition14_30.java index 770759a40..6fdc02b45 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/StructureDefinition14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/StructureDefinition14_30.java @@ -214,7 +214,7 @@ public class StructureDefinition14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionDifferentialComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition14_30.convertElementDefinition(t)); return tgt; @@ -224,7 +224,7 @@ public class StructureDefinition14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionDifferentialComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition14_30.convertElementDefinition(t)); return tgt; @@ -281,7 +281,7 @@ public class StructureDefinition14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id14_30.convertId(src.getIdentityElement())); if (src.hasUri()) @@ -297,7 +297,7 @@ public class StructureDefinition14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id14_30.convertId(src.getIdentityElement())); if (src.hasUri()) @@ -313,7 +313,7 @@ public class StructureDefinition14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionSnapshotComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition14_30.convertElementDefinition(t)); return tgt; @@ -323,7 +323,7 @@ public class StructureDefinition14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionSnapshotComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition14_30.convertElementDefinition(t)); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/TestScript14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/TestScript14_30.java index caf8b4607..9d56bcb54 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/TestScript14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/TestScript14_30.java @@ -275,7 +275,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasLabel()) tgt.setLabelElement(String14_30.convertString(src.getLabelElement())); if (src.hasDescription()) @@ -323,7 +323,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasLabel()) tgt.setLabelElement(String14_30.convertString(src.getLabelElement())); if (src.hasDescription()) @@ -371,7 +371,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertRuleComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertRuleComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestScript.ActionAssertRuleParamComponent t : src.getParam()) tgt.addParam(convertSetupActionAssertRuleParamComponent(t)); return tgt; @@ -381,7 +381,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.ActionAssertRuleComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.ActionAssertRuleComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertRuleParamComponent t : src.getParam()) tgt.addParam(convertSetupActionAssertRuleParamComponent(t)); return tgt; @@ -391,7 +391,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.ActionAssertRuleParamComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.ActionAssertRuleParamComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasValue()) @@ -403,7 +403,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertRuleParamComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertRuleParamComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasValue()) @@ -415,7 +415,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertRulesetComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertRulesetComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestScript.ActionAssertRulesetRuleComponent t : src.getRule()) tgt.addRule(convertSetupActionAssertRulesetRuleComponent(t)); return tgt; @@ -425,7 +425,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.ActionAssertRulesetComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.ActionAssertRulesetComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertRulesetRuleComponent t : src.getRule()) tgt.addRule(convertSetupActionAssertRulesetRuleComponent(t)); return tgt; @@ -435,7 +435,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.ActionAssertRulesetRuleComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.ActionAssertRulesetRuleComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertRulesetRuleParamComponent t : src.getParam()) tgt.addParam(convertSetupActionAssertRulesetRuleParamComponent(t)); return tgt; @@ -445,7 +445,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertRulesetRuleComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertRulesetRuleComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestScript.ActionAssertRulesetRuleParamComponent t : src.getParam()) tgt.addParam(convertSetupActionAssertRulesetRuleParamComponent(t)); return tgt; @@ -455,7 +455,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertRulesetRuleParamComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.SetupActionAssertRulesetRuleParamComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasValue()) @@ -467,7 +467,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.ActionAssertRulesetRuleParamComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.ActionAssertRulesetRuleParamComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasValue()) @@ -479,7 +479,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.SetupActionComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.SetupActionComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -491,7 +491,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -503,7 +503,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(Code14_30.convertCoding(src.getType())); if (src.hasResource()) @@ -541,7 +541,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.SetupActionOperationComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasResource()) tgt.setResourceElement(Code14_30.convertCode(src.getResourceElement())); if (src.hasLabel()) @@ -577,7 +577,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasFieldElement()) tgt.setFieldElement(String14_30.convertString(src.getFieldElement())); if (src.hasValueElement()) @@ -589,7 +589,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.SetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.SetupActionOperationRequestHeaderComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasFieldElement()) tgt.setFieldElement(String14_30.convertString(src.getFieldElement())); if (src.hasValueElement()) @@ -601,7 +601,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; @@ -611,7 +611,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.TeardownActionComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TeardownActionComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; @@ -621,7 +621,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.TestActionComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TestActionComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -633,7 +633,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestActionComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -786,7 +786,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.TestScriptDestinationComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptDestinationComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasIndexElement()) tgt.setIndexElement(Integer14_30.convertInteger(src.getIndexElement())); if (src.hasProfile()) @@ -798,7 +798,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptDestinationComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptDestinationComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasIndexElement()) tgt.setIndexElement(Integer14_30.convertInteger(src.getIndexElement())); if (src.hasProfile()) @@ -810,7 +810,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasAutocreate()) tgt.setAutocreateElement(Boolean14_30.convertBoolean(src.getAutocreateElement())); if (src.hasAutodelete()) @@ -824,7 +824,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptFixtureComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasAutocreate()) tgt.setAutocreateElement(Boolean14_30.convertBoolean(src.getAutocreateElement())); if (src.hasAutodelete()) @@ -838,7 +838,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasRequired()) tgt.setRequiredElement(Boolean14_30.convertBoolean(src.getRequiredElement())); if (src.hasValidated()) @@ -858,7 +858,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataCapabilityComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasRequired()) tgt.setRequiredElement(Boolean14_30.convertBoolean(src.getRequiredElement())); if (src.hasValidated()) @@ -878,7 +878,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t)); for (org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) @@ -890,7 +890,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t)); for (org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) @@ -902,7 +902,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasUrlElement()) tgt.setUrlElement(Uri14_30.convertUri(src.getUrlElement())); if (src.hasDescription()) @@ -914,7 +914,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataLinkComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasUrlElement()) tgt.setUrlElement(Uri14_30.convertUri(src.getUrlElement())); if (src.hasDescription()) @@ -926,7 +926,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.TestScriptOriginComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptOriginComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasIndexElement()) tgt.setIndexElement(Integer14_30.convertInteger(src.getIndexElement())); if (src.hasProfile()) @@ -938,7 +938,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptOriginComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptOriginComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasIndexElement()) tgt.setIndexElement(Integer14_30.convertInteger(src.getIndexElement())); if (src.hasProfile()) @@ -950,7 +950,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptRuleComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptRuleComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasResource()) tgt.setResource(Reference14_30.convertReference(src.getResource())); for (org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRuleParamComponent t : src.getParam()) @@ -962,7 +962,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRuleComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRuleComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasResource()) tgt.setResource(Reference14_30.convertReference(src.getResource())); for (org.hl7.fhir.dstu3.model.TestScript.RuleParamComponent t : src.getParam()) @@ -974,7 +974,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.RuleParamComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.RuleParamComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasValue()) @@ -986,7 +986,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRuleParamComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRuleParamComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasValue()) @@ -998,7 +998,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptRulesetComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptRulesetComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasResource()) tgt.setResource(Reference14_30.convertReference(src.getResource())); for (org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRulesetRuleComponent t : src.getRule()) @@ -1010,7 +1010,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRulesetComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRulesetComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasResource()) tgt.setResource(Reference14_30.convertReference(src.getResource())); for (org.hl7.fhir.dstu3.model.TestScript.RulesetRuleComponent t : src.getRule()) @@ -1022,7 +1022,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRulesetRuleComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRulesetRuleComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestScript.RulesetRuleParamComponent t : src.getParam()) tgt.addParam(convertTestScriptRulesetRuleParamComponent(t)); return tgt; @@ -1032,7 +1032,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.RulesetRuleComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.RulesetRuleComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRulesetRuleParamComponent t : src.getParam()) tgt.addParam(convertTestScriptRulesetRuleParamComponent(t)); return tgt; @@ -1042,7 +1042,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRulesetRuleParamComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRulesetRuleParamComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasValue()) @@ -1054,7 +1054,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.RulesetRuleParamComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.RulesetRuleParamComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasValue()) @@ -1066,7 +1066,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptSetupComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -1076,7 +1076,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.TestScript.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -1086,7 +1086,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTeardownComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -1096,7 +1096,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.TestScript.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -1106,7 +1106,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTestComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasDescription()) @@ -1120,7 +1120,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasDescription()) @@ -1134,7 +1134,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.dstu2016may.model.TestScript.TestScriptVariableComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasDefaultValue()) @@ -1152,7 +1152,7 @@ public class TestScript14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasDefaultValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ValueSet14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ValueSet14_30.java index bd8ae66d8..5bc5a0777 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ValueSet14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ValueSet14_30.java @@ -14,7 +14,7 @@ public class ValueSet14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_30.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -28,7 +28,7 @@ public class ValueSet14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_30.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -42,7 +42,7 @@ public class ValueSet14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code14_30.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -56,7 +56,7 @@ public class ValueSet14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceDesignationComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code14_30.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -70,7 +70,7 @@ public class ValueSet14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasSystemElement()) tgt.setSystemElement(Uri14_30.convertUri(src.getSystemElement())); if (src.hasVersion()) @@ -86,7 +86,7 @@ public class ValueSet14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasSystemElement()) tgt.setSystemElement(Uri14_30.convertUri(src.getSystemElement())); if (src.hasVersion()) @@ -102,7 +102,7 @@ public class ValueSet14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasPropertyElement()) tgt.setPropertyElement(Code14_30.convertCode(src.getPropertyElement())); if (src.hasOp()) @@ -116,7 +116,7 @@ public class ValueSet14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetFilterComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasPropertyElement()) tgt.setPropertyElement(Code14_30.convertCode(src.getPropertyElement())); if (src.hasOp()) @@ -286,7 +286,7 @@ public class ValueSet14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetComposeComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent t : src.getInclude()) { for (org.hl7.fhir.dstu3.model.UriType ti : t.getValueSet()) tgt.addImport(ti.getValue()); tgt.addInclude(convertConceptSetComponent(t)); @@ -300,7 +300,7 @@ public class ValueSet14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.UriType t : src.getImport()) tgt.addInclude().addValueSet(t.getValue()); for (org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent t : src.getInclude()) tgt.addInclude(convertConceptSetComponent(t)); @@ -337,7 +337,7 @@ public class ValueSet14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasIdentifierElement()) tgt.setIdentifierElement(Uri14_30.convertUri(src.getIdentifierElement())); if (src.hasTimestampElement()) @@ -357,7 +357,7 @@ public class ValueSet14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasIdentifierElement()) tgt.setIdentifierElement(Uri14_30.convertUri(src.getIdentifierElement())); if (src.hasTimestampElement()) @@ -377,7 +377,7 @@ public class ValueSet14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasSystem()) tgt.setSystemElement(Uri14_30.convertUri(src.getSystemElement())); if (src.hasAbstract()) @@ -397,7 +397,7 @@ public class ValueSet14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionContainsComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasSystem()) tgt.setSystemElement(Uri14_30.convertUri(src.getSystemElement())); if (src.hasAbstract()) @@ -417,7 +417,7 @@ public class ValueSet14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasValue()) @@ -429,7 +429,7 @@ public class ValueSet14_30 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionParameterComponent(); - ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyElement(src, tgt); + ConversionContext14_30.INSTANCE.getVersionConvertor_14_30().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_30.convertString(src.getNameElement())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/VersionConvertor_14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/VersionConvertor_14_40.java index c58708ca0..161a89d42 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/VersionConvertor_14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/VersionConvertor_14_40.java @@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv14_40; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_14_40; import org.hl7.fhir.convertors.context.ConversionContext14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.BackboneElement14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.Element14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.Type14_40; import org.hl7.fhir.convertors.conv14_40.resources14_40.Resource14_40; @@ -65,12 +66,15 @@ public class VersionConvertor_14_40 { private final BaseAdvisor_14_40 advisor; private final Element14_40 elementConvertor; + + private final BackboneElement14_40 backboneElementConvertor; private final Resource14_40 resourceConvertor; private final Type14_40 typeConvertor; public VersionConvertor_14_40(@Nonnull BaseAdvisor_14_40 advisor) { this.advisor = advisor; this.elementConvertor = new Element14_40(advisor); + backboneElementConvertor = new BackboneElement14_40(); this.resourceConvertor = new Resource14_40(advisor); this.typeConvertor = new Type14_40(advisor); } @@ -153,4 +157,16 @@ public class VersionConvertor_14_40 { String... var) throws FHIRException { elementConvertor.copyElement(src, tgt, ConversionContext14_40.INSTANCE.path(), var); } + + public void copyBackboneElement(@Nonnull org.hl7.fhir.r4.model.BackboneElement src, + @Nonnull org.hl7.fhir.dstu2016may.model.BackboneElement tgt, + String... var) throws FHIRException { + backboneElementConvertor.copyBackboneElement(src, tgt, var); + } + + public void copyBackboneElement(@Nonnull org.hl7.fhir.dstu2016may.model.BackboneElement src, + @Nonnull org.hl7.fhir.r4.model.BackboneElement tgt, + String... var) throws FHIRException { + backboneElementConvertor.copyBackboneElement(src, tgt, var); + } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/BackboneElement14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/BackboneElement14_40.java index b1db737a6..480120e1d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/BackboneElement14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/BackboneElement14_40.java @@ -4,15 +4,19 @@ import org.hl7.fhir.convertors.context.ConversionContext14_40; import org.hl7.fhir.exceptions.FHIRException; public class BackboneElement14_40 { - static public void copyBackboneElement(org.hl7.fhir.dstu2016may.model.BackboneElement src, org.hl7.fhir.r4.model.BackboneElement tgt) throws FHIRException { - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + static public void copyBackboneElement(org.hl7.fhir.dstu2016may.model.BackboneElement src, + org.hl7.fhir.r4.model.BackboneElement tgt, + String ... var) throws FHIRException { + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt, var); for (org.hl7.fhir.dstu2016may.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension14_40.convertExtension(e)); } } - static public void copyBackboneElement(org.hl7.fhir.r4.model.BackboneElement src, org.hl7.fhir.dstu2016may.model.BackboneElement tgt) throws FHIRException { - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + static public void copyBackboneElement(org.hl7.fhir.r4.model.BackboneElement src, + org.hl7.fhir.dstu2016may.model.BackboneElement tgt, + String ... var) throws FHIRException { + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt, var); for (org.hl7.fhir.r4.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension14_40.convertExtension(e)); } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Bundle14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Bundle14_40.java index 7582a64ff..03926e3eb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Bundle14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Bundle14_40.java @@ -46,7 +46,7 @@ public class Bundle14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); if (src.hasFullUrl()) @@ -66,7 +66,7 @@ public class Bundle14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); if (src.hasFullUrl()) tgt.setFullUrlElement(Uri14_40.convertUri(src.getFullUrlElement())); @@ -85,7 +85,7 @@ public class Bundle14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasMethod()) tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); if (src.hasUrlElement()) @@ -105,7 +105,7 @@ public class Bundle14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryRequestComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasMethod()) tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); if (src.hasUrlElement()) @@ -125,7 +125,7 @@ public class Bundle14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasStatusElement()) tgt.setStatusElement(String14_40.convertString(src.getStatusElement())); if (src.hasLocation()) @@ -141,7 +141,7 @@ public class Bundle14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasStatusElement()) tgt.setStatusElement(String14_40.convertString(src.getStatusElement())); if (src.hasLocation()) @@ -157,7 +157,7 @@ public class Bundle14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntrySearchComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); if (src.hasScore()) @@ -169,7 +169,7 @@ public class Bundle14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); if (src.hasScore()) @@ -181,7 +181,7 @@ public class Bundle14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasRelationElement()) tgt.setRelationElement(String14_40.convertString(src.getRelationElement())); if (src.hasUrlElement()) @@ -193,7 +193,7 @@ public class Bundle14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleLinkComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasRelationElement()) tgt.setRelationElement(String14_40.convertString(src.getRelationElement())); if (src.hasUrlElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/CodeSystem14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/CodeSystem14_40.java index 0c5c81655..02554f2d5 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/CodeSystem14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/CodeSystem14_40.java @@ -202,7 +202,7 @@ public class CodeSystem14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CodeSystem.CodeSystemFilterComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.CodeSystemFilterComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_40.convertCode(src.getCodeElement())); if (src.hasDescription()) @@ -222,7 +222,7 @@ public class CodeSystem14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_40.convertCode(src.getCodeElement())); if (src.hasDescription()) @@ -237,7 +237,7 @@ public class CodeSystem14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_40.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -256,7 +256,7 @@ public class CodeSystem14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_40.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -276,7 +276,7 @@ public class CodeSystem14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionDesignationComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code14_40.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -290,7 +290,7 @@ public class CodeSystem14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionDesignationComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code14_40.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -304,7 +304,7 @@ public class CodeSystem14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionPropertyComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionPropertyComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_40.convertCode(src.getCodeElement())); if (src.hasValue()) @@ -316,7 +316,7 @@ public class CodeSystem14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CodeSystem.ConceptPropertyComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.ConceptPropertyComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_40.convertCode(src.getCodeElement())); if (src.hasValue()) @@ -328,7 +328,7 @@ public class CodeSystem14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemPropertyComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemPropertyComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_40.convertCode(src.getCodeElement())); if (src.hasDescription()) @@ -342,7 +342,7 @@ public class CodeSystem14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CodeSystem.PropertyComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.PropertyComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_40.convertCode(src.getCodeElement())); if (src.hasDescription()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/CompartmentDefinition14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/CompartmentDefinition14_40.java index 38ea8e5e3..2d85de5b7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/CompartmentDefinition14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/CompartmentDefinition14_40.java @@ -99,7 +99,7 @@ public class CompartmentDefinition14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.r4.model.CompartmentDefinition.CompartmentDefinitionResourceComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_40.convertCode(src.getCodeElement())); for (org.hl7.fhir.dstu2016may.model.StringType t : src.getParam()) tgt.addParam(t.getValue()); @@ -112,7 +112,7 @@ public class CompartmentDefinition14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionResourceComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_40.convertCode(src.getCodeElement())); for (org.hl7.fhir.r4.model.StringType t : src.getParam()) tgt.addParam(t.getValue()); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ConceptMap14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ConceptMap14_40.java index 21bceeb17..7d9bd7ee3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ConceptMap14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ConceptMap14_40.java @@ -223,7 +223,7 @@ public class ConceptMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasElementElement()) tgt.setPropertyElement(Uri14_40.convertUri(src.getElementElement())); if (src.hasSystem()) @@ -237,7 +237,7 @@ public class ConceptMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasPropertyElement()) tgt.setElementElement(Uri14_40.convertUri(src.getPropertyElement())); if (src.hasSystem()) @@ -253,7 +253,7 @@ public class ConceptMap14_40 { return res; for (org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent t : src.getTarget()) { org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(src.getCode()); tgt.addTarget(convertTargetElementComponent(t)); @@ -266,7 +266,7 @@ public class ConceptMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu2016may.model.ConceptMap.SourceElementComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (g.hasSource()) tgt.setSystem(g.getSource()); if (src.hasCode()) @@ -280,7 +280,7 @@ public class ConceptMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code14_40.convertCode(src.getCodeElement())); if (src.hasEquivalence()) @@ -298,7 +298,7 @@ public class ConceptMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (g.hasTarget()) tgt.setSystem(g.getTarget()); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Conformance14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Conformance14_40.java index 5e619645d..919b84331 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Conformance14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Conformance14_40.java @@ -193,7 +193,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceDocumentComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceDocumentComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertDocumentMode(src.getModeElement())); if (src.hasDocumentation()) @@ -207,7 +207,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertDocumentMode(src.getModeElement())); if (src.hasDocumentation()) @@ -221,7 +221,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementImplementationComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasDescriptionElement()) tgt.setDescriptionElement(String14_40.convertString(src.getDescriptionElement())); if (src.hasUrl()) @@ -233,7 +233,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceImplementationComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceImplementationComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasDescriptionElement()) tgt.setDescriptionElement(String14_40.convertString(src.getDescriptionElement())); if (src.hasUrl()) @@ -245,7 +245,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t)); if (src.hasReliableCache()) @@ -282,7 +282,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t)); if (src.hasReliableCache()) @@ -316,7 +316,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasProtocol()) tgt.setProtocol(Coding14_40.convertCoding(src.getProtocol())); if (src.hasAddress()) @@ -328,7 +328,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEndpointComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEndpointComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasProtocol()) tgt.setProtocol(Coding14_40.convertCoding(src.getProtocol())); if (src.hasAddress()) @@ -340,7 +340,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertRestfulConformanceMode(src.getModeElement())); if (src.hasDocumentation()) @@ -363,7 +363,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertRestfulConformanceMode(src.getModeElement())); if (src.hasDocumentation()) @@ -386,7 +386,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_40.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -398,7 +398,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestOperationComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestOperationComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_40.convertString(src.getNameElement())); if (src.hasDefinitionElement()) @@ -410,7 +410,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code14_40.convertCode(src.getTypeElement())); if (src.hasProfileElement()) @@ -440,7 +440,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code14_40.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -470,7 +470,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_40.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -486,7 +486,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceSearchParamComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_40.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -502,7 +502,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCors()) tgt.setCorsElement(Boolean14_40.convertBoolean(src.getCorsElement())); for (org.hl7.fhir.dstu2016may.model.CodeableConcept t : src.getService()) @@ -516,7 +516,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCors()) tgt.setCorsElement(Boolean14_40.convertBoolean(src.getCorsElement())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getService()) @@ -530,7 +530,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_40.convertString(src.getNameElement())); if (src.hasVersion()) @@ -544,7 +544,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceSoftwareComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceSoftwareComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_40.convertString(src.getNameElement())); if (src.hasVersion()) @@ -640,7 +640,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -652,7 +652,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ResourceInteractionComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -746,7 +746,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.SystemInteractionComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.SystemInteractionComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -758,7 +758,7 @@ public class Conformance14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.SystemInteractionComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/DataElement14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/DataElement14_40.java index 8f0e1f5f8..b15794c02 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/DataElement14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/DataElement14_40.java @@ -82,7 +82,7 @@ public class DataElement14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id14_40.convertId(src.getIdentityElement())); if (src.hasUri()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ImplementationGuide14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ImplementationGuide14_40.java index 8c0d2ac9a..aef5e86a4 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ImplementationGuide14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ImplementationGuide14_40.java @@ -135,7 +135,7 @@ public class ImplementationGuide14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); tgt.setType(org.hl7.fhir.dstu2016may.model.ImplementationGuide.GuideDependencyType.REFERENCE); if (src.hasUri()) tgt.setUri(src.getUri()); @@ -146,7 +146,7 @@ public class ImplementationGuide14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasUri()) tgt.setUri(src.getUri()); if (org.hl7.fhir.dstu2016may.utils.ToolingExtensions.hasExtension(src, VersionConvertorConstants.IG_DEPENDSON_PACKAGE_EXTENSION)) { @@ -162,7 +162,7 @@ public class ImplementationGuide14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code14_40.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -174,7 +174,7 @@ public class ImplementationGuide14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code14_40.convertCode(src.getTypeElement())); if (src.hasProfileElement()) @@ -187,7 +187,7 @@ public class ImplementationGuide14_40 { return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent(); tgt.setId("p" + (context.getGrouping().size() + 1)); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String14_40.convertString(src.getNameElement())); if (src.hasDescription()) @@ -204,7 +204,7 @@ public class ImplementationGuide14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); tgt.setId(src.getId()); if (src.hasNameElement()) tgt.setNameElement(String14_40.convertString(src.getNameElement())); @@ -217,7 +217,7 @@ public class ImplementationGuide14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageResourceComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageResourceComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasExampleCanonicalType()) { if (src.hasExampleCanonicalType()) tgt.setExampleFor(Reference14_40.convertCanonicalToReference(src.getExampleCanonicalType())); @@ -239,7 +239,7 @@ public class ImplementationGuide14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasExampleFor()) { Type t = ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().convertType(src.getExampleFor()); tgt.setExample(t instanceof org.hl7.fhir.r4.model.Reference ? new CanonicalType(((org.hl7.fhir.r4.model.Reference) t).getReference()) : t); @@ -260,7 +260,7 @@ public class ImplementationGuide14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasSource()) tgt.setName(convertUriToUrl(src.getSourceElement())); if (src.hasNameElement()) @@ -276,7 +276,7 @@ public class ImplementationGuide14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameUrlType()) tgt.setSource(src.getNameUrlType().getValue()); if (src.hasTitleElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/NamingSystem14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/NamingSystem14_40.java index 8702a397f..580211be8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/NamingSystem14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/NamingSystem14_40.java @@ -204,7 +204,7 @@ public class NamingSystem14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu2016may.model.NamingSystem.NamingSystemUniqueIdComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement())); if (src.hasValueElement()) @@ -220,7 +220,7 @@ public class NamingSystem14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.r4.model.NamingSystem.NamingSystemUniqueIdComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement())); if (src.hasValueElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/OperationDefinition14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/OperationDefinition14_40.java index a24ba5f60..9d191c49b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/OperationDefinition14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/OperationDefinition14_40.java @@ -142,7 +142,7 @@ public class OperationDefinition14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasStrength()) tgt.setStrengthElement(Enumerations14_40.convertBindingStrength(src.getStrengthElement())); Type t = ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().convertType(src.getValueSet()); @@ -160,7 +160,7 @@ public class OperationDefinition14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasStrength()) tgt.setStrengthElement(Enumerations14_40.convertBindingStrength(src.getStrengthElement())); if (src.hasValueSet()) { @@ -177,7 +177,7 @@ public class OperationDefinition14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Code14_40.convertCode(src.getNameElement())); if (src.hasUse()) @@ -204,7 +204,7 @@ public class OperationDefinition14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Code14_40.convertCode(src.getNameElement())); if (src.hasUse()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/OperationOutcome14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/OperationOutcome14_40.java index 6694a9da2..6ed8edb56 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/OperationOutcome14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/OperationOutcome14_40.java @@ -282,7 +282,7 @@ public class OperationOutcome14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu2016may.model.OperationOutcome.OperationOutcomeIssueComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasSeverity()) tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement())); if (src.hasCode()) @@ -301,7 +301,7 @@ public class OperationOutcome14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.r4.model.OperationOutcome.OperationOutcomeIssueComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasSeverity()) tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Parameters14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Parameters14_40.java index fd05f2f31..d1d51d6cf 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Parameters14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Parameters14_40.java @@ -30,7 +30,7 @@ public class Parameters14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_40.convertString(src.getNameElement())); if (src.hasValue()) @@ -46,7 +46,7 @@ public class Parameters14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu2016may.model.Parameters.ParametersParameterComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_40.convertString(src.getNameElement())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Questionnaire14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Questionnaire14_40.java index dd4426428..f5474cd05 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Questionnaire14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Questionnaire14_40.java @@ -94,7 +94,7 @@ public class Questionnaire14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String14_40.convertString(src.getLinkIdElement())); for (org.hl7.fhir.dstu2016may.model.Coding t : src.getConcept()) tgt.addCode(Coding14_40.convertCoding(t)); @@ -129,7 +129,7 @@ public class Questionnaire14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String14_40.convertString(src.getLinkIdElement())); for (org.hl7.fhir.r4.model.Coding t : src.getCode()) tgt.addConcept(Coding14_40.convertCoding(t)); @@ -164,7 +164,7 @@ public class Questionnaire14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemEnableWhenComponent tgt = new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemEnableWhenComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasQuestionElement()) tgt.setQuestionElement(String14_40.convertString(src.getQuestionElement())); if (src.hasAnswered()) { @@ -181,7 +181,7 @@ public class Questionnaire14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemEnableWhenComponent tgt = new org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemEnableWhenComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasQuestionElement()) tgt.setQuestionElement(String14_40.convertString(src.getQuestionElement())); if (src.hasOperator() && src.getOperator() == QuestionnaireItemOperator.EXISTS) @@ -195,7 +195,7 @@ public class Questionnaire14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemAnswerOptionComponent tgt = new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemAnswerOptionComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().convertType(src.getValue())); return tgt; @@ -205,7 +205,7 @@ public class Questionnaire14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemOptionComponent tgt = new org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemOptionComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().convertType(src.getValue())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/QuestionnaireResponse14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/QuestionnaireResponse14_40.java index b7546e39f..8fd2602ca 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/QuestionnaireResponse14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/QuestionnaireResponse14_40.java @@ -65,7 +65,7 @@ public class QuestionnaireResponse14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().convertType(src.getValue())); for (org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) @@ -77,7 +77,7 @@ public class QuestionnaireResponse14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().convertType(src.getValue())); for (org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) @@ -89,7 +89,7 @@ public class QuestionnaireResponse14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String14_40.convertString(src.getLinkIdElement())); if (src.hasText()) @@ -105,7 +105,7 @@ public class QuestionnaireResponse14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String14_40.convertString(src.getLinkIdElement())); if (src.hasText()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/StructureDefinition14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/StructureDefinition14_40.java index 7a558dc6b..c19f00419 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/StructureDefinition14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/StructureDefinition14_40.java @@ -233,7 +233,7 @@ public class StructureDefinition14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionDifferentialComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition14_40.convertElementDefinition(t)); return tgt; @@ -243,7 +243,7 @@ public class StructureDefinition14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionDifferentialComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition14_40.convertElementDefinition(t, src.getElement(), src.getElement().indexOf(t))); return tgt; @@ -304,7 +304,7 @@ public class StructureDefinition14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id14_40.convertId(src.getIdentityElement())); if (src.hasUri()) @@ -320,7 +320,7 @@ public class StructureDefinition14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id14_40.convertId(src.getIdentityElement())); if (src.hasUri()) @@ -336,7 +336,7 @@ public class StructureDefinition14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionSnapshotComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition14_40.convertElementDefinition(t, src.getElement(), src.getElement().indexOf(t))); return tgt; @@ -346,7 +346,7 @@ public class StructureDefinition14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionSnapshotComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition14_40.convertElementDefinition(t)); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/StructureMap14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/StructureMap14_40.java index 7d0264f8a..7642809c5 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/StructureMap14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/StructureMap14_40.java @@ -162,7 +162,7 @@ public class StructureMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Id14_40.convertId(src.getNameElement())); if (src.hasExtends()) @@ -182,7 +182,7 @@ public class StructureMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Id14_40.convertId(src.getNameElement())); if (src.hasExtends()) @@ -201,7 +201,7 @@ public class StructureMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupInputComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupInputComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Id14_40.convertId(src.getNameElement())); if (src.hasType()) @@ -217,7 +217,7 @@ public class StructureMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupInputComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupInputComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Id14_40.convertId(src.getNameElement())); if (src.hasType()) @@ -233,7 +233,7 @@ public class StructureMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Id14_40.convertId(src.getNameElement())); for (org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent t : src.getSource()) @@ -253,7 +253,7 @@ public class StructureMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Id14_40.convertId(src.getNameElement())); for (org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent t : src.getSource()) @@ -273,7 +273,7 @@ public class StructureMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleDependentComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleDependentComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Id14_40.convertId(src.getNameElement())); for (org.hl7.fhir.r4.model.StringType t : src.getVariable()) tgt.addVariable(t.asStringValue()); @@ -284,7 +284,7 @@ public class StructureMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleDependentComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleDependentComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Id14_40.convertId(src.getNameElement())); for (org.hl7.fhir.dstu2016may.model.StringType t : src.getVariable()) tgt.addVariable(t.asStringValue()); @@ -295,7 +295,7 @@ public class StructureMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); tgt.setMin(src.getRequired() ? 1 : 0); if (src.getContextType().equals(StructureMap.StructureMapContextType.TYPE)) tgt.setType(src.getContext()); @@ -316,7 +316,7 @@ public class StructureMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); tgt.setContextType(StructureMapContextType.TYPE); if (src.hasContextElement()) tgt.setContextElement(Id14_40.convertId(src.getContextElement())); @@ -337,7 +337,7 @@ public class StructureMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasContext()) tgt.setContextElement(Id14_40.convertId(src.getContextElement())); if (src.hasContextType()) @@ -362,7 +362,7 @@ public class StructureMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasContext()) tgt.setContextElement(Id14_40.convertId(src.getContextElement())); if (src.hasContextType()) @@ -386,7 +386,7 @@ public class StructureMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetParameterComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetParameterComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().convertType(src.getValue())); return tgt; @@ -396,7 +396,7 @@ public class StructureMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetParameterComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetParameterComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().convertType(src.getValue())); return tgt; @@ -482,7 +482,7 @@ public class StructureMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapStructureComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapStructureComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasUrl()) tgt.setUrl(src.getUrl()); if (src.hasMode()) @@ -496,7 +496,7 @@ public class StructureMap14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapStructureComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapStructureComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasUrl()) tgt.setUrl(src.getUrl()); if (src.hasMode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ValueSet14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ValueSet14_40.java index eb84072dc..0499d3e86 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ValueSet14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ValueSet14_40.java @@ -16,7 +16,7 @@ public class ValueSet14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptReferenceComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_40.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -30,7 +30,7 @@ public class ValueSet14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_40.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -44,7 +44,7 @@ public class ValueSet14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceDesignationComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code14_40.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -58,7 +58,7 @@ public class ValueSet14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptReferenceDesignationComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code14_40.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -72,7 +72,7 @@ public class ValueSet14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasSystemElement()) tgt.setSystemElement(Uri14_40.convertUri(src.getSystemElement())); if (src.hasVersion()) @@ -88,7 +88,7 @@ public class ValueSet14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasSystemElement()) tgt.setSystemElement(Uri14_40.convertUri(src.getSystemElement())); if (src.hasVersion()) @@ -104,7 +104,7 @@ public class ValueSet14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptSetFilterComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasPropertyElement()) tgt.setPropertyElement(Code14_40.convertCode(src.getPropertyElement())); if (src.hasOp()) @@ -118,7 +118,7 @@ public class ValueSet14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetFilterComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasPropertyElement()) tgt.setPropertyElement(Code14_40.convertCode(src.getPropertyElement())); if (src.hasOp()) @@ -287,7 +287,7 @@ public class ValueSet14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetComposeComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.UriType t : src.getImport()) tgt.addInclude().addValueSet(t.getValue()); for (org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent t : src.getInclude()) tgt.addInclude(convertConceptSetComponent(t)); @@ -300,7 +300,7 @@ public class ValueSet14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetComposeComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent t : src.getInclude()) { for (org.hl7.fhir.r4.model.UriType ti : t.getValueSet()) tgt.addImport(ti.getValue()); tgt.addInclude(convertConceptSetComponent(t)); @@ -338,7 +338,7 @@ public class ValueSet14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasIdentifierElement()) tgt.setIdentifierElement(Uri14_40.convertUri(src.getIdentifierElement())); if (src.hasTimestampElement()) @@ -358,7 +358,7 @@ public class ValueSet14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasIdentifierElement()) tgt.setIdentifierElement(Uri14_40.convertUri(src.getIdentifierElement())); if (src.hasTimestampElement()) @@ -378,7 +378,7 @@ public class ValueSet14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionContainsComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasSystem()) tgt.setSystemElement(Uri14_40.convertUri(src.getSystemElement())); if (src.hasAbstract()) @@ -398,7 +398,7 @@ public class ValueSet14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionContainsComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasSystem()) tgt.setSystemElement(Uri14_40.convertUri(src.getSystemElement())); if (src.hasAbstract()) @@ -418,7 +418,7 @@ public class ValueSet14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionParameterComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_40.convertString(src.getNameElement())); if (src.hasValue()) @@ -430,7 +430,7 @@ public class ValueSet14_40 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionParameterComponent(); - ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); + ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_40.convertString(src.getNameElement())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/VersionConvertor_14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/VersionConvertor_14_50.java index 9349c78e8..9d0fc2a3e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/VersionConvertor_14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/VersionConvertor_14_50.java @@ -2,9 +2,11 @@ package org.hl7.fhir.convertors.conv14_50; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_14_50; import org.hl7.fhir.convertors.context.ConversionContext14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.BackboneElement14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.Element14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.Type14_50; import org.hl7.fhir.convertors.conv14_50.resources14_50.Resource14_50; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.BackboneElement30_40; import org.hl7.fhir.exceptions.FHIRException; import javax.annotation.Nonnull; @@ -64,12 +66,15 @@ public class VersionConvertor_14_50 { private final BaseAdvisor_14_50 advisor; private final Element14_50 elementConvertor; + + private final BackboneElement14_50 backboneElementConvertor; private final Resource14_50 resourceConvertor; private final Type14_50 typeConvertor; public VersionConvertor_14_50(@Nonnull BaseAdvisor_14_50 advisor) { this.advisor = advisor; this.elementConvertor = new Element14_50(advisor); + this.backboneElementConvertor = new BackboneElement14_50(); this.resourceConvertor = new Resource14_50(advisor); this.typeConvertor = new Type14_50(advisor); } @@ -145,4 +150,16 @@ public class VersionConvertor_14_50 { String... var) throws FHIRException { elementConvertor.copyElement(src, tgt, ConversionContext14_50.INSTANCE.path(), var); } + + public void copyBackboneElement(@Nonnull org.hl7.fhir.r5.model.BackboneElement src, + @Nonnull org.hl7.fhir.dstu2016may.model.BackboneElement tgt, + String... var) throws FHIRException { + backboneElementConvertor.copyBackboneElement(src, tgt, var); + } + + public void copyBackboneElement(@Nonnull org.hl7.fhir.dstu2016may.model.BackboneElement src, + @Nonnull org.hl7.fhir.r5.model.BackboneElement tgt, + String... var) throws FHIRException { + backboneElementConvertor.copyBackboneElement(src, tgt, var); + } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/BackboneElement14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/BackboneElement14_50.java index 6a48c795f..2d1ad0f45 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/BackboneElement14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/BackboneElement14_50.java @@ -4,15 +4,19 @@ import org.hl7.fhir.convertors.context.ConversionContext14_50; import org.hl7.fhir.exceptions.FHIRException; public class BackboneElement14_50 { - static public void copyBackboneElement(org.hl7.fhir.dstu2016may.model.BackboneElement src, org.hl7.fhir.r5.model.BackboneElement tgt) throws FHIRException { - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + static public void copyBackboneElement(org.hl7.fhir.dstu2016may.model.BackboneElement src, + org.hl7.fhir.r5.model.BackboneElement tgt, + String... var) throws FHIRException { + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt, var); for (org.hl7.fhir.dstu2016may.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension14_50.convertExtension(e)); } } - static public void copyBackboneElement(org.hl7.fhir.r5.model.BackboneElement src, org.hl7.fhir.dstu2016may.model.BackboneElement tgt) throws FHIRException { - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + static public void copyBackboneElement(org.hl7.fhir.r5.model.BackboneElement src, + org.hl7.fhir.dstu2016may.model.BackboneElement tgt, + String... var) throws FHIRException { + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt, var); for (org.hl7.fhir.r5.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension14_50.convertExtension(e)); } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Bundle14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Bundle14_50.java index 386354c24..a3083f7a1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Bundle14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Bundle14_50.java @@ -46,7 +46,7 @@ public class Bundle14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); if (src.hasFullUrl()) tgt.setFullUrlElement(Uri14_50.convertUri(src.getFullUrlElement())); @@ -65,7 +65,7 @@ public class Bundle14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleEntryComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); if (src.hasFullUrl()) @@ -85,7 +85,7 @@ public class Bundle14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryRequestComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasMethod()) tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); if (src.hasUrlElement()) @@ -105,7 +105,7 @@ public class Bundle14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleEntryRequestComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasMethod()) tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); if (src.hasUrlElement()) @@ -125,7 +125,7 @@ public class Bundle14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasStatusElement()) tgt.setStatusElement(String14_50.convertString(src.getStatusElement())); if (src.hasLocation()) @@ -141,7 +141,7 @@ public class Bundle14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleEntryResponseComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasStatusElement()) tgt.setStatusElement(String14_50.convertString(src.getStatusElement())); if (src.hasLocation()) @@ -157,7 +157,7 @@ public class Bundle14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntrySearchComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); if (src.hasScore()) @@ -169,7 +169,7 @@ public class Bundle14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleEntrySearchComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); if (src.hasScore()) @@ -181,7 +181,7 @@ public class Bundle14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasRelationElement()) tgt.setRelationElement(String14_50.convertString(src.getRelationElement())); if (src.hasUrlElement()) @@ -193,7 +193,7 @@ public class Bundle14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleLinkComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasRelationElement()) tgt.setRelationElement(String14_50.convertString(src.getRelationElement())); if (src.hasUrlElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/CodeSystem14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/CodeSystem14_50.java index 8d50f33a2..848999ea6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/CodeSystem14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/CodeSystem14_50.java @@ -201,7 +201,7 @@ public class CodeSystem14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_50.convertCode(src.getCodeElement())); if (src.hasDescription()) @@ -216,7 +216,7 @@ public class CodeSystem14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CodeSystem.CodeSystemFilterComponent tgt = new org.hl7.fhir.r5.model.CodeSystem.CodeSystemFilterComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_50.convertCode(src.getCodeElement())); if (src.hasDescription()) @@ -236,7 +236,7 @@ public class CodeSystem14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent tgt = new org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -255,7 +255,7 @@ public class CodeSystem14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -275,7 +275,7 @@ public class CodeSystem14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionDesignationComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code14_50.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -289,7 +289,7 @@ public class CodeSystem14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionDesignationComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code14_50.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -303,7 +303,7 @@ public class CodeSystem14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionPropertyComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionPropertyComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_50.convertCode(src.getCodeElement())); if (src.hasValue()) @@ -315,7 +315,7 @@ public class CodeSystem14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CodeSystem.ConceptPropertyComponent tgt = new org.hl7.fhir.r5.model.CodeSystem.ConceptPropertyComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_50.convertCode(src.getCodeElement())); if (src.hasValue()) @@ -327,7 +327,7 @@ public class CodeSystem14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CodeSystem.PropertyComponent tgt = new org.hl7.fhir.r5.model.CodeSystem.PropertyComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_50.convertCode(src.getCodeElement())); if (src.hasDescription()) @@ -341,7 +341,7 @@ public class CodeSystem14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemPropertyComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemPropertyComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_50.convertCode(src.getCodeElement())); if (src.hasDescription()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/CompartmentDefinition14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/CompartmentDefinition14_50.java index 10de4c887..b7c4ff699 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/CompartmentDefinition14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/CompartmentDefinition14_50.java @@ -99,7 +99,7 @@ public class CompartmentDefinition14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionResourceComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCode()) { if (src.hasCodeElement()) tgt.setCodeElement(Code14_50.convertCode(src.getCodeElement())); @@ -114,7 +114,7 @@ public class CompartmentDefinition14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentDefinitionResourceComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_50.convertCode(src.getCodeElement())); for (org.hl7.fhir.dstu2016may.model.StringType t : src.getParam()) tgt.addParam(t.getValue()); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ConceptMap14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ConceptMap14_50.java index 77f5c3ac1..b043d4953 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ConceptMap14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ConceptMap14_50.java @@ -221,7 +221,7 @@ public class ConceptMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasPropertyElement()) tgt.setElementElement(Uri14_50.convertUri(src.getPropertyElement())); if (src.hasValueCoding()) { @@ -237,7 +237,7 @@ public class ConceptMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.OtherElementComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasElementElement()) tgt.setPropertyElement(Uri14_50.convertUri(src.getElementElement())); if (src.hasSystem()) { @@ -254,7 +254,7 @@ public class ConceptMap14_50 { return res; for (org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent t : src.getTarget()) { org.hl7.fhir.r5.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.SourceElementComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(src.getCode()); if (t.getEquivalence() == org.hl7.fhir.dstu2016may.model.Enumerations.ConceptMapEquivalence.UNMATCHED) { @@ -271,7 +271,7 @@ public class ConceptMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu2016may.model.ConceptMap.SourceElementComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (g.hasSource()) tgt.setSystem(g.getSource()); if (src.hasCode()) @@ -289,7 +289,7 @@ public class ConceptMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (g.hasTarget()) tgt.setSystem(g.getTarget()); if (src.hasCode()) @@ -309,7 +309,7 @@ public class ConceptMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.TargetElementComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code14_50.convertCode(src.getCodeElement())); if (src.hasEquivalence()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Conformance14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Conformance14_50.java index ee9842daf..c570211c7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Conformance14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Conformance14_50.java @@ -192,7 +192,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementDocumentComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertDocumentMode(src.getModeElement())); if (src.hasDocumentation()) @@ -206,7 +206,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceDocumentComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceDocumentComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertDocumentMode(src.getModeElement())); if (src.hasDocumentation()) @@ -220,7 +220,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementImplementationComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasDescriptionElement()) tgt.setDescriptionElement(String14_50.convertString(src.getDescriptionElement())); if (src.hasUrl()) @@ -232,7 +232,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceImplementationComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceImplementationComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasDescriptionElement()) tgt.setDescriptionElement(String14_50.convertString(src.getDescriptionElement())); if (src.hasUrl()) @@ -244,7 +244,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t)); if (src.hasReliableCache()) @@ -277,7 +277,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t)); if (src.hasReliableCache()) @@ -311,7 +311,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEndpointComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEndpointComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasProtocol()) tgt.setProtocol(Coding14_50.convertCoding(src.getProtocol())); if (src.hasAddress()) @@ -323,7 +323,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasProtocol()) tgt.setProtocol(Coding14_50.convertCoding(src.getProtocol())); if (src.hasAddress()) @@ -335,7 +335,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertRestfulConformanceMode(src.getModeElement())); if (src.hasDocumentation()) @@ -358,7 +358,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertRestfulConformanceMode(src.getModeElement())); if (src.hasDocumentation()) @@ -381,7 +381,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestOperationComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestOperationComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_50.convertString(src.getNameElement())); if (src.hasDefinitionElement()) @@ -393,7 +393,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_50.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -405,7 +405,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasType()) { if (src.hasTypeElement()) tgt.setTypeElement(Code14_50.convertCode(src.getTypeElement())); @@ -437,7 +437,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code14_50.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -467,7 +467,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceSearchParamComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_50.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -483,7 +483,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_50.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -499,7 +499,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestSecurityComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCors()) tgt.setCorsElement(Boolean14_50.convertBoolean(src.getCorsElement())); for (org.hl7.fhir.dstu2016may.model.CodeableConcept t : src.getService()) @@ -513,7 +513,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCors()) tgt.setCorsElement(Boolean14_50.convertBoolean(src.getCorsElement())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getService()) @@ -527,7 +527,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementSoftwareComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_50.convertString(src.getNameElement())); if (src.hasVersion()) @@ -541,7 +541,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ConformanceSoftwareComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceSoftwareComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_50.convertString(src.getNameElement())); if (src.hasVersion()) @@ -637,7 +637,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.ResourceInteractionComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -649,7 +649,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ResourceInteractionComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -743,7 +743,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Conformance.SystemInteractionComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.SystemInteractionComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -755,7 +755,7 @@ public class Conformance14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.SystemInteractionComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/DataElement14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/DataElement14_50.java index dc8aa14be..902c269e1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/DataElement14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/DataElement14_50.java @@ -81,7 +81,7 @@ public class DataElement14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id14_50.convertId(src.getIdentityElement())); if (src.hasUri()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ImplementationGuide14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ImplementationGuide14_50.java index caa2e5b3b..c22072a47 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ImplementationGuide14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ImplementationGuide14_50.java @@ -134,7 +134,7 @@ public class ImplementationGuide14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDependsOnComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDependsOnComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasUri()) tgt.setUri(src.getUri()); if (org.hl7.fhir.dstu2016may.utils.ToolingExtensions.hasExtension(src, VersionConvertorConstants.IG_DEPENDSON_PACKAGE_EXTENSION)) { @@ -150,7 +150,7 @@ public class ImplementationGuide14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); tgt.setType(org.hl7.fhir.dstu2016may.model.ImplementationGuide.GuideDependencyType.REFERENCE); if (src.hasUri()) tgt.setUri(src.getUri()); @@ -165,7 +165,7 @@ public class ImplementationGuide14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (tgt.hasType()) { if (src.hasTypeElement()) tgt.setTypeElement(Code14_50.convertCode(src.getTypeElement())); @@ -179,7 +179,7 @@ public class ImplementationGuide14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideGlobalComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasTypeElement()) tgt.setTypeElement(Code14_50.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -191,7 +191,7 @@ public class ImplementationGuide14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); tgt.setId(src.getId()); if (src.hasNameElement()) tgt.setNameElement(String14_50.convertString(src.getNameElement())); @@ -205,7 +205,7 @@ public class ImplementationGuide14_50 { return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent(); tgt.setId("p" + (context.getGrouping().size() + 1)); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String14_50.convertString(src.getNameElement())); if (src.hasDescription()) @@ -222,7 +222,7 @@ public class ImplementationGuide14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageResourceComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageResourceComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasExampleCanonicalType()) { if (src.hasExampleCanonicalType()) tgt.setExampleFor(Reference14_50.convertCanonicalToReference(src.getExampleCanonicalType())); @@ -244,7 +244,7 @@ public class ImplementationGuide14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasExampleFor()) { DataType t = ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().convertType(src.getExampleFor()); tgt.setExample(t instanceof org.hl7.fhir.r5.model.Reference ? new CanonicalType(((org.hl7.fhir.r5.model.Reference) t).getReference()) : t); @@ -265,7 +265,7 @@ public class ImplementationGuide14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameUrlType()) tgt.setSource(src.getNameUrlType().getValue()); if (src.hasTitleElement()) @@ -281,7 +281,7 @@ public class ImplementationGuide14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasSource()) tgt.setName(convertUriToUrl(src.getSourceElement())); if (src.hasNameElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/NamingSystem14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/NamingSystem14_50.java index d36ad8625..63c2f36a7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/NamingSystem14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/NamingSystem14_50.java @@ -203,7 +203,7 @@ public class NamingSystem14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu2016may.model.NamingSystem.NamingSystemUniqueIdComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement())); if (src.hasValueElement()) @@ -219,7 +219,7 @@ public class NamingSystem14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.r5.model.NamingSystem.NamingSystemUniqueIdComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement())); if (src.hasValueElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/OperationDefinition14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/OperationDefinition14_50.java index fc1b30d3c..46b76301e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/OperationDefinition14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/OperationDefinition14_50.java @@ -143,7 +143,7 @@ public class OperationDefinition14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasStrength()) tgt.setStrengthElement(Enumerations14_50.convertBindingStrength(src.getStrengthElement())); DataType t = ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().convertType(src.getValueSet()); @@ -161,7 +161,7 @@ public class OperationDefinition14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasStrength()) tgt.setStrengthElement(Enumerations14_50.convertBindingStrength(src.getStrengthElement())); if (src.hasValueSet()) { @@ -178,7 +178,7 @@ public class OperationDefinition14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Code14_50.convertCode(src.getNameElement())); if (src.hasUse()) @@ -207,7 +207,7 @@ public class OperationDefinition14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Code14_50.convertCode(src.getNameElement())); if (src.hasUse()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/OperationOutcome14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/OperationOutcome14_50.java index 4e28d6479..ce5acb6e5 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/OperationOutcome14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/OperationOutcome14_50.java @@ -282,7 +282,7 @@ public class OperationOutcome14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu2016may.model.OperationOutcome.OperationOutcomeIssueComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasSeverity()) tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement())); if (src.hasCode()) @@ -301,7 +301,7 @@ public class OperationOutcome14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.r5.model.OperationOutcome.OperationOutcomeIssueComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasSeverity()) tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Parameters14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Parameters14_50.java index f2c105d67..4449fda27 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Parameters14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Parameters14_50.java @@ -30,7 +30,7 @@ public class Parameters14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_50.convertString(src.getNameElement())); if (src.hasValue()) @@ -46,7 +46,7 @@ public class Parameters14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu2016may.model.Parameters.ParametersParameterComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_50.convertString(src.getNameElement())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Questionnaire14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Questionnaire14_50.java index f895cf713..9baf63828 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Questionnaire14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Questionnaire14_50.java @@ -97,7 +97,7 @@ public class Questionnaire14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String14_50.convertString(src.getLinkIdElement())); for (org.hl7.fhir.r5.model.Coding t : src.getCode()) tgt.addConcept(Coding14_50.convertCoding(t)); @@ -132,7 +132,7 @@ public class Questionnaire14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String14_50.convertString(src.getLinkIdElement())); for (org.hl7.fhir.dstu2016may.model.Coding t : src.getConcept()) tgt.addCode(Coding14_50.convertCoding(t)); @@ -173,7 +173,7 @@ public class Questionnaire14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemEnableWhenComponent tgt = new org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemEnableWhenComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasQuestionElement()) tgt.setQuestionElement(String14_50.convertString(src.getQuestionElement())); if (src.hasAnswered()) { @@ -190,7 +190,7 @@ public class Questionnaire14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemEnableWhenComponent tgt = new org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemEnableWhenComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasQuestionElement()) tgt.setQuestionElement(String14_50.convertString(src.getQuestionElement())); if (src.hasOperator() && src.getOperator() == QuestionnaireItemOperator.EXISTS) @@ -204,7 +204,7 @@ public class Questionnaire14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemOptionComponent tgt = new org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemOptionComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().convertType(src.getValue())); return tgt; @@ -214,7 +214,7 @@ public class Questionnaire14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemAnswerOptionComponent tgt = new org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemAnswerOptionComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().convertType(src.getValue())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/QuestionnaireResponse14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/QuestionnaireResponse14_50.java index 92ee53dec..8c861ab96 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/QuestionnaireResponse14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/QuestionnaireResponse14_50.java @@ -65,7 +65,7 @@ public class QuestionnaireResponse14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().convertType(src.getValue())); for (org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) @@ -77,7 +77,7 @@ public class QuestionnaireResponse14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().convertType(src.getValue())); for (org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) @@ -89,7 +89,7 @@ public class QuestionnaireResponse14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String14_50.convertString(src.getLinkIdElement())); if (src.hasText()) @@ -105,7 +105,7 @@ public class QuestionnaireResponse14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String14_50.convertString(src.getLinkIdElement())); if (src.hasText()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/StructureDefinition14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/StructureDefinition14_50.java index c72c02db7..eebb729a6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/StructureDefinition14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/StructureDefinition14_50.java @@ -234,7 +234,7 @@ public class StructureDefinition14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionDifferentialComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition14_50.convertElementDefinition(t)); return tgt; @@ -244,7 +244,7 @@ public class StructureDefinition14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionDifferentialComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition14_50.convertElementDefinition(t, src.getElement(), src.getElement().indexOf(t))); return tgt; @@ -305,7 +305,7 @@ public class StructureDefinition14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id14_50.convertId(src.getIdentityElement())); if (src.hasUri()) @@ -321,7 +321,7 @@ public class StructureDefinition14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasIdentityElement()) tgt.setIdentityElement(Id14_50.convertId(src.getIdentityElement())); if (src.hasUri()) @@ -337,7 +337,7 @@ public class StructureDefinition14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionSnapshotComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition14_50.convertElementDefinition(t, src.getElement(), src.getElement().indexOf(t))); return tgt; @@ -347,7 +347,7 @@ public class StructureDefinition14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionSnapshotComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition14_50.convertElementDefinition(t)); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/StructureMap14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/StructureMap14_50.java index 9947ed69f..dac3c4a64 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/StructureMap14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/StructureMap14_50.java @@ -127,7 +127,7 @@ public class StructureMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Id14_50.convertId(src.getNameElement())); if (src.hasExtends()) @@ -145,7 +145,7 @@ public class StructureMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Id14_50.convertId(src.getNameElement())); if (src.hasExtends()) @@ -165,7 +165,7 @@ public class StructureMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupInputComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupInputComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Id14_50.convertId(src.getNameElement())); if (src.hasType()) @@ -181,7 +181,7 @@ public class StructureMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupInputComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupInputComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Id14_50.convertId(src.getNameElement())); if (src.hasType()) @@ -197,7 +197,7 @@ public class StructureMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Id14_50.convertId(src.getNameElement())); for (org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleSourceComponent t : src.getSource()) @@ -217,7 +217,7 @@ public class StructureMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Id14_50.convertId(src.getNameElement())); for (org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent t : src.getSource()) @@ -237,7 +237,7 @@ public class StructureMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleDependentComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleDependentComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Id14_50.convertId(src.getNameElement())); for (StructureMapGroupRuleTargetParameterComponent t : src.getParameter()) tgt.addVariable(t.getValue().primitiveValue()); @@ -248,7 +248,7 @@ public class StructureMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleDependentComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleDependentComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(Id14_50.convertId(src.getNameElement())); for (org.hl7.fhir.dstu2016may.model.StringType t : src.getVariable()) tgt.addParameter().setValue(String14_50.convertString(t)); @@ -259,7 +259,7 @@ public class StructureMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); tgt.setContextType(StructureMapContextType.TYPE); if (src.hasContextElement()) tgt.setContextElement(Id14_50.convertId(src.getContextElement())); @@ -280,7 +280,7 @@ public class StructureMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleSourceComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); tgt.setMin(src.getRequired() ? 1 : 0); if (src.getContextType().equals(StructureMap.StructureMapContextType.TYPE)) tgt.setType(src.getContext()); @@ -301,7 +301,7 @@ public class StructureMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasContext()) tgt.setContextElement(Id14_50.convertId(src.getContextElement())); tgt.setContextType(org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContextType.VARIABLE); @@ -325,7 +325,7 @@ public class StructureMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasContext()) tgt.setContextElement(Id14_50.convertId(src.getContextElement())); if (src.hasContextType() && src.getContextType() == org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContextType.VARIABLE) @@ -350,7 +350,7 @@ public class StructureMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetParameterComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetParameterComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().convertType(src.getValue())); return tgt; @@ -360,7 +360,7 @@ public class StructureMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetParameterComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetParameterComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().convertType(src.getValue())); return tgt; @@ -446,7 +446,7 @@ public class StructureMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapStructureComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapStructureComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasUrl()) tgt.setUrl(src.getUrl()); if (src.hasMode()) @@ -460,7 +460,7 @@ public class StructureMap14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapStructureComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapStructureComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasUrl()) tgt.setUrl(src.getUrl()); if (src.hasMode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ValueSet14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ValueSet14_50.java index 025e2f837..c297e5d56 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ValueSet14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ValueSet14_50.java @@ -15,7 +15,7 @@ public class ValueSet14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -29,7 +29,7 @@ public class ValueSet14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ConceptReferenceComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasCodeElement()) tgt.setCodeElement(Code14_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -43,7 +43,7 @@ public class ValueSet14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ConceptReferenceDesignationComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code14_50.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -57,7 +57,7 @@ public class ValueSet14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceDesignationComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code14_50.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -71,7 +71,7 @@ public class ValueSet14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasSystemElement()) tgt.setSystemElement(Uri14_50.convertUri(src.getSystemElement())); if (src.hasVersion()) @@ -87,7 +87,7 @@ public class ValueSet14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasSystemElement()) tgt.setSystemElement(Uri14_50.convertUri(src.getSystemElement())); if (src.hasVersion()) @@ -103,7 +103,7 @@ public class ValueSet14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetFilterComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasPropertyElement()) tgt.setPropertyElement(Code14_50.convertCode(src.getPropertyElement())); if (src.hasOp()) @@ -117,7 +117,7 @@ public class ValueSet14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ConceptSetFilterComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasPropertyElement()) tgt.setPropertyElement(Code14_50.convertCode(src.getPropertyElement())); if (src.hasOp()) @@ -286,7 +286,7 @@ public class ValueSet14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ValueSetComposeComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu2016may.model.UriType t : src.getImport()) tgt.addInclude().addValueSet(t.getValue()); for (org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent t : src.getInclude()) tgt.addInclude(convertConceptSetComponent(t)); @@ -299,7 +299,7 @@ public class ValueSet14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetComposeComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent t : src.getInclude()) { for (org.hl7.fhir.r5.model.UriType ti : t.getValueSet()) tgt.addImport(ti.getValue()); tgt.addInclude(convertConceptSetComponent(t)); @@ -337,7 +337,7 @@ public class ValueSet14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasIdentifierElement()) tgt.setIdentifierElement(Uri14_50.convertUri(src.getIdentifierElement())); if (src.hasTimestampElement()) @@ -357,7 +357,7 @@ public class ValueSet14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasIdentifierElement()) tgt.setIdentifierElement(Uri14_50.convertUri(src.getIdentifierElement())); if (src.hasTimestampElement()) @@ -377,7 +377,7 @@ public class ValueSet14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionContainsComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasSystem()) tgt.setSystemElement(Uri14_50.convertUri(src.getSystemElement())); if (src.hasAbstract()) @@ -397,7 +397,7 @@ public class ValueSet14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionContainsComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasSystem()) tgt.setSystemElement(Uri14_50.convertUri(src.getSystemElement())); if (src.hasAbstract()) @@ -417,7 +417,7 @@ public class ValueSet14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionParameterComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_50.convertString(src.getNameElement())); if (src.hasValue()) @@ -429,7 +429,7 @@ public class ValueSet14_50 { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionParameterComponent(); - ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyElement(src, tgt); + ConversionContext14_50.INSTANCE.getVersionConvertor_14_50().copyBackboneElement(src,tgt); if (src.hasNameElement()) tgt.setNameElement(String14_50.convertString(src.getNameElement())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/VersionConvertor_30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/VersionConvertor_30_40.java index 8d228f1d1..2caca98da 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/VersionConvertor_30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/VersionConvertor_30_40.java @@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_40; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_30_40; import org.hl7.fhir.convertors.context.ConversionContext30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.BackboneElement30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Element30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Type30_40; import org.hl7.fhir.convertors.conv30_40.resources30_40.Resource30_40; @@ -66,12 +67,16 @@ public class VersionConvertor_30_40 { private final BaseAdvisor_30_40 advisor; private final Element30_40 elementConvertor; + + private final BackboneElement30_40 backboneElementConvertor; + private final Resource30_40 resourceConvertor; private final Type30_40 typeConvertor; public VersionConvertor_30_40(@Nonnull BaseAdvisor_30_40 advisor) { this.advisor = advisor; this.elementConvertor = new Element30_40(advisor); + this.backboneElementConvertor = new BackboneElement30_40(); this.resourceConvertor = new Resource30_40(advisor); this.typeConvertor = new Type30_40(advisor); } @@ -147,4 +152,16 @@ public class VersionConvertor_30_40 { String... var) throws FHIRException { elementConvertor.copyElement(src, tgt, ConversionContext30_40.INSTANCE.path(), var); } + + public void copyBackboneElement(@Nonnull org.hl7.fhir.r4.model.BackboneElement src, + @Nonnull org.hl7.fhir.dstu3.model.BackboneElement tgt, + String... var) throws FHIRException { + backboneElementConvertor.copyBackboneElement(src, tgt, var); + } + + public void copyBackboneElement(@Nonnull org.hl7.fhir.dstu3.model.BackboneElement src, + @Nonnull org.hl7.fhir.r4.model.BackboneElement tgt, + String... var) throws FHIRException { + backboneElementConvertor.copyBackboneElement(src, tgt, var); + } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/BackboneElement30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/BackboneElement30_40.java index f574a5803..cce1ac0eb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/BackboneElement30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/BackboneElement30_40.java @@ -4,15 +4,15 @@ import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.exceptions.FHIRException; public class BackboneElement30_40 { - static public void copyBackboneElement(org.hl7.fhir.dstu3.model.BackboneElement src, org.hl7.fhir.r4.model.BackboneElement tgt) throws FHIRException { - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + static public void copyBackboneElement(org.hl7.fhir.dstu3.model.BackboneElement src, org.hl7.fhir.r4.model.BackboneElement tgt, String... var) throws FHIRException { + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt, var); for (org.hl7.fhir.dstu3.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension30_40.convertExtension(e)); } } - static public void copyBackboneElement(org.hl7.fhir.r4.model.BackboneElement src, org.hl7.fhir.dstu3.model.BackboneElement tgt) throws FHIRException { - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + static public void copyBackboneElement(org.hl7.fhir.r4.model.BackboneElement src, org.hl7.fhir.dstu3.model.BackboneElement tgt, String... var) throws FHIRException { + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt, var); for (org.hl7.fhir.r4.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension30_40.convertExtension(e)); } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Account30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Account30_40.java index 9f1b35f36..6a8761957 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Account30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Account30_40.java @@ -154,7 +154,7 @@ public class Account30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Account.CoverageComponent tgt = new org.hl7.fhir.r4.model.Account.CoverageComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCoverage()) tgt.setCoverage(Reference30_40.convertReference(src.getCoverage())); if (src.hasPriority()) @@ -166,7 +166,7 @@ public class Account30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Account.CoverageComponent tgt = new org.hl7.fhir.dstu3.model.Account.CoverageComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCoverage()) tgt.setCoverage(Reference30_40.convertReference(src.getCoverage())); if (src.hasPriority()) @@ -178,7 +178,7 @@ public class Account30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Account.GuarantorComponent tgt = new org.hl7.fhir.r4.model.Account.GuarantorComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasParty()) tgt.setParty(Reference30_40.convertReference(src.getParty())); if (src.hasOnHold()) @@ -192,7 +192,7 @@ public class Account30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Account.GuarantorComponent tgt = new org.hl7.fhir.dstu3.model.Account.GuarantorComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasParty()) tgt.setParty(Reference30_40.convertReference(src.getParty())); if (src.hasOnHold()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ActivityDefinition30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ActivityDefinition30_40.java index 8cf4a8f84..b5b58c11f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ActivityDefinition30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ActivityDefinition30_40.java @@ -197,7 +197,7 @@ public class ActivityDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent tgt = new org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.getExpression().setDescription(src.getDescription()); if (src.hasPath()) @@ -213,7 +213,7 @@ public class ActivityDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent tgt = new org.hl7.fhir.dstu3.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasPath()) tgt.setPathElement(String30_40.convertString(src.getPathElement())); if (src.getExpression().hasDescription()) @@ -348,7 +348,7 @@ public class ActivityDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ActivityDefinition.ActivityDefinitionParticipantComponent tgt = new org.hl7.fhir.dstu3.model.ActivityDefinition.ActivityDefinitionParticipantComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertActivityParticipantType(src.getTypeElement())); if (src.hasRole()) @@ -360,7 +360,7 @@ public class ActivityDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionParticipantComponent tgt = new org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionParticipantComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertActivityParticipantType(src.getTypeElement())); if (src.hasRole()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/AllergyIntolerance30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/AllergyIntolerance30_40.java index f645cba8a..2ab89a665 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/AllergyIntolerance30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/AllergyIntolerance30_40.java @@ -214,7 +214,7 @@ public class AllergyIntolerance30_40 { if (src == null) return null; org.hl7.fhir.r4.model.AllergyIntolerance.AllergyIntoleranceReactionComponent tgt = new org.hl7.fhir.r4.model.AllergyIntolerance.AllergyIntoleranceReactionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasSubstance()) tgt.setSubstance(CodeableConcept30_40.convertCodeableConcept(src.getSubstance())); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getManifestation()) @@ -235,7 +235,7 @@ public class AllergyIntolerance30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceReactionComponent tgt = new org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceReactionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasSubstance()) tgt.setSubstance(CodeableConcept30_40.convertCodeableConcept(src.getSubstance())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getManifestation()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Appointment30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Appointment30_40.java index f92652d43..94e61ad65 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Appointment30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Appointment30_40.java @@ -108,7 +108,7 @@ public class Appointment30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept30_40.convertCodeableConcept(t)); if (src.hasActor()) @@ -124,7 +124,7 @@ public class Appointment30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.r4.model.Appointment.AppointmentParticipantComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept30_40.convertCodeableConcept(t)); if (src.hasActor()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/AuditEvent30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/AuditEvent30_40.java index d2850d867..a9d725e9a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/AuditEvent30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/AuditEvent30_40.java @@ -127,7 +127,7 @@ public class AuditEvent30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRole()) tgt.addRole(CodeableConcept30_40.convertCodeableConcept(t)); if (src.hasWho()) { @@ -158,7 +158,7 @@ public class AuditEvent30_40 { if (src == null) return null; org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole()) tgt.addRole(CodeableConcept30_40.convertCodeableConcept(t)); if (src.hasReference()) @@ -187,7 +187,7 @@ public class AuditEvent30_40 { if (src == null) return null; org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentNetworkComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentNetworkComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasAddress()) tgt.setAddressElement(String30_40.convertString(src.getAddressElement())); if (src.hasType()) @@ -199,7 +199,7 @@ public class AuditEvent30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasAddress()) tgt.setAddressElement(String30_40.convertString(src.getAddressElement())); if (src.hasType()) @@ -267,7 +267,7 @@ public class AuditEvent30_40 { if (src == null) return null; org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.getWhat().setIdentifier(Identifier30_40.convertIdentifier(src.getIdentifier())); if (src.hasReference()) @@ -294,7 +294,7 @@ public class AuditEvent30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasWhat()) { if (src.getWhat().hasIdentifier()) tgt.setIdentifier(Identifier30_40.convertIdentifier(src.getWhat().getIdentifier())); @@ -323,7 +323,7 @@ public class AuditEvent30_40 { if (src == null) return null; org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(String30_40.convertString(src.getTypeElement())); if (src.hasValue()) @@ -335,7 +335,7 @@ public class AuditEvent30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(String30_40.convertString(src.getTypeElement())); if (src.hasValueStringType()) @@ -399,7 +399,7 @@ public class AuditEvent30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventSourceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasSite()) tgt.setSiteElement(String30_40.convertString(src.getSiteElement())); if (src.hasObserver()) @@ -412,7 +412,7 @@ public class AuditEvent30_40 { if (src == null) return null; org.hl7.fhir.r4.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventSourceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasSite()) tgt.setSiteElement(String30_40.convertString(src.getSiteElement())); if (src.hasIdentifier()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Bundle30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Bundle30_40.java index 8cb65f004..14af1ef19 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Bundle30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Bundle30_40.java @@ -51,7 +51,7 @@ public class Bundle30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); if (src.hasFullUrl()) tgt.setFullUrlElement(Uri30_40.convertUri(src.getFullUrlElement())); @@ -70,7 +70,7 @@ public class Bundle30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); if (src.hasFullUrl()) @@ -90,7 +90,7 @@ public class Bundle30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMethod()) tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); if (src.hasUrl()) @@ -110,7 +110,7 @@ public class Bundle30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryRequestComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMethod()) tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); if (src.hasUrl()) @@ -130,7 +130,7 @@ public class Bundle30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasStatus()) tgt.setStatusElement(String30_40.convertString(src.getStatusElement())); if (src.hasLocation()) @@ -148,7 +148,7 @@ public class Bundle30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasStatus()) tgt.setStatusElement(String30_40.convertString(src.getStatusElement())); if (src.hasLocation()) @@ -166,7 +166,7 @@ public class Bundle30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); if (src.hasScore()) @@ -178,7 +178,7 @@ public class Bundle30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); if (src.hasScore()) @@ -190,7 +190,7 @@ public class Bundle30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasRelation()) tgt.setRelationElement(String30_40.convertString(src.getRelationElement())); if (src.hasUrl()) @@ -202,7 +202,7 @@ public class Bundle30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleLinkComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasRelation()) tgt.setRelationElement(String30_40.convertString(src.getRelationElement())); if (src.hasUrl()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CapabilityStatement30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CapabilityStatement30_40.java index 03bb7ecf2..f006ba0d3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CapabilityStatement30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CapabilityStatement30_40.java @@ -141,7 +141,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertDocumentMode(src.getModeElement())); if (src.hasDocumentation()) @@ -155,7 +155,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertDocumentMode(src.getModeElement())); if (src.hasDocumentation()) @@ -169,7 +169,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.setDescriptionElement(String30_40.convertString(src.getDescriptionElement())); if (src.hasUrl()) @@ -181,7 +181,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementImplementationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.setDescriptionElement(String30_40.convertString(src.getDescriptionElement())); if (src.hasUrl()) @@ -237,7 +237,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertCapabilityStatementMessagingEndpointComponent(t)); if (src.hasReliableCache()) @@ -276,7 +276,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertCapabilityStatementMessagingEndpointComponent(t)); if (src.hasReliableCache()) @@ -312,7 +312,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasProtocol()) tgt.setProtocol(Coding30_40.convertCoding(src.getProtocol())); if (src.hasAddress()) @@ -324,7 +324,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasProtocol()) tgt.setProtocol(Coding30_40.convertCoding(src.getProtocol())); if (src.hasAddress()) @@ -336,7 +336,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingSupportedMessageComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingSupportedMessageComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertEventCapabilityMode(src.getModeElement())); if (src.hasDefinition()) @@ -348,7 +348,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingSupportedMessageComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingSupportedMessageComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertEventCapabilityMode(src.getModeElement())); if (src.hasDefinition()) @@ -360,7 +360,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertRestfulCapabilityMode(src.getModeElement())); if (src.hasDocumentation()) @@ -383,7 +383,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertRestfulCapabilityMode(src.getModeElement())); if (src.hasDocumentation()) @@ -406,7 +406,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -418,7 +418,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -430,7 +430,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(Code30_40.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -467,7 +467,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(Code30_40.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -504,7 +504,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -520,7 +520,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -536,7 +536,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCors()) tgt.setCorsElement(Boolean30_40.convertBoolean(src.getCorsElement())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getService()) @@ -550,7 +550,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCors()) tgt.setCorsElement(Boolean30_40.convertBoolean(src.getCorsElement())); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getService()) @@ -564,7 +564,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementSoftwareComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasVersion()) @@ -578,7 +578,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasVersion()) @@ -818,7 +818,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -830,7 +830,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -924,7 +924,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -936,7 +936,7 @@ public class CapabilityStatement30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.SystemInteractionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CarePlan30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CarePlan30_40.java index d66f728f1..4f30f674b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CarePlan30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CarePlan30_40.java @@ -165,7 +165,7 @@ public class CarePlan30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getOutcomeCodeableConcept()) { tgt.addOutcomeCodeableConcept(CodeableConcept30_40.convertCodeableConcept(t)); } @@ -190,7 +190,7 @@ public class CarePlan30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getOutcomeCodeableConcept()) { tgt.addOutcomeCodeableConcept(CodeableConcept30_40.convertCodeableConcept(t)); } @@ -215,7 +215,7 @@ public class CarePlan30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCategory()) { org.hl7.fhir.r4.model.Extension t = new org.hl7.fhir.r4.model.Extension(); t.setUrl(CarePlanActivityDetailComponentExtension); @@ -283,7 +283,7 @@ public class CarePlan30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasExtension()) { org.hl7.fhir.r4.model.Extension extension = src.getExtensionByUrl(CarePlanActivityDetailComponentExtension); if (extension != null) { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CareTeam30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CareTeam30_40.java index caf0d62fc..6d7791133 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CareTeam30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CareTeam30_40.java @@ -77,7 +77,7 @@ public class CareTeam30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CareTeam.CareTeamParticipantComponent tgt = new org.hl7.fhir.dstu3.model.CareTeam.CareTeamParticipantComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasRole()) tgt.setRole(CodeableConcept30_40.convertCodeableConcept(src.getRoleFirstRep())); if (src.hasMember()) @@ -93,7 +93,7 @@ public class CareTeam30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CareTeam.CareTeamParticipantComponent tgt = new org.hl7.fhir.r4.model.CareTeam.CareTeamParticipantComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasRole()) tgt.addRole(CodeableConcept30_40.convertCodeableConcept(src.getRole())); if (src.hasMember()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ClinicalImpression30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ClinicalImpression30_40.java index b54324efa..5e471fee7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ClinicalImpression30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ClinicalImpression30_40.java @@ -97,7 +97,7 @@ public class ClinicalImpression30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ClinicalImpression.ClinicalImpressionFindingComponent tgt = new org.hl7.fhir.r4.model.ClinicalImpression.ClinicalImpressionFindingComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasItemCodeableConcept()) tgt.setItemCodeableConcept(CodeableConcept30_40.convertCodeableConcept(src.getItemCodeableConcept())); if (src.hasItemReference()) @@ -111,7 +111,7 @@ public class ClinicalImpression30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent tgt = new org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasItemCodeableConcept()) tgt.setItem(ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().convertType(src.getItemCodeableConcept())); else if (src.hasItemReference()) @@ -125,7 +125,7 @@ public class ClinicalImpression30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ClinicalImpression.ClinicalImpressionInvestigationComponent tgt = new org.hl7.fhir.r4.model.ClinicalImpression.ClinicalImpressionInvestigationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept30_40.convertCodeableConcept(src.getCode())); for (org.hl7.fhir.dstu3.model.Reference t : src.getItem()) tgt.addItem(Reference30_40.convertReference(t)); @@ -136,7 +136,7 @@ public class ClinicalImpression30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionInvestigationComponent tgt = new org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionInvestigationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept30_40.convertCodeableConcept(src.getCode())); for (org.hl7.fhir.r4.model.Reference t : src.getItem()) tgt.addItem(Reference30_40.convertReference(t)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CodeSystem30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CodeSystem30_40.java index 738222dd5..85f0a3833 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CodeSystem30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CodeSystem30_40.java @@ -183,7 +183,7 @@ public class CodeSystem30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemFilterComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemFilterComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_40.convertCode(src.getCodeElement())); if (src.hasDescription()) @@ -200,7 +200,7 @@ public class CodeSystem30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CodeSystem.CodeSystemFilterComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.CodeSystemFilterComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_40.convertCode(src.getCodeElement())); if (src.hasDescription()) @@ -267,7 +267,7 @@ public class CodeSystem30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_40.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -287,7 +287,7 @@ public class CodeSystem30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_40.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -307,7 +307,7 @@ public class CodeSystem30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionDesignationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code30_40.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -321,7 +321,7 @@ public class CodeSystem30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionDesignationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code30_40.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -335,7 +335,7 @@ public class CodeSystem30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CodeSystem.ConceptPropertyComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.ConceptPropertyComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_40.convertCode(src.getCodeElement())); if (src.hasValue()) @@ -347,7 +347,7 @@ public class CodeSystem30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CodeSystem.ConceptPropertyComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.ConceptPropertyComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_40.convertCode(src.getCodeElement())); if (src.hasValue()) @@ -359,7 +359,7 @@ public class CodeSystem30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CodeSystem.PropertyComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.PropertyComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_40.convertCode(src.getCodeElement())); if (src.hasUri()) @@ -375,7 +375,7 @@ public class CodeSystem30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CodeSystem.PropertyComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.PropertyComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_40.convertCode(src.getCodeElement())); if (src.hasUri()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Communication30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Communication30_40.java index 9a808636c..da212de93 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Communication30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Communication30_40.java @@ -99,7 +99,7 @@ public class Communication30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().convertType(src.getContent())); return tgt; @@ -109,7 +109,7 @@ public class Communication30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.r4.model.Communication.CommunicationPayloadComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().convertType(src.getContent())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CompartmentDefinition30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CompartmentDefinition30_40.java index 378009a82..a044773dc 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CompartmentDefinition30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CompartmentDefinition30_40.java @@ -89,7 +89,7 @@ public class CompartmentDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.r4.model.CompartmentDefinition.CompartmentDefinitionResourceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_40.convertCode(src.getCodeElement())); for (org.hl7.fhir.dstu3.model.StringType t : src.getParam()) tgt.addParam(t.getValue()); @@ -102,7 +102,7 @@ public class CompartmentDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.dstu3.model.CompartmentDefinition.CompartmentDefinitionResourceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_40.convertCode(src.getCodeElement())); for (org.hl7.fhir.r4.model.StringType t : src.getParam()) tgt.addParam(t.getValue()); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Composition30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Composition30_40.java index df7abb701..054a799c3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Composition30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Composition30_40.java @@ -144,7 +144,7 @@ public class Composition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setMode(Collections.singletonList(convertCompositionAttestationMode(src.getModeElement()))); if (src.hasTime()) @@ -158,7 +158,7 @@ public class Composition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.r4.model.Composition.CompositionAttesterComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertCompositionAttestationMode(src.getMode().get(0))); if (src.hasTime()) @@ -172,7 +172,7 @@ public class Composition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.r4.model.Composition.CompositionEventComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCode()) tgt.addCode(CodeableConcept30_40.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -186,7 +186,7 @@ public class Composition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode()) tgt.addCode(CodeableConcept30_40.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -200,7 +200,7 @@ public class Composition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Composition.CompositionRelatesToComponent tgt = new org.hl7.fhir.r4.model.Composition.CompositionRelatesToComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertDocumentRelationshipType(src.getCodeElement())); if (src.hasTarget()) @@ -212,7 +212,7 @@ public class Composition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Composition.CompositionRelatesToComponent tgt = new org.hl7.fhir.dstu3.model.Composition.CompositionRelatesToComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertDocumentRelationshipType(src.getCodeElement())); if (src.hasTarget()) @@ -336,7 +336,7 @@ public class Composition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu3.model.Composition.SectionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasTitle()) tgt.setTitleElement(String30_40.convertString(src.getTitleElement())); if (src.hasCode()) @@ -360,7 +360,7 @@ public class Composition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Composition.SectionComponent tgt = new org.hl7.fhir.r4.model.Composition.SectionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasTitle()) tgt.setTitleElement(String30_40.convertString(src.getTitleElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ConceptMap30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ConceptMap30_40.java index 5d817067a..1e7fc95af 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ConceptMap30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ConceptMap30_40.java @@ -192,7 +192,7 @@ public class ConceptMap30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasSource()) tgt.setSourceElement(Uri30_40.convertUri(src.getSourceElement())); if (src.hasSourceVersion()) @@ -212,7 +212,7 @@ public class ConceptMap30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasSource()) tgt.setSourceElement(Uri30_40.convertUri(src.getSourceElement())); if (src.hasSourceVersion()) @@ -232,7 +232,7 @@ public class ConceptMap30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupUnmappedComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupUnmappedComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertConceptMapGroupUnmappedMode(src.getModeElement())); if (src.hasCode()) @@ -248,7 +248,7 @@ public class ConceptMap30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupUnmappedComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupUnmappedComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertConceptMapGroupUnmappedMode(src.getModeElement())); if (src.hasCode()) @@ -308,7 +308,7 @@ public class ConceptMap30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasProperty()) tgt.setPropertyElement(Uri30_40.convertUri(src.getPropertyElement())); if (src.hasSystem()) @@ -324,7 +324,7 @@ public class ConceptMap30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasProperty()) tgt.setPropertyElement(Uri30_40.convertUri(src.getPropertyElement())); if (src.hasSystem()) @@ -340,7 +340,7 @@ public class ConceptMap30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_40.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -354,7 +354,7 @@ public class ConceptMap30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_40.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -368,7 +368,7 @@ public class ConceptMap30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_40.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -388,7 +388,7 @@ public class ConceptMap30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_40.convertCode(src.getCodeElement())); if (src.hasDisplay()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Condition30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Condition30_40.java index 063d873ff..e2117cdb7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Condition30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Condition30_40.java @@ -141,7 +141,7 @@ public class Condition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.dstu3.model.Condition.ConditionEvidenceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode()) tgt.addCode(CodeableConcept30_40.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.Reference t : src.getDetail()) tgt.addDetail(Reference30_40.convertReference(t)); @@ -152,7 +152,7 @@ public class Condition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Condition.ConditionEvidenceComponent tgt = new org.hl7.fhir.r4.model.Condition.ConditionEvidenceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCode()) tgt.addCode(CodeableConcept30_40.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getDetail()) tgt.addDetail(Reference30_40.convertReference(t)); @@ -163,7 +163,7 @@ public class Condition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.r4.model.Condition.ConditionStageComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasSummary()) tgt.setSummary(CodeableConcept30_40.convertCodeableConcept(src.getSummary())); for (org.hl7.fhir.dstu3.model.Reference t : src.getAssessment()) @@ -175,7 +175,7 @@ public class Condition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.dstu3.model.Condition.ConditionStageComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasSummary()) tgt.setSummary(CodeableConcept30_40.convertCodeableConcept(src.getSummary())); for (org.hl7.fhir.r4.model.Reference t : src.getAssessment()) tgt.addAssessment(Reference30_40.convertReference(t)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Consent30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Consent30_40.java index 6193f5826..82918f266 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Consent30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Consent30_40.java @@ -127,7 +127,7 @@ public class Consent30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Consent.ConsentActorComponent tgt = new org.hl7.fhir.dstu3.model.Consent.ConsentActorComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasRole()) tgt.setRole(CodeableConcept30_40.convertCodeableConcept(src.getRole())); if (src.hasReference()) @@ -139,7 +139,7 @@ public class Consent30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Consent.provisionActorComponent tgt = new org.hl7.fhir.r4.model.Consent.provisionActorComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasRole()) tgt.setRole(CodeableConcept30_40.convertCodeableConcept(src.getRole())); if (src.hasReference()) @@ -151,7 +151,7 @@ public class Consent30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Consent.provisionDataComponent tgt = new org.hl7.fhir.r4.model.Consent.provisionDataComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMeaning()) tgt.setMeaningElement(convertConsentDataMeaning(src.getMeaningElement())); if (src.hasReference()) @@ -163,7 +163,7 @@ public class Consent30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Consent.ConsentDataComponent tgt = new org.hl7.fhir.dstu3.model.Consent.ConsentDataComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMeaning()) tgt.setMeaningElement(convertConsentDataMeaning(src.getMeaningElement())); if (src.hasReference()) @@ -263,7 +263,7 @@ public class Consent30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Consent.ConsentPolicyComponent tgt = new org.hl7.fhir.dstu3.model.Consent.ConsentPolicyComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasAuthority()) tgt.setAuthorityElement(Uri30_40.convertUri(src.getAuthorityElement())); if (src.hasUri()) @@ -275,7 +275,7 @@ public class Consent30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Consent.ConsentPolicyComponent tgt = new org.hl7.fhir.r4.model.Consent.ConsentPolicyComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasAuthority()) tgt.setAuthorityElement(Uri30_40.convertUri(src.getAuthorityElement())); if (src.hasUri()) @@ -349,7 +349,7 @@ public class Consent30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Consent.ExceptActorComponent tgt = new org.hl7.fhir.dstu3.model.Consent.ExceptActorComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasRole()) tgt.setRole(CodeableConcept30_40.convertCodeableConcept(src.getRole())); if (src.hasReference()) @@ -361,7 +361,7 @@ public class Consent30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Consent.provisionActorComponent tgt = new org.hl7.fhir.r4.model.Consent.provisionActorComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasRole()) tgt.setRole(CodeableConcept30_40.convertCodeableConcept(src.getRole())); if (src.hasReference()) @@ -373,7 +373,7 @@ public class Consent30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Consent.ExceptComponent tgt = new org.hl7.fhir.dstu3.model.Consent.ExceptComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertConsentExceptType(src.getTypeElement())); if (src.hasPeriod()) @@ -397,7 +397,7 @@ public class Consent30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Consent.provisionComponent tgt = new org.hl7.fhir.r4.model.Consent.provisionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertConsentExceptType(src.getTypeElement())); if (src.hasPeriod()) @@ -422,7 +422,7 @@ public class Consent30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Consent.ExceptDataComponent tgt = new org.hl7.fhir.dstu3.model.Consent.ExceptDataComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMeaning()) tgt.setMeaningElement(convertConsentDataMeaning(src.getMeaningElement())); if (src.hasReference()) @@ -434,7 +434,7 @@ public class Consent30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Consent.provisionDataComponent tgt = new org.hl7.fhir.r4.model.Consent.provisionDataComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMeaning()) tgt.setMeaningElement(convertConsentDataMeaning(src.getMeaningElement())); if (src.hasReference()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DataElement30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DataElement30_40.java index 80716b097..33e7d4b5c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DataElement30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DataElement30_40.java @@ -58,7 +58,7 @@ public class DataElement30_40 { if (src == null) return null; org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasIdentity()) tgt.setIdentityElement(Id30_40.convertId(src.getIdentityElement())); if (src.hasUri()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DetectedIssue30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DetectedIssue30_40.java index 587031d88..284cf051f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DetectedIssue30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DetectedIssue30_40.java @@ -74,7 +74,7 @@ public class DetectedIssue30_40 { if (src == null) return null; org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasAction()) tgt.setAction(CodeableConcept30_40.convertCodeableConcept(src.getAction())); if (src.hasDateElement()) @@ -88,7 +88,7 @@ public class DetectedIssue30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasAction()) tgt.setAction(CodeableConcept30_40.convertCodeableConcept(src.getAction())); if (src.hasDateElement()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DiagnosticReport30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DiagnosticReport30_40.java index 12344e2f0..26d5a8d19 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DiagnosticReport30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DiagnosticReport30_40.java @@ -89,7 +89,7 @@ public class DiagnosticReport30_40 { if (src == null) return null; org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent tgt = new org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasComment()) tgt.setCommentElement(String30_40.convertString(src.getCommentElement())); if (src.hasLink()) @@ -101,7 +101,7 @@ public class DiagnosticReport30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasComment()) tgt.setCommentElement(String30_40.convertString(src.getCommentElement())); if (src.hasLink()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DocumentManifest30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DocumentManifest30_40.java index 942b8fe52..fcd225e0b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DocumentManifest30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DocumentManifest30_40.java @@ -9,7 +9,7 @@ public class DocumentManifest30_40 { public static org.hl7.fhir.r4.model.DocumentManifest.DocumentManifestRelatedComponent convertDocumentManifestRelatedComponent(org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.r4.model.DocumentManifest.DocumentManifestRelatedComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier30_40.convertIdentifier(src.getIdentifier())); if (src.hasRef()) tgt.setRef(Reference30_40.convertReference(src.getRef())); return tgt; @@ -18,7 +18,7 @@ public class DocumentManifest30_40 { public static org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent convertDocumentManifestRelatedComponent(org.hl7.fhir.r4.model.DocumentManifest.DocumentManifestRelatedComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier30_40.convertIdentifier(src.getIdentifier())); if (src.hasRef()) tgt.setRef(Reference30_40.convertReference(src.getRef())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DocumentReference30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DocumentReference30_40.java index 417122c4d..bc9868d8f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DocumentReference30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DocumentReference30_40.java @@ -94,7 +94,7 @@ public class DocumentReference30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContentComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasAttachment()) tgt.setAttachment(Attachment30_40.convertAttachment(src.getAttachment())); if (src.hasFormat()) @@ -106,7 +106,7 @@ public class DocumentReference30_40 { if (src == null) return null; org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContentComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasAttachment()) tgt.setAttachment(Attachment30_40.convertAttachment(src.getAttachment())); if (src.hasFormat()) @@ -118,7 +118,7 @@ public class DocumentReference30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasEncounter()) tgt.setEncounter(Reference30_40.convertReference(src.getEncounterFirstRep())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getEvent()) @@ -140,7 +140,7 @@ public class DocumentReference30_40 { if (src == null) return null; org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContextComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContextComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasEncounter()) tgt.addEncounter(Reference30_40.convertReference(src.getEncounter())); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getEvent()) @@ -183,7 +183,7 @@ public class DocumentReference30_40 { if (src == null) return null; org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertDocumentRelationshipType(src.getCodeElement())); if (src.hasTarget()) @@ -195,7 +195,7 @@ public class DocumentReference30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertDocumentRelationshipType(src.getCodeElement())); if (src.hasTarget()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Encounter30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Encounter30_40.java index 143ed2cf1..bf0383799 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Encounter30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Encounter30_40.java @@ -12,7 +12,7 @@ public class Encounter30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Encounter.ClassHistoryComponent tgt = new org.hl7.fhir.r4.model.Encounter.ClassHistoryComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasClass_()) tgt.setClass_(Coding30_40.convertCoding(src.getClass_())); if (src.hasPeriod()) @@ -24,7 +24,7 @@ public class Encounter30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Encounter.ClassHistoryComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.ClassHistoryComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasClass_()) tgt.setClass_(Coding30_40.convertCoding(src.getClass_())); if (src.hasPeriod()) @@ -134,7 +134,7 @@ public class Encounter30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterHospitalizationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasPreAdmissionIdentifier()) tgt.setPreAdmissionIdentifier(Identifier30_40.convertIdentifier(src.getPreAdmissionIdentifier())); if (src.hasOrigin()) @@ -160,7 +160,7 @@ public class Encounter30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterHospitalizationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasPreAdmissionIdentifier()) tgt.setPreAdmissionIdentifier(Identifier30_40.convertIdentifier(src.getPreAdmissionIdentifier())); if (src.hasOrigin()) @@ -186,7 +186,7 @@ public class Encounter30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterLocationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLocation()) tgt.setLocation(Reference30_40.convertReference(src.getLocation())); if (src.hasStatus()) @@ -200,7 +200,7 @@ public class Encounter30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLocation()) tgt.setLocation(Reference30_40.convertReference(src.getLocation())); if (src.hasStatus()) @@ -264,7 +264,7 @@ public class Encounter30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept30_40.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -278,7 +278,7 @@ public class Encounter30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterParticipantComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept30_40.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -372,7 +372,7 @@ public class Encounter30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Encounter.StatusHistoryComponent tgt = new org.hl7.fhir.r4.model.Encounter.StatusHistoryComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasStatus()) tgt.setStatusElement(convertEncounterStatus(src.getStatusElement())); if (src.hasPeriod()) @@ -384,7 +384,7 @@ public class Encounter30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Encounter.StatusHistoryComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.StatusHistoryComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasStatus()) tgt.setStatusElement(convertEncounterStatus(src.getStatusElement())); if (src.hasPeriod()) @@ -395,7 +395,7 @@ public class Encounter30_40 { public static org.hl7.fhir.r4.model.Encounter.DiagnosisComponent convertDiagnosisComponent(org.hl7.fhir.dstu3.model.Encounter.DiagnosisComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4.model.Encounter.DiagnosisComponent tgt = new org.hl7.fhir.r4.model.Encounter.DiagnosisComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCondition()) tgt.setCondition(Reference30_40.convertReference(src.getCondition())); if (src.hasRole()) tgt.setUse(CodeableConcept30_40.convertCodeableConcept(src.getRole())); if (src.hasRank()) tgt.setRankElement(PositiveInt30_40.convertPositiveInt(src.getRankElement())); @@ -405,7 +405,7 @@ public class Encounter30_40 { public static org.hl7.fhir.dstu3.model.Encounter.DiagnosisComponent convertDiagnosisComponent(org.hl7.fhir.r4.model.Encounter.DiagnosisComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.Encounter.DiagnosisComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.DiagnosisComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCondition()) tgt.setCondition(Reference30_40.convertReference(src.getCondition())); if (src.hasUse()) tgt.setRole(CodeableConcept30_40.convertCodeableConcept(src.getUse())); if (src.hasRank()) tgt.setRankElement(PositiveInt30_40.convertPositiveInt(src.getRankElement())); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/EpisodeOfCare30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/EpisodeOfCare30_40.java index 5aedb211b..5378715ba 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/EpisodeOfCare30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/EpisodeOfCare30_40.java @@ -142,7 +142,7 @@ public class EpisodeOfCare30_40 { if (src == null) return null; org.hl7.fhir.r4.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.r4.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasStatus()) tgt.setStatusElement(convertEpisodeOfCareStatus(src.getStatusElement())); if (src.hasPeriod()) @@ -154,7 +154,7 @@ public class EpisodeOfCare30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.dstu3.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasStatus()) tgt.setStatusElement(convertEpisodeOfCareStatus(src.getStatusElement())); if (src.hasPeriod()) @@ -165,7 +165,7 @@ public class EpisodeOfCare30_40 { public static org.hl7.fhir.r4.model.EpisodeOfCare.DiagnosisComponent convertDiagnosisComponent(org.hl7.fhir.dstu3.model.EpisodeOfCare.DiagnosisComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4.model.EpisodeOfCare.DiagnosisComponent tgt = new org.hl7.fhir.r4.model.EpisodeOfCare.DiagnosisComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCondition()) tgt.setCondition(Reference30_40.convertReference(src.getCondition())); if (src.hasRole()) tgt.setRole(CodeableConcept30_40.convertCodeableConcept(src.getRole())); if (src.hasRank()) tgt.setRankElement(PositiveInt30_40.convertPositiveInt(src.getRankElement())); @@ -175,7 +175,7 @@ public class EpisodeOfCare30_40 { public static org.hl7.fhir.dstu3.model.EpisodeOfCare.DiagnosisComponent convertDiagnosisComponent(org.hl7.fhir.r4.model.EpisodeOfCare.DiagnosisComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.EpisodeOfCare.DiagnosisComponent tgt = new org.hl7.fhir.dstu3.model.EpisodeOfCare.DiagnosisComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCondition()) tgt.setCondition(Reference30_40.convertReference(src.getCondition())); if (src.hasRole()) tgt.setRole(CodeableConcept30_40.convertCodeableConcept(src.getRole())); if (src.hasRank()) tgt.setRankElement(PositiveInt30_40.convertPositiveInt(src.getRankElement())); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/FamilyMemberHistory30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/FamilyMemberHistory30_40.java index f533f8d40..531599f10 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/FamilyMemberHistory30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/FamilyMemberHistory30_40.java @@ -143,7 +143,7 @@ public class FamilyMemberHistory30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.dstu3.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept30_40.convertCodeableConcept(src.getCode())); if (src.hasOutcome()) @@ -158,7 +158,7 @@ public class FamilyMemberHistory30_40 { if (src == null) return null; org.hl7.fhir.r4.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.r4.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept30_40.convertCodeableConcept(src.getCode())); if (src.hasOutcome()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Goal30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Goal30_40.java index 89f5d14c3..4cae755de 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Goal30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Goal30_40.java @@ -180,7 +180,7 @@ public class Goal30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Goal.GoalTargetComponent tgt = new org.hl7.fhir.r4.model.Goal.GoalTargetComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMeasure()) tgt.setMeasure(CodeableConcept30_40.convertCodeableConcept(src.getMeasure())); if (src.hasDetail()) @@ -194,7 +194,7 @@ public class Goal30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Goal.GoalTargetComponent tgt = new org.hl7.fhir.dstu3.model.Goal.GoalTargetComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMeasure()) tgt.setMeasure(CodeableConcept30_40.convertCodeableConcept(src.getMeasure())); if (src.hasDetail()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/GraphDefinition30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/GraphDefinition30_40.java index c7aa0e271..107662330 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/GraphDefinition30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/GraphDefinition30_40.java @@ -195,7 +195,7 @@ public class GraphDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkComponent tgt = new org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasPath()) tgt.setPathElement(String30_40.convertString(src.getPathElement())); if (src.hasSliceName()) @@ -215,7 +215,7 @@ public class GraphDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkComponent tgt = new org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasPath()) tgt.setPathElement(String30_40.convertString(src.getPathElement())); if (src.hasSliceName()) @@ -235,7 +235,7 @@ public class GraphDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkTargetCompartmentComponent tgt = new org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkTargetCompartmentComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertCompartmentCode(src.getCodeElement())); if (src.hasRule()) @@ -251,7 +251,7 @@ public class GraphDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkTargetCompartmentComponent tgt = new org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkTargetCompartmentComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertCompartmentCode(src.getCodeElement())); if (src.hasRule()) @@ -267,7 +267,7 @@ public class GraphDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkTargetComponent tgt = new org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkTargetComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(Code30_40.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -283,7 +283,7 @@ public class GraphDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkTargetComponent tgt = new org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkTargetComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(Code30_40.convertCode(src.getTypeElement())); if (src.hasProfile()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Group30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Group30_40.java index 73dd2dc3c..1ff5fa7c3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Group30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Group30_40.java @@ -68,7 +68,7 @@ public class Group30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.dstu3.model.Group.GroupCharacteristicComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept30_40.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -84,7 +84,7 @@ public class Group30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept30_40.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -100,7 +100,7 @@ public class Group30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.r4.model.Group.GroupMemberComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasEntity()) tgt.setEntity(Reference30_40.convertReference(src.getEntity())); if (src.hasPeriod()) @@ -114,7 +114,7 @@ public class Group30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.dstu3.model.Group.GroupMemberComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasEntity()) tgt.setEntity(Reference30_40.convertReference(src.getEntity())); if (src.hasPeriod()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/HealthcareService30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/HealthcareService30_40.java index dfae9fee8..427f32ae4 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/HealthcareService30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/HealthcareService30_40.java @@ -127,7 +127,7 @@ public class HealthcareService30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(HealthcareService30_40::convertDaysOfWeek) .collect(Collectors.toList())); @@ -144,7 +144,7 @@ public class HealthcareService30_40 { if (src == null) return null; org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(HealthcareService30_40::convertDaysOfWeek) .collect(Collectors.toList())); @@ -161,7 +161,7 @@ public class HealthcareService30_40 { if (src == null) return null; org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.setDescriptionElement(String30_40.convertString(src.getDescriptionElement())); if (src.hasDuring()) @@ -173,7 +173,7 @@ public class HealthcareService30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.setDescriptionElement(String30_40.convertString(src.getDescriptionElement())); if (src.hasDuring()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ImagingStudy30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ImagingStudy30_40.java index 294deb882..59b139b35 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ImagingStudy30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ImagingStudy30_40.java @@ -202,7 +202,7 @@ public class ImagingStudy30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ImagingStudy.ImagingStudySeriesComponent tgt = new org.hl7.fhir.r4.model.ImagingStudy.ImagingStudySeriesComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasUid()) { if (src.hasUid()) tgt.setUid(src.getUid()); @@ -248,7 +248,7 @@ public class ImagingStudy30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent tgt = new org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasUid()) { if (src.hasUid()) tgt.setUid(src.getUid()); @@ -294,7 +294,7 @@ public class ImagingStudy30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ImagingStudy.ImagingStudySeriesInstanceComponent tgt = new org.hl7.fhir.r4.model.ImagingStudy.ImagingStudySeriesInstanceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasUid()) { if (src.hasUid()) tgt.setUid(src.getUid()); @@ -320,7 +320,7 @@ public class ImagingStudy30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent tgt = new org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasUid()) { if (src.hasUid()) tgt.setUid(src.getUid()); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Immunization30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Immunization30_40.java index 80c103f15..f80e9bf36 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Immunization30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Immunization30_40.java @@ -104,7 +104,7 @@ public class Immunization30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Immunization.ImmunizationPractitionerComponent tgt = new org.hl7.fhir.dstu3.model.Immunization.ImmunizationPractitionerComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasFunction()) tgt.setRole(CodeableConcept30_40.convertCodeableConcept(src.getFunction())); if (src.hasActor()) @@ -116,7 +116,7 @@ public class Immunization30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Immunization.ImmunizationPerformerComponent tgt = new org.hl7.fhir.r4.model.Immunization.ImmunizationPerformerComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasRole()) tgt.setFunction(CodeableConcept30_40.convertCodeableConcept(src.getRole())); if (src.hasActor()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ImplementationGuide30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ImplementationGuide30_40.java index 035087317..cb12ea4b1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ImplementationGuide30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ImplementationGuide30_40.java @@ -108,7 +108,7 @@ public class ImplementationGuide30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); tgt.setType(org.hl7.fhir.dstu3.model.ImplementationGuide.GuideDependencyType.REFERENCE); if (src.hasUri()) tgt.setUri(src.getUri()); @@ -119,7 +119,7 @@ public class ImplementationGuide30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasUri()) tgt.setUri(src.getUri()); return tgt; @@ -129,7 +129,7 @@ public class ImplementationGuide30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(Code30_40.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -141,7 +141,7 @@ public class ImplementationGuide30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(Code30_40.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -153,7 +153,7 @@ public class ImplementationGuide30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); tgt.setId(src.getId()); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); @@ -167,7 +167,7 @@ public class ImplementationGuide30_40 { return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent(); tgt.setId("p" + (context.getGrouping().size() + 1)); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasDescription()) @@ -184,7 +184,7 @@ public class ImplementationGuide30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasExampleFor()) { org.hl7.fhir.r4.model.Type t = ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().convertType(src.getExampleFor()); tgt.setExample(t instanceof org.hl7.fhir.r4.model.Reference ? new org.hl7.fhir.r4.model.CanonicalType(((org.hl7.fhir.r4.model.Reference) t).getReference()) : t); @@ -205,7 +205,7 @@ public class ImplementationGuide30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasExampleCanonicalType()) { if (src.hasExampleCanonicalType()) tgt.setExampleFor(Reference30_40.convertCanonicalToReference(src.getExampleCanonicalType())); @@ -227,7 +227,7 @@ public class ImplementationGuide30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasNameUrlType()) tgt.setSource(src.getNameUrlType().getValue()); if (src.hasTitle()) @@ -243,7 +243,7 @@ public class ImplementationGuide30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasSource()) tgt.setName(convertUriToUrl(src.getSourceElement())); if (src.hasTitle()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Linkage30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Linkage30_40.java index 4c98f9b6d..5b1368236 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Linkage30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Linkage30_40.java @@ -39,7 +39,7 @@ public class Linkage30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Linkage.LinkageItemComponent tgt = new org.hl7.fhir.dstu3.model.Linkage.LinkageItemComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertLinkageType(src.getTypeElement())); if (src.hasResource()) @@ -51,7 +51,7 @@ public class Linkage30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Linkage.LinkageItemComponent tgt = new org.hl7.fhir.r4.model.Linkage.LinkageItemComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertLinkageType(src.getTypeElement())); if (src.hasResource()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/List30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/List30_40.java index 34b383fda..773d072b7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/List30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/List30_40.java @@ -82,7 +82,7 @@ public class List30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ListResource.ListEntryComponent tgt = new org.hl7.fhir.dstu3.model.ListResource.ListEntryComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasFlag()) tgt.setFlag(CodeableConcept30_40.convertCodeableConcept(src.getFlag())); if (src.hasDeleted()) @@ -98,7 +98,7 @@ public class List30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ListResource.ListEntryComponent tgt = new org.hl7.fhir.r4.model.ListResource.ListEntryComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasFlag()) tgt.setFlag(CodeableConcept30_40.convertCodeableConcept(src.getFlag())); if (src.hasDeleted()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Location30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Location30_40.java index 980fbc24a..82d57a30c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Location30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Location30_40.java @@ -123,7 +123,7 @@ public class Location30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.r4.model.Location.LocationPositionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLongitude()) tgt.setLongitudeElement(Decimal30_40.convertDecimal(src.getLongitudeElement())); if (src.hasLatitude()) @@ -137,7 +137,7 @@ public class Location30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.dstu3.model.Location.LocationPositionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLongitude()) tgt.setLongitudeElement(Decimal30_40.convertDecimal(src.getLongitudeElement())); if (src.hasLatitude()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Medication30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Medication30_40.java index 61481bf96..89db77010 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Medication30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Medication30_40.java @@ -55,7 +55,7 @@ public class Medication30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Medication.MedicationIngredientComponent tgt = new org.hl7.fhir.dstu3.model.Medication.MedicationIngredientComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasItem()) tgt.setItem(ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().convertType(src.getItem())); if (src.hasIsActive()) @@ -69,7 +69,7 @@ public class Medication30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Medication.MedicationIngredientComponent tgt = new org.hl7.fhir.r4.model.Medication.MedicationIngredientComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasItem()) tgt.setItem(ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().convertType(src.getItem())); if (src.hasIsActive()) @@ -83,7 +83,7 @@ public class Medication30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Medication.MedicationPackageBatchComponent tgt = new org.hl7.fhir.dstu3.model.Medication.MedicationPackageBatchComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLotNumber()) tgt.setLotNumberElement(String30_40.convertString(src.getLotNumberElement())); if (src.hasExpirationDate()) @@ -95,7 +95,7 @@ public class Medication30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Medication.MedicationBatchComponent tgt = new org.hl7.fhir.r4.model.Medication.MedicationBatchComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLotNumber()) tgt.setLotNumberElement(String30_40.convertString(src.getLotNumberElement())); if (src.hasExpirationDate()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationAdministration30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationAdministration30_40.java index bd7d73304..8d52e93d3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationAdministration30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationAdministration30_40.java @@ -93,7 +93,7 @@ public class MedicationAdministration30_40 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationAdministration.MedicationAdministrationDosageComponent tgt = new org.hl7.fhir.r4.model.MedicationAdministration.MedicationAdministrationDosageComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasText()) tgt.setTextElement(String30_40.convertString(src.getTextElement())); if (src.hasSite()) @@ -113,7 +113,7 @@ public class MedicationAdministration30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.MedicationAdministration.MedicationAdministrationDosageComponent tgt = new org.hl7.fhir.dstu3.model.MedicationAdministration.MedicationAdministrationDosageComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasText()) tgt.setTextElement(String30_40.convertString(src.getTextElement())); if (src.hasSite()) @@ -139,7 +139,7 @@ public class MedicationAdministration30_40 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationAdministration.MedicationAdministrationPerformerComponent tgt = new org.hl7.fhir.r4.model.MedicationAdministration.MedicationAdministrationPerformerComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasActor()) tgt.setActor(Reference30_40.convertReference(src.getActor())); return tgt; @@ -149,7 +149,7 @@ public class MedicationAdministration30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.MedicationAdministration.MedicationAdministrationPerformerComponent tgt = new org.hl7.fhir.dstu3.model.MedicationAdministration.MedicationAdministrationPerformerComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasActor()) tgt.setActor(Reference30_40.convertReference(src.getActor())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationDispense30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationDispense30_40.java index 4e8672703..563dbbf01 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationDispense30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationDispense30_40.java @@ -115,7 +115,7 @@ public class MedicationDispense30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispensePerformerComponent tgt = new org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispensePerformerComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasActor()) tgt.setActor(Reference30_40.convertReference(src.getActor())); return tgt; @@ -125,7 +125,7 @@ public class MedicationDispense30_40 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationDispense.MedicationDispensePerformerComponent tgt = new org.hl7.fhir.r4.model.MedicationDispense.MedicationDispensePerformerComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasActor()) tgt.setActor(Reference30_40.convertReference(src.getActor())); return tgt; @@ -206,7 +206,7 @@ public class MedicationDispense30_40 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.r4.model.MedicationDispense.MedicationDispenseSubstitutionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasWasSubstituted()) tgt.setWasSubstitutedElement(Boolean30_40.convertBoolean(src.getWasSubstitutedElement())); if (src.hasType()) @@ -222,7 +222,7 @@ public class MedicationDispense30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasWasSubstituted()) tgt.setWasSubstitutedElement(Boolean30_40.convertBoolean(src.getWasSubstitutedElement())); if (src.hasType()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationRequest30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationRequest30_40.java index 9287c20f1..bc31da767 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationRequest30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationRequest30_40.java @@ -122,7 +122,7 @@ public class MedicationRequest30_40 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestDispenseRequestComponent tgt = new org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestDispenseRequestComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasValidityPeriod()) tgt.setValidityPeriod(Period30_40.convertPeriod(src.getValidityPeriod())); if (src.hasNumberOfRepeatsAllowed()) @@ -140,7 +140,7 @@ public class MedicationRequest30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.MedicationRequest.MedicationRequestDispenseRequestComponent tgt = new org.hl7.fhir.dstu3.model.MedicationRequest.MedicationRequestDispenseRequestComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasValidityPeriod()) tgt.setValidityPeriod(Period30_40.convertPeriod(src.getValidityPeriod())); if (src.hasNumberOfRepeatsAllowed()) @@ -332,7 +332,7 @@ public class MedicationRequest30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.MedicationRequest.MedicationRequestSubstitutionComponent tgt = new org.hl7.fhir.dstu3.model.MedicationRequest.MedicationRequestSubstitutionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasAllowedBooleanType()) tgt.setAllowedElement(Boolean30_40.convertBoolean(src.getAllowedBooleanType())); if (src.hasReason()) @@ -344,7 +344,7 @@ public class MedicationRequest30_40 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestSubstitutionComponent tgt = new org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestSubstitutionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasAllowed()) tgt.setAllowed(Boolean30_40.convertBoolean(src.getAllowedElement())); if (src.hasReason()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MessageDefinition30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MessageDefinition30_40.java index 83ab8a3a6..2f0b9f7a4 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MessageDefinition30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MessageDefinition30_40.java @@ -124,7 +124,7 @@ public class MessageDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.MessageDefinition.MessageDefinitionAllowedResponseComponent tgt = new org.hl7.fhir.dstu3.model.MessageDefinition.MessageDefinitionAllowedResponseComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMessage()) tgt.setMessage(Reference30_40.convertCanonicalToReference(src.getMessageElement())); if (src.hasSituation()) @@ -136,7 +136,7 @@ public class MessageDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.MessageDefinition.MessageDefinitionAllowedResponseComponent tgt = new org.hl7.fhir.r4.model.MessageDefinition.MessageDefinitionAllowedResponseComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMessage()) tgt.setMessageElement(Reference30_40.convertReferenceToCanonical(src.getMessage())); if (src.hasSituation()) @@ -148,7 +148,7 @@ public class MessageDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.MessageDefinition.MessageDefinitionFocusComponent tgt = new org.hl7.fhir.r4.model.MessageDefinition.MessageDefinitionFocusComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_40.convertCode(src.getCodeElement())); if (src.hasProfile()) @@ -164,7 +164,7 @@ public class MessageDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.MessageDefinition.MessageDefinitionFocusComponent tgt = new org.hl7.fhir.dstu3.model.MessageDefinition.MessageDefinitionFocusComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_40.convertCode(src.getCodeElement())); if (src.hasProfile()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MessageHeader30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MessageHeader30_40.java index fab4499f2..15c0f20ae 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MessageHeader30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MessageHeader30_40.java @@ -15,7 +15,7 @@ public class MessageHeader30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasTarget()) @@ -29,7 +29,7 @@ public class MessageHeader30_40 { if (src == null) return null; org.hl7.fhir.r4.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.r4.model.MessageHeader.MessageDestinationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasTarget()) @@ -97,7 +97,7 @@ public class MessageHeader30_40 { if (src == null) return null; org.hl7.fhir.r4.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.r4.model.MessageHeader.MessageHeaderResponseComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifierElement(Id30_40.convertId(src.getIdentifierElement())); if (src.hasCode()) @@ -111,7 +111,7 @@ public class MessageHeader30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifierElement(Id30_40.convertId(src.getIdentifierElement())); if (src.hasCode()) @@ -125,7 +125,7 @@ public class MessageHeader30_40 { if (src == null) return null; org.hl7.fhir.r4.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.r4.model.MessageHeader.MessageSourceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasSoftware()) @@ -143,7 +143,7 @@ public class MessageHeader30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageSourceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasSoftware()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/NamingSystem30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/NamingSystem30_40.java index 035afc98a..384055765 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/NamingSystem30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/NamingSystem30_40.java @@ -179,7 +179,7 @@ public class NamingSystem30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement())); if (src.hasValue()) @@ -197,7 +197,7 @@ public class NamingSystem30_40 { if (src == null) return null; org.hl7.fhir.r4.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.r4.model.NamingSystem.NamingSystemUniqueIdComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Observation30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Observation30_40.java index 41ad067e4..9dbee3ced 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Observation30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Observation30_40.java @@ -118,7 +118,7 @@ public class Observation30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept30_40.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -136,7 +136,7 @@ public class Observation30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.r4.model.Observation.ObservationComponentComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept30_40.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -154,7 +154,7 @@ public class Observation30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLow()) tgt.setLow(SimpleQuantity30_40.convertSimpleQuantity(src.getLow())); if (src.hasHigh()) @@ -174,7 +174,7 @@ public class Observation30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.r4.model.Observation.ObservationReferenceRangeComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLow()) tgt.setLow(SimpleQuantity30_40.convertSimpleQuantity(src.getLow())); if (src.hasHigh()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/OperationDefinition30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/OperationDefinition30_40.java index aa21569bf..73dd0cefe 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/OperationDefinition30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/OperationDefinition30_40.java @@ -122,7 +122,7 @@ public class OperationDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionOverloadComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionOverloadComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.StringType t : src.getParameterName()) tgt.addParameterName(t.getValue()); if (src.hasComment()) tgt.setCommentElement(String30_40.convertString(src.getCommentElement())); @@ -133,7 +133,7 @@ public class OperationDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionOverloadComponent tgt = new org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionOverloadComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.StringType t : src.getParameterName()) tgt.addParameterName(t.getValue()); if (src.hasComment()) tgt.setCommentElement(String30_40.convertString(src.getCommentElement())); @@ -144,7 +144,7 @@ public class OperationDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasStrength()) tgt.setStrengthElement(Enumerations30_40.convertBindingStrength(src.getStrengthElement())); if (src.hasValueSet()) { @@ -161,7 +161,7 @@ public class OperationDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasStrength()) tgt.setStrengthElement(Enumerations30_40.convertBindingStrength(src.getStrengthElement())); if (src.hasValueSet()) { @@ -179,7 +179,7 @@ public class OperationDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Code30_40.convertCode(src.getNameElement())); if (src.hasUse()) @@ -207,7 +207,7 @@ public class OperationDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Code30_40.convertCode(src.getNameElement())); if (src.hasUse()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/OperationOutcome30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/OperationOutcome30_40.java index 67a66ceb3..525437aa1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/OperationOutcome30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/OperationOutcome30_40.java @@ -281,7 +281,7 @@ public class OperationOutcome30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasSeverity()) tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement())); if (src.hasCode()) @@ -299,7 +299,7 @@ public class OperationOutcome30_40 { if (src == null) return null; org.hl7.fhir.r4.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.r4.model.OperationOutcome.OperationOutcomeIssueComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasSeverity()) tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Organization30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Organization30_40.java index ecf529a79..42a193c86 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Organization30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Organization30_40.java @@ -63,7 +63,7 @@ public class Organization30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.r4.model.Organization.OrganizationContactComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasPurpose()) tgt.setPurpose(CodeableConcept30_40.convertCodeableConcept(src.getPurpose())); if (src.hasName()) @@ -79,7 +79,7 @@ public class Organization30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Organization.OrganizationContactComponent tgt = new org.hl7.fhir.dstu3.model.Organization.OrganizationContactComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasPurpose()) tgt.setPurpose(CodeableConcept30_40.convertCodeableConcept(src.getPurpose())); if (src.hasName()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Parameters30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Parameters30_40.java index c74a1d886..0e818d74a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Parameters30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Parameters30_40.java @@ -30,7 +30,7 @@ public class Parameters30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasValue()) @@ -46,7 +46,7 @@ public class Parameters30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Patient30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Patient30_40.java index 861e6e404..302c1b563 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Patient30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Patient30_40.java @@ -42,7 +42,7 @@ public class Patient30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Patient.ContactComponent tgt = new org.hl7.fhir.r4.model.Patient.ContactComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(CodeableConcept30_40.convertCodeableConcept(t)); if (src.hasName()) @@ -64,7 +64,7 @@ public class Patient30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Patient.ContactComponent tgt = new org.hl7.fhir.dstu3.model.Patient.ContactComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(CodeableConcept30_40.convertCodeableConcept(t)); if (src.hasName()) @@ -214,7 +214,7 @@ public class Patient30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguage(CodeableConcept30_40.convertCodeableConcept(src.getLanguage())); if (src.hasPreferred()) @@ -226,7 +226,7 @@ public class Patient30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.r4.model.Patient.PatientCommunicationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguage(CodeableConcept30_40.convertCodeableConcept(src.getLanguage())); if (src.hasPreferred()) @@ -238,7 +238,7 @@ public class Patient30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.dstu3.model.Patient.PatientLinkComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasOther()) tgt.setOther(Reference30_40.convertReference(src.getOther())); if (src.hasType()) @@ -250,7 +250,7 @@ public class Patient30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.r4.model.Patient.PatientLinkComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasOther()) tgt.setOther(Reference30_40.convertReference(src.getOther())); if (src.hasType()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Person30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Person30_40.java index 84d98cd19..6b46a4e42 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Person30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Person30_40.java @@ -114,7 +114,7 @@ public class Person30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.r4.model.Person.PersonLinkComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasTarget()) tgt.setTarget(Reference30_40.convertReference(src.getTarget())); if (src.hasAssurance()) @@ -126,7 +126,7 @@ public class Person30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.dstu3.model.Person.PersonLinkComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasTarget()) tgt.setTarget(Reference30_40.convertReference(src.getTarget())); if (src.hasAssurance()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/PlanDefinition30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/PlanDefinition30_40.java index 8e385e47a..f47e2bec2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/PlanDefinition30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/PlanDefinition30_40.java @@ -561,7 +561,7 @@ public class PlanDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionComponent tgt = new org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLabel()) tgt.setPrefixElement(String30_40.convertString(src.getLabelElement())); if (src.hasTitle()) @@ -618,7 +618,7 @@ public class PlanDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionComponent tgt = new org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasPrefix()) tgt.setLabelElement(String30_40.convertString(src.getPrefixElement())); if (src.hasTitle()) @@ -675,7 +675,7 @@ public class PlanDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionConditionComponent tgt = new org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionConditionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasKind()) tgt.setKindElement(convertActionConditionKind(src.getKindElement())); if (src.hasDescription()) @@ -691,7 +691,7 @@ public class PlanDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionConditionComponent tgt = new org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionConditionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasKind()) tgt.setKindElement(convertActionConditionKind(src.getKindElement())); if (src.getExpression().hasDescription()) @@ -707,7 +707,7 @@ public class PlanDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionDynamicValueComponent tgt = new org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionDynamicValueComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.getExpression().setDescription(src.getDescription()); if (src.hasPath()) @@ -723,7 +723,7 @@ public class PlanDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionDynamicValueComponent tgt = new org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionDynamicValueComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.getExpression().hasDescription()) tgt.setDescription(src.getExpression().getDescription()); if (src.hasPath()) @@ -739,7 +739,7 @@ public class PlanDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionParticipantComponent tgt = new org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionParticipantComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertActionParticipantType(src.getTypeElement())); if (src.hasRole()) @@ -751,7 +751,7 @@ public class PlanDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionParticipantComponent tgt = new org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionParticipantComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertActionParticipantType(src.getTypeElement())); if (src.hasRole()) @@ -763,7 +763,7 @@ public class PlanDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent tgt = new org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasActionId()) tgt.setActionIdElement(Id30_40.convertId(src.getActionIdElement())); if (src.hasRelationship()) @@ -777,7 +777,7 @@ public class PlanDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent tgt = new org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasActionId()) tgt.setActionIdElement(Id30_40.convertId(src.getActionIdElement())); if (src.hasRelationship()) @@ -791,7 +791,7 @@ public class PlanDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionGoalComponent tgt = new org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionGoalComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept30_40.convertCodeableConcept(src.getCategory())); if (src.hasDescription()) @@ -813,7 +813,7 @@ public class PlanDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionGoalComponent tgt = new org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionGoalComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept30_40.convertCodeableConcept(src.getCategory())); if (src.hasDescription()) @@ -835,7 +835,7 @@ public class PlanDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionGoalTargetComponent tgt = new org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionGoalTargetComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMeasure()) tgt.setMeasure(CodeableConcept30_40.convertCodeableConcept(src.getMeasure())); if (src.hasDetail()) @@ -849,7 +849,7 @@ public class PlanDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionGoalTargetComponent tgt = new org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionGoalTargetComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasMeasure()) tgt.setMeasure(CodeableConcept30_40.convertCodeableConcept(src.getMeasure())); if (src.hasDetail()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Practitioner30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Practitioner30_40.java index 2c37f61bd..8e67be570 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Practitioner30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Practitioner30_40.java @@ -63,7 +63,7 @@ public class Practitioner30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.dstu3.model.Practitioner.PractitionerQualificationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier30_40.convertIdentifier(t)); if (src.hasCode()) @@ -79,7 +79,7 @@ public class Practitioner30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.r4.model.Practitioner.PractitionerQualificationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier30_40.convertIdentifier(t)); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/PractitionerRole30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/PractitionerRole30_40.java index c0b36d115..817fe97bd 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/PractitionerRole30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/PractitionerRole30_40.java @@ -87,7 +87,7 @@ public class PractitionerRole30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleAvailableTimeComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(PractitionerRole30_40::convertDaysOfWeek) .collect(Collectors.toList())); @@ -104,7 +104,7 @@ public class PractitionerRole30_40 { if (src == null) return null; org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleAvailableTimeComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(PractitionerRole30_40::convertDaysOfWeek) .collect(Collectors.toList())); @@ -121,7 +121,7 @@ public class PractitionerRole30_40 { if (src == null) return null; org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleNotAvailableComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.setDescriptionElement(String30_40.convertString(src.getDescriptionElement())); if (src.hasDuring()) @@ -133,7 +133,7 @@ public class PractitionerRole30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleNotAvailableComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.setDescriptionElement(String30_40.convertString(src.getDescriptionElement())); if (src.hasDuring()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Procedure30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Procedure30_40.java index ad97e8d6f..1d402524e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Procedure30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Procedure30_40.java @@ -198,7 +198,7 @@ public class Procedure30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Procedure.ProcedureFocalDeviceComponent tgt = new org.hl7.fhir.dstu3.model.Procedure.ProcedureFocalDeviceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasAction()) { if (src.hasAction()) tgt.setAction(CodeableConcept30_40.convertCodeableConcept(src.getAction())); @@ -214,7 +214,7 @@ public class Procedure30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Procedure.ProcedureFocalDeviceComponent tgt = new org.hl7.fhir.r4.model.Procedure.ProcedureFocalDeviceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasAction()) { if (src.hasAction()) tgt.setAction(CodeableConcept30_40.convertCodeableConcept(src.getAction())); @@ -230,7 +230,7 @@ public class Procedure30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Procedure.ProcedurePerformerComponent tgt = new org.hl7.fhir.r4.model.Procedure.ProcedurePerformerComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasRole()) { if (src.hasRole()) tgt.setFunction(CodeableConcept30_40.convertCodeableConcept(src.getRole())); @@ -250,7 +250,7 @@ public class Procedure30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent tgt = new org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasFunction()) { if (src.hasFunction()) tgt.setRole(CodeableConcept30_40.convertCodeableConcept(src.getFunction())); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Provenance30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Provenance30_40.java index 6f282950e..9908e0460 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Provenance30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Provenance30_40.java @@ -87,7 +87,7 @@ public class Provenance30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent tgt = new org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRole()) tgt.addRole(CodeableConcept30_40.convertCodeableConcept(t)); if (src.hasWho()) @@ -101,7 +101,7 @@ public class Provenance30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Provenance.ProvenanceAgentComponent tgt = new org.hl7.fhir.r4.model.Provenance.ProvenanceAgentComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole()) tgt.addRole(CodeableConcept30_40.convertCodeableConcept(t)); if (src.hasWho()) { @@ -125,7 +125,7 @@ public class Provenance30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasRole()) tgt.setRoleElement(convertProvenanceEntityRole(src.getRoleElement())); if (src.hasWhat()) @@ -139,7 +139,7 @@ public class Provenance30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.r4.model.Provenance.ProvenanceEntityComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasRole()) tgt.setRoleElement(convertProvenanceEntityRole(src.getRoleElement())); if (src.hasWhat()) { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Questionnaire30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Questionnaire30_40.java index 754db34e6..d4a60ae55 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Questionnaire30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Questionnaire30_40.java @@ -111,7 +111,7 @@ public class Questionnaire30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String30_40.convertString(src.getLinkIdElement())); if (src.hasDefinition()) @@ -148,7 +148,7 @@ public class Questionnaire30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String30_40.convertString(src.getLinkIdElement())); if (src.hasDefinition()) @@ -189,7 +189,7 @@ public class Questionnaire30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemEnableWhenComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemEnableWhenComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasQuestion()) tgt.setQuestionElement(String30_40.convertString(src.getQuestionElement())); if (src.hasOperator() && src.getOperator() == org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemOperator.EXISTS) @@ -203,7 +203,7 @@ public class Questionnaire30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemEnableWhenComponent tgt = new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemEnableWhenComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasQuestion()) tgt.setQuestionElement(String30_40.convertString(src.getQuestionElement())); if (src.hasHasAnswer()) { @@ -222,7 +222,7 @@ public class Questionnaire30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemAnswerOptionComponent tgt = new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemAnswerOptionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().convertType(src.getValue())); return tgt; @@ -232,7 +232,7 @@ public class Questionnaire30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemOptionComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemOptionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().convertType(src.getValue())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/QuestionnaireResponse30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/QuestionnaireResponse30_40.java index 5c95ecb61..f34940eb4 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/QuestionnaireResponse30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/QuestionnaireResponse30_40.java @@ -70,7 +70,7 @@ public class QuestionnaireResponse30_40 { if (src == null) return null; org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().convertType(src.getValue())); for (org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) @@ -82,7 +82,7 @@ public class QuestionnaireResponse30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().convertType(src.getValue())); for (org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) @@ -94,7 +94,7 @@ public class QuestionnaireResponse30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String30_40.convertString(src.getLinkIdElement())); if (src.hasDefinition()) @@ -112,7 +112,7 @@ public class QuestionnaireResponse30_40 { if (src == null) return null; org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String30_40.convertString(src.getLinkIdElement())); if (src.hasDefinition()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/RiskAssessment30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/RiskAssessment30_40.java index 3afbdd1a7..85a8516d8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/RiskAssessment30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/RiskAssessment30_40.java @@ -99,7 +99,7 @@ public class RiskAssessment30_40 { if (src == null) return null; org.hl7.fhir.r4.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.r4.model.RiskAssessment.RiskAssessmentPredictionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasOutcome()) tgt.setOutcome(CodeableConcept30_40.convertCodeableConcept(src.getOutcome())); if (src.hasProbability()) @@ -119,7 +119,7 @@ public class RiskAssessment30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasOutcome()) tgt.setOutcome(CodeableConcept30_40.convertCodeableConcept(src.getOutcome())); if (src.hasProbability()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/SearchParameter30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/SearchParameter30_40.java index 09d0909f5..7224bf699 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/SearchParameter30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/SearchParameter30_40.java @@ -292,7 +292,7 @@ public class SearchParameter30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.SearchParameter.SearchParameterComponentComponent tgt = new org.hl7.fhir.dstu3.model.SearchParameter.SearchParameterComponentComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasDefinition()) tgt.setDefinition(Reference30_40.convertCanonicalToReference(src.getDefinitionElement())); if (src.hasExpression()) @@ -304,7 +304,7 @@ public class SearchParameter30_40 { if (src == null) return null; org.hl7.fhir.r4.model.SearchParameter.SearchParameterComponentComponent tgt = new org.hl7.fhir.r4.model.SearchParameter.SearchParameterComponentComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasDefinition()) tgt.setDefinitionElement(Reference30_40.convertReferenceToCanonical(src.getDefinition())); if (src.hasExpression()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Sequence30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Sequence30_40.java index 911d878b5..f5df5b91b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Sequence30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Sequence30_40.java @@ -191,7 +191,7 @@ public class Sequence30_40 { if (src == null) return null; org.hl7.fhir.r4.model.MolecularSequence.MolecularSequenceQualityComponent tgt = new org.hl7.fhir.r4.model.MolecularSequence.MolecularSequenceQualityComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertQualityType(src.getTypeElement())); if (src.hasStandardSequence()) @@ -227,7 +227,7 @@ public class Sequence30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Sequence.SequenceQualityComponent tgt = new org.hl7.fhir.dstu3.model.Sequence.SequenceQualityComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertQualityType(src.getTypeElement())); if (src.hasStandardSequence()) @@ -263,7 +263,7 @@ public class Sequence30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Sequence.SequenceReferenceSeqComponent tgt = new org.hl7.fhir.dstu3.model.Sequence.SequenceReferenceSeqComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasChromosome()) tgt.setChromosome(CodeableConcept30_40.convertCodeableConcept(src.getChromosome())); if (src.hasGenomeBuild()) @@ -285,7 +285,7 @@ public class Sequence30_40 { if (src == null) return null; org.hl7.fhir.r4.model.MolecularSequence.MolecularSequenceReferenceSeqComponent tgt = new org.hl7.fhir.r4.model.MolecularSequence.MolecularSequenceReferenceSeqComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasChromosome()) tgt.setChromosome(CodeableConcept30_40.convertCodeableConcept(src.getChromosome())); if (src.hasGenomeBuild()) @@ -307,7 +307,7 @@ public class Sequence30_40 { if (src == null) return null; org.hl7.fhir.r4.model.MolecularSequence.MolecularSequenceRepositoryComponent tgt = new org.hl7.fhir.r4.model.MolecularSequence.MolecularSequenceRepositoryComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertRepositoryType(src.getTypeElement())); if (src.hasUrl()) @@ -327,7 +327,7 @@ public class Sequence30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Sequence.SequenceRepositoryComponent tgt = new org.hl7.fhir.dstu3.model.Sequence.SequenceRepositoryComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertRepositoryType(src.getTypeElement())); if (src.hasUrl()) @@ -391,7 +391,7 @@ public class Sequence30_40 { if (src == null) return null; org.hl7.fhir.r4.model.MolecularSequence.MolecularSequenceVariantComponent tgt = new org.hl7.fhir.r4.model.MolecularSequence.MolecularSequenceVariantComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasStart()) tgt.setStartElement(Integer30_40.convertInteger(src.getStartElement())); if (src.hasEnd()) @@ -411,7 +411,7 @@ public class Sequence30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Sequence.SequenceVariantComponent tgt = new org.hl7.fhir.dstu3.model.Sequence.SequenceVariantComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasStart()) tgt.setStartElement(Integer30_40.convertInteger(src.getStartElement())); if (src.hasEnd()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Specimen30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Specimen30_40.java index a3213d4ee..bd99fe4e2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Specimen30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Specimen30_40.java @@ -74,7 +74,7 @@ public class Specimen30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Specimen.SpecimenCollectionComponent tgt = new org.hl7.fhir.dstu3.model.Specimen.SpecimenCollectionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCollector()) tgt.setCollector(Reference30_40.convertReference(src.getCollector())); if (src.hasCollected()) @@ -92,7 +92,7 @@ public class Specimen30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Specimen.SpecimenCollectionComponent tgt = new org.hl7.fhir.r4.model.Specimen.SpecimenCollectionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCollector()) tgt.setCollector(Reference30_40.convertReference(src.getCollector())); if (src.hasCollected()) @@ -110,7 +110,7 @@ public class Specimen30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Specimen.SpecimenContainerComponent tgt = new org.hl7.fhir.dstu3.model.Specimen.SpecimenContainerComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier30_40.convertIdentifier(t)); if (src.hasDescription()) @@ -130,7 +130,7 @@ public class Specimen30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Specimen.SpecimenContainerComponent tgt = new org.hl7.fhir.r4.model.Specimen.SpecimenContainerComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier30_40.convertIdentifier(t)); if (src.hasDescription()) @@ -150,7 +150,7 @@ public class Specimen30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Specimen.SpecimenProcessingComponent tgt = new org.hl7.fhir.r4.model.Specimen.SpecimenProcessingComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.setDescriptionElement(String30_40.convertString(src.getDescriptionElement())); if (src.hasProcedure()) @@ -165,7 +165,7 @@ public class Specimen30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Specimen.SpecimenProcessingComponent tgt = new org.hl7.fhir.dstu3.model.Specimen.SpecimenProcessingComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.setDescriptionElement(String30_40.convertString(src.getDescriptionElement())); if (src.hasProcedure()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/StructureDefinition30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/StructureDefinition30_40.java index dc7719a74..427fa9487 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/StructureDefinition30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/StructureDefinition30_40.java @@ -199,7 +199,7 @@ public class StructureDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionDifferentialComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition30_40.convertElementDefinition(t)); return tgt; @@ -209,7 +209,7 @@ public class StructureDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionDifferentialComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition30_40.convertElementDefinition(t)); return tgt; @@ -269,7 +269,7 @@ public class StructureDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasIdentity()) tgt.setIdentityElement(Id30_40.convertId(src.getIdentityElement())); if (src.hasUri()) @@ -285,7 +285,7 @@ public class StructureDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasIdentity()) tgt.setIdentityElement(Id30_40.convertId(src.getIdentityElement())); if (src.hasUri()) @@ -301,7 +301,7 @@ public class StructureDefinition30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionSnapshotComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition30_40.convertElementDefinition(t)); return tgt; @@ -311,7 +311,7 @@ public class StructureDefinition30_40 { if (src == null) return null; org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionSnapshotComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition30_40.convertElementDefinition(t)); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/StructureMap30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/StructureMap30_40.java index fc883bba4..4b301e09c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/StructureMap30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/StructureMap30_40.java @@ -140,7 +140,7 @@ public class StructureMap30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Id30_40.convertId(src.getNameElement())); if (src.hasExtends()) @@ -160,7 +160,7 @@ public class StructureMap30_40 { if (src == null) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Id30_40.convertId(src.getNameElement())); if (src.hasExtends()) @@ -180,7 +180,7 @@ public class StructureMap30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupInputComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupInputComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Id30_40.convertId(src.getNameElement())); if (src.hasType()) @@ -196,7 +196,7 @@ public class StructureMap30_40 { if (src == null) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupInputComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupInputComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Id30_40.convertId(src.getNameElement())); if (src.hasType()) @@ -212,7 +212,7 @@ public class StructureMap30_40 { if (src == null) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Id30_40.convertId(src.getNameElement())); for (org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleSourceComponent t : src.getSource()) @@ -232,7 +232,7 @@ public class StructureMap30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Id30_40.convertId(src.getNameElement())); for (org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent t : src.getSource()) @@ -252,7 +252,7 @@ public class StructureMap30_40 { if (src == null) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleDependentComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleDependentComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Id30_40.convertId(src.getNameElement())); for (org.hl7.fhir.dstu3.model.StringType t : src.getVariable()) tgt.addVariable(t.getValue()); @@ -263,7 +263,7 @@ public class StructureMap30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleDependentComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleDependentComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Id30_40.convertId(src.getNameElement())); for (org.hl7.fhir.r4.model.StringType t : src.getVariable()) tgt.addVariable(t.getValue()); @@ -274,7 +274,7 @@ public class StructureMap30_40 { if (src == null) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasContext()) tgt.setContextElement(Id30_40.convertId(src.getContextElement())); if (src.hasMin()) @@ -302,7 +302,7 @@ public class StructureMap30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleSourceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasContext()) tgt.setContextElement(Id30_40.convertId(src.getContextElement())); if (src.hasMin()) @@ -330,7 +330,7 @@ public class StructureMap30_40 { if (src == null) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasContext()) tgt.setContextElement(Id30_40.convertId(src.getContextElement())); if (src.hasContextType()) @@ -355,7 +355,7 @@ public class StructureMap30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasContext()) tgt.setContextElement(Id30_40.convertId(src.getContextElement())); if (src.hasContextType()) @@ -380,7 +380,7 @@ public class StructureMap30_40 { if (src == null) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetParameterComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetParameterComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().convertType(src.getValue())); return tgt; @@ -390,7 +390,7 @@ public class StructureMap30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetParameterComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetParameterComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().convertType(src.getValue())); return tgt; @@ -588,7 +588,7 @@ public class StructureMap30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureMap.StructureMapStructureComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapStructureComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasUrl()) tgt.setUrl(src.getUrl()); if (src.hasMode()) @@ -604,7 +604,7 @@ public class StructureMap30_40 { if (src == null) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapStructureComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapStructureComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasUrl()) tgt.setUrl(src.getUrl()); if (src.hasMode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Subscription30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Subscription30_40.java index 05b675ad4..c3d614863 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Subscription30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Subscription30_40.java @@ -56,7 +56,7 @@ public class Subscription30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Subscription.SubscriptionChannelComponent tgt = new org.hl7.fhir.dstu3.model.Subscription.SubscriptionChannelComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertSubscriptionChannelType(src.getTypeElement())); if (src.hasEndpoint()) @@ -71,7 +71,7 @@ public class Subscription30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Subscription.SubscriptionChannelComponent tgt = new org.hl7.fhir.r4.model.Subscription.SubscriptionChannelComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertSubscriptionChannelType(src.getTypeElement())); if (src.hasEndpoint()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Substance30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Substance30_40.java index 7a83333f1..144c77f40 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Substance30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Substance30_40.java @@ -103,7 +103,7 @@ public class Substance30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasQuantity()) tgt.setQuantity(Ratio30_40.convertRatio(src.getQuantity())); if (src.hasSubstance()) @@ -115,7 +115,7 @@ public class Substance30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.r4.model.Substance.SubstanceIngredientComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasQuantity()) tgt.setQuantity(Ratio30_40.convertRatio(src.getQuantity())); if (src.hasSubstance()) @@ -127,7 +127,7 @@ public class Substance30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier30_40.convertIdentifier(src.getIdentifier())); if (src.hasExpiry()) @@ -141,7 +141,7 @@ public class Substance30_40 { if (src == null) return null; org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier30_40.convertIdentifier(src.getIdentifier())); if (src.hasExpiry()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/SupplyDelivery30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/SupplyDelivery30_40.java index 7456acd14..88a02df08 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/SupplyDelivery30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/SupplyDelivery30_40.java @@ -117,7 +117,7 @@ public class SupplyDelivery30_40 { if (src == null) return null; org.hl7.fhir.r4.model.SupplyDelivery.SupplyDeliverySuppliedItemComponent tgt = new org.hl7.fhir.r4.model.SupplyDelivery.SupplyDeliverySuppliedItemComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasQuantity()) tgt.setQuantity(SimpleQuantity30_40.convertSimpleQuantity(src.getQuantity())); if (src.hasItem()) @@ -129,7 +129,7 @@ public class SupplyDelivery30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.SupplyDelivery.SupplyDeliverySuppliedItemComponent tgt = new org.hl7.fhir.dstu3.model.SupplyDelivery.SupplyDeliverySuppliedItemComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasQuantity()) tgt.setQuantity(SimpleQuantity30_40.convertSimpleQuantity(src.getQuantity())); if (src.hasItem()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/TestReport30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/TestReport30_40.java index 3aa29e474..372005669 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/TestReport30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/TestReport30_40.java @@ -76,7 +76,7 @@ public class TestReport30_40 { if (src == null) return null; org.hl7.fhir.r4.model.TestReport.TestReportParticipantComponent tgt = new org.hl7.fhir.r4.model.TestReport.TestReportParticipantComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertTestReportParticipantType(src.getTypeElement())); if (src.hasUri()) @@ -90,7 +90,7 @@ public class TestReport30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestReport.TestReportParticipantComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.TestReportParticipantComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertTestReportParticipantType(src.getTypeElement())); if (src.hasUri()) @@ -192,7 +192,7 @@ public class TestReport30_40 { if (src == null) return null; org.hl7.fhir.r4.model.TestReport.TestReportSetupComponent tgt = new org.hl7.fhir.r4.model.TestReport.TestReportSetupComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestReport.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -202,7 +202,7 @@ public class TestReport30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestReport.TestReportSetupComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.TestReportSetupComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.TestReport.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -268,7 +268,7 @@ public class TestReport30_40 { if (src == null) return null; org.hl7.fhir.r4.model.TestReport.TestReportTeardownComponent tgt = new org.hl7.fhir.r4.model.TestReport.TestReportTeardownComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestReport.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -278,7 +278,7 @@ public class TestReport30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestReport.TestReportTeardownComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.TestReportTeardownComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.TestReport.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -288,7 +288,7 @@ public class TestReport30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestReport.TestReportTestComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.TestReportTestComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasDescription()) @@ -302,7 +302,7 @@ public class TestReport30_40 { if (src == null) return null; org.hl7.fhir.r4.model.TestReport.TestReportTestComponent tgt = new org.hl7.fhir.r4.model.TestReport.TestReportTestComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasDescription()) @@ -315,7 +315,7 @@ public class TestReport30_40 { public static org.hl7.fhir.r4.model.TestReport.SetupActionComponent convertSetupActionComponent(org.hl7.fhir.dstu3.model.TestReport.SetupActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4.model.TestReport.SetupActionComponent tgt = new org.hl7.fhir.r4.model.TestReport.SetupActionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); return tgt; @@ -324,7 +324,7 @@ public class TestReport30_40 { public static org.hl7.fhir.dstu3.model.TestReport.SetupActionComponent convertSetupActionComponent(org.hl7.fhir.r4.model.TestReport.SetupActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestReport.SetupActionComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.SetupActionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); return tgt; @@ -333,7 +333,7 @@ public class TestReport30_40 { public static org.hl7.fhir.r4.model.TestReport.SetupActionOperationComponent convertSetupActionOperationComponent(org.hl7.fhir.dstu3.model.TestReport.SetupActionOperationComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4.model.TestReport.SetupActionOperationComponent tgt = new org.hl7.fhir.r4.model.TestReport.SetupActionOperationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasResult()) tgt.setResultElement(convertTestReportActionResult(src.getResultElement())); if (src.hasMessage()) tgt.setMessageElement(MarkDown30_40.convertMarkdown(src.getMessageElement())); if (src.hasDetail()) tgt.setDetailElement(Uri30_40.convertUri(src.getDetailElement())); @@ -343,7 +343,7 @@ public class TestReport30_40 { public static org.hl7.fhir.dstu3.model.TestReport.SetupActionOperationComponent convertSetupActionOperationComponent(org.hl7.fhir.r4.model.TestReport.SetupActionOperationComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestReport.SetupActionOperationComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.SetupActionOperationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasResult()) tgt.setResultElement(convertTestReportActionResult(src.getResultElement())); if (src.hasMessage()) tgt.setMessageElement(MarkDown30_40.convertMarkdown(src.getMessageElement())); if (src.hasDetail()) tgt.setDetailElement(Uri30_40.convertUri(src.getDetailElement())); @@ -415,7 +415,7 @@ public class TestReport30_40 { public static org.hl7.fhir.r4.model.TestReport.SetupActionAssertComponent convertSetupActionAssertComponent(org.hl7.fhir.dstu3.model.TestReport.SetupActionAssertComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4.model.TestReport.SetupActionAssertComponent tgt = new org.hl7.fhir.r4.model.TestReport.SetupActionAssertComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasResult()) tgt.setResultElement(convertTestReportActionResult(src.getResultElement())); if (src.hasMessage()) tgt.setMessageElement(MarkDown30_40.convertMarkdown(src.getMessageElement())); if (src.hasDetail()) tgt.setDetailElement(String30_40.convertString(src.getDetailElement())); @@ -425,7 +425,7 @@ public class TestReport30_40 { public static org.hl7.fhir.dstu3.model.TestReport.SetupActionAssertComponent convertSetupActionAssertComponent(org.hl7.fhir.r4.model.TestReport.SetupActionAssertComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestReport.SetupActionAssertComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.SetupActionAssertComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasResult()) tgt.setResultElement(convertTestReportActionResult(src.getResultElement())); if (src.hasMessage()) tgt.setMessageElement(MarkDown30_40.convertMarkdown(src.getMessageElement())); if (src.hasDetail()) tgt.setDetailElement(String30_40.convertString(src.getDetailElement())); @@ -435,7 +435,7 @@ public class TestReport30_40 { public static org.hl7.fhir.r4.model.TestReport.TestActionComponent convertTestActionComponent(org.hl7.fhir.dstu3.model.TestReport.TestActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4.model.TestReport.TestActionComponent tgt = new org.hl7.fhir.r4.model.TestReport.TestActionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); return tgt; @@ -444,7 +444,7 @@ public class TestReport30_40 { public static org.hl7.fhir.dstu3.model.TestReport.TestActionComponent convertTestActionComponent(org.hl7.fhir.r4.model.TestReport.TestActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestReport.TestActionComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.TestActionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); return tgt; @@ -453,7 +453,7 @@ public class TestReport30_40 { public static org.hl7.fhir.r4.model.TestReport.TeardownActionComponent convertTeardownActionComponent(org.hl7.fhir.dstu3.model.TestReport.TeardownActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4.model.TestReport.TeardownActionComponent tgt = new org.hl7.fhir.r4.model.TestReport.TeardownActionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; } @@ -461,7 +461,7 @@ public class TestReport30_40 { public static org.hl7.fhir.dstu3.model.TestReport.TeardownActionComponent convertTeardownActionComponent(org.hl7.fhir.r4.model.TestReport.TeardownActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestReport.TeardownActionComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.TeardownActionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/TestScript30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/TestScript30_40.java index f8ae6e57f..811af72f7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/TestScript30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/TestScript30_40.java @@ -126,7 +126,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptDestinationComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptDestinationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasIndex()) tgt.setIndexElement(Integer30_40.convertInteger(src.getIndexElement())); if (src.hasProfile()) @@ -138,7 +138,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptDestinationComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptDestinationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasIndex()) tgt.setIndexElement(Integer30_40.convertInteger(src.getIndexElement())); if (src.hasProfile()) @@ -150,7 +150,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptFixtureComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasAutocreate()) tgt.setAutocreateElement(Boolean30_40.convertBoolean(src.getAutocreateElement())); if (src.hasAutodelete()) @@ -164,7 +164,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasAutocreate()) tgt.setAutocreateElement(Boolean30_40.convertBoolean(src.getAutocreateElement())); if (src.hasAutodelete()) @@ -178,7 +178,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasRequired()) tgt.setRequiredElement(Boolean30_40.convertBoolean(src.getRequiredElement())); if (src.hasValidated()) @@ -198,7 +198,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasRequired()) tgt.setRequiredElement(Boolean30_40.convertBoolean(src.getRequiredElement())); if (src.hasValidated()) @@ -218,7 +218,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptMetadataComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t)); for (org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) @@ -230,7 +230,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t)); for (org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) @@ -242,7 +242,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptMetadataLinkComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasUrl()) tgt.setUrlElement(Uri30_40.convertUri(src.getUrlElement())); if (src.hasDescription()) @@ -254,7 +254,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasUrl()) tgt.setUrlElement(Uri30_40.convertUri(src.getUrlElement())); if (src.hasDescription()) @@ -266,7 +266,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptOriginComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptOriginComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasIndex()) tgt.setIndexElement(Integer30_40.convertInteger(src.getIndexElement())); if (src.hasProfile()) @@ -278,7 +278,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptOriginComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptOriginComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasIndex()) tgt.setIndexElement(Integer30_40.convertInteger(src.getIndexElement())); if (src.hasProfile()) @@ -290,7 +290,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptSetupComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -300,7 +300,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.TestScript.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -310,7 +310,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.r4.model.TestScript.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -320,7 +320,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptTeardownComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -330,7 +330,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasDescription()) @@ -344,7 +344,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptTestComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasDescription()) @@ -358,7 +358,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasDefaultValue()) @@ -382,7 +382,7 @@ public class TestScript30_40 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptVariableComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasDefaultValue()) @@ -405,7 +405,7 @@ public class TestScript30_40 { public static org.hl7.fhir.r4.model.TestScript.SetupActionComponent convertSetupActionComponent(org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.SetupActionComponent tgt = new org.hl7.fhir.r4.model.TestScript.SetupActionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); return tgt; @@ -414,7 +414,7 @@ public class TestScript30_40 { public static org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent convertSetupActionComponent(org.hl7.fhir.r4.model.TestScript.SetupActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); return tgt; @@ -423,7 +423,7 @@ public class TestScript30_40 { public static org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent convertSetupActionOperationComponent(org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(Coding30_40.convertCoding(src.getType())); if (src.hasResource()) tgt.setResourceElement(Code30_40.convertCode(src.getResourceElement())); if (src.hasLabel()) tgt.setLabelElement(String30_40.convertString(src.getLabelElement())); @@ -448,7 +448,7 @@ public class TestScript30_40 { public static org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent convertSetupActionOperationComponent(org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(Coding30_40.convertCoding(src.getType())); if (src.hasResource()) tgt.setResourceElement(Code30_40.convertCode(src.getResourceElement())); if (src.hasLabel()) tgt.setLabelElement(String30_40.convertString(src.getLabelElement())); @@ -497,7 +497,7 @@ public class TestScript30_40 { public static org.hl7.fhir.r4.model.TestScript.SetupActionOperationRequestHeaderComponent convertSetupActionOperationRequestHeaderComponent(org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.SetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.r4.model.TestScript.SetupActionOperationRequestHeaderComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasField()) tgt.setFieldElement(String30_40.convertString(src.getFieldElement())); if (src.hasValue()) tgt.setValueElement(String30_40.convertString(src.getValueElement())); return tgt; @@ -506,7 +506,7 @@ public class TestScript30_40 { public static org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent convertSetupActionOperationRequestHeaderComponent(org.hl7.fhir.r4.model.TestScript.SetupActionOperationRequestHeaderComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasField()) tgt.setFieldElement(String30_40.convertString(src.getFieldElement())); if (src.hasValue()) tgt.setValueElement(String30_40.convertString(src.getValueElement())); return tgt; @@ -515,7 +515,7 @@ public class TestScript30_40 { public static org.hl7.fhir.r4.model.TestScript.SetupActionAssertComponent convertSetupActionAssertComponent(org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.SetupActionAssertComponent tgt = new org.hl7.fhir.r4.model.TestScript.SetupActionAssertComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLabel()) tgt.setLabelElement(String30_40.convertString(src.getLabelElement())); if (src.hasDescription()) tgt.setDescriptionElement(String30_40.convertString(src.getDescriptionElement())); if (src.hasDirection()) tgt.setDirectionElement(convertAssertionDirectionType(src.getDirectionElement())); @@ -550,7 +550,7 @@ public class TestScript30_40 { public static org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent convertSetupActionAssertComponent(org.hl7.fhir.r4.model.TestScript.SetupActionAssertComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLabel()) tgt.setLabelElement(String30_40.convertString(src.getLabelElement())); if (src.hasDescription()) tgt.setDescriptionElement(String30_40.convertString(src.getDescriptionElement())); if (src.hasDirection()) tgt.setDirectionElement(convertAssertionDirectionType(src.getDirectionElement())); @@ -899,7 +899,7 @@ public class TestScript30_40 { public static org.hl7.fhir.r4.model.TestScript.TestActionComponent convertTestActionComponent(org.hl7.fhir.dstu3.model.TestScript.TestActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestActionComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestActionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); return tgt; @@ -908,7 +908,7 @@ public class TestScript30_40 { public static org.hl7.fhir.dstu3.model.TestScript.TestActionComponent convertTestActionComponent(org.hl7.fhir.r4.model.TestScript.TestActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestActionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); return tgt; @@ -917,7 +917,7 @@ public class TestScript30_40 { public static org.hl7.fhir.r4.model.TestScript.TeardownActionComponent convertTeardownActionComponent(org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TeardownActionComponent tgt = new org.hl7.fhir.r4.model.TestScript.TeardownActionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; } @@ -925,7 +925,7 @@ public class TestScript30_40 { public static org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent convertTeardownActionComponent(org.hl7.fhir.r4.model.TestScript.TeardownActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ValueSet30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ValueSet30_40.java index 0d591d8b2..02c1683c1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ValueSet30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ValueSet30_40.java @@ -16,7 +16,7 @@ public class ValueSet30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_40.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -30,7 +30,7 @@ public class ValueSet30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptReferenceComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_40.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -44,7 +44,7 @@ public class ValueSet30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code30_40.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -58,7 +58,7 @@ public class ValueSet30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptReferenceDesignationComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code30_40.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -72,7 +72,7 @@ public class ValueSet30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasSystem()) tgt.setSystemElement(Uri30_40.convertUri(src.getSystemElement())); if (src.hasVersion()) @@ -89,7 +89,7 @@ public class ValueSet30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasSystem()) tgt.setSystemElement(Uri30_40.convertUri(src.getSystemElement())); if (src.hasVersion()) @@ -106,7 +106,7 @@ public class ValueSet30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptSetFilterComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasProperty()) tgt.setPropertyElement(Code30_40.convertCode(src.getPropertyElement())); if (src.hasOp()) @@ -120,7 +120,7 @@ public class ValueSet30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasProperty()) tgt.setPropertyElement(Code30_40.convertCode(src.getPropertyElement())); if (src.hasOp()) @@ -226,7 +226,7 @@ public class ValueSet30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLockedDate()) tgt.setLockedDateElement(Date30_40.convertDate(src.getLockedDateElement())); if (src.hasInactive()) @@ -242,7 +242,7 @@ public class ValueSet30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetComposeComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasLockedDate()) tgt.setLockedDateElement(Date30_40.convertDate(src.getLockedDateElement())); if (src.hasInactive()) @@ -258,7 +258,7 @@ public class ValueSet30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifierElement(Uri30_40.convertUri(src.getIdentifierElement())); if (src.hasTimestamp()) @@ -278,7 +278,7 @@ public class ValueSet30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifierElement(Uri30_40.convertUri(src.getIdentifierElement())); if (src.hasTimestamp()) @@ -298,7 +298,7 @@ public class ValueSet30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasSystem()) tgt.setSystemElement(Uri30_40.convertUri(src.getSystemElement())); if (src.hasAbstract()) @@ -322,7 +322,7 @@ public class ValueSet30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionContainsComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasSystem()) tgt.setSystemElement(Uri30_40.convertUri(src.getSystemElement())); if (src.hasAbstract()) @@ -346,7 +346,7 @@ public class ValueSet30_40 { if (src == null) return null; org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionParameterComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasValue()) @@ -358,7 +358,7 @@ public class ValueSet30_40 { if (src == null) return null; org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent(); - ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyElement(src, tgt); + ConversionContext30_40.INSTANCE.getVersionConvertor_30_40().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_40.convertString(src.getNameElement())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/VersionConvertor_30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/VersionConvertor_30_50.java index 582b5ddd4..8b329e3ef 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/VersionConvertor_30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/VersionConvertor_30_50.java @@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_50; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_30_50; import org.hl7.fhir.convertors.context.ConversionContext30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.BackboneElement30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Element30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Type30_50; import org.hl7.fhir.exceptions.FHIRException; @@ -65,12 +66,15 @@ public class VersionConvertor_30_50 { private final BaseAdvisor_30_50 advisor; private final Element30_50 elementConvertor; + + private final BackboneElement30_50 backboneElementConvertor; private final Resource30_50 resourceConvertor; private final Type30_50 typeConvertor; public VersionConvertor_30_50(@Nonnull BaseAdvisor_30_50 advisor) { this.advisor = advisor; this.elementConvertor = new Element30_50(advisor); + this.backboneElementConvertor = new BackboneElement30_50(); this.resourceConvertor = new Resource30_50(advisor); this.typeConvertor = new Type30_50(advisor); } @@ -147,4 +151,15 @@ public class VersionConvertor_30_50 { elementConvertor.copyElement(src, tgt, ConversionContext30_50.INSTANCE.path(), var); } + public void copyBackboneElement(@Nonnull org.hl7.fhir.r5.model.BackboneElement src, + @Nonnull org.hl7.fhir.dstu3.model.BackboneElement tgt, + String... var) throws FHIRException { + backboneElementConvertor.copyBackboneElement(src, tgt, var); + } + + public void copyBackboneElement(@Nonnull org.hl7.fhir.dstu3.model.BackboneElement src, + @Nonnull org.hl7.fhir.r5.model.BackboneElement tgt, + String... var) throws FHIRException { + backboneElementConvertor.copyBackboneElement(src, tgt, var); + } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/BackboneElement30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/BackboneElement30_50.java index 537aeb21b..40ff12ca6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/BackboneElement30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/BackboneElement30_50.java @@ -4,15 +4,15 @@ import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.exceptions.FHIRException; public class BackboneElement30_50 { - static public void copyBackboneElement(org.hl7.fhir.dstu3.model.BackboneElement src, org.hl7.fhir.r5.model.BackboneElement tgt) throws FHIRException { - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + static public void copyBackboneElement(org.hl7.fhir.dstu3.model.BackboneElement src, org.hl7.fhir.r5.model.BackboneElement tgt, String ... var) throws FHIRException { + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src,tgt, var); for (org.hl7.fhir.dstu3.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension30_50.convertExtension(e)); } } - static public void copyBackboneElement(org.hl7.fhir.r5.model.BackboneElement src, org.hl7.fhir.dstu3.model.BackboneElement tgt) throws FHIRException { - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + static public void copyBackboneElement(org.hl7.fhir.r5.model.BackboneElement src, org.hl7.fhir.dstu3.model.BackboneElement tgt, String ... var) throws FHIRException { + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt, var); for (org.hl7.fhir.r5.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension30_50.convertExtension(e)); } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ActivityDefinition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ActivityDefinition30_50.java index 491d25e69..4a55ebf56 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ActivityDefinition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ActivityDefinition30_50.java @@ -198,7 +198,7 @@ public class ActivityDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent tgt = new org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.getExpression().setDescription(src.getDescription()); if (src.hasPath()) @@ -214,7 +214,7 @@ public class ActivityDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent tgt = new org.hl7.fhir.dstu3.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasPath()) tgt.setPathElement(String30_50.convertString(src.getPathElement())); if (src.getExpression().hasDescription()) @@ -349,7 +349,7 @@ public class ActivityDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionParticipantComponent tgt = new org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionParticipantComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertActivityParticipantType(src.getTypeElement())); if (src.hasRole()) @@ -361,7 +361,7 @@ public class ActivityDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ActivityDefinition.ActivityDefinitionParticipantComponent tgt = new org.hl7.fhir.dstu3.model.ActivityDefinition.ActivityDefinitionParticipantComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertActivityParticipantType(src.getTypeElement())); if (src.hasRole()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/AllergyIntolerance30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/AllergyIntolerance30_50.java index d8141c4ad..ad93a4e84 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/AllergyIntolerance30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/AllergyIntolerance30_50.java @@ -224,7 +224,7 @@ public class AllergyIntolerance30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceReactionComponent tgt = new org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceReactionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasSubstance()) tgt.setSubstance(CodeableConcept30_50.convertCodeableConcept(src.getSubstance())); for (CodeableReference t : src.getManifestation()) @@ -245,7 +245,7 @@ public class AllergyIntolerance30_50 { if (src == null) return null; org.hl7.fhir.r5.model.AllergyIntolerance.AllergyIntoleranceReactionComponent tgt = new org.hl7.fhir.r5.model.AllergyIntolerance.AllergyIntoleranceReactionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasSubstance()) tgt.setSubstance(CodeableConcept30_50.convertCodeableConcept(src.getSubstance())); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getManifestation()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Appointment30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Appointment30_50.java index f9411aecf..b912a2429 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Appointment30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Appointment30_50.java @@ -137,7 +137,7 @@ public class Appointment30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept30_50.convertCodeableConcept(t)); if (src.hasActor()) @@ -153,7 +153,7 @@ public class Appointment30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.r5.model.Appointment.AppointmentParticipantComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept30_50.convertCodeableConcept(t)); if (src.hasActor()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/AuditEvent30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/AuditEvent30_50.java index aaa374d45..463c40536 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/AuditEvent30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/AuditEvent30_50.java @@ -129,7 +129,7 @@ public class AuditEvent30_50 { if (src == null) return null; org.hl7.fhir.r5.model.AuditEvent.AuditEventAgentComponent tgt = new org.hl7.fhir.r5.model.AuditEvent.AuditEventAgentComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole()) tgt.addRole(CodeableConcept30_50.convertCodeableConcept(t)); if (src.hasReference()) @@ -158,7 +158,7 @@ public class AuditEvent30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getRole()) tgt.addRole(CodeableConcept30_50.convertCodeableConcept(t)); if (src.hasWho()) { @@ -269,7 +269,7 @@ public class AuditEvent30_50 { if (src == null) return null; org.hl7.fhir.r5.model.AuditEvent.AuditEventEntityComponent tgt = new org.hl7.fhir.r5.model.AuditEvent.AuditEventEntityComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.getWhat().setIdentifier(Identifier30_50.convertIdentifier(src.getIdentifier())); if (src.hasReference()) @@ -294,7 +294,7 @@ public class AuditEvent30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasWhat()) { if (src.getWhat().hasIdentifier()) tgt.setIdentifier(Identifier30_50.convertIdentifier(src.getWhat().getIdentifier())); @@ -321,7 +321,7 @@ public class AuditEvent30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.getType().hasTextElement()) tgt.setTypeElement(String30_50.convertString(src.getType().getTextElement())); if (src.hasValueStringType()) @@ -335,7 +335,7 @@ public class AuditEvent30_50 { if (src == null) return null; org.hl7.fhir.r5.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.r5.model.AuditEvent.AuditEventEntityDetailComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.getType().setTextElement(String30_50.convertString(src.getTypeElement())); if (src.hasValue()) @@ -348,7 +348,7 @@ public class AuditEvent30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.dstu3.model.AuditEvent.AuditEventSourceComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); // if (src.hasSite()) // tgt.setSiteElement(String30_50.convertString(src.getSiteElement())); if (src.hasObserver()) @@ -361,7 +361,7 @@ public class AuditEvent30_50 { if (src == null) return null; org.hl7.fhir.r5.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.r5.model.AuditEvent.AuditEventSourceComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); // if (src.hasSite()) // tgt.setSiteElement(String30_50.convertString(src.getSiteElement())); if (src.hasIdentifier()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Bundle30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Bundle30_50.java index 75d7c397e..cd2777c30 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Bundle30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Bundle30_50.java @@ -51,7 +51,7 @@ public class Bundle30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); if (src.hasFullUrl()) tgt.setFullUrlElement(Uri30_50.convertUri(src.getFullUrlElement())); @@ -70,7 +70,7 @@ public class Bundle30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleEntryComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); if (src.hasFullUrl()) @@ -90,7 +90,7 @@ public class Bundle30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleEntryRequestComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMethod()) tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); if (src.hasUrl()) @@ -110,7 +110,7 @@ public class Bundle30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryRequestComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMethod()) tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); if (src.hasUrl()) @@ -130,7 +130,7 @@ public class Bundle30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleEntryResponseComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasStatus()) tgt.setStatusElement(String30_50.convertString(src.getStatusElement())); if (src.hasLocation()) @@ -148,7 +148,7 @@ public class Bundle30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasStatus()) tgt.setStatusElement(String30_50.convertString(src.getStatusElement())); if (src.hasLocation()) @@ -166,7 +166,7 @@ public class Bundle30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); if (src.hasScore()) @@ -178,7 +178,7 @@ public class Bundle30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleEntrySearchComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); if (src.hasScore()) @@ -190,7 +190,7 @@ public class Bundle30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleLinkComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasRelation()) tgt.setRelationElement(String30_50.convertString(src.getRelationElement())); if (src.hasUrl()) @@ -202,7 +202,7 @@ public class Bundle30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasRelation()) tgt.setRelationElement(String30_50.convertString(src.getRelationElement())); if (src.hasUrl()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CapabilityStatement30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CapabilityStatement30_50.java index 9fb220e86..df6ccb879 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CapabilityStatement30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CapabilityStatement30_50.java @@ -141,7 +141,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementDocumentComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertDocumentMode(src.getModeElement())); if (src.hasDocumentation()) @@ -155,7 +155,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDocumentComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertDocumentMode(src.getModeElement())); if (src.hasDocumentation()) @@ -169,7 +169,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementImplementationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.setDescriptionElement(String30_50.convertString(src.getDescriptionElement())); if (src.hasUrl()) @@ -181,7 +181,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.setDescriptionElement(String30_50.convertString(src.getDescriptionElement())); if (src.hasUrl()) @@ -237,7 +237,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertCapabilityStatementMessagingEndpointComponent(t)); if (src.hasReliableCache()) @@ -272,7 +272,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertCapabilityStatementMessagingEndpointComponent(t)); if (src.hasReliableCache()) @@ -308,7 +308,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasProtocol()) tgt.setProtocol(Coding30_50.convertCoding(src.getProtocol())); if (src.hasAddress()) @@ -320,7 +320,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasProtocol()) tgt.setProtocol(Coding30_50.convertCoding(src.getProtocol())); if (src.hasAddress()) @@ -332,7 +332,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingSupportedMessageComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingSupportedMessageComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertEventCapabilityMode(src.getModeElement())); if (src.hasDefinition()) @@ -344,7 +344,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingSupportedMessageComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingSupportedMessageComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertEventCapabilityMode(src.getModeElement())); if (src.hasDefinition()) @@ -356,7 +356,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertRestfulCapabilityMode(src.getModeElement())); if (src.hasDocumentation()) @@ -379,7 +379,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertRestfulCapabilityMode(src.getModeElement())); if (src.hasDocumentation()) @@ -402,7 +402,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -414,7 +414,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -426,7 +426,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(Code30_50.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -463,7 +463,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(Code30_50.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -500,7 +500,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -516,7 +516,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -532,7 +532,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestSecurityComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCors()) tgt.setCorsElement(Boolean30_50.convertBoolean(src.getCorsElement())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getService()) @@ -546,7 +546,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestSecurityComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCors()) tgt.setCorsElement(Boolean30_50.convertBoolean(src.getCorsElement())); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getService()) @@ -560,7 +560,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementSoftwareComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasVersion()) @@ -574,7 +574,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementSoftwareComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasVersion()) @@ -814,7 +814,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.ResourceInteractionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -826,7 +826,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -920,7 +920,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -932,7 +932,7 @@ public class CapabilityStatement30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.SystemInteractionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CarePlan30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CarePlan30_50.java index 85bde545e..e7e13a124 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CarePlan30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CarePlan30_50.java @@ -166,7 +166,7 @@ public class CarePlan30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (CodeableReference t : src.getPerformedActivity()) { if (t.hasConcept()) tgt.addOutcomeCodeableConcept(CodeableConcept30_50.convertCodeableConcept(t.getConcept())); @@ -193,7 +193,7 @@ public class CarePlan30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getOutcomeCodeableConcept()) { tgt.addPerformedActivity(Reference30_50.convertCodeableConceptToCodableReference(t)); } @@ -218,7 +218,7 @@ public class CarePlan30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasExtension()) { org.hl7.fhir.r5.model.Extension extension = src.getExtensionByUrl(CarePlanActivityDetailComponentExtension); if (extension != null) { @@ -291,7 +291,7 @@ public class CarePlan30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCategory()) { org.hl7.fhir.r5.model.Extension t = new org.hl7.fhir.r5.model.Extension(); t.setUrl(CarePlanActivityDetailComponentExtension); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CareTeam30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CareTeam30_50.java index d5cbc7ea9..e09eb410a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CareTeam30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CareTeam30_50.java @@ -76,7 +76,7 @@ public class CareTeam30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CareTeam.CareTeamParticipantComponent tgt = new org.hl7.fhir.dstu3.model.CareTeam.CareTeamParticipantComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasRole()) tgt.setRole(CodeableConcept30_50.convertCodeableConcept(src.getRole())); if (src.hasMember()) @@ -92,7 +92,7 @@ public class CareTeam30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CareTeam.CareTeamParticipantComponent tgt = new org.hl7.fhir.r5.model.CareTeam.CareTeamParticipantComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasRole()) tgt.setRole(CodeableConcept30_50.convertCodeableConcept(src.getRole())); if (src.hasMember()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ClinicalImpression30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ClinicalImpression30_50.java index 27d5914aa..3e635a6cd 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ClinicalImpression30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ClinicalImpression30_50.java @@ -89,7 +89,7 @@ public class ClinicalImpression30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent tgt = new org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasItem() && src.getItem().hasConcept()) tgt.setItem(ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().convertType(src.getItem().getConcept())); else if (src.hasItem() && src.getItem().hasReference()) @@ -103,7 +103,7 @@ public class ClinicalImpression30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ClinicalImpression.ClinicalImpressionFindingComponent tgt = new org.hl7.fhir.r5.model.ClinicalImpression.ClinicalImpressionFindingComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasItemCodeableConcept()) tgt.setItem(Reference30_50.convertCodeableConceptToCodableReference(src.getItemCodeableConcept())); if (src.hasItemReference()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CodeSystem30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CodeSystem30_50.java index 923323b93..4b0289cef 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CodeSystem30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CodeSystem30_50.java @@ -183,7 +183,7 @@ public class CodeSystem30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CodeSystem.CodeSystemFilterComponent tgt = new org.hl7.fhir.r5.model.CodeSystem.CodeSystemFilterComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); if (src.hasDescription()) @@ -200,7 +200,7 @@ public class CodeSystem30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemFilterComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemFilterComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); if (src.hasDescription()) @@ -267,7 +267,7 @@ public class CodeSystem30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -287,7 +287,7 @@ public class CodeSystem30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent tgt = new org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -307,7 +307,7 @@ public class CodeSystem30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionDesignationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code30_50.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -321,7 +321,7 @@ public class CodeSystem30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionDesignationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code30_50.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -335,7 +335,7 @@ public class CodeSystem30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CodeSystem.ConceptPropertyComponent tgt = new org.hl7.fhir.r5.model.CodeSystem.ConceptPropertyComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); if (src.hasValue()) @@ -347,7 +347,7 @@ public class CodeSystem30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CodeSystem.ConceptPropertyComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.ConceptPropertyComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); if (src.hasValue()) @@ -359,7 +359,7 @@ public class CodeSystem30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CodeSystem.PropertyComponent tgt = new org.hl7.fhir.r5.model.CodeSystem.PropertyComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); if (src.hasUri()) @@ -375,7 +375,7 @@ public class CodeSystem30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CodeSystem.PropertyComponent tgt = new org.hl7.fhir.dstu3.model.CodeSystem.PropertyComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); if (src.hasUri()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Communication30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Communication30_50.java index b8d2dee71..6799d07de 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Communication30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Communication30_50.java @@ -102,7 +102,7 @@ public class Communication30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().convertType(src.getContent())); return tgt; @@ -112,7 +112,7 @@ public class Communication30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.r5.model.Communication.CommunicationPayloadComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasContent()) tgt.setContent(ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().convertType(src.getContent())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CompartmentDefinition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CompartmentDefinition30_50.java index e370136e2..377b9723f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CompartmentDefinition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CompartmentDefinition30_50.java @@ -89,7 +89,7 @@ public class CompartmentDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentDefinitionResourceComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); for (org.hl7.fhir.dstu3.model.StringType t : src.getParam()) tgt.addParam(t.getValue()); @@ -102,7 +102,7 @@ public class CompartmentDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.dstu3.model.CompartmentDefinition.CompartmentDefinitionResourceComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); for (org.hl7.fhir.r5.model.StringType t : src.getParam()) tgt.addParam(t.getValue()); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Composition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Composition30_50.java index aa42e777d..2481fb6b6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Composition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Composition30_50.java @@ -145,7 +145,7 @@ public class Composition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.r5.model.Composition.CompositionAttesterComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setMode(convertCompositionAttestationMode(src.getMode().get(0))); if (src.hasTime()) @@ -159,7 +159,7 @@ public class Composition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setMode(Collections.singletonList(convertCompositionAttestationMode(src.getMode()))); if (src.hasTime()) @@ -173,7 +173,7 @@ public class Composition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCode()) tgt.addCode(CodeableConcept30_50.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -186,7 +186,7 @@ public class Composition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.r5.model.Composition.CompositionEventComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCode()) tgt.addCode(CodeableConcept30_50.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -363,7 +363,7 @@ public class Composition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Composition.SectionComponent tgt = new org.hl7.fhir.dstu3.model.Composition.SectionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasTitle()) tgt.setTitleElement(String30_50.convertString(src.getTitleElement())); if (src.hasCode()) @@ -386,7 +386,7 @@ public class Composition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Composition.SectionComponent tgt = new org.hl7.fhir.r5.model.Composition.SectionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasTitle()) tgt.setTitleElement(String30_50.convertString(src.getTitleElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ConceptMap30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ConceptMap30_50.java index 9164b61c2..342e56588 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ConceptMap30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ConceptMap30_50.java @@ -116,7 +116,7 @@ public class ConceptMap30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasSource() || src.hasSourceVersion()) tgt.setSourceElement(convertUriAndVersionToCanonical(src.getSourceElement(), src.getSourceVersionElement())); if (src.hasTarget() || src.hasTargetVersion()) @@ -133,7 +133,7 @@ public class ConceptMap30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasSource()) { CanonicalPair cp = new CanonicalPair(src.getSource()); tgt.setSource(cp.getUrl()); @@ -171,7 +171,7 @@ public class ConceptMap30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupUnmappedComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupUnmappedComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertConceptMapGroupUnmappedMode(src.getModeElement())); if (src.hasCode()) @@ -187,7 +187,7 @@ public class ConceptMap30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupUnmappedComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupUnmappedComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMode()) tgt.setModeElement(convertConceptMapGroupUnmappedMode(src.getModeElement())); if (src.hasCode()) @@ -317,7 +317,7 @@ public class ConceptMap30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.OtherElementComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasProperty()) tgt.setPropertyElement(Uri30_50.convertUri(src.getPropertyElement())); @@ -333,7 +333,7 @@ public class ConceptMap30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasProperty()) tgt.setPropertyElement(Uri30_50.convertUri(src.getPropertyElement())); @@ -351,7 +351,7 @@ public class ConceptMap30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -369,7 +369,7 @@ public class ConceptMap30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.SourceElementComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -387,7 +387,7 @@ public class ConceptMap30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.TargetElementComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -407,7 +407,7 @@ public class ConceptMap30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Condition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Condition30_50.java index c37e7ae55..12a975f66 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Condition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Condition30_50.java @@ -180,7 +180,7 @@ public class Condition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.dstu3.model.Condition.ConditionStageComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasSummary()) tgt.setSummary(CodeableConcept30_50.convertCodeableConcept(src.getSummary())); for (org.hl7.fhir.r5.model.Reference t : src.getAssessment()) tgt.addAssessment(Reference30_50.convertReference(t)); @@ -191,7 +191,7 @@ public class Condition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.r5.model.Condition.ConditionStageComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasSummary()) tgt.setSummary(CodeableConcept30_50.convertCodeableConcept(src.getSummary())); for (org.hl7.fhir.dstu3.model.Reference t : src.getAssessment()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Consent30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Consent30_50.java index 8dce70344..876dbc42b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Consent30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Consent30_50.java @@ -23,7 +23,7 @@ public class Consent30_50 { public static org.hl7.fhir.r5.model.Consent.ConsentPolicyBasisComponent convertConsentPolicyComponent(org.hl7.fhir.dstu3.model.Consent.ConsentPolicyComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r5.model.Consent.ConsentPolicyBasisComponent tgt = new org.hl7.fhir.r5.model.Consent.ConsentPolicyBasisComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); // if (src.hasAuthority()) tgt.setRefereceElement(Uri30_50.convertUri(src.getAuthorityElement())); if (src.hasUri()) tgt.setUrl(src.getUri()); return tgt; @@ -32,7 +32,7 @@ public class Consent30_50 { public static org.hl7.fhir.dstu3.model.Consent.ConsentPolicyComponent convertConsentPolicyComponent(org.hl7.fhir.r5.model.Consent.ConsentPolicyBasisComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.Consent.ConsentPolicyComponent tgt = new org.hl7.fhir.dstu3.model.Consent.ConsentPolicyComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); // if (src.hasAuthority()) tgt.setAuthorityElement(Uri30_50.convertUri(src.getReferenceElement())); if (src.hasUrl()) tgt.setUriElement(Uri30_50.convertUri(src.getUrlElement())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DataElement30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DataElement30_50.java index 62f060fc2..8376bfb5b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DataElement30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DataElement30_50.java @@ -58,7 +58,7 @@ public class DataElement30_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasIdentity()) tgt.setIdentityElement(Id30_50.convertId(src.getIdentityElement())); if (src.hasUri()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DetectedIssue30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DetectedIssue30_50.java index d4feeea3f..826997444 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DetectedIssue30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DetectedIssue30_50.java @@ -74,7 +74,7 @@ public class DetectedIssue30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasAction()) tgt.setAction(CodeableConcept30_50.convertCodeableConcept(src.getAction())); if (src.hasDate()) @@ -88,7 +88,7 @@ public class DetectedIssue30_50 { if (src == null) return null; org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueMitigationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasAction()) tgt.setAction(CodeableConcept30_50.convertCodeableConcept(src.getAction())); if (src.hasDate()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DiagnosticReport30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DiagnosticReport30_50.java index 0122f66d1..cdb35f4c0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DiagnosticReport30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DiagnosticReport30_50.java @@ -89,7 +89,7 @@ public class DiagnosticReport30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent tgt = new org.hl7.fhir.dstu3.model.DiagnosticReport.DiagnosticReportImageComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasComment()) tgt.setCommentElement(String30_50.convertString(src.getCommentElement())); if (src.hasLink()) @@ -101,7 +101,7 @@ public class DiagnosticReport30_50 { if (src == null) return null; org.hl7.fhir.r5.model.DiagnosticReport.DiagnosticReportMediaComponent tgt = new org.hl7.fhir.r5.model.DiagnosticReport.DiagnosticReportMediaComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasComment()) tgt.setCommentElement(String30_50.convertString(src.getCommentElement())); if (src.hasLink()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentManifest30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentManifest30_50.java index f4350b891..e2418af8f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentManifest30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentManifest30_50.java @@ -9,7 +9,7 @@ public class DocumentManifest30_50 { public static org.hl7.fhir.r5.model.DocumentManifest.DocumentManifestRelatedComponent convertDocumentManifestRelatedComponent(org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r5.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.r5.model.DocumentManifest.DocumentManifestRelatedComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier30_50.convertIdentifier(src.getIdentifier())); if (src.hasRef()) tgt.setRef(Reference30_50.convertReference(src.getRef())); return tgt; @@ -18,7 +18,7 @@ public class DocumentManifest30_50 { public static org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent convertDocumentManifestRelatedComponent(org.hl7.fhir.r5.model.DocumentManifest.DocumentManifestRelatedComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier30_50.convertIdentifier(src.getIdentifier())); if (src.hasRef()) tgt.setRef(Reference30_50.convertReference(src.getRef())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentReference30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentReference30_50.java index 935dabc53..c2fac30cb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentReference30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentReference30_50.java @@ -92,7 +92,7 @@ public class DocumentReference30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContentComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasAttachment()) tgt.setAttachment(Attachment30_50.convertAttachment(src.getAttachment())); return tgt; @@ -102,7 +102,7 @@ public class DocumentReference30_50 { if (src == null) return null; org.hl7.fhir.r5.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.r5.model.DocumentReference.DocumentReferenceContentComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasAttachment()) tgt.setAttachment(Attachment30_50.convertAttachment(src.getAttachment())); return tgt; @@ -168,7 +168,7 @@ public class DocumentReference30_50 { if (src == null) return null; org.hl7.fhir.r5.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.r5.model.DocumentReference.DocumentReferenceRelatesToComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(convertDocumentRelationshipType(src.getCodeElement())); if (src.hasTarget()) @@ -180,7 +180,7 @@ public class DocumentReference30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceRelatesToComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertDocumentRelationshipType2(src.getCode())); if (src.hasTarget()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Encounter30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Encounter30_50.java index 668c0ed9c..7c8e3f5cf 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Encounter30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Encounter30_50.java @@ -13,7 +13,7 @@ public class Encounter30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Encounter.ClassHistoryComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.ClassHistoryComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasClass_()) tgt.setClass_(Coding30_50.convertCoding(src.getClass_())); if (src.hasPeriod()) @@ -25,7 +25,7 @@ public class Encounter30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Encounter.ClassHistoryComponent tgt = new org.hl7.fhir.r5.model.Encounter.ClassHistoryComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasClass_()) tgt.setClass_(Coding30_50.convertCoding(src.getClass_())); if (src.hasPeriod()) @@ -136,7 +136,7 @@ public class Encounter30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterHospitalizationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasPreAdmissionIdentifier()) tgt.setPreAdmissionIdentifier(Identifier30_50.convertIdentifier(src.getPreAdmissionIdentifier())); if (src.hasOrigin()) @@ -162,7 +162,7 @@ public class Encounter30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.r5.model.Encounter.EncounterHospitalizationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasPreAdmissionIdentifier()) tgt.setPreAdmissionIdentifier(Identifier30_50.convertIdentifier(src.getPreAdmissionIdentifier())); if (src.hasOrigin()) @@ -188,7 +188,7 @@ public class Encounter30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLocation()) tgt.setLocation(Reference30_50.convertReference(src.getLocation())); if (src.hasStatus()) @@ -202,7 +202,7 @@ public class Encounter30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.r5.model.Encounter.EncounterLocationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLocation()) tgt.setLocation(Reference30_50.convertReference(src.getLocation())); if (src.hasStatus()) @@ -266,7 +266,7 @@ public class Encounter30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept30_50.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -280,7 +280,7 @@ public class Encounter30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.r5.model.Encounter.EncounterParticipantComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept30_50.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -365,7 +365,7 @@ public class Encounter30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Encounter.StatusHistoryComponent tgt = new org.hl7.fhir.r5.model.Encounter.StatusHistoryComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasStatus()) tgt.setStatusElement(convertEncounterStatus(src.getStatusElement())); if (src.hasPeriod()) @@ -377,7 +377,7 @@ public class Encounter30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Encounter.StatusHistoryComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.StatusHistoryComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasStatus()) tgt.setStatusElement(convertEncounterStatus(src.getStatusElement())); if (src.hasPeriod()) @@ -388,7 +388,7 @@ public class Encounter30_50 { public static org.hl7.fhir.r5.model.Encounter.DiagnosisComponent convertDiagnosisComponent(org.hl7.fhir.dstu3.model.Encounter.DiagnosisComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r5.model.Encounter.DiagnosisComponent tgt = new org.hl7.fhir.r5.model.Encounter.DiagnosisComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCondition()) tgt.setCondition(Reference30_50.convertReference(src.getCondition())); if (src.hasRole()) tgt.setUse(CodeableConcept30_50.convertCodeableConcept(src.getRole())); if (src.hasRank()) tgt.setRankElement(PositiveInt30_50.convertPositiveInt(src.getRankElement())); @@ -398,7 +398,7 @@ public class Encounter30_50 { public static org.hl7.fhir.dstu3.model.Encounter.DiagnosisComponent convertDiagnosisComponent(org.hl7.fhir.r5.model.Encounter.DiagnosisComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.Encounter.DiagnosisComponent tgt = new org.hl7.fhir.dstu3.model.Encounter.DiagnosisComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCondition()) tgt.setCondition(Reference30_50.convertReference(src.getCondition())); if (src.hasUse()) tgt.setRole(CodeableConcept30_50.convertCodeableConcept(src.getUse())); if (src.hasRank()) tgt.setRankElement(PositiveInt30_50.convertPositiveInt(src.getRankElement())); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/EpisodeOfCare30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/EpisodeOfCare30_50.java index e06332348..af5ffdbda 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/EpisodeOfCare30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/EpisodeOfCare30_50.java @@ -142,7 +142,7 @@ public class EpisodeOfCare30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.dstu3.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasStatus()) tgt.setStatusElement(convertEpisodeOfCareStatus(src.getStatusElement())); if (src.hasPeriod()) @@ -154,7 +154,7 @@ public class EpisodeOfCare30_50 { if (src == null) return null; org.hl7.fhir.r5.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.r5.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasStatus()) tgt.setStatusElement(convertEpisodeOfCareStatus(src.getStatusElement())); if (src.hasPeriod()) @@ -165,7 +165,7 @@ public class EpisodeOfCare30_50 { public static org.hl7.fhir.r5.model.EpisodeOfCare.DiagnosisComponent convertDiagnosisComponent(org.hl7.fhir.dstu3.model.EpisodeOfCare.DiagnosisComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r5.model.EpisodeOfCare.DiagnosisComponent tgt = new org.hl7.fhir.r5.model.EpisodeOfCare.DiagnosisComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCondition()) tgt.setCondition(Reference30_50.convertReference(src.getCondition())); if (src.hasRole()) tgt.setRole(CodeableConcept30_50.convertCodeableConcept(src.getRole())); if (src.hasRank()) tgt.setRankElement(PositiveInt30_50.convertPositiveInt(src.getRankElement())); @@ -175,7 +175,7 @@ public class EpisodeOfCare30_50 { public static org.hl7.fhir.dstu3.model.EpisodeOfCare.DiagnosisComponent convertDiagnosisComponent(org.hl7.fhir.r5.model.EpisodeOfCare.DiagnosisComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.EpisodeOfCare.DiagnosisComponent tgt = new org.hl7.fhir.dstu3.model.EpisodeOfCare.DiagnosisComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCondition()) tgt.setCondition(Reference30_50.convertReference(src.getCondition())); if (src.hasRole()) tgt.setRole(CodeableConcept30_50.convertCodeableConcept(src.getRole())); if (src.hasRank()) tgt.setRankElement(PositiveInt30_50.convertPositiveInt(src.getRankElement())); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/FamilyMemberHistory30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/FamilyMemberHistory30_50.java index 011a3d1a3..4d658c793 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/FamilyMemberHistory30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/FamilyMemberHistory30_50.java @@ -146,7 +146,7 @@ public class FamilyMemberHistory30_50 { if (src == null) return null; org.hl7.fhir.r5.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.r5.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept30_50.convertCodeableConcept(src.getCode())); if (src.hasOutcome()) @@ -161,7 +161,7 @@ public class FamilyMemberHistory30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.dstu3.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept30_50.convertCodeableConcept(src.getCode())); if (src.hasOutcome()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Goal30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Goal30_50.java index bb7ab2437..fddf7200f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Goal30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Goal30_50.java @@ -179,7 +179,7 @@ public class Goal30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Goal.GoalTargetComponent tgt = new org.hl7.fhir.r5.model.Goal.GoalTargetComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMeasure()) tgt.setMeasure(CodeableConcept30_50.convertCodeableConcept(src.getMeasure())); if (src.hasDetail()) @@ -193,7 +193,7 @@ public class Goal30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Goal.GoalTargetComponent tgt = new org.hl7.fhir.dstu3.model.Goal.GoalTargetComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMeasure()) tgt.setMeasure(CodeableConcept30_50.convertCodeableConcept(src.getMeasure())); if (src.hasDetail()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/GraphDefinition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/GraphDefinition30_50.java index 498c18368..ac0224e80 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/GraphDefinition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/GraphDefinition30_50.java @@ -195,7 +195,7 @@ public class GraphDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.GraphDefinition.GraphDefinitionLinkComponent tgt = new org.hl7.fhir.r5.model.GraphDefinition.GraphDefinitionLinkComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasPath()) tgt.setPathElement(String30_50.convertString(src.getPathElement())); if (src.hasSliceName()) @@ -215,7 +215,7 @@ public class GraphDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkComponent tgt = new org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasPath()) tgt.setPathElement(String30_50.convertString(src.getPathElement())); if (src.hasSliceName()) @@ -235,7 +235,7 @@ public class GraphDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.GraphDefinition.GraphDefinitionLinkTargetCompartmentComponent tgt = new org.hl7.fhir.r5.model.GraphDefinition.GraphDefinitionLinkTargetCompartmentComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertCompartmentCode(src.getCodeElement())); if (src.hasRule()) @@ -251,7 +251,7 @@ public class GraphDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkTargetCompartmentComponent tgt = new org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkTargetCompartmentComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(convertCompartmentCode(src.getCodeElement())); if (src.hasRule()) @@ -267,7 +267,7 @@ public class GraphDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkTargetComponent tgt = new org.hl7.fhir.dstu3.model.GraphDefinition.GraphDefinitionLinkTargetComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(Code30_50.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -283,7 +283,7 @@ public class GraphDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.GraphDefinition.GraphDefinitionLinkTargetComponent tgt = new org.hl7.fhir.r5.model.GraphDefinition.GraphDefinitionLinkTargetComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(Code30_50.convertCode(src.getTypeElement())); if (src.hasProfile()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Group30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Group30_50.java index 8710fcca9..0616fcc30 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Group30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Group30_50.java @@ -68,7 +68,7 @@ public class Group30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.r5.model.Group.GroupCharacteristicComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept30_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -84,7 +84,7 @@ public class Group30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.dstu3.model.Group.GroupCharacteristicComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept30_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -100,7 +100,7 @@ public class Group30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.dstu3.model.Group.GroupMemberComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasEntity()) tgt.setEntity(Reference30_50.convertReference(src.getEntity())); if (src.hasPeriod()) @@ -114,7 +114,7 @@ public class Group30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.r5.model.Group.GroupMemberComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasEntity()) tgt.setEntity(Reference30_50.convertReference(src.getEntity())); if (src.hasPeriod()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/HealthcareService30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/HealthcareService30_50.java index 156ec7aee..4dbf8376e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/HealthcareService30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/HealthcareService30_50.java @@ -127,7 +127,7 @@ public class HealthcareService30_50 { if (src == null) return null; org.hl7.fhir.r5.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.r5.model.HealthcareService.HealthcareServiceAvailableTimeComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(HealthcareService30_50::convertDaysOfWeek) .collect(Collectors.toList())); @@ -144,7 +144,7 @@ public class HealthcareService30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceAvailableTimeComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(HealthcareService30_50::convertDaysOfWeek) .collect(Collectors.toList())); @@ -229,7 +229,7 @@ public class HealthcareService30_50 { if (src == null) return null; org.hl7.fhir.r5.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.r5.model.HealthcareService.HealthcareServiceNotAvailableComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.setDescriptionElement(String30_50.convertString(src.getDescriptionElement())); if (src.hasDuring()) @@ -241,7 +241,7 @@ public class HealthcareService30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.dstu3.model.HealthcareService.HealthcareServiceNotAvailableComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.setDescriptionElement(String30_50.convertString(src.getDescriptionElement())); if (src.hasDuring()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ImagingStudy30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ImagingStudy30_50.java index 5a5505c06..447c3d03d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ImagingStudy30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ImagingStudy30_50.java @@ -204,7 +204,7 @@ public class ImagingStudy30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent tgt = new org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasUid()) { if (src.hasUid()) tgt.setUid(src.getUid()); @@ -249,7 +249,7 @@ public class ImagingStudy30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImagingStudy.ImagingStudySeriesComponent tgt = new org.hl7.fhir.r5.model.ImagingStudy.ImagingStudySeriesComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasUid()) { if (src.hasUid()) tgt.setUid(src.getUid()); @@ -295,7 +295,7 @@ public class ImagingStudy30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent tgt = new org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesInstanceComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasUid()) { if (src.hasUid()) tgt.setUid(src.getUid()); @@ -319,7 +319,7 @@ public class ImagingStudy30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImagingStudy.ImagingStudySeriesInstanceComponent tgt = new org.hl7.fhir.r5.model.ImagingStudy.ImagingStudySeriesInstanceComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasUid()) { if (src.hasUid()) tgt.setUid(src.getUid()); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Immunization30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Immunization30_50.java index 6e2af294e..e44d8c25b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Immunization30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Immunization30_50.java @@ -107,7 +107,7 @@ public class Immunization30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Immunization.ImmunizationPractitionerComponent tgt = new org.hl7.fhir.dstu3.model.Immunization.ImmunizationPractitionerComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasFunction()) tgt.setRole(CodeableConcept30_50.convertCodeableConcept(src.getFunction())); if (src.hasActor()) @@ -119,7 +119,7 @@ public class Immunization30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Immunization.ImmunizationPerformerComponent tgt = new org.hl7.fhir.r5.model.Immunization.ImmunizationPerformerComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasRole()) tgt.setFunction(CodeableConcept30_50.convertCodeableConcept(src.getRole())); if (src.hasActor()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ImplementationGuide30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ImplementationGuide30_50.java index 5bea59395..2177800f3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ImplementationGuide30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ImplementationGuide30_50.java @@ -109,7 +109,7 @@ public class ImplementationGuide30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); tgt.setType(org.hl7.fhir.dstu3.model.ImplementationGuide.GuideDependencyType.REFERENCE); if (src.hasUri()) tgt.setUri(src.getUri()); @@ -124,7 +124,7 @@ public class ImplementationGuide30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDependsOnComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDependsOnComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasUri()) tgt.setUri(src.getUri()); if (org.hl7.fhir.dstu3.utils.ToolingExtensions.hasExtension(src, VersionConvertorConstants.IG_DEPENDSON_PACKAGE_EXTENSION)) { @@ -140,7 +140,7 @@ public class ImplementationGuide30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideGlobalComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(Code30_50.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -152,7 +152,7 @@ public class ImplementationGuide30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(Code30_50.convertCode(src.getTypeElement())); if (src.hasProfile()) @@ -164,7 +164,7 @@ public class ImplementationGuide30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); tgt.setId(src.getId()); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); @@ -178,7 +178,7 @@ public class ImplementationGuide30_50 { return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent(); tgt.setId("p" + (context.getGrouping().size() + 1)); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasDescription()) @@ -195,7 +195,7 @@ public class ImplementationGuide30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasExampleCanonicalType()) { if (src.hasExampleCanonicalType()) tgt.setExampleFor(Reference30_50.convertCanonicalToReference(src.getExampleCanonicalType())); @@ -217,7 +217,7 @@ public class ImplementationGuide30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasExampleFor()) { org.hl7.fhir.r5.model.DataType t = ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().convertType(src.getExampleFor()); tgt.setExample(t instanceof org.hl7.fhir.r5.model.Reference ? new org.hl7.fhir.r5.model.CanonicalType(((org.hl7.fhir.r5.model.Reference) t).getReference()) : t); @@ -238,7 +238,7 @@ public class ImplementationGuide30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasNameUrlType()) tgt.setSource(src.getNameUrlType().getValue()); if (src.hasTitle()) @@ -254,7 +254,7 @@ public class ImplementationGuide30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasSource()) tgt.setName(convertUriToUrl(src.getSourceElement())); if (src.hasTitle()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Linkage30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Linkage30_50.java index 85da368d5..03441e5a3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Linkage30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Linkage30_50.java @@ -39,7 +39,7 @@ public class Linkage30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Linkage.LinkageItemComponent tgt = new org.hl7.fhir.dstu3.model.Linkage.LinkageItemComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertLinkageType(src.getTypeElement())); if (src.hasResource()) @@ -51,7 +51,7 @@ public class Linkage30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Linkage.LinkageItemComponent tgt = new org.hl7.fhir.r5.model.Linkage.LinkageItemComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertLinkageType(src.getTypeElement())); if (src.hasResource()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/List30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/List30_50.java index 40000f81a..3674a1131 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/List30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/List30_50.java @@ -82,7 +82,7 @@ public class List30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ListResource.ListResourceEntryComponent tgt = new org.hl7.fhir.r5.model.ListResource.ListResourceEntryComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasFlag()) tgt.setFlag(CodeableConcept30_50.convertCodeableConcept(src.getFlag())); if (src.hasDeleted()) @@ -98,7 +98,7 @@ public class List30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ListResource.ListEntryComponent tgt = new org.hl7.fhir.dstu3.model.ListResource.ListEntryComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasFlag()) tgt.setFlag(CodeableConcept30_50.convertCodeableConcept(src.getFlag())); if (src.hasDeleted()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Location30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Location30_50.java index 05755546d..2b61d36b0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Location30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Location30_50.java @@ -123,7 +123,7 @@ public class Location30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.dstu3.model.Location.LocationPositionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLongitude()) tgt.setLongitudeElement(Decimal30_50.convertDecimal(src.getLongitudeElement())); if (src.hasLatitude()) @@ -137,7 +137,7 @@ public class Location30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.r5.model.Location.LocationPositionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLongitude()) tgt.setLongitudeElement(Decimal30_50.convertDecimal(src.getLongitudeElement())); if (src.hasLatitude()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Medication30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Medication30_50.java index 8836f3c40..e19bbe1ce 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Medication30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Medication30_50.java @@ -55,7 +55,7 @@ public class Medication30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Medication.MedicationIngredientComponent tgt = new org.hl7.fhir.dstu3.model.Medication.MedicationIngredientComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.getItem().hasConcept()) tgt.setItem(ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().convertType(src.getItem().getConcept())); if (src.getItem().hasReference()) @@ -71,7 +71,7 @@ public class Medication30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Medication.MedicationIngredientComponent tgt = new org.hl7.fhir.r5.model.Medication.MedicationIngredientComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasItemCodeableConcept()) tgt.getItem().setConcept(CodeableConcept30_50.convertCodeableConcept(src.getItemCodeableConcept())); if (src.hasItemReference()) @@ -87,7 +87,7 @@ public class Medication30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Medication.MedicationPackageBatchComponent tgt = new org.hl7.fhir.dstu3.model.Medication.MedicationPackageBatchComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLotNumber()) tgt.setLotNumberElement(String30_50.convertString(src.getLotNumberElement())); if (src.hasExpirationDate()) @@ -99,7 +99,7 @@ public class Medication30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Medication.MedicationBatchComponent tgt = new org.hl7.fhir.r5.model.Medication.MedicationBatchComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLotNumber()) tgt.setLotNumberElement(String30_50.convertString(src.getLotNumberElement())); if (src.hasExpirationDate()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationAdministration30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationAdministration30_50.java index 1c01ba25f..7397a1339 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationAdministration30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationAdministration30_50.java @@ -103,7 +103,7 @@ public class MedicationAdministration30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.MedicationAdministration.MedicationAdministrationDosageComponent tgt = new org.hl7.fhir.dstu3.model.MedicationAdministration.MedicationAdministrationDosageComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasText()) tgt.setTextElement(String30_50.convertString(src.getTextElement())); if (src.hasSite()) @@ -123,7 +123,7 @@ public class MedicationAdministration30_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationAdministration.MedicationAdministrationDosageComponent tgt = new org.hl7.fhir.r5.model.MedicationAdministration.MedicationAdministrationDosageComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasText()) tgt.setTextElement(String30_50.convertString(src.getTextElement())); if (src.hasSite()) @@ -143,7 +143,7 @@ public class MedicationAdministration30_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationAdministration.MedicationAdministrationPerformerComponent tgt = new org.hl7.fhir.r5.model.MedicationAdministration.MedicationAdministrationPerformerComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasActor()) tgt.setActor(Reference30_50.convertReference(src.getActor())); return tgt; @@ -153,7 +153,7 @@ public class MedicationAdministration30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.MedicationAdministration.MedicationAdministrationPerformerComponent tgt = new org.hl7.fhir.dstu3.model.MedicationAdministration.MedicationAdministrationPerformerComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasActor()) tgt.setActor(Reference30_50.convertReference(src.getActor())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationDispense30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationDispense30_50.java index a1b741b41..0626f977c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationDispense30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationDispense30_50.java @@ -119,7 +119,7 @@ public class MedicationDispense30_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationDispense.MedicationDispensePerformerComponent tgt = new org.hl7.fhir.r5.model.MedicationDispense.MedicationDispensePerformerComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasActor()) tgt.setActor(Reference30_50.convertReference(src.getActor())); return tgt; @@ -129,7 +129,7 @@ public class MedicationDispense30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispensePerformerComponent tgt = new org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispensePerformerComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasActor()) tgt.setActor(Reference30_50.convertReference(src.getActor())); return tgt; @@ -204,7 +204,7 @@ public class MedicationDispense30_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseSubstitutionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasWasSubstituted()) tgt.setWasSubstitutedElement(Boolean30_50.convertBoolean(src.getWasSubstitutedElement())); if (src.hasType()) @@ -220,7 +220,7 @@ public class MedicationDispense30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasWasSubstituted()) tgt.setWasSubstitutedElement(Boolean30_50.convertBoolean(src.getWasSubstitutedElement())); if (src.hasType()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationRequest30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationRequest30_50.java index f963499f1..256579add 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationRequest30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationRequest30_50.java @@ -119,7 +119,7 @@ public class MedicationRequest30_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestDispenseRequestComponent tgt = new org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestDispenseRequestComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasValidityPeriod()) tgt.setValidityPeriod(Period30_50.convertPeriod(src.getValidityPeriod())); if (src.hasNumberOfRepeatsAllowed()) @@ -137,7 +137,7 @@ public class MedicationRequest30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.MedicationRequest.MedicationRequestDispenseRequestComponent tgt = new org.hl7.fhir.dstu3.model.MedicationRequest.MedicationRequestDispenseRequestComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasValidityPeriod()) tgt.setValidityPeriod(Period30_50.convertPeriod(src.getValidityPeriod())); if (src.hasNumberOfRepeatsAllowed()) @@ -329,7 +329,7 @@ public class MedicationRequest30_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestSubstitutionComponent tgt = new org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestSubstitutionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasAllowed()) tgt.setAllowed(Boolean30_50.convertBoolean(src.getAllowedElement())); if (src.hasReason()) @@ -341,7 +341,7 @@ public class MedicationRequest30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.MedicationRequest.MedicationRequestSubstitutionComponent tgt = new org.hl7.fhir.dstu3.model.MedicationRequest.MedicationRequestSubstitutionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasAllowedBooleanType()) tgt.setAllowedElement(Boolean30_50.convertBoolean(src.getAllowedBooleanType())); if (src.hasReason()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MessageDefinition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MessageDefinition30_50.java index f3c35b60a..e65055db9 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MessageDefinition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MessageDefinition30_50.java @@ -124,7 +124,7 @@ public class MessageDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.MessageDefinition.MessageDefinitionAllowedResponseComponent tgt = new org.hl7.fhir.dstu3.model.MessageDefinition.MessageDefinitionAllowedResponseComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMessage()) tgt.setMessage(Reference30_50.convertCanonicalToReference(src.getMessageElement())); if (src.hasSituation()) @@ -136,7 +136,7 @@ public class MessageDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.MessageDefinition.MessageDefinitionAllowedResponseComponent tgt = new org.hl7.fhir.r5.model.MessageDefinition.MessageDefinitionAllowedResponseComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMessage()) tgt.setMessageElement(Reference30_50.convertReferenceToCanonical(src.getMessage())); if (src.hasSituation()) @@ -148,7 +148,7 @@ public class MessageDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.MessageDefinition.MessageDefinitionFocusComponent tgt = new org.hl7.fhir.dstu3.model.MessageDefinition.MessageDefinitionFocusComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); if (src.hasProfile()) @@ -164,7 +164,7 @@ public class MessageDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.MessageDefinition.MessageDefinitionFocusComponent tgt = new org.hl7.fhir.r5.model.MessageDefinition.MessageDefinitionFocusComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); if (src.hasProfile()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MessageHeader30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MessageHeader30_50.java index 2827d8e0e..4009c735f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MessageHeader30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MessageHeader30_50.java @@ -15,7 +15,7 @@ public class MessageHeader30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasTarget()) @@ -29,7 +29,7 @@ public class MessageHeader30_50 { if (src == null) return null; org.hl7.fhir.r5.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.r5.model.MessageHeader.MessageDestinationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasTarget()) @@ -97,7 +97,7 @@ public class MessageHeader30_50 { if (src == null) return null; org.hl7.fhir.r5.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.r5.model.MessageHeader.MessageHeaderResponseComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifier(new org.hl7.fhir.r5.model.Identifier().setValue(src.getIdentifier())); if (src.hasCode()) @@ -111,7 +111,7 @@ public class MessageHeader30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifierElement(new org.hl7.fhir.dstu3.model.IdType(src.getIdentifier().getValue())); if (src.hasCode()) @@ -125,7 +125,7 @@ public class MessageHeader30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageSourceComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasSoftware()) @@ -143,7 +143,7 @@ public class MessageHeader30_50 { if (src == null) return null; org.hl7.fhir.r5.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.r5.model.MessageHeader.MessageSourceComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasSoftware()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/NamingSystem30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/NamingSystem30_50.java index de75b18c9..951f7a3fe 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/NamingSystem30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/NamingSystem30_50.java @@ -179,7 +179,7 @@ public class NamingSystem30_50 { if (src == null) return null; org.hl7.fhir.r5.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.r5.model.NamingSystem.NamingSystemUniqueIdComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement())); if (src.hasValue()) @@ -197,7 +197,7 @@ public class NamingSystem30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemUniqueIdComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Observation30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Observation30_50.java index 285ba593d..e031049d0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Observation30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Observation30_50.java @@ -118,7 +118,7 @@ public class Observation30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.r5.model.Observation.ObservationComponentComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept30_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -136,7 +136,7 @@ public class Observation30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCode(CodeableConcept30_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -154,7 +154,7 @@ public class Observation30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.r5.model.Observation.ObservationReferenceRangeComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLow()) tgt.setLow(SimpleQuantity30_50.convertSimpleQuantity(src.getLow())); if (src.hasHigh()) @@ -174,7 +174,7 @@ public class Observation30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLow()) tgt.setLow(SimpleQuantity30_50.convertSimpleQuantity(src.getLow())); if (src.hasHigh()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/OperationDefinition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/OperationDefinition30_50.java index 8df37f7cc..6d76d954b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/OperationDefinition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/OperationDefinition30_50.java @@ -123,7 +123,7 @@ public class OperationDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionOverloadComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionOverloadComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.StringType t : src.getParameterName()) tgt.addParameterName(t.getValue()); if (src.hasComment()) tgt.setCommentElement(String30_50.convertString(src.getCommentElement())); @@ -134,7 +134,7 @@ public class OperationDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionOverloadComponent tgt = new org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionOverloadComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.StringType t : src.getParameterName()) tgt.addParameterName(t.getValue()); if (src.hasComment()) tgt.setCommentElement(String30_50.convertString(src.getCommentElement())); @@ -145,7 +145,7 @@ public class OperationDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasStrength()) tgt.setStrengthElement(Enumerations30_50.convertBindingStrength(src.getStrengthElement())); if (src.hasValueSet()) { @@ -163,7 +163,7 @@ public class OperationDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasStrength()) tgt.setStrengthElement(Enumerations30_50.convertBindingStrength(src.getStrengthElement())); if (src.hasValueSet()) { @@ -180,7 +180,7 @@ public class OperationDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Code30_50.convertCode(src.getNameElement())); if (src.hasUse()) @@ -208,7 +208,7 @@ public class OperationDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Code30_50.convertCode(src.getNameElement())); if (src.hasUse()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/OperationOutcome30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/OperationOutcome30_50.java index 0635a6ce2..66c52c4a0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/OperationOutcome30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/OperationOutcome30_50.java @@ -281,7 +281,7 @@ public class OperationOutcome30_50 { if (src == null) return null; org.hl7.fhir.r5.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.r5.model.OperationOutcome.OperationOutcomeIssueComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasSeverity()) tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement())); if (src.hasCode()) @@ -299,7 +299,7 @@ public class OperationOutcome30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasSeverity()) tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Parameters30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Parameters30_50.java index 432c2244b..574ae8340 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Parameters30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Parameters30_50.java @@ -30,7 +30,7 @@ public class Parameters30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasValue()) @@ -46,7 +46,7 @@ public class Parameters30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Patient30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Patient30_50.java index a5ea6c38a..a6db0c9da 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Patient30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Patient30_50.java @@ -42,7 +42,7 @@ public class Patient30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Patient.ContactComponent tgt = new org.hl7.fhir.r5.model.Patient.ContactComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(CodeableConcept30_50.convertCodeableConcept(t)); if (src.hasName()) @@ -64,7 +64,7 @@ public class Patient30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Patient.ContactComponent tgt = new org.hl7.fhir.dstu3.model.Patient.ContactComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(CodeableConcept30_50.convertCodeableConcept(t)); if (src.hasName()) @@ -214,7 +214,7 @@ public class Patient30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.r5.model.Patient.PatientCommunicationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguage(CodeableConcept30_50.convertCodeableConcept(src.getLanguage())); if (src.hasPreferred()) @@ -226,7 +226,7 @@ public class Patient30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguage(CodeableConcept30_50.convertCodeableConcept(src.getLanguage())); if (src.hasPreferred()) @@ -238,7 +238,7 @@ public class Patient30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.r5.model.Patient.PatientLinkComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasOther()) tgt.setOther(Reference30_50.convertReference(src.getOther())); if (src.hasType()) @@ -250,7 +250,7 @@ public class Patient30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.dstu3.model.Patient.PatientLinkComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasOther()) tgt.setOther(Reference30_50.convertReference(src.getOther())); if (src.hasType()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Person30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Person30_50.java index a2f4550e3..08d58a90a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Person30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Person30_50.java @@ -114,7 +114,7 @@ public class Person30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.dstu3.model.Person.PersonLinkComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasTarget()) tgt.setTarget(Reference30_50.convertReference(src.getTarget())); if (src.hasAssurance()) @@ -126,7 +126,7 @@ public class Person30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.r5.model.Person.PersonLinkComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasTarget()) tgt.setTarget(Reference30_50.convertReference(src.getTarget())); if (src.hasAssurance()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/PlanDefinition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/PlanDefinition30_50.java index 5af158735..df999a276 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/PlanDefinition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/PlanDefinition30_50.java @@ -561,7 +561,7 @@ public class PlanDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionComponent tgt = new org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLabel()) tgt.setPrefixElement(String30_50.convertString(src.getLabelElement())); if (src.hasTitle()) @@ -626,7 +626,7 @@ public class PlanDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionComponent tgt = new org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasPrefix()) tgt.setLabelElement(String30_50.convertString(src.getPrefixElement())); if (src.hasTitle()) @@ -682,7 +682,7 @@ public class PlanDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionConditionComponent tgt = new org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionConditionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasKind()) tgt.setKindElement(convertActionConditionKind(src.getKindElement())); if (src.hasDescription()) @@ -698,7 +698,7 @@ public class PlanDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionConditionComponent tgt = new org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionConditionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasKind()) tgt.setKindElement(convertActionConditionKind(src.getKindElement())); if (src.getExpression().hasDescription()) @@ -714,7 +714,7 @@ public class PlanDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionDynamicValueComponent tgt = new org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionDynamicValueComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.getExpression().hasDescription()) tgt.setDescription(src.getExpression().getDescription()); if (src.hasPath()) @@ -730,7 +730,7 @@ public class PlanDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionDynamicValueComponent tgt = new org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionDynamicValueComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.getExpression().setDescription(src.getDescription()); if (src.hasPath()) @@ -746,7 +746,7 @@ public class PlanDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionParticipantComponent tgt = new org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionParticipantComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertActionParticipantType(src.getTypeElement())); if (src.hasRole()) @@ -758,7 +758,7 @@ public class PlanDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionParticipantComponent tgt = new org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionParticipantComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertActionParticipantType(src.getTypeElement())); if (src.hasRole()) @@ -770,7 +770,7 @@ public class PlanDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent tgt = new org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasTargetId()) tgt.setActionIdElement(Id30_50.convertId(src.getTargetIdElement())); if (src.hasRelationship()) @@ -784,7 +784,7 @@ public class PlanDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent tgt = new org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasActionId()) tgt.setTargetIdElement(Id30_50.convertId(src.getActionIdElement())); if (src.hasRelationship()) @@ -798,7 +798,7 @@ public class PlanDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionGoalComponent tgt = new org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionGoalComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept30_50.convertCodeableConcept(src.getCategory())); if (src.hasDescription()) @@ -820,7 +820,7 @@ public class PlanDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionGoalComponent tgt = new org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionGoalComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept30_50.convertCodeableConcept(src.getCategory())); if (src.hasDescription()) @@ -842,7 +842,7 @@ public class PlanDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionGoalTargetComponent tgt = new org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionGoalTargetComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMeasure()) tgt.setMeasure(CodeableConcept30_50.convertCodeableConcept(src.getMeasure())); if (src.hasDetail()) @@ -856,7 +856,7 @@ public class PlanDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionGoalTargetComponent tgt = new org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionGoalTargetComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasMeasure()) tgt.setMeasure(CodeableConcept30_50.convertCodeableConcept(src.getMeasure())); if (src.hasDetail()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Practitioner30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Practitioner30_50.java index ad3ddc3cb..fac867432 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Practitioner30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Practitioner30_50.java @@ -63,7 +63,7 @@ public class Practitioner30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.r5.model.Practitioner.PractitionerQualificationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier30_50.convertIdentifier(t)); if (src.hasCode()) @@ -79,7 +79,7 @@ public class Practitioner30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.dstu3.model.Practitioner.PractitionerQualificationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier30_50.convertIdentifier(t)); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/PractitionerRole30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/PractitionerRole30_50.java index 66a21da43..21bdf6eab 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/PractitionerRole30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/PractitionerRole30_50.java @@ -87,7 +87,7 @@ public class PractitionerRole30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleAvailableTimeComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(PractitionerRole30_50::convertDaysOfWeek) .collect(Collectors.toList())); @@ -104,7 +104,7 @@ public class PractitionerRole30_50 { if (src == null) return null; org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(PractitionerRole30_50::convertDaysOfWeek) .collect(Collectors.toList())); @@ -121,7 +121,7 @@ public class PractitionerRole30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleNotAvailableComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.setDescriptionElement(String30_50.convertString(src.getDescriptionElement())); if (src.hasDuring()) @@ -133,7 +133,7 @@ public class PractitionerRole30_50 { if (src == null) return null; org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.setDescriptionElement(String30_50.convertString(src.getDescriptionElement())); if (src.hasDuring()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Provenance30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Provenance30_50.java index 67ec943d8..c823115cc 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Provenance30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Provenance30_50.java @@ -100,7 +100,7 @@ public class Provenance30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Provenance.ProvenanceAgentComponent tgt = new org.hl7.fhir.r5.model.Provenance.ProvenanceAgentComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getRole()) tgt.addRole(CodeableConcept30_50.convertCodeableConcept(t)); if (src.hasWhoReference()) @@ -114,7 +114,7 @@ public class Provenance30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent tgt = new org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getRole()) tgt.addRole(CodeableConcept30_50.convertCodeableConcept(t)); if (src.hasWho()) @@ -128,7 +128,7 @@ public class Provenance30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.r5.model.Provenance.ProvenanceEntityComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasRole()) tgt.setRoleElement(convertProvenanceEntityRole(src.getRoleElement())); if (src.hasWhatReference()) @@ -142,7 +142,7 @@ public class Provenance30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasRole()) tgt.setRoleElement(convertProvenanceEntityRole(src.getRoleElement())); if (src.hasWhat()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Questionnaire30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Questionnaire30_50.java index ad7d01626..e5f39c8fc 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Questionnaire30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Questionnaire30_50.java @@ -119,7 +119,7 @@ public class Questionnaire30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String30_50.convertString(src.getLinkIdElement())); if (src.hasDefinition()) @@ -156,7 +156,7 @@ public class Questionnaire30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String30_50.convertString(src.getLinkIdElement())); if (src.hasDefinition()) @@ -203,7 +203,7 @@ public class Questionnaire30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemEnableWhenComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemEnableWhenComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasQuestion()) tgt.setQuestionElement(String30_50.convertString(src.getQuestionElement())); if (src.hasOperator() && src.getOperator() == org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemOperator.EXISTS) @@ -217,7 +217,7 @@ public class Questionnaire30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemEnableWhenComponent tgt = new org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemEnableWhenComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasQuestion()) tgt.setQuestionElement(String30_50.convertString(src.getQuestionElement())); if (src.hasHasAnswer()) { @@ -236,7 +236,7 @@ public class Questionnaire30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemAnswerOptionComponent tgt = new org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemAnswerOptionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().convertType(src.getValue())); return tgt; @@ -246,7 +246,7 @@ public class Questionnaire30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemOptionComponent tgt = new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemOptionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().convertType(src.getValue())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/QuestionnaireResponse30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/QuestionnaireResponse30_50.java index 2aca1d85a..efa1bd0bb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/QuestionnaireResponse30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/QuestionnaireResponse30_50.java @@ -70,7 +70,7 @@ public class QuestionnaireResponse30_50 { if (src == null) return null; org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().convertType(src.getValue())); for (org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) @@ -82,7 +82,7 @@ public class QuestionnaireResponse30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().convertType(src.getValue())); for (org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) @@ -94,7 +94,7 @@ public class QuestionnaireResponse30_50 { if (src == null) return null; org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String30_50.convertString(src.getLinkIdElement())); if (src.hasDefinition()) @@ -112,7 +112,7 @@ public class QuestionnaireResponse30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String30_50.convertString(src.getLinkIdElement())); if (src.hasDefinition()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/RiskAssessment30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/RiskAssessment30_50.java index 409540af4..818731d59 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/RiskAssessment30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/RiskAssessment30_50.java @@ -98,7 +98,7 @@ public class RiskAssessment30_50 { if (src == null) return null; org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentPredictionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasOutcome()) tgt.setOutcome(CodeableConcept30_50.convertCodeableConcept(src.getOutcome())); if (src.hasProbability()) @@ -118,7 +118,7 @@ public class RiskAssessment30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.dstu3.model.RiskAssessment.RiskAssessmentPredictionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasOutcome()) tgt.setOutcome(CodeableConcept30_50.convertCodeableConcept(src.getOutcome())); if (src.hasProbability()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/SearchParameter30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/SearchParameter30_50.java index 8ee34b113..f135d82ed 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/SearchParameter30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/SearchParameter30_50.java @@ -292,7 +292,7 @@ public class SearchParameter30_50 { if (src == null) return null; org.hl7.fhir.r5.model.SearchParameter.SearchParameterComponentComponent tgt = new org.hl7.fhir.r5.model.SearchParameter.SearchParameterComponentComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasDefinition()) tgt.setDefinitionElement(Reference30_50.convertReferenceToCanonical(src.getDefinition())); if (src.hasExpression()) @@ -304,7 +304,7 @@ public class SearchParameter30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.SearchParameter.SearchParameterComponentComponent tgt = new org.hl7.fhir.dstu3.model.SearchParameter.SearchParameterComponentComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasDefinition()) tgt.setDefinition(Reference30_50.convertCanonicalToReference(src.getDefinitionElement())); if (src.hasExpression()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Specimen30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Specimen30_50.java index 04ffea10e..1ecd98fbe 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Specimen30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Specimen30_50.java @@ -74,7 +74,7 @@ public class Specimen30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Specimen.SpecimenCollectionComponent tgt = new org.hl7.fhir.r5.model.Specimen.SpecimenCollectionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCollector()) tgt.setCollector(Reference30_50.convertReference(src.getCollector())); if (src.hasCollected()) @@ -92,7 +92,7 @@ public class Specimen30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Specimen.SpecimenCollectionComponent tgt = new org.hl7.fhir.dstu3.model.Specimen.SpecimenCollectionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCollector()) tgt.setCollector(Reference30_50.convertReference(src.getCollector())); if (src.hasCollected()) @@ -110,7 +110,7 @@ public class Specimen30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Specimen.SpecimenContainerComponent tgt = new org.hl7.fhir.dstu3.model.Specimen.SpecimenContainerComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); // for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) // tgt.addIdentifier(Identifier30_50.convertIdentifier(t)); // if (src.hasDescription()) @@ -130,7 +130,7 @@ public class Specimen30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Specimen.SpecimenContainerComponent tgt = new org.hl7.fhir.r5.model.Specimen.SpecimenContainerComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); // for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) // tgt.addIdentifier(Identifier30_50.convertIdentifier(t)); // if (src.hasDescription()) @@ -150,7 +150,7 @@ public class Specimen30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Specimen.SpecimenProcessingComponent tgt = new org.hl7.fhir.r5.model.Specimen.SpecimenProcessingComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.setDescriptionElement(String30_50.convertString(src.getDescriptionElement())); // if (src.hasProcedure()) @@ -165,7 +165,7 @@ public class Specimen30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Specimen.SpecimenProcessingComponent tgt = new org.hl7.fhir.dstu3.model.Specimen.SpecimenProcessingComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasDescription()) tgt.setDescriptionElement(String30_50.convertString(src.getDescriptionElement())); // if (src.hasProcedure()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/StructureDefinition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/StructureDefinition30_50.java index a3940eae8..8481f0fa0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/StructureDefinition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/StructureDefinition30_50.java @@ -199,7 +199,7 @@ public class StructureDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionDifferentialComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition30_50.convertElementDefinition(t)); return tgt; @@ -209,7 +209,7 @@ public class StructureDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionDifferentialComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition30_50.convertElementDefinition(t)); return tgt; @@ -269,7 +269,7 @@ public class StructureDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasIdentity()) tgt.setIdentityElement(Id30_50.convertId(src.getIdentityElement())); if (src.hasUri()) @@ -285,7 +285,7 @@ public class StructureDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasIdentity()) tgt.setIdentityElement(Id30_50.convertId(src.getIdentityElement())); if (src.hasUri()) @@ -301,7 +301,7 @@ public class StructureDefinition30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionSnapshotComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition30_50.convertElementDefinition(t)); return tgt; @@ -311,7 +311,7 @@ public class StructureDefinition30_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionSnapshotComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition30_50.convertElementDefinition(t)); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/StructureMap30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/StructureMap30_50.java index eb5ca60a2..20dbb2449 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/StructureMap30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/StructureMap30_50.java @@ -106,7 +106,7 @@ public class StructureMap30_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Id30_50.convertId(src.getNameElement())); if (src.hasExtends()) @@ -126,7 +126,7 @@ public class StructureMap30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Id30_50.convertId(src.getNameElement())); if (src.hasExtends()) @@ -146,7 +146,7 @@ public class StructureMap30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupInputComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupInputComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Id30_50.convertId(src.getNameElement())); if (src.hasType()) @@ -162,7 +162,7 @@ public class StructureMap30_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupInputComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupInputComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Id30_50.convertId(src.getNameElement())); if (src.hasType()) @@ -178,7 +178,7 @@ public class StructureMap30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Id30_50.convertId(src.getNameElement())); for (org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleSourceComponent t : src.getSource()) @@ -198,7 +198,7 @@ public class StructureMap30_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Id30_50.convertId(src.getNameElement())); for (org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleSourceComponent t : src.getSource()) @@ -218,7 +218,7 @@ public class StructureMap30_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleDependentComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleDependentComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Id30_50.convertId(src.getNameElement())); for (org.hl7.fhir.dstu3.model.StringType t : src.getVariable()) tgt.addParameter().setValue(String30_50.convertString(t)); @@ -229,7 +229,7 @@ public class StructureMap30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleDependentComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleDependentComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(Id30_50.convertId(src.getNameElement())); for (StructureMapGroupRuleTargetParameterComponent t : src.getParameter()) tgt.addVariable(t.getValue().primitiveValue()); @@ -240,7 +240,7 @@ public class StructureMap30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleSourceComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasContext()) tgt.setContextElement(Id30_50.convertId(src.getContextElement())); if (src.hasMin()) @@ -268,7 +268,7 @@ public class StructureMap30_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleSourceComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasContext()) tgt.setContextElement(Id30_50.convertId(src.getContextElement())); if (src.hasMin()) @@ -296,7 +296,7 @@ public class StructureMap30_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasContext()) tgt.setContextElement(Id30_50.convertId(src.getContextElement())); if (src.hasContextType() && src.getContextType() != org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextType.VARIABLE) @@ -321,7 +321,7 @@ public class StructureMap30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasContext()) tgt.setContextElement(Id30_50.convertId(src.getContextElement())); tgt.setContextType(org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextType.VARIABLE); @@ -345,7 +345,7 @@ public class StructureMap30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetParameterComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetParameterComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().convertType(src.getValue())); return tgt; @@ -355,7 +355,7 @@ public class StructureMap30_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetParameterComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetParameterComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasValue()) tgt.setValue(ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().convertType(src.getValue())); return tgt; @@ -551,7 +551,7 @@ public class StructureMap30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.StructureMap.StructureMapStructureComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapStructureComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasUrl()) tgt.setUrl(src.getUrl()); if (src.hasMode()) @@ -567,7 +567,7 @@ public class StructureMap30_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapStructureComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapStructureComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasUrl()) tgt.setUrl(src.getUrl()); if (src.hasMode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Substance30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Substance30_50.java index 9915e9a5b..8b507a813 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Substance30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Substance30_50.java @@ -105,7 +105,7 @@ public class Substance30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasQuantity()) tgt.setQuantity(Ratio30_50.convertRatio(src.getQuantity())); if (src.hasSubstance()) @@ -117,7 +117,7 @@ public class Substance30_50 { if (src == null) return null; org.hl7.fhir.r5.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.r5.model.Substance.SubstanceIngredientComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasQuantity()) tgt.setQuantity(Ratio30_50.convertRatio(src.getQuantity())); if (src.hasSubstance()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/SupplyDelivery30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/SupplyDelivery30_50.java index 6e527b8bd..3af9a836b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/SupplyDelivery30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/SupplyDelivery30_50.java @@ -117,7 +117,7 @@ public class SupplyDelivery30_50 { if (src == null) return null; org.hl7.fhir.r5.model.SupplyDelivery.SupplyDeliverySuppliedItemComponent tgt = new org.hl7.fhir.r5.model.SupplyDelivery.SupplyDeliverySuppliedItemComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasQuantity()) tgt.setQuantity(SimpleQuantity30_50.convertSimpleQuantity(src.getQuantity())); if (src.hasItem()) @@ -129,7 +129,7 @@ public class SupplyDelivery30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.SupplyDelivery.SupplyDeliverySuppliedItemComponent tgt = new org.hl7.fhir.dstu3.model.SupplyDelivery.SupplyDeliverySuppliedItemComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasQuantity()) tgt.setQuantity(SimpleQuantity30_50.convertSimpleQuantity(src.getQuantity())); if (src.hasItem()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/TestReport30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/TestReport30_50.java index 73dc971c2..675866fc8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/TestReport30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/TestReport30_50.java @@ -77,7 +77,7 @@ public class TestReport30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestReport.TestReportParticipantComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.TestReportParticipantComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertTestReportParticipantType(src.getTypeElement())); if (src.hasUri()) @@ -91,7 +91,7 @@ public class TestReport30_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestReport.TestReportParticipantComponent tgt = new org.hl7.fhir.r5.model.TestReport.TestReportParticipantComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setTypeElement(convertTestReportParticipantType(src.getTypeElement())); if (src.hasUri()) @@ -193,7 +193,7 @@ public class TestReport30_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestReport.TestReportSetupComponent tgt = new org.hl7.fhir.r5.model.TestReport.TestReportSetupComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestReport.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -203,7 +203,7 @@ public class TestReport30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestReport.TestReportSetupComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.TestReportSetupComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.TestReport.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -269,7 +269,7 @@ public class TestReport30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestReport.TestReportTeardownComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.TestReportTeardownComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.TestReport.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -279,7 +279,7 @@ public class TestReport30_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestReport.TestReportTeardownComponent tgt = new org.hl7.fhir.r5.model.TestReport.TestReportTeardownComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestReport.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -289,7 +289,7 @@ public class TestReport30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestReport.TestReportTestComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.TestReportTestComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasDescription()) @@ -303,7 +303,7 @@ public class TestReport30_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestReport.TestReportTestComponent tgt = new org.hl7.fhir.r5.model.TestReport.TestReportTestComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasDescription()) @@ -316,7 +316,7 @@ public class TestReport30_50 { public static org.hl7.fhir.r5.model.TestReport.SetupActionComponent convertSetupActionComponent(org.hl7.fhir.dstu3.model.TestReport.SetupActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r5.model.TestReport.SetupActionComponent tgt = new org.hl7.fhir.r5.model.TestReport.SetupActionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); return tgt; @@ -325,7 +325,7 @@ public class TestReport30_50 { public static org.hl7.fhir.dstu3.model.TestReport.SetupActionComponent convertSetupActionComponent(org.hl7.fhir.r5.model.TestReport.SetupActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestReport.SetupActionComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.SetupActionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); return tgt; @@ -334,7 +334,7 @@ public class TestReport30_50 { public static org.hl7.fhir.r5.model.TestReport.SetupActionOperationComponent convertSetupActionOperationComponent(org.hl7.fhir.dstu3.model.TestReport.SetupActionOperationComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r5.model.TestReport.SetupActionOperationComponent tgt = new org.hl7.fhir.r5.model.TestReport.SetupActionOperationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasResult()) tgt.setResultElement(convertTestReportActionResult(src.getResultElement())); if (src.hasMessage()) tgt.setMessageElement(MarkDown30_50.convertMarkdown(src.getMessageElement())); if (src.hasDetail()) tgt.setDetailElement(Uri30_50.convertUri(src.getDetailElement())); @@ -344,7 +344,7 @@ public class TestReport30_50 { public static org.hl7.fhir.dstu3.model.TestReport.SetupActionOperationComponent convertSetupActionOperationComponent(org.hl7.fhir.r5.model.TestReport.SetupActionOperationComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestReport.SetupActionOperationComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.SetupActionOperationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasResult()) tgt.setResultElement(convertTestReportActionResult(src.getResultElement())); if (src.hasMessage()) tgt.setMessageElement(MarkDown30_50.convertMarkdown(src.getMessageElement())); if (src.hasDetail()) tgt.setDetailElement(Uri30_50.convertUri(src.getDetailElement())); @@ -416,7 +416,7 @@ public class TestReport30_50 { public static org.hl7.fhir.r5.model.TestReport.SetupActionAssertComponent convertSetupActionAssertComponent(org.hl7.fhir.dstu3.model.TestReport.SetupActionAssertComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r5.model.TestReport.SetupActionAssertComponent tgt = new org.hl7.fhir.r5.model.TestReport.SetupActionAssertComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasResult()) tgt.setResultElement(convertTestReportActionResult(src.getResultElement())); if (src.hasMessage()) tgt.setMessageElement(MarkDown30_50.convertMarkdown(src.getMessageElement())); if (src.hasDetail()) tgt.setDetailElement(String30_50.convertString(src.getDetailElement())); @@ -426,7 +426,7 @@ public class TestReport30_50 { public static org.hl7.fhir.dstu3.model.TestReport.SetupActionAssertComponent convertSetupActionAssertComponent(org.hl7.fhir.r5.model.TestReport.SetupActionAssertComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestReport.SetupActionAssertComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.SetupActionAssertComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasResult()) tgt.setResultElement(convertTestReportActionResult(src.getResultElement())); if (src.hasMessage()) tgt.setMessageElement(MarkDown30_50.convertMarkdown(src.getMessageElement())); if (src.hasDetail()) tgt.setDetailElement(String30_50.convertString(src.getDetailElement())); @@ -436,7 +436,7 @@ public class TestReport30_50 { public static org.hl7.fhir.r5.model.TestReport.TestActionComponent convertTestActionComponent(org.hl7.fhir.dstu3.model.TestReport.TestActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r5.model.TestReport.TestActionComponent tgt = new org.hl7.fhir.r5.model.TestReport.TestActionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); return tgt; @@ -445,7 +445,7 @@ public class TestReport30_50 { public static org.hl7.fhir.dstu3.model.TestReport.TestActionComponent convertTestActionComponent(org.hl7.fhir.r5.model.TestReport.TestActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestReport.TestActionComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.TestActionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); return tgt; @@ -454,7 +454,7 @@ public class TestReport30_50 { public static org.hl7.fhir.r5.model.TestReport.TeardownActionComponent convertTeardownActionComponent(org.hl7.fhir.dstu3.model.TestReport.TeardownActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r5.model.TestReport.TeardownActionComponent tgt = new org.hl7.fhir.r5.model.TestReport.TeardownActionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; } @@ -462,7 +462,7 @@ public class TestReport30_50 { public static org.hl7.fhir.dstu3.model.TestReport.TeardownActionComponent convertTeardownActionComponent(org.hl7.fhir.r5.model.TestReport.TeardownActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestReport.TeardownActionComponent tgt = new org.hl7.fhir.dstu3.model.TestReport.TeardownActionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/TestScript30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/TestScript30_50.java index 7c77117cc..e44ca1475 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/TestScript30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/TestScript30_50.java @@ -126,7 +126,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptDestinationComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptDestinationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasIndex()) tgt.setIndexElement(Integer30_50.convertInteger(src.getIndexElement())); if (src.hasProfile()) @@ -138,7 +138,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptDestinationComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptDestinationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasIndex()) tgt.setIndexElement(Integer30_50.convertInteger(src.getIndexElement())); if (src.hasProfile()) @@ -150,7 +150,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptFixtureComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasAutocreate()) tgt.setAutocreateElement(Boolean30_50.convertBoolean(src.getAutocreateElement())); if (src.hasAutodelete()) @@ -164,7 +164,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptFixtureComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasAutocreate()) tgt.setAutocreateElement(Boolean30_50.convertBoolean(src.getAutocreateElement())); if (src.hasAutodelete()) @@ -178,7 +178,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasRequired()) tgt.setRequiredElement(Boolean30_50.convertBoolean(src.getRequiredElement())); if (src.hasValidated()) @@ -198,7 +198,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptMetadataCapabilityComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasRequired()) tgt.setRequiredElement(Boolean30_50.convertBoolean(src.getRequiredElement())); if (src.hasValidated()) @@ -218,7 +218,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptMetadataComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t)); for (org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) @@ -230,7 +230,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t)); for (org.hl7.fhir.r5.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) @@ -242,7 +242,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasUrl()) tgt.setUrlElement(Uri30_50.convertUri(src.getUrlElement())); if (src.hasDescription()) @@ -254,7 +254,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptMetadataLinkComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasUrl()) tgt.setUrlElement(Uri30_50.convertUri(src.getUrlElement())); if (src.hasDescription()) @@ -266,7 +266,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptOriginComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptOriginComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasIndex()) tgt.setIndexElement(Integer30_50.convertInteger(src.getIndexElement())); if (src.hasProfile()) @@ -278,7 +278,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptOriginComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptOriginComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasIndex()) tgt.setIndexElement(Integer30_50.convertInteger(src.getIndexElement())); if (src.hasProfile()) @@ -290,7 +290,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptSetupComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -300,7 +300,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.TestScript.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -310,7 +310,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptTeardownComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -320,7 +320,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); for (org.hl7.fhir.r5.model.TestScript.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -330,7 +330,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasDescription()) @@ -344,7 +344,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptTestComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasDescription()) @@ -358,7 +358,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptVariableComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasDefaultValue()) @@ -382,7 +382,7 @@ public class TestScript30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestScriptVariableComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasDefaultValue()) @@ -405,7 +405,7 @@ public class TestScript30_50 { public static org.hl7.fhir.r5.model.TestScript.SetupActionComponent convertSetupActionComponent(org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.SetupActionComponent tgt = new org.hl7.fhir.r5.model.TestScript.SetupActionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); return tgt; @@ -414,7 +414,7 @@ public class TestScript30_50 { public static org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent convertSetupActionComponent(org.hl7.fhir.r5.model.TestScript.SetupActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); return tgt; @@ -423,7 +423,7 @@ public class TestScript30_50 { public static org.hl7.fhir.r5.model.TestScript.SetupActionOperationComponent convertSetupActionOperationComponent(org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.r5.model.TestScript.SetupActionOperationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(Coding30_50.convertCoding(src.getType())); if (src.hasResource()) tgt.setResource(src.getResource()); @@ -449,7 +449,7 @@ public class TestScript30_50 { public static org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent convertSetupActionOperationComponent(org.hl7.fhir.r5.model.TestScript.SetupActionOperationComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasType()) tgt.setType(Coding30_50.convertCoding(src.getType())); if (src.hasResource()) tgt.setResource(src.getResource()); if (src.hasLabel()) tgt.setLabelElement(String30_50.convertString(src.getLabelElement())); @@ -498,7 +498,7 @@ public class TestScript30_50 { public static org.hl7.fhir.r5.model.TestScript.SetupActionOperationRequestHeaderComponent convertSetupActionOperationRequestHeaderComponent(org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.SetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.r5.model.TestScript.SetupActionOperationRequestHeaderComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasField()) tgt.setFieldElement(String30_50.convertString(src.getFieldElement())); if (src.hasValue()) tgt.setValueElement(String30_50.convertString(src.getValueElement())); return tgt; @@ -507,7 +507,7 @@ public class TestScript30_50 { public static org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent convertSetupActionOperationRequestHeaderComponent(org.hl7.fhir.r5.model.TestScript.SetupActionOperationRequestHeaderComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionOperationRequestHeaderComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasField()) tgt.setFieldElement(String30_50.convertString(src.getFieldElement())); if (src.hasValue()) tgt.setValueElement(String30_50.convertString(src.getValueElement())); return tgt; @@ -516,7 +516,7 @@ public class TestScript30_50 { public static org.hl7.fhir.r5.model.TestScript.SetupActionAssertComponent convertSetupActionAssertComponent(org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.SetupActionAssertComponent tgt = new org.hl7.fhir.r5.model.TestScript.SetupActionAssertComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLabel()) tgt.setLabelElement(String30_50.convertString(src.getLabelElement())); if (src.hasDescription()) tgt.setDescriptionElement(String30_50.convertString(src.getDescriptionElement())); if (src.hasDirection()) tgt.setDirectionElement(convertAssertionDirectionType(src.getDirectionElement())); @@ -552,7 +552,7 @@ public class TestScript30_50 { public static org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent convertSetupActionAssertComponent(org.hl7.fhir.r5.model.TestScript.SetupActionAssertComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.SetupActionAssertComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLabel()) tgt.setLabelElement(String30_50.convertString(src.getLabelElement())); if (src.hasDescription()) tgt.setDescriptionElement(String30_50.convertString(src.getDescriptionElement())); if (src.hasDirection()) tgt.setDirectionElement(convertAssertionDirectionType(src.getDirectionElement())); @@ -901,7 +901,7 @@ public class TestScript30_50 { public static org.hl7.fhir.r5.model.TestScript.TestActionComponent convertTestActionComponent(org.hl7.fhir.dstu3.model.TestScript.TestActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestActionComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestActionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); return tgt; @@ -910,7 +910,7 @@ public class TestScript30_50 { public static org.hl7.fhir.dstu3.model.TestScript.TestActionComponent convertTestActionComponent(org.hl7.fhir.r5.model.TestScript.TestActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TestActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TestActionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) tgt.setAssert(convertSetupActionAssertComponent(src.getAssert())); return tgt; @@ -919,7 +919,7 @@ public class TestScript30_50 { public static org.hl7.fhir.r5.model.TestScript.TeardownActionComponent convertTeardownActionComponent(org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TeardownActionComponent tgt = new org.hl7.fhir.r5.model.TestScript.TeardownActionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; } @@ -927,7 +927,7 @@ public class TestScript30_50 { public static org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent convertTeardownActionComponent(org.hl7.fhir.r5.model.TestScript.TeardownActionComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent tgt = new org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ValueSet30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ValueSet30_50.java index f393a1d4d..0e605a168 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ValueSet30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ValueSet30_50.java @@ -16,7 +16,7 @@ public class ValueSet30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -30,7 +30,7 @@ public class ValueSet30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ConceptReferenceComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -44,7 +44,7 @@ public class ValueSet30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ConceptReferenceDesignationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code30_50.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -58,7 +58,7 @@ public class ValueSet30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code30_50.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -72,7 +72,7 @@ public class ValueSet30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasSystem()) tgt.setSystemElement(Uri30_50.convertUri(src.getSystemElement())); if (src.hasVersion()) @@ -89,7 +89,7 @@ public class ValueSet30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasSystem()) tgt.setSystemElement(Uri30_50.convertUri(src.getSystemElement())); if (src.hasVersion()) @@ -106,7 +106,7 @@ public class ValueSet30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasProperty()) tgt.setPropertyElement(Code30_50.convertCode(src.getPropertyElement())); if (src.hasOp()) @@ -120,7 +120,7 @@ public class ValueSet30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ConceptSetFilterComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasProperty()) tgt.setPropertyElement(Code30_50.convertCode(src.getPropertyElement())); if (src.hasOp()) @@ -266,7 +266,7 @@ public class ValueSet30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ValueSetComposeComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLockedDate()) tgt.setLockedDateElement(Date30_50.convertDate(src.getLockedDateElement())); if (src.hasInactive()) @@ -282,7 +282,7 @@ public class ValueSet30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetComposeComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasLockedDate()) tgt.setLockedDateElement(Date30_50.convertDate(src.getLockedDateElement())); if (src.hasInactive()) @@ -298,7 +298,7 @@ public class ValueSet30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifierElement(Uri30_50.convertUri(src.getIdentifierElement())); if (src.hasTimestamp()) @@ -318,7 +318,7 @@ public class ValueSet30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasIdentifier()) tgt.setIdentifierElement(Uri30_50.convertUri(src.getIdentifierElement())); if (src.hasTimestamp()) @@ -338,7 +338,7 @@ public class ValueSet30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionContainsComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasSystem()) tgt.setSystemElement(Uri30_50.convertUri(src.getSystemElement())); if (src.hasAbstract()) @@ -362,7 +362,7 @@ public class ValueSet30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasSystem()) tgt.setSystemElement(Uri30_50.convertUri(src.getSystemElement())); if (src.hasAbstract()) @@ -386,7 +386,7 @@ public class ValueSet30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionParameterComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasValue()) @@ -398,7 +398,7 @@ public class ValueSet30_50 { if (src == null) return null; org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionParameterComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/VersionConvertor_40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/VersionConvertor_40_50.java index 1969e7a64..97a757074 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/VersionConvertor_40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/VersionConvertor_40_50.java @@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv40_50; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.BackboneElement40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.Element40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.Type40_50; import org.hl7.fhir.convertors.conv40_50.resources40_50.Resource40_50; @@ -43,12 +44,15 @@ import javax.annotation.Nonnull; public class VersionConvertor_40_50 { private final BaseAdvisor_40_50 advisor; private final Element40_50 elementConvertor; + + private final BackboneElement40_50 backboneElementConvertor; private final Resource40_50 resourceConvertor; private final Type40_50 typeConvertor; public VersionConvertor_40_50(@Nonnull BaseAdvisor_40_50 advisor) { this.advisor = advisor; this.elementConvertor = new Element40_50(advisor); + this.backboneElementConvertor = new BackboneElement40_50(); this.resourceConvertor = new Resource40_50(advisor); this.typeConvertor = new Type40_50(advisor); } @@ -124,4 +128,16 @@ public class VersionConvertor_40_50 { String... var) throws FHIRException { elementConvertor.copyElement(src, tgt, ConversionContext40_50.INSTANCE.path(), var); } + + public void copyBackboneElement(@Nonnull org.hl7.fhir.r5.model.BackboneElement src, + @Nonnull org.hl7.fhir.r4.model.BackboneElement tgt, + String... var) throws FHIRException { + backboneElementConvertor.copyBackboneElement(src, tgt, var); + } + + public void copyBackboneElement(@Nonnull org.hl7.fhir.r4.model.BackboneElement src, + @Nonnull org.hl7.fhir.r5.model.BackboneElement tgt, + String... var) throws FHIRException { + backboneElementConvertor.copyBackboneElement(src, tgt, var); + } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/BackboneElement40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/BackboneElement40_50.java index ddfd10efb..46c8dad3b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/BackboneElement40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/BackboneElement40_50.java @@ -5,29 +5,29 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Extension40 import org.hl7.fhir.exceptions.FHIRException; public class BackboneElement40_50 { - public static void copyBackboneElement(org.hl7.fhir.r4.model.BackboneElement src, org.hl7.fhir.r5.model.BackboneElement tgt) throws FHIRException { - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + public static void copyBackboneElement(org.hl7.fhir.r4.model.BackboneElement src, org.hl7.fhir.r5.model.BackboneElement tgt, String ... var) throws FHIRException { + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt, var); for (org.hl7.fhir.r4.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension40_50.convertExtension(e)); } } - public static void copyBackboneElement(org.hl7.fhir.r5.model.BackboneElement src, org.hl7.fhir.r4.model.BackboneElement tgt) throws FHIRException { - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + public static void copyBackboneElement(org.hl7.fhir.r5.model.BackboneElement src, org.hl7.fhir.r4.model.BackboneElement tgt, String... var) throws FHIRException { + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt, var); for (org.hl7.fhir.r5.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension40_50.convertExtension(e)); } } - public static void copyBackboneElement(org.hl7.fhir.r5.model.BackboneType src, org.hl7.fhir.r4.model.BackboneType tgt) throws FHIRException { - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + public static void copyBackboneElement(org.hl7.fhir.r5.model.BackboneType src, org.hl7.fhir.r4.model.BackboneType tgt, String... var) throws FHIRException { + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt, var); for (org.hl7.fhir.r5.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension40_50.convertExtension(e)); } } - public static void copyBackboneElement(org.hl7.fhir.r4.model.BackboneType src, org.hl7.fhir.r5.model.BackboneType tgt) throws FHIRException { - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + public static void copyBackboneElement(org.hl7.fhir.r4.model.BackboneType src, org.hl7.fhir.r5.model.BackboneType tgt, String... var) throws FHIRException { + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt, var); for (org.hl7.fhir.r4.model.Extension e : src.getModifierExtension()) { tgt.addModifierExtension(Extension40_50.convertExtension(e)); } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Account40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Account40_50.java index 7c05ccc4c..fd65fc13d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Account40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Account40_50.java @@ -159,7 +159,7 @@ public class Account40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Account.CoverageComponent tgt = new org.hl7.fhir.r5.model.Account.CoverageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCoverage()) tgt.setCoverage(Reference40_50.convertReference(src.getCoverage())); if (src.hasPriority()) @@ -171,7 +171,7 @@ public class Account40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Account.CoverageComponent tgt = new org.hl7.fhir.r4.model.Account.CoverageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCoverage()) tgt.setCoverage(Reference40_50.convertReference(src.getCoverage())); if (src.hasPriority()) @@ -183,7 +183,7 @@ public class Account40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Account.GuarantorComponent tgt = new org.hl7.fhir.r5.model.Account.GuarantorComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasParty()) tgt.setParty(Reference40_50.convertReference(src.getParty())); if (src.hasOnHold()) @@ -197,7 +197,7 @@ public class Account40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Account.GuarantorComponent tgt = new org.hl7.fhir.r4.model.Account.GuarantorComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasParty()) tgt.setParty(Reference40_50.convertReference(src.getParty())); if (src.hasOnHold()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ActivityDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ActivityDefinition40_50.java index dab6c72d9..3e5d00938 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ActivityDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ActivityDefinition40_50.java @@ -494,7 +494,7 @@ public class ActivityDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionParticipantComponent tgt = new org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionParticipantComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertActivityParticipantType(src.getTypeElement())); if (src.hasRole()) @@ -506,7 +506,7 @@ public class ActivityDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionParticipantComponent tgt = new org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionParticipantComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertActivityParticipantType(src.getTypeElement())); if (src.hasRole()) @@ -568,7 +568,7 @@ public class ActivityDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent tgt = new org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasPath()) tgt.setPathElement(String40_50.convertString(src.getPathElement())); if (src.hasExpression()) @@ -580,7 +580,7 @@ public class ActivityDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent tgt = new org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasPath()) tgt.setPathElement(String40_50.convertString(src.getPathElement())); if (src.hasExpression()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/AllergyIntolerance40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/AllergyIntolerance40_50.java index da21bfdf9..54733e246 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/AllergyIntolerance40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/AllergyIntolerance40_50.java @@ -269,7 +269,7 @@ public class AllergyIntolerance40_50 { if (src == null) return null; org.hl7.fhir.r5.model.AllergyIntolerance.AllergyIntoleranceReactionComponent tgt = new org.hl7.fhir.r5.model.AllergyIntolerance.AllergyIntoleranceReactionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSubstance()) tgt.setSubstance(CodeableConcept40_50.convertCodeableConcept(src.getSubstance())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getManifestation()) @@ -290,7 +290,7 @@ public class AllergyIntolerance40_50 { if (src == null) return null; org.hl7.fhir.r4.model.AllergyIntolerance.AllergyIntoleranceReactionComponent tgt = new org.hl7.fhir.r4.model.AllergyIntolerance.AllergyIntoleranceReactionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSubstance()) tgt.setSubstance(CodeableConcept40_50.convertCodeableConcept(src.getSubstance())); for (CodeableReference t : src.getManifestation()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Appointment40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Appointment40_50.java index 8f53e66a4..ff76f8165 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Appointment40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Appointment40_50.java @@ -259,7 +259,7 @@ public class Appointment40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.r5.model.Appointment.AppointmentParticipantComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasActor()) @@ -277,7 +277,7 @@ public class Appointment40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Appointment.AppointmentParticipantComponent tgt = new org.hl7.fhir.r4.model.Appointment.AppointmentParticipantComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasActor()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/AuditEvent40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/AuditEvent40_50.java index d67167b61..28af893ae 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/AuditEvent40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/AuditEvent40_50.java @@ -160,7 +160,7 @@ public class AuditEvent40_50 { if (src == null) return null; org.hl7.fhir.r5.model.AuditEvent.AuditEventAgentComponent tgt = new org.hl7.fhir.r5.model.AuditEvent.AuditEventAgentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRole()) @@ -189,7 +189,7 @@ public class AuditEvent40_50 { if (src == null) return null; org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getRole()) @@ -298,7 +298,7 @@ public class AuditEvent40_50 { if (src == null) return null; org.hl7.fhir.r5.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.r5.model.AuditEvent.AuditEventSourceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); // if (src.hasSite()) // tgt.setSiteElement(String40_50.convertString(src.getSiteElement())); if (src.hasObserver()) @@ -311,7 +311,7 @@ public class AuditEvent40_50 { if (src == null) return null; org.hl7.fhir.r4.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventSourceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); // if (src.hasSite()) // tgt.setSiteElement(String40_50.convertString(src.getSiteElement())); if (src.hasObserver()) @@ -324,7 +324,7 @@ public class AuditEvent40_50 { if (src == null) return null; org.hl7.fhir.r5.model.AuditEvent.AuditEventEntityComponent tgt = new org.hl7.fhir.r5.model.AuditEvent.AuditEventEntityComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasWhat()) tgt.setWhat(Reference40_50.convertReference(src.getWhat())); // if (src.hasType()) @@ -349,7 +349,7 @@ public class AuditEvent40_50 { if (src == null) return null; org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasWhat()) tgt.setWhat(Reference40_50.convertReference(src.getWhat())); // if (src.hasType()) @@ -374,7 +374,7 @@ public class AuditEvent40_50 { if (src == null) return null; org.hl7.fhir.r5.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.r5.model.AuditEvent.AuditEventEntityDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.getType().setTextElement(String40_50.convertString(src.getTypeElement())); if (src.hasValue()) @@ -386,11 +386,11 @@ public class AuditEvent40_50 { if (src == null) return null; org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent tgt = new org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.getType().hasTextElement()) tgt.setTypeElement(String40_50.convertString(src.getType().getTextElement())); if (src.hasValue()) tgt.setValue(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getValue())); return tgt; } -} \ No newline at end of file +} diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/BiologicallyDerivedProduct40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/BiologicallyDerivedProduct40_50.java index 16b1d59a4..6a18f2fb9 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/BiologicallyDerivedProduct40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/BiologicallyDerivedProduct40_50.java @@ -195,7 +195,7 @@ public class BiologicallyDerivedProduct40_50 { if (src == null) return null; org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCollectionComponent tgt = new org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCollectionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCollector()) tgt.setCollector(Reference40_50.convertReference(src.getCollector())); if (src.hasSource()) @@ -209,7 +209,7 @@ public class BiologicallyDerivedProduct40_50 { if (src == null) return null; org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCollectionComponent tgt = new org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCollectionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCollector()) tgt.setCollector(Reference40_50.convertReference(src.getCollector())); if (src.hasSource()) @@ -350,4 +350,4 @@ public class BiologicallyDerivedProduct40_50 { // } // return tgt; // } -} \ No newline at end of file +} diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Bundle40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Bundle40_50.java index 435bfb2f1..6ec0f513c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Bundle40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Bundle40_50.java @@ -163,7 +163,7 @@ public class Bundle40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleLinkComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRelation()) tgt.setRelationElement(String40_50.convertString(src.getRelationElement())); if (src.hasUrl()) @@ -175,7 +175,7 @@ public class Bundle40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleLinkComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRelation()) tgt.setRelationElement(String40_50.convertString(src.getRelationElement())); if (src.hasUrl()) @@ -187,7 +187,7 @@ public class Bundle40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleEntryComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); if (src.hasFullUrl()) tgt.setFullUrlElement(Uri40_50.convertUri(src.getFullUrlElement())); @@ -206,7 +206,7 @@ public class Bundle40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); if (src.hasFullUrl()) tgt.setFullUrlElement(Uri40_50.convertUri(src.getFullUrlElement())); @@ -225,7 +225,7 @@ public class Bundle40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleEntrySearchComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMode()) tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); if (src.hasScore()) @@ -237,7 +237,7 @@ public class Bundle40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMode()) tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); if (src.hasScore()) @@ -293,7 +293,7 @@ public class Bundle40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleEntryRequestComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMethod()) tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); if (src.hasUrl()) @@ -313,7 +313,7 @@ public class Bundle40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMethod()) tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); if (src.hasUrl()) @@ -395,7 +395,7 @@ public class Bundle40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r5.model.Bundle.BundleEntryResponseComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasStatus()) tgt.setStatusElement(String40_50.convertString(src.getStatusElement())); if (src.hasLocation()) @@ -413,7 +413,7 @@ public class Bundle40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasStatus()) tgt.setStatusElement(String40_50.convertString(src.getStatusElement())); if (src.hasLocation()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CapabilityStatement40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CapabilityStatement40_50.java index 5fc8e7def..7e0ecf21b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CapabilityStatement40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CapabilityStatement40_50.java @@ -206,7 +206,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementSoftwareComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasVersion()) @@ -220,7 +220,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasVersion()) @@ -234,7 +234,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementImplementationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDescription()) tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); if (src.hasUrl()) @@ -248,7 +248,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementImplementationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDescription()) tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); if (src.hasUrl()) @@ -262,7 +262,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMode()) tgt.setModeElement(convertRestfulCapabilityMode(src.getModeElement())); if (src.hasDocumentation()) @@ -286,7 +286,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMode()) tgt.setModeElement(convertRestfulCapabilityMode(src.getModeElement())); if (src.hasDocumentation()) @@ -348,7 +348,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestSecurityComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCors()) tgt.setCorsElement(Boolean40_50.convertBoolean(src.getCorsElement())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getService()) @@ -362,7 +362,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCors()) tgt.setCorsElement(Boolean40_50.convertBoolean(src.getCorsElement())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getService()) @@ -376,7 +376,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(Code40_50.convertResourceEnum(src.getTypeElement())); if (src.hasProfile()) @@ -419,7 +419,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(Code40_50.convertResourceEnum(src.getTypeElement())); if (src.hasProfile()) @@ -656,7 +656,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.ResourceInteractionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -668,7 +668,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.ResourceInteractionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(convertTypeRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -760,7 +760,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -776,7 +776,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -792,7 +792,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -806,7 +806,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasDefinition()) @@ -820,7 +820,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.SystemInteractionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -832,7 +832,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.SystemInteractionComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.SystemInteractionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(convertSystemRestfulInteraction(src.getCodeElement())); if (src.hasDocumentation()) @@ -894,7 +894,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertCapabilityStatementMessagingEndpointComponent(t)); if (src.hasReliableCache()) @@ -910,7 +910,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertCapabilityStatementMessagingEndpointComponent(t)); if (src.hasReliableCache()) @@ -926,7 +926,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasProtocol()) tgt.setProtocol(Coding40_50.convertCoding(src.getProtocol())); if (src.hasAddress()) @@ -938,7 +938,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasProtocol()) tgt.setProtocol(Coding40_50.convertCoding(src.getProtocol())); if (src.hasAddress()) @@ -950,7 +950,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingSupportedMessageComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingSupportedMessageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMode()) tgt.setModeElement(convertEventCapabilityMode(src.getModeElement())); if (src.hasDefinition()) @@ -962,7 +962,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingSupportedMessageComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementMessagingSupportedMessageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMode()) tgt.setModeElement(convertEventCapabilityMode(src.getModeElement())); if (src.hasDefinition()) @@ -1012,7 +1012,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementDocumentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMode()) tgt.setModeElement(convertDocumentMode(src.getModeElement())); if (src.hasDocumentation()) @@ -1026,7 +1026,7 @@ public class CapabilityStatement40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementDocumentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMode()) tgt.setModeElement(convertDocumentMode(src.getModeElement())); if (src.hasDocumentation()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CarePlan40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CarePlan40_50.java index a7233758f..858ae82b3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CarePlan40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CarePlan40_50.java @@ -257,7 +257,7 @@ public class CarePlan40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getOutcomeCodeableConcept()) tgt.addPerformedActivity(CodeableConcept40_50.convertCodeableConceptToCodeableReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getOutcomeReference()) @@ -274,7 +274,7 @@ public class CarePlan40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (CodeableReference t : src.getPerformedActivity()) if (t.hasConcept()) tgt.addOutcomeCodeableConcept(CodeableConcept40_50.convertCodeableConcept(t.getConcept())); @@ -293,7 +293,7 @@ public class CarePlan40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasKind()) tgt.setKindElement(convertCarePlanActivityKind(src.getKindElement())); for (org.hl7.fhir.r4.model.CanonicalType t : src.getInstantiatesCanonical()) @@ -333,7 +333,7 @@ public class CarePlan40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasKind()) tgt.setKindElement(convertCarePlanActivityKind(src.getKindElement())); for (org.hl7.fhir.r5.model.CanonicalType t : src.getInstantiatesCanonical()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CareTeam40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CareTeam40_50.java index aaf540013..5733ae075 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CareTeam40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CareTeam40_50.java @@ -162,7 +162,7 @@ public class CareTeam40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CareTeam.CareTeamParticipantComponent tgt = new org.hl7.fhir.r5.model.CareTeam.CareTeamParticipantComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRole()) tgt.setRole(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasMember()) @@ -178,7 +178,7 @@ public class CareTeam40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CareTeam.CareTeamParticipantComponent tgt = new org.hl7.fhir.r4.model.CareTeam.CareTeamParticipantComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRole()) tgt.addRole(CodeableConcept40_50.convertCodeableConcept(src.getRole())); if (src.hasMember()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ChargeItem40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ChargeItem40_50.java index acd008d23..2f95a4a87 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ChargeItem40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ChargeItem40_50.java @@ -223,7 +223,7 @@ public class ChargeItem40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ChargeItem.ChargeItemPerformerComponent tgt = new org.hl7.fhir.r5.model.ChargeItem.ChargeItemPerformerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFunction()) tgt.setFunction(CodeableConcept40_50.convertCodeableConcept(src.getFunction())); if (src.hasActor()) @@ -235,7 +235,7 @@ public class ChargeItem40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ChargeItem.ChargeItemPerformerComponent tgt = new org.hl7.fhir.r4.model.ChargeItem.ChargeItemPerformerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFunction()) tgt.setFunction(CodeableConcept40_50.convertCodeableConcept(src.getFunction())); if (src.hasActor()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ChargeItemDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ChargeItemDefinition40_50.java index 9198fb2f2..c20dd16da 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ChargeItemDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ChargeItemDefinition40_50.java @@ -150,7 +150,7 @@ public class ChargeItemDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionApplicabilityComponent tgt = new org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionApplicabilityComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDescription()) tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); if (src.hasLanguage()) @@ -164,7 +164,7 @@ public class ChargeItemDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionApplicabilityComponent tgt = new org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionApplicabilityComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDescription()) tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); if (src.hasLanguage()) @@ -178,7 +178,7 @@ public class ChargeItemDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupComponent tgt = new org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionApplicabilityComponent t : src.getApplicability()) tgt.addApplicability(convertChargeItemDefinitionApplicabilityComponent(t)); for (org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent t : src.getPriceComponent()) @@ -190,7 +190,7 @@ public class ChargeItemDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupComponent tgt = new org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionApplicabilityComponent t : src.getApplicability()) tgt.addApplicability(convertChargeItemDefinitionApplicabilityComponent(t)); for (org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent t : src.getPriceComponent()) @@ -202,7 +202,7 @@ public class ChargeItemDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent tgt = new org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertChargeItemDefinitionPriceComponentType(src.getTypeElement())); if (src.hasCode()) @@ -218,7 +218,7 @@ public class ChargeItemDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent tgt = new org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertChargeItemDefinitionPriceComponentType(src.getTypeElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Claim40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Claim40_50.java index 4937a8eb9..9c9c8c952 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Claim40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Claim40_50.java @@ -257,7 +257,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Claim.RelatedClaimComponent tgt = new org.hl7.fhir.r5.model.Claim.RelatedClaimComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasClaim()) tgt.setClaim(Reference40_50.convertReference(src.getClaim())); if (src.hasRelationship()) @@ -271,7 +271,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Claim.RelatedClaimComponent tgt = new org.hl7.fhir.r4.model.Claim.RelatedClaimComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasClaim()) tgt.setClaim(Reference40_50.convertReference(src.getClaim())); if (src.hasRelationship()) @@ -285,7 +285,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Claim.PayeeComponent tgt = new org.hl7.fhir.r5.model.Claim.PayeeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasParty()) @@ -297,7 +297,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Claim.PayeeComponent tgt = new org.hl7.fhir.r4.model.Claim.PayeeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasParty()) @@ -309,7 +309,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Claim.CareTeamComponent tgt = new org.hl7.fhir.r5.model.Claim.CareTeamComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasProvider()) @@ -327,7 +327,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Claim.CareTeamComponent tgt = new org.hl7.fhir.r4.model.Claim.CareTeamComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasProvider()) @@ -345,7 +345,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Claim.SupportingInformationComponent tgt = new org.hl7.fhir.r5.model.Claim.SupportingInformationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasCategory()) @@ -365,7 +365,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Claim.SupportingInformationComponent tgt = new org.hl7.fhir.r4.model.Claim.SupportingInformationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasCategory()) @@ -385,7 +385,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Claim.DiagnosisComponent tgt = new org.hl7.fhir.r5.model.Claim.DiagnosisComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasDiagnosis()) @@ -403,7 +403,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Claim.DiagnosisComponent tgt = new org.hl7.fhir.r4.model.Claim.DiagnosisComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasDiagnosis()) @@ -421,7 +421,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Claim.ProcedureComponent tgt = new org.hl7.fhir.r5.model.Claim.ProcedureComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) @@ -438,7 +438,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Claim.ProcedureComponent tgt = new org.hl7.fhir.r4.model.Claim.ProcedureComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getType()) @@ -455,7 +455,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Claim.InsuranceComponent tgt = new org.hl7.fhir.r5.model.Claim.InsuranceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasFocal()) @@ -477,7 +477,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Claim.InsuranceComponent tgt = new org.hl7.fhir.r4.model.Claim.InsuranceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasFocal()) @@ -499,7 +499,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Claim.AccidentComponent tgt = new org.hl7.fhir.r5.model.Claim.AccidentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDate()) tgt.setDateElement(Date40_50.convertDate(src.getDateElement())); if (src.hasType()) @@ -513,7 +513,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Claim.AccidentComponent tgt = new org.hl7.fhir.r4.model.Claim.AccidentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDate()) tgt.setDateElement(Date40_50.convertDate(src.getDateElement())); if (src.hasType()) @@ -527,7 +527,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Claim.ItemComponent tgt = new org.hl7.fhir.r5.model.Claim.ItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); for (org.hl7.fhir.r4.model.PositiveIntType t : src.getCareTeamSequence()) @@ -574,7 +574,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Claim.ItemComponent tgt = new org.hl7.fhir.r4.model.Claim.ItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); for (org.hl7.fhir.r5.model.PositiveIntType t : src.getCareTeamSequence()) @@ -621,7 +621,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Claim.DetailComponent tgt = new org.hl7.fhir.r5.model.Claim.DetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasRevenue()) @@ -652,7 +652,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Claim.DetailComponent tgt = new org.hl7.fhir.r4.model.Claim.DetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasRevenue()) @@ -683,7 +683,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Claim.SubDetailComponent tgt = new org.hl7.fhir.r5.model.Claim.SubDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasRevenue()) @@ -712,7 +712,7 @@ public class Claim40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Claim.SubDetailComponent tgt = new org.hl7.fhir.r4.model.Claim.SubDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasRevenue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ClaimResponse40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ClaimResponse40_50.java index fb5c81bc5..cbe124ee0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ClaimResponse40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ClaimResponse40_50.java @@ -303,7 +303,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ClaimResponse.ItemComponent tgt = new org.hl7.fhir.r5.model.ClaimResponse.ItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasItemSequence()) tgt.setItemSequenceElement(PositiveInt40_50.convertPositiveInt(src.getItemSequenceElement())); for (org.hl7.fhir.r4.model.PositiveIntType t : src.getNoteNumber()) @@ -319,7 +319,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ClaimResponse.ItemComponent tgt = new org.hl7.fhir.r4.model.ClaimResponse.ItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasItemSequence()) tgt.setItemSequenceElement(PositiveInt40_50.convertPositiveInt(src.getItemSequenceElement())); for (org.hl7.fhir.r5.model.PositiveIntType t : src.getNoteNumber()) @@ -335,7 +335,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ClaimResponse.AdjudicationComponent tgt = new org.hl7.fhir.r5.model.ClaimResponse.AdjudicationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept40_50.convertCodeableConcept(src.getCategory())); if (src.hasReason()) @@ -351,7 +351,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ClaimResponse.AdjudicationComponent tgt = new org.hl7.fhir.r4.model.ClaimResponse.AdjudicationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept40_50.convertCodeableConcept(src.getCategory())); if (src.hasReason()) @@ -367,7 +367,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ClaimResponse.ItemDetailComponent tgt = new org.hl7.fhir.r5.model.ClaimResponse.ItemDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDetailSequence()) tgt.setDetailSequenceElement(PositiveInt40_50.convertPositiveInt(src.getDetailSequenceElement())); for (org.hl7.fhir.r4.model.PositiveIntType t : src.getNoteNumber()) @@ -383,7 +383,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ClaimResponse.ItemDetailComponent tgt = new org.hl7.fhir.r4.model.ClaimResponse.ItemDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDetailSequence()) tgt.setDetailSequenceElement(PositiveInt40_50.convertPositiveInt(src.getDetailSequenceElement())); for (org.hl7.fhir.r5.model.PositiveIntType t : src.getNoteNumber()) @@ -399,7 +399,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ClaimResponse.SubDetailComponent tgt = new org.hl7.fhir.r5.model.ClaimResponse.SubDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSubDetailSequence()) tgt.setSubDetailSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSubDetailSequenceElement())); for (org.hl7.fhir.r4.model.PositiveIntType t : src.getNoteNumber()) @@ -413,7 +413,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ClaimResponse.SubDetailComponent tgt = new org.hl7.fhir.r4.model.ClaimResponse.SubDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSubDetailSequence()) tgt.setSubDetailSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSubDetailSequenceElement())); for (org.hl7.fhir.r5.model.PositiveIntType t : src.getNoteNumber()) @@ -427,7 +427,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ClaimResponse.AddedItemComponent tgt = new org.hl7.fhir.r5.model.ClaimResponse.AddedItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.PositiveIntType t : src.getItemSequence()) tgt.getItemSequence().add(PositiveInt40_50.convertPositiveInt(t)); for (org.hl7.fhir.r4.model.PositiveIntType t : src.getDetailSequence()) @@ -470,7 +470,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ClaimResponse.AddedItemComponent tgt = new org.hl7.fhir.r4.model.ClaimResponse.AddedItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.PositiveIntType t : src.getItemSequence()) tgt.getItemSequence().add(PositiveInt40_50.convertPositiveInt(t)); for (org.hl7.fhir.r5.model.PositiveIntType t : src.getDetailSequence()) @@ -513,7 +513,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ClaimResponse.AddedItemDetailComponent tgt = new org.hl7.fhir.r5.model.ClaimResponse.AddedItemDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasProductOrService()) tgt.setProductOrService(CodeableConcept40_50.convertCodeableConcept(src.getProductOrService())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getModifier()) @@ -539,7 +539,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ClaimResponse.AddedItemDetailComponent tgt = new org.hl7.fhir.r4.model.ClaimResponse.AddedItemDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasProductOrService()) tgt.setProductOrService(CodeableConcept40_50.convertCodeableConcept(src.getProductOrService())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getModifier()) @@ -565,7 +565,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ClaimResponse.AddedItemSubDetailComponent tgt = new org.hl7.fhir.r5.model.ClaimResponse.AddedItemSubDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasProductOrService()) tgt.setProductOrService(CodeableConcept40_50.convertCodeableConcept(src.getProductOrService())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getModifier()) @@ -589,7 +589,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ClaimResponse.AddedItemSubDetailComponent tgt = new org.hl7.fhir.r4.model.ClaimResponse.AddedItemSubDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasProductOrService()) tgt.setProductOrService(CodeableConcept40_50.convertCodeableConcept(src.getProductOrService())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getModifier()) @@ -613,7 +613,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ClaimResponse.TotalComponent tgt = new org.hl7.fhir.r5.model.ClaimResponse.TotalComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept40_50.convertCodeableConcept(src.getCategory())); if (src.hasAmount()) @@ -625,7 +625,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ClaimResponse.TotalComponent tgt = new org.hl7.fhir.r4.model.ClaimResponse.TotalComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept40_50.convertCodeableConcept(src.getCategory())); if (src.hasAmount()) @@ -637,7 +637,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ClaimResponse.PaymentComponent tgt = new org.hl7.fhir.r5.model.ClaimResponse.PaymentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasAdjustment()) @@ -657,7 +657,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ClaimResponse.PaymentComponent tgt = new org.hl7.fhir.r4.model.ClaimResponse.PaymentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasAdjustment()) @@ -677,7 +677,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ClaimResponse.NoteComponent tgt = new org.hl7.fhir.r5.model.ClaimResponse.NoteComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasNumber()) tgt.setNumberElement(PositiveInt40_50.convertPositiveInt(src.getNumberElement())); if (src.hasType()) @@ -693,7 +693,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ClaimResponse.NoteComponent tgt = new org.hl7.fhir.r4.model.ClaimResponse.NoteComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasNumber()) tgt.setNumberElement(PositiveInt40_50.convertPositiveInt(src.getNumberElement())); if (src.hasType()) @@ -709,7 +709,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ClaimResponse.InsuranceComponent tgt = new org.hl7.fhir.r5.model.ClaimResponse.InsuranceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasFocal()) @@ -727,7 +727,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ClaimResponse.InsuranceComponent tgt = new org.hl7.fhir.r4.model.ClaimResponse.InsuranceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasFocal()) @@ -745,7 +745,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ClaimResponse.ErrorComponent tgt = new org.hl7.fhir.r5.model.ClaimResponse.ErrorComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasItemSequence()) tgt.setItemSequenceElement(PositiveInt40_50.convertPositiveInt(src.getItemSequenceElement())); if (src.hasDetailSequence()) @@ -761,7 +761,7 @@ public class ClaimResponse40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ClaimResponse.ErrorComponent tgt = new org.hl7.fhir.r4.model.ClaimResponse.ErrorComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasItemSequence()) tgt.setItemSequenceElement(PositiveInt40_50.convertPositiveInt(src.getItemSequenceElement())); if (src.hasDetailSequence()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ClinicalImpression40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ClinicalImpression40_50.java index edb82f844..9a048eba0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ClinicalImpression40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ClinicalImpression40_50.java @@ -175,7 +175,7 @@ public class ClinicalImpression40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ClinicalImpression.ClinicalImpressionFindingComponent tgt = new org.hl7.fhir.r5.model.ClinicalImpression.ClinicalImpressionFindingComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasItemCodeableConcept()) tgt.setItem(CodeableConcept40_50.convertCodeableConceptToCodeableReference(src.getItemCodeableConcept())); if (src.hasItemReference()) @@ -189,7 +189,7 @@ public class ClinicalImpression40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ClinicalImpression.ClinicalImpressionFindingComponent tgt = new org.hl7.fhir.r4.model.ClinicalImpression.ClinicalImpressionFindingComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasItem() && src.getItem().hasConcept()) tgt.setItemCodeableConcept(CodeableConcept40_50.convertCodeableConcept(src.getItem().getConcept())); if (src.hasItem() && src.getItem().hasReference()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CodeSystem40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CodeSystem40_50.java index 4492d140e..5313be8c6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CodeSystem40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CodeSystem40_50.java @@ -272,7 +272,7 @@ public class CodeSystem40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CodeSystem.CodeSystemFilterComponent tgt = new org.hl7.fhir.r5.model.CodeSystem.CodeSystemFilterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); if (src.hasDescription()) @@ -289,7 +289,7 @@ public class CodeSystem40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CodeSystem.CodeSystemFilterComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.CodeSystemFilterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); if (src.hasDescription()) @@ -386,7 +386,7 @@ public class CodeSystem40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CodeSystem.PropertyComponent tgt = new org.hl7.fhir.r5.model.CodeSystem.PropertyComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); if (src.hasUri()) @@ -402,7 +402,7 @@ public class CodeSystem40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CodeSystem.PropertyComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.PropertyComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); if (src.hasUri()) @@ -486,7 +486,7 @@ public class CodeSystem40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent tgt = new org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -506,7 +506,7 @@ public class CodeSystem40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -526,7 +526,7 @@ public class CodeSystem40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionDesignationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code40_50.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -540,7 +540,7 @@ public class CodeSystem40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionDesignationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code40_50.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -554,7 +554,7 @@ public class CodeSystem40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CodeSystem.ConceptPropertyComponent tgt = new org.hl7.fhir.r5.model.CodeSystem.ConceptPropertyComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); if (src.hasValue()) @@ -566,7 +566,7 @@ public class CodeSystem40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CodeSystem.ConceptPropertyComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.ConceptPropertyComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Communication40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Communication40_50.java index dedc51dce..e5eabb92a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Communication40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Communication40_50.java @@ -272,7 +272,7 @@ public class Communication40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.r5.model.Communication.CommunicationPayloadComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasContent()) { if (src.getContent() instanceof StringType) { CodeableConcept tgtc = new CodeableConcept(); @@ -291,7 +291,7 @@ public class Communication40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Communication.CommunicationPayloadComponent tgt = new org.hl7.fhir.r4.model.Communication.CommunicationPayloadComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasContent()) { if (src.hasContentCodeableConcept()) { StringType tgts = new StringType(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CommunicationRequest40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CommunicationRequest40_50.java index b30bf986d..25abd68dc 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CommunicationRequest40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CommunicationRequest40_50.java @@ -261,7 +261,7 @@ public class CommunicationRequest40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.r5.model.CommunicationRequest.CommunicationRequestPayloadComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (org.hl7.fhir.r4.utils.ToolingExtensions.hasExtension(src, EXT_PAYLOAD_CONTENT)) { org.hl7.fhir.r4.model.Extension e = org.hl7.fhir.r4.utils.ToolingExtensions.getExtension(src, EXT_PAYLOAD_CONTENT); tgt.setContent(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(e.getValue())); @@ -283,7 +283,7 @@ public class CommunicationRequest40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestPayloadComponent tgt = new org.hl7.fhir.r4.model.CommunicationRequest.CommunicationRequestPayloadComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasContent()) { org.hl7.fhir.r5.model.DataType content = src.getContent(); if (content instanceof org.hl7.fhir.r5.model.CodeableConcept) { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CompartmentDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CompartmentDefinition40_50.java index 3cf3d61db..10341e6bf 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CompartmentDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CompartmentDefinition40_50.java @@ -169,7 +169,7 @@ public class CompartmentDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.r5.model.CompartmentDefinition.CompartmentDefinitionResourceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertResourceEnum(src.getCodeElement())); for (org.hl7.fhir.r4.model.StringType t : src.getParam()) tgt.getParam().add(String40_50.convertString(t)); @@ -182,7 +182,7 @@ public class CompartmentDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.r4.model.CompartmentDefinition.CompartmentDefinitionResourceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertResourceEnum(src.getCodeElement())); for (org.hl7.fhir.r5.model.StringType t : src.getParam()) tgt.getParam().add(String40_50.convertString(t)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Composition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Composition40_50.java index 8a20a779e..13988b251 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Composition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Composition40_50.java @@ -212,7 +212,7 @@ public class Composition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.r5.model.Composition.CompositionAttesterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMode()) tgt.setMode(convertCompositionAttestationMode(src.getModeElement())); if (src.hasTime()) @@ -226,7 +226,7 @@ public class Composition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Composition.CompositionAttesterComponent tgt = new org.hl7.fhir.r4.model.Composition.CompositionAttesterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMode()) tgt.setModeElement(convertCompositionAttestationMode(src.getMode())); if (src.hasTime()) @@ -363,7 +363,7 @@ public class Composition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.r5.model.Composition.CompositionEventComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode()) tgt.addCode(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -376,7 +376,7 @@ public class Composition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Composition.CompositionEventComponent tgt = new org.hl7.fhir.r4.model.Composition.CompositionEventComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCode()) tgt.addCode(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -389,7 +389,7 @@ public class Composition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Composition.SectionComponent tgt = new org.hl7.fhir.r5.model.Composition.SectionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasTitle()) tgt.setTitleElement(String40_50.convertString(src.getTitleElement())); if (src.hasCode()) @@ -415,7 +415,7 @@ public class Composition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Composition.SectionComponent tgt = new org.hl7.fhir.r4.model.Composition.SectionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasTitle()) tgt.setTitleElement(String40_50.convertString(src.getTitleElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ConceptMap40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ConceptMap40_50.java index fd3d7315a..695509b1b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ConceptMap40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ConceptMap40_50.java @@ -141,7 +141,7 @@ public class ConceptMap40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSource() || src.hasSourceVersion()) tgt.setSourceElement(convertUriAndVersionToCanonical(src.getSourceElement(), src.getSourceVersionElement())); if (src.hasTarget() || src.hasTargetVersion()) @@ -172,7 +172,7 @@ public class ConceptMap40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSource()) { CanonicalPair cp = new CanonicalPair(src.getSource()); tgt.setSource(cp.getUrl()); @@ -194,7 +194,7 @@ public class ConceptMap40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.SourceElementComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -213,7 +213,7 @@ public class ConceptMap40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -231,7 +231,7 @@ public class ConceptMap40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.TargetElementComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -251,7 +251,7 @@ public class ConceptMap40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -349,7 +349,7 @@ public class ConceptMap40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.OtherElementComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasProperty()) tgt.setPropertyElement(Uri40_50.convertUri(src.getPropertyElement())); if (src.hasSystem()) { @@ -364,7 +364,7 @@ public class ConceptMap40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasProperty()) tgt.setPropertyElement(Uri40_50.convertUri(src.getPropertyElement())); @@ -383,7 +383,7 @@ public class ConceptMap40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupUnmappedComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupUnmappedComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMode()) tgt.setModeElement(convertConceptMapGroupUnmappedMode(src.getModeElement())); if (src.hasCode()) @@ -399,7 +399,7 @@ public class ConceptMap40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupUnmappedComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupUnmappedComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMode()) tgt.setModeElement(convertConceptMapGroupUnmappedMode(src.getModeElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Condition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Condition40_50.java index 8ecb5bcd1..b1452b2f2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Condition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Condition40_50.java @@ -135,7 +135,7 @@ public class Condition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.r5.model.Condition.ConditionStageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSummary()) tgt.setSummary(CodeableConcept40_50.convertCodeableConcept(src.getSummary())); for (org.hl7.fhir.r4.model.Reference t : src.getAssessment()) tgt.addAssessment(Reference40_50.convertReference(t)); @@ -148,7 +148,7 @@ public class Condition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Condition.ConditionStageComponent tgt = new org.hl7.fhir.r4.model.Condition.ConditionStageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSummary()) tgt.setSummary(CodeableConcept40_50.convertCodeableConcept(src.getSummary())); for (org.hl7.fhir.r5.model.Reference t : src.getAssessment()) tgt.addAssessment(Reference40_50.convertReference(t)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Consent40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Consent40_50.java index 324d53cb4..741140c74 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Consent40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Consent40_50.java @@ -4,7 +4,6 @@ import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; @@ -193,7 +192,7 @@ public class Consent40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Consent.ConsentVerificationComponent tgt = new org.hl7.fhir.r5.model.Consent.ConsentVerificationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasVerified()) tgt.setVerifiedElement(Boolean40_50.convertBoolean(src.getVerifiedElement())); if (src.hasVerifiedWith()) @@ -207,7 +206,7 @@ public class Consent40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Consent.ConsentVerificationComponent tgt = new org.hl7.fhir.r4.model.Consent.ConsentVerificationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasVerified()) tgt.setVerifiedElement(Boolean40_50.convertBoolean(src.getVerifiedElement())); if (src.hasVerifiedWith()) @@ -221,7 +220,7 @@ public class Consent40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Consent.ProvisionComponent tgt = new org.hl7.fhir.r5.model.Consent.ProvisionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertConsentProvisionType(src.getTypeElement())); if (src.hasPeriod()) @@ -248,7 +247,7 @@ public class Consent40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Consent.provisionComponent tgt = new org.hl7.fhir.r4.model.Consent.provisionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertConsentProvisionType(src.getTypeElement())); if (src.hasPeriod()) @@ -313,7 +312,7 @@ public class Consent40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Consent.ProvisionActorComponent tgt = new org.hl7.fhir.r5.model.Consent.ProvisionActorComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRole()) tgt.setRole(CodeableConcept40_50.convertCodeableConcept(src.getRole())); if (src.hasReference()) @@ -325,7 +324,7 @@ public class Consent40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Consent.provisionActorComponent tgt = new org.hl7.fhir.r4.model.Consent.provisionActorComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRole()) tgt.setRole(CodeableConcept40_50.convertCodeableConcept(src.getRole())); if (src.hasReference()) @@ -337,7 +336,7 @@ public class Consent40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Consent.ProvisionDataComponent tgt = new org.hl7.fhir.r5.model.Consent.ProvisionDataComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMeaning()) tgt.setMeaningElement(convertConsentDataMeaning(src.getMeaningElement())); if (src.hasReference()) @@ -349,7 +348,7 @@ public class Consent40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Consent.provisionDataComponent tgt = new org.hl7.fhir.r4.model.Consent.provisionDataComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMeaning()) tgt.setMeaningElement(convertConsentDataMeaning(src.getMeaningElement())); if (src.hasReference()) @@ -406,4 +405,4 @@ public class Consent40_50 { } return tgt; } -} \ No newline at end of file +} diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Contract40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Contract40_50.java index b96385c48..6030a33f7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Contract40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Contract40_50.java @@ -294,7 +294,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Contract.ContentDefinitionComponent tgt = new org.hl7.fhir.r5.model.Contract.ContentDefinitionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasSubType()) @@ -314,7 +314,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Contract.ContentDefinitionComponent tgt = new org.hl7.fhir.r4.model.Contract.ContentDefinitionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasSubType()) @@ -450,7 +450,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Contract.TermComponent tgt = new org.hl7.fhir.r5.model.Contract.TermComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier40_50.convertIdentifier(src.getIdentifier())); if (src.hasIssued()) @@ -480,7 +480,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Contract.TermComponent tgt = new org.hl7.fhir.r4.model.Contract.TermComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier40_50.convertIdentifier(src.getIdentifier())); if (src.hasIssued()) @@ -510,7 +510,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Contract.SecurityLabelComponent tgt = new org.hl7.fhir.r5.model.Contract.SecurityLabelComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.UnsignedIntType t : src.getNumber()) tgt.getNumber().add(UnsignedInt40_50.convertUnsignedInt(t)); if (src.hasClassification()) @@ -524,7 +524,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Contract.SecurityLabelComponent tgt = new org.hl7.fhir.r4.model.Contract.SecurityLabelComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.UnsignedIntType t : src.getNumber()) tgt.getNumber().add(UnsignedInt40_50.convertUnsignedInt(t)); if (src.hasClassification()) @@ -538,7 +538,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Contract.ContractOfferComponent tgt = new org.hl7.fhir.r5.model.Contract.ContractOfferComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier40_50.convertIdentifier(t)); for (org.hl7.fhir.r4.model.Contract.ContractPartyComponent t : src.getParty()) @@ -564,7 +564,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Contract.ContractOfferComponent tgt = new org.hl7.fhir.r4.model.Contract.ContractOfferComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier40_50.convertIdentifier(t)); for (org.hl7.fhir.r5.model.Contract.ContractPartyComponent t : src.getParty()) @@ -590,7 +590,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Contract.ContractPartyComponent tgt = new org.hl7.fhir.r5.model.Contract.ContractPartyComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.Reference t : src.getReference()) tgt.addReference(Reference40_50.convertReference(t)); if (src.hasRole()) tgt.setRole(CodeableConcept40_50.convertCodeableConcept(src.getRole())); @@ -601,7 +601,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Contract.ContractPartyComponent tgt = new org.hl7.fhir.r4.model.Contract.ContractPartyComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.Reference t : src.getReference()) tgt.addReference(Reference40_50.convertReference(t)); if (src.hasRole()) tgt.setRole(CodeableConcept40_50.convertCodeableConcept(src.getRole())); @@ -612,7 +612,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Contract.AnswerComponent tgt = new org.hl7.fhir.r5.model.Contract.AnswerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasValue()) tgt.setValue(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getValue())); return tgt; @@ -622,7 +622,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Contract.AnswerComponent tgt = new org.hl7.fhir.r4.model.Contract.AnswerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasValue()) tgt.setValue(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getValue())); return tgt; @@ -632,7 +632,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Contract.ContractAssetComponent tgt = new org.hl7.fhir.r5.model.Contract.ContractAssetComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasScope()) tgt.setScope(CodeableConcept40_50.convertCodeableConcept(src.getScope())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) @@ -666,7 +666,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Contract.ContractAssetComponent tgt = new org.hl7.fhir.r4.model.Contract.ContractAssetComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasScope()) tgt.setScope(CodeableConcept40_50.convertCodeableConcept(src.getScope())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getType()) @@ -700,7 +700,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Contract.AssetContextComponent tgt = new org.hl7.fhir.r5.model.Contract.AssetContextComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasReference()) tgt.setReference(Reference40_50.convertReference(src.getReference())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode()) @@ -714,7 +714,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Contract.AssetContextComponent tgt = new org.hl7.fhir.r4.model.Contract.AssetContextComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasReference()) tgt.setReference(Reference40_50.convertReference(src.getReference())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCode()) @@ -728,7 +728,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Contract.ValuedItemComponent tgt = new org.hl7.fhir.r5.model.Contract.ValuedItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasEntity()) tgt.setEntity(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getEntity())); if (src.hasIdentifier()) @@ -763,7 +763,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Contract.ValuedItemComponent tgt = new org.hl7.fhir.r4.model.Contract.ValuedItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasEntity()) tgt.setEntity(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getEntity())); if (src.hasIdentifier()) @@ -798,7 +798,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Contract.ActionComponent tgt = new org.hl7.fhir.r5.model.Contract.ActionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDoNotPerform()) tgt.setDoNotPerformElement(Boolean40_50.convertBoolean(src.getDoNotPerformElement())); if (src.hasType()) @@ -843,7 +843,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Contract.ActionComponent tgt = new org.hl7.fhir.r4.model.Contract.ActionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDoNotPerform()) tgt.setDoNotPerformElement(Boolean40_50.convertBoolean(src.getDoNotPerformElement())); if (src.hasType()) @@ -891,7 +891,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Contract.ActionSubjectComponent tgt = new org.hl7.fhir.r5.model.Contract.ActionSubjectComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.Reference t : src.getReference()) tgt.addReference(Reference40_50.convertReference(t)); if (src.hasRole()) tgt.setRole(CodeableConcept40_50.convertCodeableConcept(src.getRole())); @@ -902,7 +902,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Contract.ActionSubjectComponent tgt = new org.hl7.fhir.r4.model.Contract.ActionSubjectComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.Reference t : src.getReference()) tgt.addReference(Reference40_50.convertReference(t)); if (src.hasRole()) tgt.setRole(CodeableConcept40_50.convertCodeableConcept(src.getRole())); @@ -913,7 +913,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Contract.SignatoryComponent tgt = new org.hl7.fhir.r5.model.Contract.SignatoryComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(Coding40_50.convertCoding(src.getType())); if (src.hasParty()) @@ -926,7 +926,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Contract.SignatoryComponent tgt = new org.hl7.fhir.r4.model.Contract.SignatoryComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(Coding40_50.convertCoding(src.getType())); if (src.hasParty()) @@ -939,7 +939,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Contract.FriendlyLanguageComponent tgt = new org.hl7.fhir.r5.model.Contract.FriendlyLanguageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasContent()) tgt.setContent(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getContent())); return tgt; @@ -949,7 +949,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Contract.FriendlyLanguageComponent tgt = new org.hl7.fhir.r4.model.Contract.FriendlyLanguageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasContent()) tgt.setContent(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getContent())); return tgt; @@ -959,7 +959,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Contract.LegalLanguageComponent tgt = new org.hl7.fhir.r5.model.Contract.LegalLanguageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasContent()) tgt.setContent(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getContent())); return tgt; @@ -969,7 +969,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Contract.LegalLanguageComponent tgt = new org.hl7.fhir.r4.model.Contract.LegalLanguageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasContent()) tgt.setContent(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getContent())); return tgt; @@ -979,7 +979,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Contract.ComputableLanguageComponent tgt = new org.hl7.fhir.r5.model.Contract.ComputableLanguageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasContent()) tgt.setContent(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getContent())); return tgt; @@ -989,7 +989,7 @@ public class Contract40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Contract.ComputableLanguageComponent tgt = new org.hl7.fhir.r4.model.Contract.ComputableLanguageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasContent()) tgt.setContent(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getContent())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Coverage40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Coverage40_50.java index 6fccfc951..7b6bb64a8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Coverage40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Coverage40_50.java @@ -173,7 +173,7 @@ public class Coverage40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Coverage.ClassComponent tgt = new org.hl7.fhir.r5.model.Coverage.ClassComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasValue()) @@ -187,7 +187,7 @@ public class Coverage40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Coverage.ClassComponent tgt = new org.hl7.fhir.r4.model.Coverage.ClassComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasValue()) @@ -201,7 +201,7 @@ public class Coverage40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Coverage.CostToBeneficiaryComponent tgt = new org.hl7.fhir.r5.model.Coverage.CostToBeneficiaryComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasValue()) @@ -215,7 +215,7 @@ public class Coverage40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Coverage.CostToBeneficiaryComponent tgt = new org.hl7.fhir.r4.model.Coverage.CostToBeneficiaryComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasValue()) @@ -229,7 +229,7 @@ public class Coverage40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Coverage.ExemptionComponent tgt = new org.hl7.fhir.r5.model.Coverage.ExemptionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasPeriod()) @@ -241,7 +241,7 @@ public class Coverage40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Coverage.ExemptionComponent tgt = new org.hl7.fhir.r4.model.Coverage.ExemptionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasPeriod()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CoverageEligibilityRequest40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CoverageEligibilityRequest40_50.java index dc22af8f1..ff49daf8f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CoverageEligibilityRequest40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CoverageEligibilityRequest40_50.java @@ -223,7 +223,7 @@ public class CoverageEligibilityRequest40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CoverageEligibilityRequest.SupportingInformationComponent tgt = new org.hl7.fhir.r5.model.CoverageEligibilityRequest.SupportingInformationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasInformation()) @@ -237,7 +237,7 @@ public class CoverageEligibilityRequest40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CoverageEligibilityRequest.SupportingInformationComponent tgt = new org.hl7.fhir.r4.model.CoverageEligibilityRequest.SupportingInformationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasInformation()) @@ -251,7 +251,7 @@ public class CoverageEligibilityRequest40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CoverageEligibilityRequest.InsuranceComponent tgt = new org.hl7.fhir.r5.model.CoverageEligibilityRequest.InsuranceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFocal()) tgt.setFocalElement(Boolean40_50.convertBoolean(src.getFocalElement())); if (src.hasCoverage()) @@ -265,7 +265,7 @@ public class CoverageEligibilityRequest40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CoverageEligibilityRequest.InsuranceComponent tgt = new org.hl7.fhir.r4.model.CoverageEligibilityRequest.InsuranceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFocal()) tgt.setFocalElement(Boolean40_50.convertBoolean(src.getFocalElement())); if (src.hasCoverage()) @@ -279,7 +279,7 @@ public class CoverageEligibilityRequest40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CoverageEligibilityRequest.DetailsComponent tgt = new org.hl7.fhir.r5.model.CoverageEligibilityRequest.DetailsComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.PositiveIntType t : src.getSupportingInfoSequence()) tgt.getSupportingInfoSequence().add(PositiveInt40_50.convertPositiveInt(t)); if (src.hasCategory()) @@ -306,7 +306,7 @@ public class CoverageEligibilityRequest40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CoverageEligibilityRequest.DetailsComponent tgt = new org.hl7.fhir.r4.model.CoverageEligibilityRequest.DetailsComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.PositiveIntType t : src.getSupportingInfoSequence()) tgt.getSupportingInfoSequence().add(PositiveInt40_50.convertPositiveInt(t)); if (src.hasCategory()) @@ -333,7 +333,7 @@ public class CoverageEligibilityRequest40_50 { if (src == null) return null; org.hl7.fhir.r5.model.CoverageEligibilityRequest.DiagnosisComponent tgt = new org.hl7.fhir.r5.model.CoverageEligibilityRequest.DiagnosisComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDiagnosis()) tgt.setDiagnosis(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getDiagnosis())); return tgt; @@ -343,7 +343,7 @@ public class CoverageEligibilityRequest40_50 { if (src == null) return null; org.hl7.fhir.r4.model.CoverageEligibilityRequest.DiagnosisComponent tgt = new org.hl7.fhir.r4.model.CoverageEligibilityRequest.DiagnosisComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDiagnosis()) tgt.setDiagnosis(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getDiagnosis())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DetectedIssue40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DetectedIssue40_50.java index 78cb16789..baf97ff32 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DetectedIssue40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DetectedIssue40_50.java @@ -224,7 +224,7 @@ public class DetectedIssue40_50 { if (src == null) return null; org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueEvidenceComponent tgt = new org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueEvidenceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode()) tgt.addCode(CodeableConcept40_50.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.Reference t : src.getDetail()) tgt.addDetail(Reference40_50.convertReference(t)); @@ -235,7 +235,7 @@ public class DetectedIssue40_50 { if (src == null) return null; org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueEvidenceComponent tgt = new org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueEvidenceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCode()) tgt.addCode(CodeableConcept40_50.convertCodeableConcept(t)); for (org.hl7.fhir.r5.model.Reference t : src.getDetail()) tgt.addDetail(Reference40_50.convertReference(t)); @@ -246,7 +246,7 @@ public class DetectedIssue40_50 { if (src == null) return null; org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.r5.model.DetectedIssue.DetectedIssueMitigationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasAction()) tgt.setAction(CodeableConcept40_50.convertCodeableConcept(src.getAction())); if (src.hasDate()) @@ -260,7 +260,7 @@ public class DetectedIssue40_50 { if (src == null) return null; org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent tgt = new org.hl7.fhir.r4.model.DetectedIssue.DetectedIssueMitigationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasAction()) tgt.setAction(CodeableConcept40_50.convertCodeableConcept(src.getAction())); if (src.hasDate()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Device40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Device40_50.java index c3204137f..364e1c1b3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Device40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Device40_50.java @@ -209,7 +209,7 @@ public class Device40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Device.DeviceUdiCarrierComponent tgt = new org.hl7.fhir.r5.model.Device.DeviceUdiCarrierComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDeviceIdentifier()) tgt.setDeviceIdentifierElement(String40_50.convertString(src.getDeviceIdentifierElement())); if (src.hasIssuer()) @@ -229,7 +229,7 @@ public class Device40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Device.DeviceUdiCarrierComponent tgt = new org.hl7.fhir.r4.model.Device.DeviceUdiCarrierComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDeviceIdentifier()) tgt.setDeviceIdentifierElement(String40_50.convertString(src.getDeviceIdentifierElement())); if (src.hasIssuer()) @@ -311,7 +311,7 @@ public class Device40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Device.DeviceDeviceNameComponent tgt = new org.hl7.fhir.r5.model.Device.DeviceDeviceNameComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasType()) @@ -323,7 +323,7 @@ public class Device40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Device.DeviceDeviceNameComponent tgt = new org.hl7.fhir.r4.model.Device.DeviceDeviceNameComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasType()) @@ -409,7 +409,7 @@ public class Device40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Device.DeviceVersionComponent tgt = new org.hl7.fhir.r5.model.Device.DeviceVersionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasComponent()) @@ -423,7 +423,7 @@ public class Device40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Device.DeviceVersionComponent tgt = new org.hl7.fhir.r4.model.Device.DeviceVersionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasComponent()) @@ -437,7 +437,7 @@ public class Device40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Device.DevicePropertyComponent tgt = new org.hl7.fhir.r5.model.Device.DevicePropertyComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); for (org.hl7.fhir.r4.model.Quantity t : src.getValueQuantity()) tgt.setValue(Quantity40_50.convertQuantity(t)); @@ -450,7 +450,7 @@ public class Device40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Device.DevicePropertyComponent tgt = new org.hl7.fhir.r4.model.Device.DevicePropertyComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasValueQuantity()) tgt.addValueQuantity(Quantity40_50.convertQuantity(src.getValueQuantity())); @@ -458,4 +458,4 @@ public class Device40_50 { tgt.addValueCode(CodeableConcept40_50.convertCodeableConcept(src.getValueCodeableConcept())); return tgt; } -} \ No newline at end of file +} diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DeviceDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DeviceDefinition40_50.java index 9c4f5251a..36351ae66 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DeviceDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DeviceDefinition40_50.java @@ -139,7 +139,7 @@ public class DeviceDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.DeviceDefinition.DeviceDefinitionUdiDeviceIdentifierComponent tgt = new org.hl7.fhir.r5.model.DeviceDefinition.DeviceDefinitionUdiDeviceIdentifierComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDeviceIdentifier()) tgt.setDeviceIdentifierElement(String40_50.convertString(src.getDeviceIdentifierElement())); if (src.hasIssuer()) @@ -153,7 +153,7 @@ public class DeviceDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.DeviceDefinition.DeviceDefinitionUdiDeviceIdentifierComponent tgt = new org.hl7.fhir.r4.model.DeviceDefinition.DeviceDefinitionUdiDeviceIdentifierComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDeviceIdentifier()) tgt.setDeviceIdentifierElement(String40_50.convertString(src.getDeviceIdentifierElement())); if (src.hasIssuer()) @@ -167,7 +167,7 @@ public class DeviceDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.DeviceDefinition.DeviceDefinitionDeviceNameComponent tgt = new org.hl7.fhir.r5.model.DeviceDefinition.DeviceDefinitionDeviceNameComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasType()) @@ -179,7 +179,7 @@ public class DeviceDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.DeviceDefinition.DeviceDefinitionDeviceNameComponent tgt = new org.hl7.fhir.r4.model.DeviceDefinition.DeviceDefinitionDeviceNameComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasType()) @@ -286,7 +286,7 @@ public class DeviceDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.DeviceDefinition.DeviceDefinitionPropertyComponent tgt = new org.hl7.fhir.r5.model.DeviceDefinition.DeviceDefinitionPropertyComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); for (org.hl7.fhir.r4.model.Quantity t : src.getValueQuantity()) @@ -300,7 +300,7 @@ public class DeviceDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.DeviceDefinition.DeviceDefinitionPropertyComponent tgt = new org.hl7.fhir.r4.model.DeviceDefinition.DeviceDefinitionPropertyComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasValueQuantity()) @@ -314,7 +314,7 @@ public class DeviceDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.DeviceDefinition.DeviceDefinitionMaterialComponent tgt = new org.hl7.fhir.r5.model.DeviceDefinition.DeviceDefinitionMaterialComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSubstance()) tgt.setSubstance(CodeableConcept40_50.convertCodeableConcept(src.getSubstance())); if (src.hasAlternate()) @@ -328,7 +328,7 @@ public class DeviceDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.DeviceDefinition.DeviceDefinitionMaterialComponent tgt = new org.hl7.fhir.r4.model.DeviceDefinition.DeviceDefinitionMaterialComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSubstance()) tgt.setSubstance(CodeableConcept40_50.convertCodeableConcept(src.getSubstance())); if (src.hasAlternate()) @@ -337,4 +337,4 @@ public class DeviceDefinition40_50 { tgt.setAllergenicIndicatorElement(Boolean40_50.convertBoolean(src.getAllergenicIndicatorElement())); return tgt; } -} \ No newline at end of file +} diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DeviceMetric40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DeviceMetric40_50.java index afb0bc5b7..628030767 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DeviceMetric40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DeviceMetric40_50.java @@ -273,7 +273,7 @@ public class DeviceMetric40_50 { if (src == null) return null; org.hl7.fhir.r5.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.r5.model.DeviceMetric.DeviceMetricCalibrationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertDeviceMetricCalibrationType(src.getTypeElement())); if (src.hasState()) @@ -287,7 +287,7 @@ public class DeviceMetric40_50 { if (src == null) return null; org.hl7.fhir.r4.model.DeviceMetric.DeviceMetricCalibrationComponent tgt = new org.hl7.fhir.r4.model.DeviceMetric.DeviceMetricCalibrationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertDeviceMetricCalibrationType(src.getTypeElement())); if (src.hasState()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DeviceRequest40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DeviceRequest40_50.java index 6aeb44bab..79620185d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DeviceRequest40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DeviceRequest40_50.java @@ -357,7 +357,7 @@ public class DeviceRequest40_50 { if (src == null) return null; org.hl7.fhir.r5.model.DeviceRequest.DeviceRequestParameterComponent tgt = new org.hl7.fhir.r5.model.DeviceRequest.DeviceRequestParameterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -369,7 +369,7 @@ public class DeviceRequest40_50 { if (src == null) return null; org.hl7.fhir.r4.model.DeviceRequest.DeviceRequestParameterComponent tgt = new org.hl7.fhir.r4.model.DeviceRequest.DeviceRequestParameterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DiagnosticReport40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DiagnosticReport40_50.java index cd739845c..c422294f1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DiagnosticReport40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DiagnosticReport40_50.java @@ -210,7 +210,7 @@ public class DiagnosticReport40_50 { if (src == null) return null; org.hl7.fhir.r5.model.DiagnosticReport.DiagnosticReportMediaComponent tgt = new org.hl7.fhir.r5.model.DiagnosticReport.DiagnosticReportMediaComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasComment()) tgt.setCommentElement(String40_50.convertString(src.getCommentElement())); if (src.hasLink()) @@ -222,7 +222,7 @@ public class DiagnosticReport40_50 { if (src == null) return null; org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent tgt = new org.hl7.fhir.r4.model.DiagnosticReport.DiagnosticReportMediaComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasComment()) tgt.setCommentElement(String40_50.convertString(src.getCommentElement())); if (src.hasLink()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DocumentManifest40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DocumentManifest40_50.java index a8f869073..8a0769585 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DocumentManifest40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DocumentManifest40_50.java @@ -102,7 +102,7 @@ public class DocumentManifest40_50 { if (src == null) return null; org.hl7.fhir.r5.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.r5.model.DocumentManifest.DocumentManifestRelatedComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier40_50.convertIdentifier(src.getIdentifier())); if (src.hasRef()) @@ -114,7 +114,7 @@ public class DocumentManifest40_50 { if (src == null) return null; org.hl7.fhir.r4.model.DocumentManifest.DocumentManifestRelatedComponent tgt = new org.hl7.fhir.r4.model.DocumentManifest.DocumentManifestRelatedComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier40_50.convertIdentifier(src.getIdentifier())); if (src.hasRef()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DocumentReference40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DocumentReference40_50.java index b539f9b84..ef09e9b5e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DocumentReference40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DocumentReference40_50.java @@ -175,7 +175,7 @@ public class DocumentReference40_50 { if (src == null) return null; org.hl7.fhir.r5.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.r5.model.DocumentReference.DocumentReferenceRelatesToComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(convertDocumentRelationshipType(src.getCodeElement())); if (src.hasTarget()) @@ -187,7 +187,7 @@ public class DocumentReference40_50 { if (src == null) return null; org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceRelatesToComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(convertDocumentRelationshipType(src.getCode())); if (src.hasTarget()) @@ -248,7 +248,7 @@ public class DocumentReference40_50 { if (src == null) return null; org.hl7.fhir.r5.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.r5.model.DocumentReference.DocumentReferenceContentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasAttachment()) tgt.setAttachment(Attachment40_50.convertAttachment(src.getAttachment())); return tgt; @@ -258,7 +258,7 @@ public class DocumentReference40_50 { if (src == null) return null; org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContentComponent tgt = new org.hl7.fhir.r4.model.DocumentReference.DocumentReferenceContentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasAttachment()) tgt.setAttachment(Attachment40_50.convertAttachment(src.getAttachment())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Encounter40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Encounter40_50.java index 82e4b0a27..1e459198c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Encounter40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Encounter40_50.java @@ -219,7 +219,7 @@ public class Encounter40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Encounter.StatusHistoryComponent tgt = new org.hl7.fhir.r5.model.Encounter.StatusHistoryComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasStatus()) tgt.setStatusElement(convertEncounterStatus(src.getStatusElement())); if (src.hasPeriod()) @@ -231,7 +231,7 @@ public class Encounter40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Encounter.StatusHistoryComponent tgt = new org.hl7.fhir.r4.model.Encounter.StatusHistoryComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasStatus()) tgt.setStatusElement(convertEncounterStatus(src.getStatusElement())); if (src.hasPeriod()) @@ -243,7 +243,7 @@ public class Encounter40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Encounter.ClassHistoryComponent tgt = new org.hl7.fhir.r5.model.Encounter.ClassHistoryComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasClass_()) tgt.setClass_(Coding40_50.convertCoding(src.getClass_())); if (src.hasPeriod()) @@ -255,7 +255,7 @@ public class Encounter40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Encounter.ClassHistoryComponent tgt = new org.hl7.fhir.r4.model.Encounter.ClassHistoryComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasClass_()) tgt.setClass_(Coding40_50.convertCoding(src.getClass_())); if (src.hasPeriod()) @@ -267,7 +267,7 @@ public class Encounter40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.r5.model.Encounter.EncounterParticipantComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -281,7 +281,7 @@ public class Encounter40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Encounter.EncounterParticipantComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterParticipantComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasPeriod()) @@ -295,7 +295,7 @@ public class Encounter40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Encounter.DiagnosisComponent tgt = new org.hl7.fhir.r5.model.Encounter.DiagnosisComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCondition()) tgt.setCondition(Reference40_50.convertReference(src.getCondition())); if (src.hasUse()) @@ -309,7 +309,7 @@ public class Encounter40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Encounter.DiagnosisComponent tgt = new org.hl7.fhir.r4.model.Encounter.DiagnosisComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCondition()) tgt.setCondition(Reference40_50.convertReference(src.getCondition())); if (src.hasUse()) @@ -323,7 +323,7 @@ public class Encounter40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.r5.model.Encounter.EncounterHospitalizationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasPreAdmissionIdentifier()) tgt.setPreAdmissionIdentifier(Identifier40_50.convertIdentifier(src.getPreAdmissionIdentifier())); if (src.hasOrigin()) @@ -349,7 +349,7 @@ public class Encounter40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Encounter.EncounterHospitalizationComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterHospitalizationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasPreAdmissionIdentifier()) tgt.setPreAdmissionIdentifier(Identifier40_50.convertIdentifier(src.getPreAdmissionIdentifier())); if (src.hasOrigin()) @@ -375,7 +375,7 @@ public class Encounter40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.r5.model.Encounter.EncounterLocationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLocation()) tgt.setLocation(Reference40_50.convertReference(src.getLocation())); if (src.hasStatus()) @@ -391,7 +391,7 @@ public class Encounter40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Encounter.EncounterLocationComponent tgt = new org.hl7.fhir.r4.model.Encounter.EncounterLocationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLocation()) tgt.setLocation(Reference40_50.convertReference(src.getLocation())); if (src.hasStatus()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/EpisodeOfCare40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/EpisodeOfCare40_50.java index f3942a3c9..f8b23e729 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/EpisodeOfCare40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/EpisodeOfCare40_50.java @@ -171,7 +171,7 @@ public class EpisodeOfCare40_50 { if (src == null) return null; org.hl7.fhir.r5.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.r5.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasStatus()) tgt.setStatusElement(convertEpisodeOfCareStatus(src.getStatusElement())); if (src.hasPeriod()) @@ -183,7 +183,7 @@ public class EpisodeOfCare40_50 { if (src == null) return null; org.hl7.fhir.r4.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent tgt = new org.hl7.fhir.r4.model.EpisodeOfCare.EpisodeOfCareStatusHistoryComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasStatus()) tgt.setStatusElement(convertEpisodeOfCareStatus(src.getStatusElement())); if (src.hasPeriod()) @@ -195,7 +195,7 @@ public class EpisodeOfCare40_50 { if (src == null) return null; org.hl7.fhir.r5.model.EpisodeOfCare.DiagnosisComponent tgt = new org.hl7.fhir.r5.model.EpisodeOfCare.DiagnosisComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCondition()) tgt.setCondition(Reference40_50.convertReference(src.getCondition())); if (src.hasRole()) @@ -209,7 +209,7 @@ public class EpisodeOfCare40_50 { if (src == null) return null; org.hl7.fhir.r4.model.EpisodeOfCare.DiagnosisComponent tgt = new org.hl7.fhir.r4.model.EpisodeOfCare.DiagnosisComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCondition()) tgt.setCondition(Reference40_50.convertReference(src.getCondition())); if (src.hasRole()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ExampleScenario40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ExampleScenario40_50.java index b959a7333..d8ac1c057 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ExampleScenario40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ExampleScenario40_50.java @@ -127,7 +127,7 @@ public class ExampleScenario40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioActorComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioActorComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasActorId()) tgt.setActorIdElement(String40_50.convertString(src.getActorIdElement())); if (src.hasType()) @@ -143,7 +143,7 @@ public class ExampleScenario40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioActorComponent tgt = new org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioActorComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasActorId()) tgt.setActorIdElement(String40_50.convertString(src.getActorIdElement())); if (src.hasType()) @@ -197,7 +197,7 @@ public class ExampleScenario40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasResourceId()) tgt.setResourceIdElement(String40_50.convertString(src.getResourceIdElement())); if (src.hasResourceType()) @@ -217,7 +217,7 @@ public class ExampleScenario40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioInstanceComponent tgt = new org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioInstanceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasResourceId()) tgt.setResourceIdElement(String40_50.convertString(src.getResourceIdElement())); if (src.hasType()) @@ -253,7 +253,7 @@ public class ExampleScenario40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceVersionComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceVersionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasVersionId()) tgt.setVersionIdElement(String40_50.convertString(src.getVersionIdElement())); if (src.hasDescription()) @@ -265,7 +265,7 @@ public class ExampleScenario40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioInstanceVersionComponent tgt = new org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioInstanceVersionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasVersionId()) tgt.setVersionIdElement(String40_50.convertString(src.getVersionIdElement())); if (src.hasDescription()) @@ -277,7 +277,7 @@ public class ExampleScenario40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceContainedInstanceComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceContainedInstanceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasResourceId()) tgt.setResourceIdElement(String40_50.convertString(src.getResourceIdElement())); if (src.hasVersionId()) @@ -289,7 +289,7 @@ public class ExampleScenario40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioInstanceContainedInstanceComponent tgt = new org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioInstanceContainedInstanceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasResourceId()) tgt.setResourceIdElement(String40_50.convertString(src.getResourceIdElement())); if (src.hasVersionId()) @@ -301,7 +301,7 @@ public class ExampleScenario40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasTitle()) tgt.setTitleElement(String40_50.convertString(src.getTitleElement())); if (src.hasDescription()) @@ -319,7 +319,7 @@ public class ExampleScenario40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioProcessComponent tgt = new org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioProcessComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasTitle()) tgt.setTitleElement(String40_50.convertString(src.getTitleElement())); if (src.hasDescription()) @@ -337,7 +337,7 @@ public class ExampleScenario40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessStepComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessStepComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioProcessComponent t : src.getProcess()) tgt.addProcess(convertExampleScenarioProcessComponent(t)); if (src.hasPause()) @@ -353,7 +353,7 @@ public class ExampleScenario40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioProcessStepComponent tgt = new org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioProcessStepComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessComponent t : src.getProcess()) tgt.addProcess(convertExampleScenarioProcessComponent(t)); if (src.hasPause()) @@ -369,7 +369,7 @@ public class ExampleScenario40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessStepOperationComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessStepOperationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasNumber()) tgt.setNumberElement(String40_50.convertString(src.getNumberElement())); if (src.hasType()) @@ -397,7 +397,7 @@ public class ExampleScenario40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioProcessStepOperationComponent tgt = new org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioProcessStepOperationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasNumber()) tgt.setNumberElement(String40_50.convertString(src.getNumberElement())); if (src.hasType()) @@ -425,7 +425,7 @@ public class ExampleScenario40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessStepAlternativeComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessStepAlternativeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasTitle()) tgt.setTitleElement(String40_50.convertString(src.getTitleElement())); if (src.hasDescription()) @@ -439,7 +439,7 @@ public class ExampleScenario40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioProcessStepAlternativeComponent tgt = new org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioProcessStepAlternativeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasTitle()) tgt.setTitleElement(String40_50.convertString(src.getTitleElement())); if (src.hasDescription()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ExplanationOfBenefit40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ExplanationOfBenefit40_50.java index cd0732a2c..b15252e1e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ExplanationOfBenefit40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ExplanationOfBenefit40_50.java @@ -373,7 +373,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.RelatedClaimComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.RelatedClaimComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasClaim()) tgt.setClaim(Reference40_50.convertReference(src.getClaim())); if (src.hasRelationship()) @@ -387,7 +387,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.RelatedClaimComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.RelatedClaimComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasClaim()) tgt.setClaim(Reference40_50.convertReference(src.getClaim())); if (src.hasRelationship()) @@ -401,7 +401,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.PayeeComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.PayeeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasParty()) @@ -413,7 +413,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.PayeeComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.PayeeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasParty()) @@ -425,7 +425,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.CareTeamComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.CareTeamComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasProvider()) @@ -443,7 +443,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.CareTeamComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.CareTeamComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasProvider()) @@ -461,7 +461,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.SupportingInformationComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.SupportingInformationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasCategory()) @@ -481,7 +481,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.SupportingInformationComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.SupportingInformationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasCategory()) @@ -501,7 +501,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.DiagnosisComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.DiagnosisComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasDiagnosis()) @@ -519,7 +519,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.DiagnosisComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.DiagnosisComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasDiagnosis()) @@ -537,7 +537,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.ProcedureComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.ProcedureComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) @@ -554,7 +554,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.ProcedureComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.ProcedureComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getType()) @@ -571,7 +571,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.InsuranceComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.InsuranceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFocal()) tgt.setFocalElement(Boolean40_50.convertBoolean(src.getFocalElement())); if (src.hasCoverage()) @@ -585,7 +585,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.InsuranceComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.InsuranceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFocal()) tgt.setFocalElement(Boolean40_50.convertBoolean(src.getFocalElement())); if (src.hasCoverage()) @@ -599,7 +599,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.AccidentComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.AccidentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDate()) tgt.setDateElement(Date40_50.convertDate(src.getDateElement())); if (src.hasType()) @@ -613,7 +613,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.AccidentComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.AccidentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDate()) tgt.setDateElement(Date40_50.convertDate(src.getDateElement())); if (src.hasType()) @@ -627,7 +627,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.ItemComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.ItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); for (org.hl7.fhir.r4.model.PositiveIntType t : src.getCareTeamSequence()) @@ -679,7 +679,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.ItemComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.ItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); for (org.hl7.fhir.r5.model.PositiveIntType t : src.getCareTeamSequence()) @@ -731,7 +731,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.AdjudicationComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.AdjudicationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept40_50.convertCodeableConcept(src.getCategory())); if (src.hasReason()) @@ -747,7 +747,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.AdjudicationComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.AdjudicationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept40_50.convertCodeableConcept(src.getCategory())); if (src.hasReason()) @@ -763,7 +763,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.DetailComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.DetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasRevenue()) @@ -798,7 +798,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.DetailComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.DetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasRevenue()) @@ -833,7 +833,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.SubDetailComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.SubDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasRevenue()) @@ -866,7 +866,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.SubDetailComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.SubDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasRevenue()) @@ -899,7 +899,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.AddedItemComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.AddedItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.PositiveIntType t : src.getItemSequence()) tgt.getItemSequence().add(PositiveInt40_50.convertPositiveInt(t)); for (org.hl7.fhir.r4.model.PositiveIntType t : src.getDetailSequence()) @@ -942,7 +942,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.AddedItemComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.AddedItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.PositiveIntType t : src.getItemSequence()) tgt.getItemSequence().add(PositiveInt40_50.convertPositiveInt(t)); for (org.hl7.fhir.r5.model.PositiveIntType t : src.getDetailSequence()) @@ -985,7 +985,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.AddedItemDetailComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.AddedItemDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasProductOrService()) tgt.setProductOrService(CodeableConcept40_50.convertCodeableConcept(src.getProductOrService())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getModifier()) @@ -1011,7 +1011,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.AddedItemDetailComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.AddedItemDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasProductOrService()) tgt.setProductOrService(CodeableConcept40_50.convertCodeableConcept(src.getProductOrService())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getModifier()) @@ -1037,7 +1037,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.AddedItemDetailSubDetailComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.AddedItemDetailSubDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasProductOrService()) tgt.setProductOrService(CodeableConcept40_50.convertCodeableConcept(src.getProductOrService())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getModifier()) @@ -1061,7 +1061,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.AddedItemDetailSubDetailComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.AddedItemDetailSubDetailComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasProductOrService()) tgt.setProductOrService(CodeableConcept40_50.convertCodeableConcept(src.getProductOrService())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getModifier()) @@ -1085,7 +1085,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.TotalComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.TotalComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept40_50.convertCodeableConcept(src.getCategory())); if (src.hasAmount()) @@ -1097,7 +1097,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.TotalComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.TotalComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept40_50.convertCodeableConcept(src.getCategory())); if (src.hasAmount()) @@ -1109,7 +1109,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.PaymentComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.PaymentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasAdjustment()) @@ -1129,7 +1129,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.PaymentComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.PaymentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasAdjustment()) @@ -1149,7 +1149,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.NoteComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.NoteComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasNumber()) tgt.setNumberElement(PositiveInt40_50.convertPositiveInt(src.getNumberElement())); if (src.hasType()) @@ -1165,7 +1165,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.NoteComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.NoteComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasNumber()) tgt.setNumberElement(PositiveInt40_50.convertPositiveInt(src.getNumberElement())); if (src.hasType()) @@ -1181,7 +1181,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.BenefitBalanceComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.BenefitBalanceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept40_50.convertCodeableConcept(src.getCategory())); if (src.hasExcluded()) @@ -1205,7 +1205,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.BenefitBalanceComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.BenefitBalanceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept40_50.convertCodeableConcept(src.getCategory())); if (src.hasExcluded()) @@ -1229,7 +1229,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ExplanationOfBenefit.BenefitComponent tgt = new org.hl7.fhir.r5.model.ExplanationOfBenefit.BenefitComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasAllowed()) @@ -1243,7 +1243,7 @@ public class ExplanationOfBenefit40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ExplanationOfBenefit.BenefitComponent tgt = new org.hl7.fhir.r4.model.ExplanationOfBenefit.BenefitComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasAllowed()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/FamilyMemberHistory40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/FamilyMemberHistory40_50.java index 92af1985c..d29c1c198 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/FamilyMemberHistory40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/FamilyMemberHistory40_50.java @@ -182,7 +182,7 @@ public class FamilyMemberHistory40_50 { if (src == null) return null; org.hl7.fhir.r5.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.r5.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasOutcome()) @@ -199,7 +199,7 @@ public class FamilyMemberHistory40_50 { if (src == null) return null; org.hl7.fhir.r4.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent tgt = new org.hl7.fhir.r4.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasOutcome()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Goal40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Goal40_50.java index 51e720247..093e1109f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Goal40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Goal40_50.java @@ -199,7 +199,7 @@ public class Goal40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Goal.GoalTargetComponent tgt = new org.hl7.fhir.r5.model.Goal.GoalTargetComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMeasure()) tgt.setMeasure(CodeableConcept40_50.convertCodeableConcept(src.getMeasure())); if (src.hasDetail()) @@ -213,7 +213,7 @@ public class Goal40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Goal.GoalTargetComponent tgt = new org.hl7.fhir.r4.model.Goal.GoalTargetComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMeasure()) tgt.setMeasure(CodeableConcept40_50.convertCodeableConcept(src.getMeasure())); if (src.hasDetail()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/GraphDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/GraphDefinition40_50.java index 5d79d98e0..0eb97d3eb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/GraphDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/GraphDefinition40_50.java @@ -118,7 +118,7 @@ public class GraphDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.GraphDefinition.GraphDefinitionLinkComponent tgt = new org.hl7.fhir.r5.model.GraphDefinition.GraphDefinitionLinkComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasPath()) tgt.setPathElement(String40_50.convertString(src.getPathElement())); if (src.hasSliceName()) @@ -138,7 +138,7 @@ public class GraphDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkComponent tgt = new org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasPath()) tgt.setPathElement(String40_50.convertString(src.getPathElement())); if (src.hasSliceName()) @@ -158,7 +158,7 @@ public class GraphDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.GraphDefinition.GraphDefinitionLinkTargetComponent tgt = new org.hl7.fhir.r5.model.GraphDefinition.GraphDefinitionLinkTargetComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(Code40_50.convertResourceEnum(src.getTypeElement())); if (src.hasParams()) @@ -176,7 +176,7 @@ public class GraphDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkTargetComponent tgt = new org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkTargetComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(Code40_50.convertResourceEnum(src.getTypeElement())); if (src.hasParams()) @@ -194,7 +194,7 @@ public class GraphDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.GraphDefinition.GraphDefinitionLinkTargetCompartmentComponent tgt = new org.hl7.fhir.r5.model.GraphDefinition.GraphDefinitionLinkTargetCompartmentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasUse()) tgt.setUseElement(convertGraphCompartmentUse(src.getUseElement())); if (src.hasCode()) @@ -212,7 +212,7 @@ public class GraphDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkTargetCompartmentComponent tgt = new org.hl7.fhir.r4.model.GraphDefinition.GraphDefinitionLinkTargetCompartmentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasUse()) tgt.setUseElement(convertGraphCompartmentUse(src.getUseElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Group40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Group40_50.java index c96df0ba7..06c86a64d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Group40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Group40_50.java @@ -163,7 +163,7 @@ public class Group40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.r5.model.Group.GroupCharacteristicComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -179,7 +179,7 @@ public class Group40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -195,7 +195,7 @@ public class Group40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.r5.model.Group.GroupMemberComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasEntity()) tgt.setEntity(Reference40_50.convertReference(src.getEntity())); if (src.hasPeriod()) @@ -209,7 +209,7 @@ public class Group40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Group.GroupMemberComponent tgt = new org.hl7.fhir.r4.model.Group.GroupMemberComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasEntity()) tgt.setEntity(Reference40_50.convertReference(src.getEntity())); if (src.hasPeriod()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/HealthcareService40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/HealthcareService40_50.java index 03fc843c8..932049f99 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/HealthcareService40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/HealthcareService40_50.java @@ -154,7 +154,7 @@ public class HealthcareService40_50 { if (src == null) return null; org.hl7.fhir.r5.model.HealthcareService.HealthcareServiceEligibilityComponent tgt = new org.hl7.fhir.r5.model.HealthcareService.HealthcareServiceEligibilityComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasComment()) @@ -166,7 +166,7 @@ public class HealthcareService40_50 { if (src == null) return null; org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceEligibilityComponent tgt = new org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceEligibilityComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasComment()) @@ -178,7 +178,7 @@ public class HealthcareService40_50 { if (src == null) return null; org.hl7.fhir.r5.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.r5.model.HealthcareService.HealthcareServiceAvailableTimeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(HealthcareService40_50::convertDaysOfWeek) .collect(Collectors.toList())); @@ -195,7 +195,7 @@ public class HealthcareService40_50 { if (src == null) return null; org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent tgt = new org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceAvailableTimeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(HealthcareService40_50::convertDaysOfWeek) .collect(Collectors.toList())); @@ -280,7 +280,7 @@ public class HealthcareService40_50 { if (src == null) return null; org.hl7.fhir.r5.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.r5.model.HealthcareService.HealthcareServiceNotAvailableComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDescription()) tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); if (src.hasDuring()) @@ -292,7 +292,7 @@ public class HealthcareService40_50 { if (src == null) return null; org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent tgt = new org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceNotAvailableComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDescription()) tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); if (src.hasDuring()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImagingStudy40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImagingStudy40_50.java index a78dda90d..81ca8d681 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImagingStudy40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImagingStudy40_50.java @@ -203,7 +203,7 @@ public class ImagingStudy40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImagingStudy.ImagingStudySeriesComponent tgt = new org.hl7.fhir.r5.model.ImagingStudy.ImagingStudySeriesComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasUid()) tgt.setUidElement(Id40_50.convertId(src.getUidElement())); if (src.hasNumber()) @@ -233,7 +233,7 @@ public class ImagingStudy40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ImagingStudy.ImagingStudySeriesComponent tgt = new org.hl7.fhir.r4.model.ImagingStudy.ImagingStudySeriesComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasUid()) tgt.setUidElement(Id40_50.convertId(src.getUidElement())); if (src.hasNumber()) @@ -263,7 +263,7 @@ public class ImagingStudy40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImagingStudy.ImagingStudySeriesPerformerComponent tgt = new org.hl7.fhir.r5.model.ImagingStudy.ImagingStudySeriesPerformerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFunction()) tgt.setFunction(CodeableConcept40_50.convertCodeableConcept(src.getFunction())); if (src.hasActor()) @@ -275,7 +275,7 @@ public class ImagingStudy40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ImagingStudy.ImagingStudySeriesPerformerComponent tgt = new org.hl7.fhir.r4.model.ImagingStudy.ImagingStudySeriesPerformerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFunction()) tgt.setFunction(CodeableConcept40_50.convertCodeableConcept(src.getFunction())); if (src.hasActor()) @@ -287,7 +287,7 @@ public class ImagingStudy40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImagingStudy.ImagingStudySeriesInstanceComponent tgt = new org.hl7.fhir.r5.model.ImagingStudy.ImagingStudySeriesInstanceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasUid()) tgt.setUidElement(Id40_50.convertId(src.getUidElement())); if (src.hasSopClass()) @@ -303,7 +303,7 @@ public class ImagingStudy40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ImagingStudy.ImagingStudySeriesInstanceComponent tgt = new org.hl7.fhir.r4.model.ImagingStudy.ImagingStudySeriesInstanceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasUid()) tgt.setUidElement(Id40_50.convertId(src.getUidElement())); if (src.hasSopClass()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Immunization40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Immunization40_50.java index 651e21520..f75ac82d7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Immunization40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Immunization40_50.java @@ -217,7 +217,7 @@ public class Immunization40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Immunization.ImmunizationPerformerComponent tgt = new org.hl7.fhir.r5.model.Immunization.ImmunizationPerformerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFunction()) tgt.setFunction(CodeableConcept40_50.convertCodeableConcept(src.getFunction())); if (src.hasActor()) @@ -229,7 +229,7 @@ public class Immunization40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Immunization.ImmunizationPerformerComponent tgt = new org.hl7.fhir.r4.model.Immunization.ImmunizationPerformerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFunction()) tgt.setFunction(CodeableConcept40_50.convertCodeableConcept(src.getFunction())); if (src.hasActor()) @@ -241,7 +241,7 @@ public class Immunization40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent tgt = new org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDocumentType()) tgt.setDocumentTypeElement(String40_50.convertString(src.getDocumentTypeElement())); if (src.hasReference()) @@ -257,7 +257,7 @@ public class Immunization40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Immunization.ImmunizationEducationComponent tgt = new org.hl7.fhir.r4.model.Immunization.ImmunizationEducationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDocumentType()) tgt.setDocumentTypeElement(String40_50.convertString(src.getDocumentTypeElement())); if (src.hasReference()) @@ -273,7 +273,7 @@ public class Immunization40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Immunization.ImmunizationReactionComponent tgt = new org.hl7.fhir.r5.model.Immunization.ImmunizationReactionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDate()) tgt.setDateElement(DateTime40_50.convertDateTime(src.getDateElement())); if (src.hasDetail()) @@ -287,7 +287,7 @@ public class Immunization40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Immunization.ImmunizationReactionComponent tgt = new org.hl7.fhir.r4.model.Immunization.ImmunizationReactionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDate()) tgt.setDateElement(DateTime40_50.convertDateTime(src.getDateElement())); if (src.hasManifestation()) @@ -301,7 +301,7 @@ public class Immunization40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Immunization.ImmunizationProtocolAppliedComponent tgt = new org.hl7.fhir.r5.model.Immunization.ImmunizationProtocolAppliedComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSeries()) tgt.setSeriesElement(String40_50.convertString(src.getSeriesElement())); if (src.hasAuthority()) @@ -319,7 +319,7 @@ public class Immunization40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Immunization.ImmunizationProtocolAppliedComponent tgt = new org.hl7.fhir.r4.model.Immunization.ImmunizationProtocolAppliedComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSeries()) tgt.setSeriesElement(String40_50.convertString(src.getSeriesElement())); if (src.hasAuthority()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImmunizationRecommendation40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImmunizationRecommendation40_50.java index c553a8d41..f163f54dc 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImmunizationRecommendation40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImmunizationRecommendation40_50.java @@ -79,7 +79,7 @@ public class ImmunizationRecommendation40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent tgt = new org.hl7.fhir.r5.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getVaccineCode()) tgt.addVaccineCode(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasTargetDisease()) @@ -111,7 +111,7 @@ public class ImmunizationRecommendation40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent tgt = new org.hl7.fhir.r4.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getVaccineCode()) tgt.addVaccineCode(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasTargetDisease()) @@ -143,7 +143,7 @@ public class ImmunizationRecommendation40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent tgt = new org.hl7.fhir.r5.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -155,7 +155,7 @@ public class ImmunizationRecommendation40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent tgt = new org.hl7.fhir.r4.model.ImmunizationRecommendation.ImmunizationRecommendationRecommendationDateCriterionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImplementationGuide40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImplementationGuide40_50.java index ca407bd21..180b4904f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImplementationGuide40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImplementationGuide40_50.java @@ -2248,7 +2248,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDependsOnComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDependsOnComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasUri()) tgt.setUriElement(Canonical40_50.convertCanonical(src.getUriElement())); if (src.hasPackageId()) @@ -2262,7 +2262,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasUri()) tgt.setUriElement(Canonical40_50.convertCanonical(src.getUriElement())); if (src.hasPackageId()) @@ -2276,7 +2276,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideGlobalComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(Code40_50.convertResourceEnum(src.getTypeElement())); if (src.hasProfile()) @@ -2288,7 +2288,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(Code40_50.convertResourceEnum(src.getTypeElement())); if (src.hasProfile()) @@ -2300,7 +2300,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent t : src.getGrouping()) tgt.addGrouping(convertImplementationGuideDefinitionGroupingComponent(t)); for (org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent t : src.getResource()) @@ -2324,7 +2324,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent t : src.getGrouping()) tgt.addGrouping(convertImplementationGuideDefinitionGroupingComponent(t)); for (org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent t : src.getResource()) @@ -2352,7 +2352,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasDescription()) @@ -2364,7 +2364,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionGroupingComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasDescription()) @@ -2376,7 +2376,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasReference()) tgt.setReference(Reference40_50.convertReference(src.getReference())); tgt.setFhirVersion(src.getFhirVersion().stream() @@ -2397,7 +2397,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasReference()) tgt.setReference(Reference40_50.convertReference(src.getReference())); tgt.setFhirVersion(src.getFhirVersion().stream() @@ -2418,7 +2418,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setName(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getName())); if (src.hasTitle()) @@ -2434,7 +2434,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionPageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setName(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getName())); if (src.hasTitle()) @@ -2500,7 +2500,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionParameterComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionParameterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(String40_50.convertString(src.getCodeElement())); if (src.hasValue()) @@ -2512,7 +2512,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionParameterComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionParameterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(String40_50.convertString(src.getCodeElement())); if (src.hasValue()) @@ -2582,7 +2582,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionTemplateComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDefinitionTemplateComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); if (src.hasSource()) @@ -2596,7 +2596,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionTemplateComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionTemplateComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); if (src.hasSource()) @@ -2610,7 +2610,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideManifestComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideManifestComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRendering()) tgt.setRenderingElement(Url40_50.convertUrl(src.getRenderingElement())); for (org.hl7.fhir.r4.model.ImplementationGuide.ManifestResourceComponent t : src.getResource()) @@ -2626,7 +2626,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideManifestComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideManifestComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRendering()) tgt.setRenderingElement(Url40_50.convertUrl(src.getRenderingElement())); for (org.hl7.fhir.r5.model.ImplementationGuide.ManifestResourceComponent t : src.getResource()) @@ -2642,7 +2642,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImplementationGuide.ManifestResourceComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ManifestResourceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasReference()) tgt.setReference(Reference40_50.convertReference(src.getReference())); if (src.hasExample()) @@ -2656,7 +2656,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ImplementationGuide.ManifestResourceComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ManifestResourceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasReference()) tgt.setReference(Reference40_50.convertReference(src.getReference())); if (src.hasExample()) @@ -2670,7 +2670,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ImplementationGuide.ManifestPageComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ManifestPageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasTitle()) @@ -2683,7 +2683,7 @@ public class ImplementationGuide40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ImplementationGuide.ManifestPageComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ManifestPageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasTitle()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/InsurancePlan40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/InsurancePlan40_50.java index 77b2d54c6..6202df4be 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/InsurancePlan40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/InsurancePlan40_50.java @@ -141,7 +141,7 @@ public class InsurancePlan40_50 { if (src == null) return null; org.hl7.fhir.r5.model.InsurancePlan.InsurancePlanCoverageComponent tgt = new org.hl7.fhir.r5.model.InsurancePlan.InsurancePlanCoverageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); for (org.hl7.fhir.r4.model.Reference t : src.getNetwork()) tgt.addNetwork(Reference40_50.convertReference(t)); @@ -154,7 +154,7 @@ public class InsurancePlan40_50 { if (src == null) return null; org.hl7.fhir.r4.model.InsurancePlan.InsurancePlanCoverageComponent tgt = new org.hl7.fhir.r4.model.InsurancePlan.InsurancePlanCoverageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); for (org.hl7.fhir.r5.model.Reference t : src.getNetwork()) tgt.addNetwork(Reference40_50.convertReference(t)); @@ -167,7 +167,7 @@ public class InsurancePlan40_50 { if (src == null) return null; org.hl7.fhir.r5.model.InsurancePlan.CoverageBenefitComponent tgt = new org.hl7.fhir.r5.model.InsurancePlan.CoverageBenefitComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasRequirement()) @@ -181,7 +181,7 @@ public class InsurancePlan40_50 { if (src == null) return null; org.hl7.fhir.r4.model.InsurancePlan.CoverageBenefitComponent tgt = new org.hl7.fhir.r4.model.InsurancePlan.CoverageBenefitComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasRequirement()) @@ -195,7 +195,7 @@ public class InsurancePlan40_50 { if (src == null) return null; org.hl7.fhir.r5.model.InsurancePlan.CoverageBenefitLimitComponent tgt = new org.hl7.fhir.r5.model.InsurancePlan.CoverageBenefitLimitComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasValue()) tgt.setValue(Quantity40_50.convertQuantity(src.getValue())); if (src.hasCode()) @@ -207,7 +207,7 @@ public class InsurancePlan40_50 { if (src == null) return null; org.hl7.fhir.r4.model.InsurancePlan.CoverageBenefitLimitComponent tgt = new org.hl7.fhir.r4.model.InsurancePlan.CoverageBenefitLimitComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasValue()) tgt.setValue(Quantity40_50.convertQuantity(src.getValue())); if (src.hasCode()) @@ -219,7 +219,7 @@ public class InsurancePlan40_50 { if (src == null) return null; org.hl7.fhir.r5.model.InsurancePlan.InsurancePlanPlanComponent tgt = new org.hl7.fhir.r5.model.InsurancePlan.InsurancePlanPlanComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier40_50.convertIdentifier(t)); if (src.hasType()) @@ -238,7 +238,7 @@ public class InsurancePlan40_50 { if (src == null) return null; org.hl7.fhir.r4.model.InsurancePlan.InsurancePlanPlanComponent tgt = new org.hl7.fhir.r4.model.InsurancePlan.InsurancePlanPlanComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier40_50.convertIdentifier(t)); if (src.hasType()) @@ -257,7 +257,7 @@ public class InsurancePlan40_50 { if (src == null) return null; org.hl7.fhir.r5.model.InsurancePlan.InsurancePlanPlanGeneralCostComponent tgt = new org.hl7.fhir.r5.model.InsurancePlan.InsurancePlanPlanGeneralCostComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasGroupSize()) @@ -273,7 +273,7 @@ public class InsurancePlan40_50 { if (src == null) return null; org.hl7.fhir.r4.model.InsurancePlan.InsurancePlanPlanGeneralCostComponent tgt = new org.hl7.fhir.r4.model.InsurancePlan.InsurancePlanPlanGeneralCostComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasGroupSize()) @@ -289,7 +289,7 @@ public class InsurancePlan40_50 { if (src == null) return null; org.hl7.fhir.r5.model.InsurancePlan.InsurancePlanPlanSpecificCostComponent tgt = new org.hl7.fhir.r5.model.InsurancePlan.InsurancePlanPlanSpecificCostComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept40_50.convertCodeableConcept(src.getCategory())); for (org.hl7.fhir.r4.model.InsurancePlan.PlanBenefitComponent t : src.getBenefit()) @@ -301,7 +301,7 @@ public class InsurancePlan40_50 { if (src == null) return null; org.hl7.fhir.r4.model.InsurancePlan.InsurancePlanPlanSpecificCostComponent tgt = new org.hl7.fhir.r4.model.InsurancePlan.InsurancePlanPlanSpecificCostComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept40_50.convertCodeableConcept(src.getCategory())); for (org.hl7.fhir.r5.model.InsurancePlan.PlanBenefitComponent t : src.getBenefit()) @@ -313,7 +313,7 @@ public class InsurancePlan40_50 { if (src == null) return null; org.hl7.fhir.r5.model.InsurancePlan.PlanBenefitComponent tgt = new org.hl7.fhir.r5.model.InsurancePlan.PlanBenefitComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); for (org.hl7.fhir.r4.model.InsurancePlan.PlanBenefitCostComponent t : src.getCost()) @@ -325,7 +325,7 @@ public class InsurancePlan40_50 { if (src == null) return null; org.hl7.fhir.r4.model.InsurancePlan.PlanBenefitComponent tgt = new org.hl7.fhir.r4.model.InsurancePlan.PlanBenefitComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); for (org.hl7.fhir.r5.model.InsurancePlan.PlanBenefitCostComponent t : src.getCost()) @@ -337,7 +337,7 @@ public class InsurancePlan40_50 { if (src == null) return null; org.hl7.fhir.r5.model.InsurancePlan.PlanBenefitCostComponent tgt = new org.hl7.fhir.r5.model.InsurancePlan.PlanBenefitCostComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasApplicability()) @@ -353,7 +353,7 @@ public class InsurancePlan40_50 { if (src == null) return null; org.hl7.fhir.r4.model.InsurancePlan.PlanBenefitCostComponent tgt = new org.hl7.fhir.r4.model.InsurancePlan.PlanBenefitCostComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasApplicability()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Invoice40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Invoice40_50.java index 2161f6cab..e8924d500 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Invoice40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Invoice40_50.java @@ -178,7 +178,7 @@ public class Invoice40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Invoice.InvoiceParticipantComponent tgt = new org.hl7.fhir.r5.model.Invoice.InvoiceParticipantComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRole()) tgt.setRole(CodeableConcept40_50.convertCodeableConcept(src.getRole())); if (src.hasActor()) @@ -190,7 +190,7 @@ public class Invoice40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Invoice.InvoiceParticipantComponent tgt = new org.hl7.fhir.r4.model.Invoice.InvoiceParticipantComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRole()) tgt.setRole(CodeableConcept40_50.convertCodeableConcept(src.getRole())); if (src.hasActor()) @@ -202,7 +202,7 @@ public class Invoice40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Invoice.InvoiceLineItemComponent tgt = new org.hl7.fhir.r5.model.Invoice.InvoiceLineItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasChargeItem()) @@ -216,7 +216,7 @@ public class Invoice40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Invoice.InvoiceLineItemComponent tgt = new org.hl7.fhir.r4.model.Invoice.InvoiceLineItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSequence()) tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasChargeItem()) @@ -230,7 +230,7 @@ public class Invoice40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent tgt = new org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertInvoicePriceComponentType(src.getTypeElement())); if (src.hasCode()) @@ -246,7 +246,7 @@ public class Invoice40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Invoice.InvoiceLineItemPriceComponentComponent tgt = new org.hl7.fhir.r4.model.Invoice.InvoiceLineItemPriceComponentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertInvoicePriceComponentType(src.getTypeElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Linkage40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Linkage40_50.java index d9aad2585..92bfc6a1d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Linkage40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Linkage40_50.java @@ -68,7 +68,7 @@ public class Linkage40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Linkage.LinkageItemComponent tgt = new org.hl7.fhir.r5.model.Linkage.LinkageItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertLinkageType(src.getTypeElement())); if (src.hasResource()) @@ -80,7 +80,7 @@ public class Linkage40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Linkage.LinkageItemComponent tgt = new org.hl7.fhir.r4.model.Linkage.LinkageItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertLinkageType(src.getTypeElement())); if (src.hasResource()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ListResource40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ListResource40_50.java index 670b41590..1eff6d5ee 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ListResource40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ListResource40_50.java @@ -199,7 +199,7 @@ public class ListResource40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ListResource.ListResourceEntryComponent tgt = new org.hl7.fhir.r5.model.ListResource.ListResourceEntryComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFlag()) tgt.setFlag(CodeableConcept40_50.convertCodeableConcept(src.getFlag())); if (src.hasDeleted()) @@ -215,7 +215,7 @@ public class ListResource40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ListResource.ListEntryComponent tgt = new org.hl7.fhir.r4.model.ListResource.ListEntryComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFlag()) tgt.setFlag(CodeableConcept40_50.convertCodeableConcept(src.getFlag())); if (src.hasDeleted()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Location40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Location40_50.java index ff94299ab..e459dd678 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Location40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Location40_50.java @@ -208,7 +208,7 @@ public class Location40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.r5.model.Location.LocationPositionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLongitude()) tgt.setLongitudeElement(Decimal40_50.convertDecimal(src.getLongitudeElement())); if (src.hasLatitude()) @@ -222,7 +222,7 @@ public class Location40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Location.LocationPositionComponent tgt = new org.hl7.fhir.r4.model.Location.LocationPositionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLongitude()) tgt.setLongitudeElement(Decimal40_50.convertDecimal(src.getLongitudeElement())); if (src.hasLatitude()) @@ -236,7 +236,7 @@ public class Location40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Location.LocationHoursOfOperationComponent tgt = new org.hl7.fhir.r5.model.Location.LocationHoursOfOperationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(Location40_50::convertDaysOfWeek) .collect(Collectors.toList())); @@ -253,7 +253,7 @@ public class Location40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Location.LocationHoursOfOperationComponent tgt = new org.hl7.fhir.r4.model.Location.LocationHoursOfOperationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(Location40_50::convertDaysOfWeek) .collect(Collectors.toList())); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Measure40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Measure40_50.java index 73e58119c..9cea836d4 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Measure40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Measure40_50.java @@ -226,7 +226,7 @@ public class Measure40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Measure.MeasureGroupComponent tgt = new org.hl7.fhir.r5.model.Measure.MeasureGroupComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasDescription()) @@ -242,7 +242,7 @@ public class Measure40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Measure.MeasureGroupComponent tgt = new org.hl7.fhir.r4.model.Measure.MeasureGroupComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasDescription()) @@ -258,7 +258,7 @@ public class Measure40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Measure.MeasureGroupPopulationComponent tgt = new org.hl7.fhir.r5.model.Measure.MeasureGroupPopulationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasDescription()) @@ -272,7 +272,7 @@ public class Measure40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Measure.MeasureGroupPopulationComponent tgt = new org.hl7.fhir.r4.model.Measure.MeasureGroupPopulationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasDescription()) @@ -286,7 +286,7 @@ public class Measure40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Measure.MeasureGroupStratifierComponent tgt = new org.hl7.fhir.r5.model.Measure.MeasureGroupStratifierComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasDescription()) @@ -302,7 +302,7 @@ public class Measure40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Measure.MeasureGroupStratifierComponent tgt = new org.hl7.fhir.r4.model.Measure.MeasureGroupStratifierComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasDescription()) @@ -318,7 +318,7 @@ public class Measure40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Measure.MeasureGroupStratifierComponentComponent tgt = new org.hl7.fhir.r5.model.Measure.MeasureGroupStratifierComponentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasDescription()) @@ -332,7 +332,7 @@ public class Measure40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Measure.MeasureGroupStratifierComponentComponent tgt = new org.hl7.fhir.r4.model.Measure.MeasureGroupStratifierComponentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasDescription()) @@ -346,7 +346,7 @@ public class Measure40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Measure.MeasureSupplementalDataComponent tgt = new org.hl7.fhir.r5.model.Measure.MeasureSupplementalDataComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getUsage()) @@ -362,7 +362,7 @@ public class Measure40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Measure.MeasureSupplementalDataComponent tgt = new org.hl7.fhir.r4.model.Measure.MeasureSupplementalDataComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getUsage()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MeasureReport40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MeasureReport40_50.java index c8960c961..a612b570c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MeasureReport40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MeasureReport40_50.java @@ -200,7 +200,7 @@ public class MeasureReport40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupComponent tgt = new org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); for (org.hl7.fhir.r4.model.MeasureReport.MeasureReportGroupPopulationComponent t : src.getPopulation()) @@ -216,7 +216,7 @@ public class MeasureReport40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MeasureReport.MeasureReportGroupComponent tgt = new org.hl7.fhir.r4.model.MeasureReport.MeasureReportGroupComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); for (org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupPopulationComponent t : src.getPopulation()) @@ -232,7 +232,7 @@ public class MeasureReport40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupPopulationComponent tgt = new org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupPopulationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasCount()) @@ -246,7 +246,7 @@ public class MeasureReport40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MeasureReport.MeasureReportGroupPopulationComponent tgt = new org.hl7.fhir.r4.model.MeasureReport.MeasureReportGroupPopulationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasCount()) @@ -260,7 +260,7 @@ public class MeasureReport40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupStratifierComponent tgt = new org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupStratifierComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode()) tgt.addCode(CodeableConcept40_50.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.MeasureReport.StratifierGroupComponent t : src.getStratum()) @@ -272,7 +272,7 @@ public class MeasureReport40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MeasureReport.MeasureReportGroupStratifierComponent tgt = new org.hl7.fhir.r4.model.MeasureReport.MeasureReportGroupStratifierComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCode()) tgt.addCode(CodeableConcept40_50.convertCodeableConcept(t)); for (org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponent t : src.getStratum()) @@ -284,7 +284,7 @@ public class MeasureReport40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponent tgt = new org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasValue()) tgt.setValue(CodeableConcept40_50.convertCodeableConcept(src.getValue())); for (org.hl7.fhir.r4.model.MeasureReport.StratifierGroupComponentComponent t : src.getComponent()) @@ -300,7 +300,7 @@ public class MeasureReport40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MeasureReport.StratifierGroupComponent tgt = new org.hl7.fhir.r4.model.MeasureReport.StratifierGroupComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasValueCodeableConcept()) tgt.setValue(CodeableConcept40_50.convertCodeableConcept(src.getValueCodeableConcept())); for (org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponentComponent t : src.getComponent()) @@ -316,7 +316,7 @@ public class MeasureReport40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponentComponent tgt = new org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -328,7 +328,7 @@ public class MeasureReport40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MeasureReport.StratifierGroupComponentComponent tgt = new org.hl7.fhir.r4.model.MeasureReport.StratifierGroupComponentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasValueCodeableConcept()) @@ -340,7 +340,7 @@ public class MeasureReport40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MeasureReport.StratifierGroupPopulationComponent tgt = new org.hl7.fhir.r5.model.MeasureReport.StratifierGroupPopulationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasCount()) @@ -354,7 +354,7 @@ public class MeasureReport40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MeasureReport.StratifierGroupPopulationComponent tgt = new org.hl7.fhir.r4.model.MeasureReport.StratifierGroupPopulationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasCount()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Medication40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Medication40_50.java index 8109ef3f7..309153056 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Medication40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Medication40_50.java @@ -137,7 +137,7 @@ public class Medication40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Medication.MedicationIngredientComponent tgt = new org.hl7.fhir.r5.model.Medication.MedicationIngredientComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasItemCodeableConcept()) tgt.getItem().setConcept(CodeableConcept40_50.convertCodeableConcept(src.getItemCodeableConcept())); if (src.hasItemReference()) @@ -153,7 +153,7 @@ public class Medication40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Medication.MedicationIngredientComponent tgt = new org.hl7.fhir.r4.model.Medication.MedicationIngredientComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.getItem().hasConcept()) tgt.setItem(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getItem().getConcept())); if (src.getItem().hasReference()) @@ -169,7 +169,7 @@ public class Medication40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Medication.MedicationBatchComponent tgt = new org.hl7.fhir.r5.model.Medication.MedicationBatchComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLotNumber()) tgt.setLotNumberElement(String40_50.convertString(src.getLotNumberElement())); if (src.hasExpirationDate()) @@ -181,7 +181,7 @@ public class Medication40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Medication.MedicationBatchComponent tgt = new org.hl7.fhir.r4.model.Medication.MedicationBatchComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLotNumber()) tgt.setLotNumberElement(String40_50.convertString(src.getLotNumberElement())); if (src.hasExpirationDate()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationAdministration40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationAdministration40_50.java index 215e5bc97..00ebfc315 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationAdministration40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationAdministration40_50.java @@ -206,7 +206,7 @@ public class MedicationAdministration40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationAdministration.MedicationAdministrationPerformerComponent tgt = new org.hl7.fhir.r5.model.MedicationAdministration.MedicationAdministrationPerformerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFunction()) tgt.setFunction(CodeableConcept40_50.convertCodeableConcept(src.getFunction())); if (src.hasActor()) @@ -218,7 +218,7 @@ public class MedicationAdministration40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationAdministration.MedicationAdministrationPerformerComponent tgt = new org.hl7.fhir.r4.model.MedicationAdministration.MedicationAdministrationPerformerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFunction()) tgt.setFunction(CodeableConcept40_50.convertCodeableConcept(src.getFunction())); if (src.hasActor()) @@ -230,7 +230,7 @@ public class MedicationAdministration40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationAdministration.MedicationAdministrationDosageComponent tgt = new org.hl7.fhir.r5.model.MedicationAdministration.MedicationAdministrationDosageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasText()) tgt.setTextElement(String40_50.convertString(src.getTextElement())); if (src.hasSite()) @@ -250,7 +250,7 @@ public class MedicationAdministration40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationAdministration.MedicationAdministrationDosageComponent tgt = new org.hl7.fhir.r4.model.MedicationAdministration.MedicationAdministrationDosageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasText()) tgt.setTextElement(String40_50.convertString(src.getTextElement())); if (src.hasSite()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationDispense40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationDispense40_50.java index da7d22f5d..9b801d847 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationDispense40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationDispense40_50.java @@ -241,7 +241,7 @@ public class MedicationDispense40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationDispense.MedicationDispensePerformerComponent tgt = new org.hl7.fhir.r5.model.MedicationDispense.MedicationDispensePerformerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFunction()) tgt.setFunction(CodeableConcept40_50.convertCodeableConcept(src.getFunction())); if (src.hasActor()) @@ -253,7 +253,7 @@ public class MedicationDispense40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationDispense.MedicationDispensePerformerComponent tgt = new org.hl7.fhir.r4.model.MedicationDispense.MedicationDispensePerformerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFunction()) tgt.setFunction(CodeableConcept40_50.convertCodeableConcept(src.getFunction())); if (src.hasActor()) @@ -265,7 +265,7 @@ public class MedicationDispense40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseSubstitutionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasWasSubstituted()) tgt.setWasSubstitutedElement(Boolean40_50.convertBoolean(src.getWasSubstitutedElement())); if (src.hasType()) @@ -281,7 +281,7 @@ public class MedicationDispense40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.r4.model.MedicationDispense.MedicationDispenseSubstitutionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasWasSubstituted()) tgt.setWasSubstitutedElement(Boolean40_50.convertBoolean(src.getWasSubstitutedElement())); if (src.hasType()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationKnowledge40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationKnowledge40_50.java index d13782691..043cab61c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationKnowledge40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationKnowledge40_50.java @@ -194,7 +194,7 @@ public class MedicationKnowledge40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeRelatedMedicationKnowledgeComponent tgt = new org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeRelatedMedicationKnowledgeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); for (org.hl7.fhir.r4.model.Reference t : src.getReference()) tgt.addReference(Reference40_50.convertReference(t)); @@ -205,7 +205,7 @@ public class MedicationKnowledge40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeRelatedMedicationKnowledgeComponent tgt = new org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeRelatedMedicationKnowledgeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); for (org.hl7.fhir.r5.model.Reference t : src.getReference()) tgt.addReference(Reference40_50.convertReference(t)); @@ -216,7 +216,7 @@ public class MedicationKnowledge40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeMonographComponent tgt = new org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeMonographComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasSource()) @@ -228,7 +228,7 @@ public class MedicationKnowledge40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeMonographComponent tgt = new org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeMonographComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasSource()) @@ -272,7 +272,7 @@ public class MedicationKnowledge40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeCostComponent tgt = new org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeCostComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasSource()) @@ -286,7 +286,7 @@ public class MedicationKnowledge40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeCostComponent tgt = new org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeCostComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasSource()) @@ -300,7 +300,7 @@ public class MedicationKnowledge40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeMonitoringProgramComponent tgt = new org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeMonitoringProgramComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasName()) @@ -312,7 +312,7 @@ public class MedicationKnowledge40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeMonitoringProgramComponent tgt = new org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeMonitoringProgramComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasName()) @@ -399,7 +399,7 @@ public class MedicationKnowledge40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeMedicineClassificationComponent tgt = new org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeMedicineClassificationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getClassification()) @@ -411,7 +411,7 @@ public class MedicationKnowledge40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeMedicineClassificationComponent tgt = new org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeMedicineClassificationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getClassification()) @@ -423,7 +423,7 @@ public class MedicationKnowledge40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgePackagingComponent tgt = new org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgePackagingComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); // if (src.hasType()) // tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); // if (src.hasQuantity()) @@ -435,7 +435,7 @@ public class MedicationKnowledge40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgePackagingComponent tgt = new org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgePackagingComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); // if (src.hasType()) // tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); // if (src.hasQuantity()) @@ -471,7 +471,7 @@ public class MedicationKnowledge40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeRegulatoryComponent tgt = new org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeRegulatoryComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRegulatoryAuthority()) tgt.setRegulatoryAuthority(Reference40_50.convertReference(src.getRegulatoryAuthority())); for (org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeRegulatorySubstitutionComponent t : src.getSubstitution()) @@ -487,7 +487,7 @@ public class MedicationKnowledge40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeRegulatoryComponent tgt = new org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeRegulatoryComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRegulatoryAuthority()) tgt.setRegulatoryAuthority(Reference40_50.convertReference(src.getRegulatoryAuthority())); for (org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeRegulatorySubstitutionComponent t : src.getSubstitution()) @@ -503,7 +503,7 @@ public class MedicationKnowledge40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeRegulatorySubstitutionComponent tgt = new org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeRegulatorySubstitutionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasAllowed()) @@ -515,7 +515,7 @@ public class MedicationKnowledge40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeRegulatorySubstitutionComponent tgt = new org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeRegulatorySubstitutionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasAllowed()) @@ -547,7 +547,7 @@ public class MedicationKnowledge40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeRegulatoryMaxDispenseComponent tgt = new org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeRegulatoryMaxDispenseComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasQuantity()) tgt.setQuantity(SimpleQuantity40_50.convertSimpleQuantity(src.getQuantity())); if (src.hasPeriod()) @@ -559,7 +559,7 @@ public class MedicationKnowledge40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeRegulatoryMaxDispenseComponent tgt = new org.hl7.fhir.r4.model.MedicationKnowledge.MedicationKnowledgeRegulatoryMaxDispenseComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasQuantity()) tgt.setQuantity(SimpleQuantity40_50.convertSimpleQuantity(src.getQuantity())); if (src.hasPeriod()) @@ -593,4 +593,4 @@ public class MedicationKnowledge40_50 { // tgt.setHalfLifePeriod(convertDuration(src.getHalfLifePeriod())); // return tgt; // } -} \ No newline at end of file +} diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationRequest40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationRequest40_50.java index 2d553c35e..42596e62d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationRequest40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationRequest40_50.java @@ -388,7 +388,7 @@ public class MedicationRequest40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestDispenseRequestComponent tgt = new org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestDispenseRequestComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasInitialFill()) tgt.setInitialFill(convertMedicationRequestDispenseRequestInitialFillComponent(src.getInitialFill())); if (src.hasDispenseInterval()) @@ -410,7 +410,7 @@ public class MedicationRequest40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestDispenseRequestComponent tgt = new org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestDispenseRequestComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasInitialFill()) tgt.setInitialFill(convertMedicationRequestDispenseRequestInitialFillComponent(src.getInitialFill())); if (src.hasDispenseInterval()) @@ -432,7 +432,7 @@ public class MedicationRequest40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestDispenseRequestInitialFillComponent tgt = new org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestDispenseRequestInitialFillComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasQuantity()) tgt.setQuantity(SimpleQuantity40_50.convertSimpleQuantity(src.getQuantity())); if (src.hasDuration()) @@ -444,7 +444,7 @@ public class MedicationRequest40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestDispenseRequestInitialFillComponent tgt = new org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestDispenseRequestInitialFillComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasQuantity()) tgt.setQuantity(SimpleQuantity40_50.convertSimpleQuantity(src.getQuantity())); if (src.hasDuration()) @@ -456,7 +456,7 @@ public class MedicationRequest40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestSubstitutionComponent tgt = new org.hl7.fhir.r5.model.MedicationRequest.MedicationRequestSubstitutionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasAllowed()) tgt.setAllowed(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getAllowed())); if (src.hasReason()) @@ -468,7 +468,7 @@ public class MedicationRequest40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestSubstitutionComponent tgt = new org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestSubstitutionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasAllowed()) tgt.setAllowed(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getAllowed())); if (src.hasReason()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MessageDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MessageDefinition40_50.java index e3a86db7e..1c1300269 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MessageDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MessageDefinition40_50.java @@ -248,7 +248,7 @@ public class MessageDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MessageDefinition.MessageDefinitionFocusComponent tgt = new org.hl7.fhir.r5.model.MessageDefinition.MessageDefinitionFocusComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertResourceEnum(src.getCodeElement())); if (src.hasProfile()) @@ -264,7 +264,7 @@ public class MessageDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MessageDefinition.MessageDefinitionFocusComponent tgt = new org.hl7.fhir.r4.model.MessageDefinition.MessageDefinitionFocusComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertResourceEnum(src.getCodeElement())); if (src.hasProfile()) @@ -280,7 +280,7 @@ public class MessageDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MessageDefinition.MessageDefinitionAllowedResponseComponent tgt = new org.hl7.fhir.r5.model.MessageDefinition.MessageDefinitionAllowedResponseComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMessage()) tgt.setMessageElement(Canonical40_50.convertCanonical(src.getMessageElement())); if (src.hasSituation()) @@ -292,7 +292,7 @@ public class MessageDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MessageDefinition.MessageDefinitionAllowedResponseComponent tgt = new org.hl7.fhir.r4.model.MessageDefinition.MessageDefinitionAllowedResponseComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMessage()) tgt.setMessageElement(Canonical40_50.convertCanonical(src.getMessageElement())); if (src.hasSituation()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MessageHeader40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MessageHeader40_50.java index 57bf492fe..ea5d248cf 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MessageHeader40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MessageHeader40_50.java @@ -103,7 +103,7 @@ public class MessageHeader40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.r5.model.MessageHeader.MessageDestinationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasTarget()) @@ -119,7 +119,7 @@ public class MessageHeader40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.r4.model.MessageHeader.MessageDestinationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasTarget()) @@ -135,7 +135,7 @@ public class MessageHeader40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.r5.model.MessageHeader.MessageSourceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasSoftware()) @@ -153,7 +153,7 @@ public class MessageHeader40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MessageHeader.MessageSourceComponent tgt = new org.hl7.fhir.r4.model.MessageHeader.MessageSourceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasSoftware()) @@ -171,7 +171,7 @@ public class MessageHeader40_50 { if (src == null) return null; org.hl7.fhir.r5.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.r5.model.MessageHeader.MessageHeaderResponseComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasIdentifier()) tgt.setIdentifier(new org.hl7.fhir.r5.model.Identifier().setValue(src.getIdentifier())); if (src.hasCode()) @@ -185,7 +185,7 @@ public class MessageHeader40_50 { if (src == null) return null; org.hl7.fhir.r4.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.r4.model.MessageHeader.MessageHeaderResponseComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasIdentifier()) tgt.setIdentifierElement(new org.hl7.fhir.r4.model.IdType(src.getIdentifier().getValue())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/NamingSystem40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/NamingSystem40_50.java index b9b97620e..92a0480d3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/NamingSystem40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/NamingSystem40_50.java @@ -158,7 +158,7 @@ public class NamingSystem40_50 { if (src == null) return null; org.hl7.fhir.r5.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.r5.model.NamingSystem.NamingSystemUniqueIdComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement())); if (src.hasValue()) @@ -176,7 +176,7 @@ public class NamingSystem40_50 { if (src == null) return null; org.hl7.fhir.r4.model.NamingSystem.NamingSystemUniqueIdComponent tgt = new org.hl7.fhir.r4.model.NamingSystem.NamingSystemUniqueIdComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertNamingSystemIdentifierType(src.getTypeElement())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/NutritionOrder40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/NutritionOrder40_50.java index ea009e19e..530440b83 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/NutritionOrder40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/NutritionOrder40_50.java @@ -272,7 +272,7 @@ public class NutritionOrder40_50 { if (src == null) return null; org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderOralDietComponent tgt = new org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderOralDietComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept40_50.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.Timing t : src.getSchedule()) tgt.addSchedule(Timing40_50.convertTiming(t)); @@ -291,7 +291,7 @@ public class NutritionOrder40_50 { if (src == null) return null; org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderOralDietComponent tgt = new org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderOralDietComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept40_50.convertCodeableConcept(t)); for (org.hl7.fhir.r5.model.Timing t : src.getSchedule()) tgt.addSchedule(Timing40_50.convertTiming(t)); @@ -310,7 +310,7 @@ public class NutritionOrder40_50 { if (src == null) return null; org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderOralDietNutrientComponent tgt = new org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderOralDietNutrientComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasModifier()) tgt.setModifier(CodeableConcept40_50.convertCodeableConcept(src.getModifier())); if (src.hasAmount()) @@ -322,7 +322,7 @@ public class NutritionOrder40_50 { if (src == null) return null; org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderOralDietNutrientComponent tgt = new org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderOralDietNutrientComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasModifier()) tgt.setModifier(CodeableConcept40_50.convertCodeableConcept(src.getModifier())); if (src.hasAmount()) @@ -334,7 +334,7 @@ public class NutritionOrder40_50 { if (src == null) return null; org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderOralDietTextureComponent tgt = new org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderOralDietTextureComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasModifier()) tgt.setModifier(CodeableConcept40_50.convertCodeableConcept(src.getModifier())); if (src.hasFoodType()) @@ -346,7 +346,7 @@ public class NutritionOrder40_50 { if (src == null) return null; org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderOralDietTextureComponent tgt = new org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderOralDietTextureComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasModifier()) tgt.setModifier(CodeableConcept40_50.convertCodeableConcept(src.getModifier())); if (src.hasFoodType()) @@ -358,7 +358,7 @@ public class NutritionOrder40_50 { if (src == null) return null; org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderSupplementComponent tgt = new org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderSupplementComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasProductName()) @@ -375,7 +375,7 @@ public class NutritionOrder40_50 { if (src == null) return null; org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderSupplementComponent tgt = new org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderSupplementComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasProductName()) @@ -392,7 +392,7 @@ public class NutritionOrder40_50 { if (src == null) return null; org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderEnteralFormulaComponent tgt = new org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderEnteralFormulaComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasBaseFormulaType()) tgt.setBaseFormulaType(CodeableConcept40_50.convertCodeableConcept(src.getBaseFormulaType())); if (src.hasBaseFormulaProductName()) @@ -418,7 +418,7 @@ public class NutritionOrder40_50 { if (src == null) return null; org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderEnteralFormulaComponent tgt = new org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderEnteralFormulaComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasBaseFormulaType()) tgt.setBaseFormulaType(CodeableConcept40_50.convertCodeableConcept(src.getBaseFormulaType())); if (src.hasBaseFormulaProductName()) @@ -444,7 +444,7 @@ public class NutritionOrder40_50 { if (src == null) return null; org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderEnteralFormulaAdministrationComponent tgt = new org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderEnteralFormulaAdministrationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSchedule()) tgt.setSchedule(Timing40_50.convertTiming(src.getSchedule())); if (src.hasQuantity()) @@ -458,7 +458,7 @@ public class NutritionOrder40_50 { if (src == null) return null; org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderEnteralFormulaAdministrationComponent tgt = new org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderEnteralFormulaAdministrationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSchedule()) tgt.setSchedule(Timing40_50.convertTiming(src.getSchedule())); if (src.hasQuantity()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Observation40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Observation40_50.java index 2040bd325..1773ee716 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Observation40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Observation40_50.java @@ -216,7 +216,7 @@ public class Observation40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.r5.model.Observation.ObservationReferenceRangeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLow()) tgt.setLow(SimpleQuantity40_50.convertSimpleQuantity(src.getLow())); if (src.hasHigh()) @@ -236,7 +236,7 @@ public class Observation40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Observation.ObservationReferenceRangeComponent tgt = new org.hl7.fhir.r4.model.Observation.ObservationReferenceRangeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLow()) tgt.setLow(SimpleQuantity40_50.convertSimpleQuantity(src.getLow())); if (src.hasHigh()) @@ -256,7 +256,7 @@ public class Observation40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.r5.model.Observation.ObservationComponentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -274,7 +274,7 @@ public class Observation40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Observation.ObservationComponentComponent tgt = new org.hl7.fhir.r4.model.Observation.ObservationComponentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ObservationDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ObservationDefinition40_50.java index 98e0c7272..6b5b4b092 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ObservationDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ObservationDefinition40_50.java @@ -206,7 +206,7 @@ public class ObservationDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQuantitativeDetailsComponent tgt = new org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQuantitativeDetailsComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCustomaryUnit()) tgt.setCustomaryUnit(CodeableConcept40_50.convertCodeableConcept(src.getCustomaryUnit())); if (src.hasUnit()) @@ -222,7 +222,7 @@ public class ObservationDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQuantitativeDetailsComponent tgt = new org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQuantitativeDetailsComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCustomaryUnit()) tgt.setCustomaryUnit(CodeableConcept40_50.convertCodeableConcept(src.getCustomaryUnit())); if (src.hasUnit()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/OperationDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/OperationDefinition40_50.java index 8f8d95316..fc2360a30 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/OperationDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/OperationDefinition40_50.java @@ -199,7 +199,7 @@ public class OperationDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(Code40_50.convertCode(src.getNameElement())); if (src.hasUse()) @@ -229,7 +229,7 @@ public class OperationDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(Code40_50.convertCode(src.getNameElement())); if (src.hasUse()) @@ -297,7 +297,7 @@ public class OperationDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasStrength()) tgt.setStrengthElement(Enumerations40_50.convertBindingStrength(src.getStrengthElement())); if (src.hasValueSet()) @@ -309,7 +309,7 @@ public class OperationDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterBindingComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasStrength()) tgt.setStrengthElement(Enumerations40_50.convertBindingStrength(src.getStrengthElement())); if (src.hasValueSet()) @@ -321,7 +321,7 @@ public class OperationDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterReferencedFromComponent tgt = new org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterReferencedFromComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSource()) tgt.setSourceElement(String40_50.convertString(src.getSourceElement())); if (src.hasSourceId()) @@ -333,7 +333,7 @@ public class OperationDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterReferencedFromComponent tgt = new org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterReferencedFromComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSource()) tgt.setSourceElement(String40_50.convertString(src.getSourceElement())); if (src.hasSourceId()) @@ -345,7 +345,7 @@ public class OperationDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionOverloadComponent tgt = new org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionOverloadComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.StringType t : src.getParameterName()) tgt.getParameterName().add(String40_50.convertString(t)); if (src.hasComment()) @@ -357,7 +357,7 @@ public class OperationDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionOverloadComponent tgt = new org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionOverloadComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.StringType t : src.getParameterName()) tgt.getParameterName().add(String40_50.convertString(t)); if (src.hasComment()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/OperationOutcome40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/OperationOutcome40_50.java index 88009ddb0..b021e5f62 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/OperationOutcome40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/OperationOutcome40_50.java @@ -60,7 +60,7 @@ public class OperationOutcome40_50 { if (src == null) return null; org.hl7.fhir.r5.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.r5.model.OperationOutcome.OperationOutcomeIssueComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSeverity()) tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement())); if (src.hasCode()) @@ -79,7 +79,7 @@ public class OperationOutcome40_50 { if (src == null) return null; org.hl7.fhir.r4.model.OperationOutcome.OperationOutcomeIssueComponent tgt = new org.hl7.fhir.r4.model.OperationOutcome.OperationOutcomeIssueComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSeverity()) tgt.setSeverityElement(convertIssueSeverity(src.getSeverityElement())); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Parameters40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Parameters40_50.java index c3c4c8965..e557d9289 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Parameters40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Parameters40_50.java @@ -59,7 +59,7 @@ public class Parameters40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.r5.model.Parameters.ParametersParameterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasValue()) @@ -75,7 +75,7 @@ public class Parameters40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Patient40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Patient40_50.java index 262f2a3e3..30ae1abfe 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Patient40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Patient40_50.java @@ -116,7 +116,7 @@ public class Patient40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Patient.ContactComponent tgt = new org.hl7.fhir.r5.model.Patient.ContactComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasName()) @@ -138,7 +138,7 @@ public class Patient40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Patient.ContactComponent tgt = new org.hl7.fhir.r4.model.Patient.ContactComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getRelationship()) tgt.addRelationship(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasName()) @@ -160,7 +160,7 @@ public class Patient40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.r5.model.Patient.PatientCommunicationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLanguage()) tgt.setLanguage(CodeableConcept40_50.convertCodeableConcept(src.getLanguage())); if (src.hasPreferred()) @@ -172,7 +172,7 @@ public class Patient40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Patient.PatientCommunicationComponent tgt = new org.hl7.fhir.r4.model.Patient.PatientCommunicationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLanguage()) tgt.setLanguage(CodeableConcept40_50.convertCodeableConcept(src.getLanguage())); if (src.hasPreferred()) @@ -184,7 +184,7 @@ public class Patient40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.r5.model.Patient.PatientLinkComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOther()) tgt.setOther(Reference40_50.convertReference(src.getOther())); if (src.hasType()) @@ -196,7 +196,7 @@ public class Patient40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Patient.PatientLinkComponent tgt = new org.hl7.fhir.r4.model.Patient.PatientLinkComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOther()) tgt.setOther(Reference40_50.convertReference(src.getOther())); if (src.hasType()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Person40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Person40_50.java index f558c70f4..69b996be0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Person40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Person40_50.java @@ -92,7 +92,7 @@ public class Person40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.r5.model.Person.PersonLinkComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasTarget()) tgt.setTarget(Reference40_50.convertReference(src.getTarget())); if (src.hasAssurance()) @@ -104,7 +104,7 @@ public class Person40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Person.PersonLinkComponent tgt = new org.hl7.fhir.r4.model.Person.PersonLinkComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasTarget()) tgt.setTarget(Reference40_50.convertReference(src.getTarget())); if (src.hasAssurance()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/PlanDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/PlanDefinition40_50.java index 1c4441ae5..cb1d5c435 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/PlanDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/PlanDefinition40_50.java @@ -187,7 +187,7 @@ public class PlanDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionGoalComponent tgt = new org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionGoalComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept40_50.convertCodeableConcept(src.getCategory())); if (src.hasDescription()) @@ -209,7 +209,7 @@ public class PlanDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionGoalComponent tgt = new org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionGoalComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCategory()) tgt.setCategory(CodeableConcept40_50.convertCodeableConcept(src.getCategory())); if (src.hasDescription()) @@ -231,7 +231,7 @@ public class PlanDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionGoalTargetComponent tgt = new org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionGoalTargetComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMeasure()) tgt.setMeasure(CodeableConcept40_50.convertCodeableConcept(src.getMeasure())); if (src.hasDetail()) @@ -245,7 +245,7 @@ public class PlanDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionGoalTargetComponent tgt = new org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionGoalTargetComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMeasure()) tgt.setMeasure(CodeableConcept40_50.convertCodeableConcept(src.getMeasure())); if (src.hasDetail()) @@ -259,7 +259,7 @@ public class PlanDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionComponent tgt = new org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasPrefix()) tgt.setPrefixElement(String40_50.convertString(src.getPrefixElement())); if (src.hasTitle()) @@ -328,7 +328,7 @@ public class PlanDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionComponent tgt = new org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasPrefix()) tgt.setPrefixElement(String40_50.convertString(src.getPrefixElement())); if (src.hasTitle()) @@ -664,7 +664,7 @@ public class PlanDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionConditionComponent tgt = new org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionConditionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasKind()) tgt.setKindElement(convertActionConditionKind(src.getKindElement())); if (src.hasExpression()) @@ -676,7 +676,7 @@ public class PlanDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionConditionComponent tgt = new org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionConditionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasKind()) tgt.setKindElement(convertActionConditionKind(src.getKindElement())); if (src.hasExpression()) @@ -732,7 +732,7 @@ public class PlanDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent tgt = new org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasActionId()) tgt.setTargetIdElement(Id40_50.convertId(src.getActionIdElement())); if (src.hasRelationship()) @@ -746,7 +746,7 @@ public class PlanDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent tgt = new org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasTargetId()) tgt.setActionIdElement(Id40_50.convertId(src.getTargetIdElement())); if (src.hasRelationship()) @@ -840,7 +840,7 @@ public class PlanDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionParticipantComponent tgt = new org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionParticipantComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertActionParticipantType(src.getTypeElement())); if (src.hasRole()) @@ -852,7 +852,7 @@ public class PlanDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionParticipantComponent tgt = new org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionParticipantComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertActionParticipantType(src.getTypeElement())); if (src.hasRole()) @@ -914,7 +914,7 @@ public class PlanDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionDynamicValueComponent tgt = new org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionDynamicValueComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasPath()) tgt.setPathElement(String40_50.convertString(src.getPathElement())); if (src.hasExpression()) @@ -926,7 +926,7 @@ public class PlanDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionDynamicValueComponent tgt = new org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionDynamicValueComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasPath()) tgt.setPathElement(String40_50.convertString(src.getPathElement())); if (src.hasExpression()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Practitioner40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Practitioner40_50.java index a53e75575..e65969daf 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Practitioner40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Practitioner40_50.java @@ -92,7 +92,7 @@ public class Practitioner40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.r5.model.Practitioner.PractitionerQualificationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier40_50.convertIdentifier(t)); if (src.hasCode()) @@ -108,7 +108,7 @@ public class Practitioner40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Practitioner.PractitionerQualificationComponent tgt = new org.hl7.fhir.r4.model.Practitioner.PractitionerQualificationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier40_50.convertIdentifier(t)); if (src.hasCode()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/PractitionerRole40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/PractitionerRole40_50.java index 013f8bc3b..394069d5f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/PractitionerRole40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/PractitionerRole40_50.java @@ -116,7 +116,7 @@ public class PractitionerRole40_50 { if (src == null) return null; org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(PractitionerRole40_50::convertDaysOfWeek) .collect(Collectors.toList())); @@ -133,7 +133,7 @@ public class PractitionerRole40_50 { if (src == null) return null; org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleAvailableTimeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); tgt.setDaysOfWeek(src.getDaysOfWeek().stream() .map(PractitionerRole40_50::convertDaysOfWeek) .collect(Collectors.toList())); @@ -218,7 +218,7 @@ public class PractitionerRole40_50 { if (src == null) return null; org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDescription()) tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); if (src.hasDuring()) @@ -230,7 +230,7 @@ public class PractitionerRole40_50 { if (src == null) return null; org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleNotAvailableComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDescription()) tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); if (src.hasDuring()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Procedure40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Procedure40_50.java index 413061d32..65ea4d416 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Procedure40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Procedure40_50.java @@ -243,7 +243,7 @@ public class Procedure40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Procedure.ProcedurePerformerComponent tgt = new org.hl7.fhir.r5.model.Procedure.ProcedurePerformerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFunction()) tgt.setFunction(CodeableConcept40_50.convertCodeableConcept(src.getFunction())); if (src.hasActor()) @@ -257,7 +257,7 @@ public class Procedure40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Procedure.ProcedurePerformerComponent tgt = new org.hl7.fhir.r4.model.Procedure.ProcedurePerformerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFunction()) tgt.setFunction(CodeableConcept40_50.convertCodeableConcept(src.getFunction())); if (src.hasActor()) @@ -271,7 +271,7 @@ public class Procedure40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Procedure.ProcedureFocalDeviceComponent tgt = new org.hl7.fhir.r5.model.Procedure.ProcedureFocalDeviceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasAction()) tgt.setAction(CodeableConcept40_50.convertCodeableConcept(src.getAction())); if (src.hasManipulated()) @@ -283,7 +283,7 @@ public class Procedure40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Procedure.ProcedureFocalDeviceComponent tgt = new org.hl7.fhir.r4.model.Procedure.ProcedureFocalDeviceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasAction()) tgt.setAction(CodeableConcept40_50.convertCodeableConcept(src.getAction())); if (src.hasManipulated()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Provenance40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Provenance40_50.java index ffbfed9ed..65bd04a53 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Provenance40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Provenance40_50.java @@ -95,7 +95,7 @@ public class Provenance40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Provenance.ProvenanceAgentComponent tgt = new org.hl7.fhir.r5.model.Provenance.ProvenanceAgentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRole()) @@ -111,7 +111,7 @@ public class Provenance40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Provenance.ProvenanceAgentComponent tgt = new org.hl7.fhir.r4.model.Provenance.ProvenanceAgentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getRole()) @@ -127,7 +127,7 @@ public class Provenance40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.r5.model.Provenance.ProvenanceEntityComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRole()) tgt.setRoleElement(convertProvenanceEntityRole(src.getRoleElement())); if (src.hasWhat()) @@ -141,7 +141,7 @@ public class Provenance40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.r4.model.Provenance.ProvenanceEntityComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRole()) tgt.setRoleElement(convertProvenanceEntityRole(src.getRoleElement())); if (src.hasWhat()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Questionnaire40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Questionnaire40_50.java index 49d522467..84afc3b2a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Questionnaire40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Questionnaire40_50.java @@ -150,7 +150,7 @@ public class Questionnaire40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String40_50.convertString(src.getLinkIdElement())); if (src.hasDefinition()) @@ -195,7 +195,7 @@ public class Questionnaire40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String40_50.convertString(src.getLinkIdElement())); if (src.hasDefinition()) @@ -403,7 +403,7 @@ public class Questionnaire40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemEnableWhenComponent tgt = new org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemEnableWhenComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasQuestion()) tgt.setQuestionElement(String40_50.convertString(src.getQuestionElement())); if (src.hasOperator()) @@ -417,7 +417,7 @@ public class Questionnaire40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemEnableWhenComponent tgt = new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemEnableWhenComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasQuestion()) tgt.setQuestionElement(String40_50.convertString(src.getQuestionElement())); if (src.hasOperator()) @@ -499,7 +499,7 @@ public class Questionnaire40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemAnswerOptionComponent tgt = new org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemAnswerOptionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasValue()) tgt.setValue(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getValue())); if (src.hasInitialSelected()) @@ -511,7 +511,7 @@ public class Questionnaire40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemAnswerOptionComponent tgt = new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemAnswerOptionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasValue()) tgt.setValue(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getValue())); if (src.hasInitialSelected()) @@ -523,7 +523,7 @@ public class Questionnaire40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemInitialComponent tgt = new org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemInitialComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasValue()) tgt.setValue(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getValue())); return tgt; @@ -533,7 +533,7 @@ public class Questionnaire40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemInitialComponent tgt = new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemInitialComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasValue()) tgt.setValue(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getValue())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/QuestionnaireResponse40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/QuestionnaireResponse40_50.java index 7924c39a3..8f5af17d0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/QuestionnaireResponse40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/QuestionnaireResponse40_50.java @@ -156,7 +156,7 @@ public class QuestionnaireResponse40_50 { if (src == null) return null; org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String40_50.convertString(src.getLinkIdElement())); if (src.hasDefinition()) @@ -174,7 +174,7 @@ public class QuestionnaireResponse40_50 { if (src == null) return null; org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLinkId()) tgt.setLinkIdElement(String40_50.convertString(src.getLinkIdElement())); if (src.hasDefinition()) @@ -192,7 +192,7 @@ public class QuestionnaireResponse40_50 { if (src == null) return null; org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasValue()) tgt.setValue(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getValue())); for (org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) @@ -204,7 +204,7 @@ public class QuestionnaireResponse40_50 { if (src == null) return null; org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent tgt = new org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasValue()) tgt.setValue(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getValue())); for (org.hl7.fhir.r5.model.QuestionnaireResponse.QuestionnaireResponseItemComponent t : src.getItem()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/RelatedPerson40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/RelatedPerson40_50.java index 9acbabae4..da62868e1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/RelatedPerson40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/RelatedPerson40_50.java @@ -100,7 +100,7 @@ public class RelatedPerson40_50 { if (src == null) return null; org.hl7.fhir.r5.model.RelatedPerson.RelatedPersonCommunicationComponent tgt = new org.hl7.fhir.r5.model.RelatedPerson.RelatedPersonCommunicationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLanguage()) tgt.setLanguage(CodeableConcept40_50.convertCodeableConcept(src.getLanguage())); if (src.hasPreferred()) @@ -112,7 +112,7 @@ public class RelatedPerson40_50 { if (src == null) return null; org.hl7.fhir.r4.model.RelatedPerson.RelatedPersonCommunicationComponent tgt = new org.hl7.fhir.r4.model.RelatedPerson.RelatedPersonCommunicationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLanguage()) tgt.setLanguage(CodeableConcept40_50.convertCodeableConcept(src.getLanguage())); if (src.hasPreferred()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/RiskAssessment40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/RiskAssessment40_50.java index 0eef350ac..2f0e895d6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/RiskAssessment40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/RiskAssessment40_50.java @@ -201,7 +201,7 @@ public class RiskAssessment40_50 { if (src == null) return null; org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentPredictionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOutcome()) tgt.setOutcome(CodeableConcept40_50.convertCodeableConcept(src.getOutcome())); if (src.hasProbability()) @@ -221,7 +221,7 @@ public class RiskAssessment40_50 { if (src == null) return null; org.hl7.fhir.r4.model.RiskAssessment.RiskAssessmentPredictionComponent tgt = new org.hl7.fhir.r4.model.RiskAssessment.RiskAssessmentPredictionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOutcome()) tgt.setOutcome(CodeableConcept40_50.convertCodeableConcept(src.getOutcome())); if (src.hasProbability()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SearchParameter40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SearchParameter40_50.java index 7f9c18ca7..e680acbda 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SearchParameter40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SearchParameter40_50.java @@ -391,7 +391,7 @@ public class SearchParameter40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SearchParameter.SearchParameterComponentComponent tgt = new org.hl7.fhir.r5.model.SearchParameter.SearchParameterComponentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDefinition()) tgt.setDefinitionElement(Canonical40_50.convertCanonical(src.getDefinitionElement())); if (src.hasExpression()) @@ -403,7 +403,7 @@ public class SearchParameter40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SearchParameter.SearchParameterComponentComponent tgt = new org.hl7.fhir.r4.model.SearchParameter.SearchParameterComponentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDefinition()) tgt.setDefinitionElement(Canonical40_50.convertCanonical(src.getDefinitionElement())); if (src.hasExpression()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Specimen40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Specimen40_50.java index b4cf0cb58..c793d9f68 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Specimen40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Specimen40_50.java @@ -154,7 +154,7 @@ public class Specimen40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Specimen.SpecimenCollectionComponent tgt = new org.hl7.fhir.r5.model.Specimen.SpecimenCollectionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCollector()) tgt.setCollector(Reference40_50.convertReference(src.getCollector())); if (src.hasCollected()) @@ -176,7 +176,7 @@ public class Specimen40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Specimen.SpecimenCollectionComponent tgt = new org.hl7.fhir.r4.model.Specimen.SpecimenCollectionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCollector()) tgt.setCollector(Reference40_50.convertReference(src.getCollector())); if (src.hasCollected()) @@ -198,7 +198,7 @@ public class Specimen40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Specimen.SpecimenProcessingComponent tgt = new org.hl7.fhir.r5.model.Specimen.SpecimenProcessingComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDescription()) tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); // if (src.hasProcedure()) @@ -213,7 +213,7 @@ public class Specimen40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Specimen.SpecimenProcessingComponent tgt = new org.hl7.fhir.r4.model.Specimen.SpecimenProcessingComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDescription()) tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); // if (src.hasProcedure()) @@ -228,7 +228,7 @@ public class Specimen40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Specimen.SpecimenContainerComponent tgt = new org.hl7.fhir.r5.model.Specimen.SpecimenContainerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); // for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) // tgt.addIdentifier(Identifier40_50.convertIdentifier(t)); // if (src.hasDescription()) @@ -248,7 +248,7 @@ public class Specimen40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Specimen.SpecimenContainerComponent tgt = new org.hl7.fhir.r4.model.Specimen.SpecimenContainerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); // for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) // tgt.addIdentifier(Identifier40_50.convertIdentifier(t)); // if (src.hasDescription()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SpecimenDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SpecimenDefinition40_50.java index 55defba4b..c4f4b09ed 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SpecimenDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SpecimenDefinition40_50.java @@ -81,7 +81,7 @@ public class SpecimenDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SpecimenDefinition.SpecimenDefinitionTypeTestedComponent tgt = new org.hl7.fhir.r5.model.SpecimenDefinition.SpecimenDefinitionTypeTestedComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasIsDerived()) tgt.setIsDerivedElement(Boolean40_50.convertBoolean(src.getIsDerivedElement())); if (src.hasType()) @@ -105,7 +105,7 @@ public class SpecimenDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SpecimenDefinition.SpecimenDefinitionTypeTestedComponent tgt = new org.hl7.fhir.r4.model.SpecimenDefinition.SpecimenDefinitionTypeTestedComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasIsDerived()) tgt.setIsDerivedElement(Boolean40_50.convertBoolean(src.getIsDerivedElement())); if (src.hasType()) @@ -167,7 +167,7 @@ public class SpecimenDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SpecimenDefinition.SpecimenDefinitionTypeTestedContainerComponent tgt = new org.hl7.fhir.r5.model.SpecimenDefinition.SpecimenDefinitionTypeTestedContainerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMaterial()) tgt.setMaterial(CodeableConcept40_50.convertCodeableConcept(src.getMaterial())); if (src.hasType()) @@ -191,7 +191,7 @@ public class SpecimenDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SpecimenDefinition.SpecimenDefinitionTypeTestedContainerComponent tgt = new org.hl7.fhir.r4.model.SpecimenDefinition.SpecimenDefinitionTypeTestedContainerComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMaterial()) tgt.setMaterial(CodeableConcept40_50.convertCodeableConcept(src.getMaterial())); if (src.hasType()) @@ -215,7 +215,7 @@ public class SpecimenDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SpecimenDefinition.SpecimenDefinitionTypeTestedContainerAdditiveComponent tgt = new org.hl7.fhir.r5.model.SpecimenDefinition.SpecimenDefinitionTypeTestedContainerAdditiveComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasAdditive()) tgt.setAdditive(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getAdditive())); return tgt; @@ -225,7 +225,7 @@ public class SpecimenDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SpecimenDefinition.SpecimenDefinitionTypeTestedContainerAdditiveComponent tgt = new org.hl7.fhir.r4.model.SpecimenDefinition.SpecimenDefinitionTypeTestedContainerAdditiveComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasAdditive()) tgt.setAdditive(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getAdditive())); return tgt; @@ -235,7 +235,7 @@ public class SpecimenDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SpecimenDefinition.SpecimenDefinitionTypeTestedHandlingComponent tgt = new org.hl7.fhir.r5.model.SpecimenDefinition.SpecimenDefinitionTypeTestedHandlingComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasTemperatureQualifier()) tgt.setTemperatureQualifier(CodeableConcept40_50.convertCodeableConcept(src.getTemperatureQualifier())); if (src.hasTemperatureRange()) @@ -251,7 +251,7 @@ public class SpecimenDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SpecimenDefinition.SpecimenDefinitionTypeTestedHandlingComponent tgt = new org.hl7.fhir.r4.model.SpecimenDefinition.SpecimenDefinitionTypeTestedHandlingComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasTemperatureQualifier()) tgt.setTemperatureQualifier(CodeableConcept40_50.convertCodeableConcept(src.getTemperatureQualifier())); if (src.hasTemperatureRange()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/StructureDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/StructureDefinition40_50.java index 8b48a6433..8282ca32a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/StructureDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/StructureDefinition40_50.java @@ -255,7 +255,7 @@ public class StructureDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasIdentity()) tgt.setIdentityElement(Id40_50.convertId(src.getIdentityElement())); if (src.hasUri()) @@ -271,7 +271,7 @@ public class StructureDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasIdentity()) tgt.setIdentityElement(Id40_50.convertId(src.getIdentityElement())); if (src.hasUri()) @@ -287,7 +287,7 @@ public class StructureDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionContextComponent tgt = new org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionContextComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertExtensionContextType(src.getTypeElement())); if (src.hasExpression()) @@ -299,7 +299,7 @@ public class StructureDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionContextComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionContextComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertExtensionContextType(src.getTypeElement())); if (src.hasExpression()) @@ -355,7 +355,7 @@ public class StructureDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionSnapshotComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition40_50.convertElementDefinition(t)); return tgt; @@ -365,7 +365,7 @@ public class StructureDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionSnapshotComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionSnapshotComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition40_50.convertElementDefinition(t)); return tgt; @@ -375,7 +375,7 @@ public class StructureDefinition40_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionDifferentialComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition40_50.convertElementDefinition(t)); return tgt; @@ -385,7 +385,7 @@ public class StructureDefinition40_50 { if (src == null) return null; org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionDifferentialComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionDifferentialComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.ElementDefinition t : src.getElement()) tgt.addElement(ElementDefinition40_50.convertElementDefinition(t)); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/StructureMap40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/StructureMap40_50.java index b2a41d4ed..e0ca4d9c5 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/StructureMap40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/StructureMap40_50.java @@ -139,7 +139,7 @@ public class StructureMap40_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapStructureComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapStructureComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasUrl()) tgt.setUrlElement(Canonical40_50.convertCanonical(src.getUrlElement())); if (src.hasMode()) @@ -155,7 +155,7 @@ public class StructureMap40_50 { if (src == null) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapStructureComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapStructureComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasUrl()) tgt.setUrlElement(Canonical40_50.convertCanonical(src.getUrlElement())); if (src.hasMode()) @@ -221,7 +221,7 @@ public class StructureMap40_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(Id40_50.convertId(src.getNameElement())); if (src.hasExtends()) @@ -241,7 +241,7 @@ public class StructureMap40_50 { if (src == null) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(Id40_50.convertId(src.getNameElement())); if (src.hasExtends()) @@ -306,7 +306,7 @@ public class StructureMap40_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupInputComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupInputComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(Id40_50.convertId(src.getNameElement())); if (src.hasType()) @@ -322,7 +322,7 @@ public class StructureMap40_50 { if (src == null) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupInputComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupInputComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(Id40_50.convertId(src.getNameElement())); if (src.hasType()) @@ -376,7 +376,7 @@ public class StructureMap40_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(Id40_50.convertId(src.getNameElement())); for (org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent t : src.getSource()) @@ -396,7 +396,7 @@ public class StructureMap40_50 { if (src == null) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(Id40_50.convertId(src.getNameElement())); for (org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleSourceComponent t : src.getSource()) @@ -416,7 +416,7 @@ public class StructureMap40_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleSourceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasContext()) tgt.setContextElement(Id40_50.convertId(src.getContextElement())); if (src.hasMin()) @@ -446,7 +446,7 @@ public class StructureMap40_50 { if (src == null) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasContext()) tgt.setContextElement(Id40_50.convertId(src.getContextElement())); if (src.hasMin()) @@ -532,7 +532,7 @@ public class StructureMap40_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasContext()) tgt.setContextElement(Id40_50.convertId(src.getContextElement())); if (src.hasContextType() && src.getContextType() != org.hl7.fhir.r4.model.StructureMap.StructureMapContextType.VARIABLE) @@ -557,7 +557,7 @@ public class StructureMap40_50 { if (src == null) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasContext()) tgt.setContextElement(Id40_50.convertId(src.getContextElement())); tgt.setContextType(org.hl7.fhir.r4.model.StructureMap.StructureMapContextType.VARIABLE); @@ -760,7 +760,7 @@ public class StructureMap40_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetParameterComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetParameterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasValue()) tgt.setValue(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getValue())); return tgt; @@ -771,7 +771,7 @@ public class StructureMap40_50 { if (src == null) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetParameterComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetParameterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasValue()) tgt.setValue(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getValue())); return tgt; @@ -782,7 +782,7 @@ public class StructureMap40_50 { if (src == null) return null; org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleDependentComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleDependentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(Id40_50.convertId(src.getNameElement())); for (org.hl7.fhir.r4.model.StringType t : src.getVariable()) tgt.addParameter().setValue(convertVariableStringToParameterDataType(t)); @@ -837,7 +837,7 @@ public class StructureMap40_50 { if (src == null) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleDependentComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleDependentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(Id40_50.convertId(src.getNameElement())); for (StructureMapGroupRuleTargetParameterComponent t : src.getParameter()) { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Substance40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Substance40_50.java index 1237a5262..e9ec8877f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Substance40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Substance40_50.java @@ -156,7 +156,7 @@ public class Substance40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.r5.model.Substance.SubstanceIngredientComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasQuantity()) tgt.setQuantity(Ratio40_50.convertRatio(src.getQuantity())); if (src.hasSubstance()) @@ -168,7 +168,7 @@ public class Substance40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.r4.model.Substance.SubstanceIngredientComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasQuantity()) tgt.setQuantity(Ratio40_50.convertRatio(src.getQuantity())); if (src.hasSubstance()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstanceNucleicAcid40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstanceNucleicAcid40_50.java index 6c54b34b8..ab62c0b54 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstanceNucleicAcid40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstanceNucleicAcid40_50.java @@ -79,7 +79,7 @@ public class SubstanceNucleicAcid40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstanceNucleicAcid.SubstanceNucleicAcidSubunitComponent tgt = new org.hl7.fhir.r5.model.SubstanceNucleicAcid.SubstanceNucleicAcidSubunitComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSubunit()) tgt.setSubunitElement(Integer40_50.convertInteger(src.getSubunitElement())); if (src.hasSequence()) @@ -103,7 +103,7 @@ public class SubstanceNucleicAcid40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstanceNucleicAcid.SubstanceNucleicAcidSubunitComponent tgt = new org.hl7.fhir.r4.model.SubstanceNucleicAcid.SubstanceNucleicAcidSubunitComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSubunit()) tgt.setSubunitElement(Integer40_50.convertInteger(src.getSubunitElement())); if (src.hasSequence()) @@ -127,7 +127,7 @@ public class SubstanceNucleicAcid40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstanceNucleicAcid.SubstanceNucleicAcidSubunitLinkageComponent tgt = new org.hl7.fhir.r5.model.SubstanceNucleicAcid.SubstanceNucleicAcidSubunitLinkageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasConnectivity()) tgt.setConnectivityElement(String40_50.convertString(src.getConnectivityElement())); if (src.hasIdentifier()) @@ -143,7 +143,7 @@ public class SubstanceNucleicAcid40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstanceNucleicAcid.SubstanceNucleicAcidSubunitLinkageComponent tgt = new org.hl7.fhir.r4.model.SubstanceNucleicAcid.SubstanceNucleicAcidSubunitLinkageComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasConnectivity()) tgt.setConnectivityElement(String40_50.convertString(src.getConnectivityElement())); if (src.hasIdentifier()) @@ -159,7 +159,7 @@ public class SubstanceNucleicAcid40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstanceNucleicAcid.SubstanceNucleicAcidSubunitSugarComponent tgt = new org.hl7.fhir.r5.model.SubstanceNucleicAcid.SubstanceNucleicAcidSubunitSugarComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier40_50.convertIdentifier(src.getIdentifier())); if (src.hasName()) @@ -173,7 +173,7 @@ public class SubstanceNucleicAcid40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstanceNucleicAcid.SubstanceNucleicAcidSubunitSugarComponent tgt = new org.hl7.fhir.r4.model.SubstanceNucleicAcid.SubstanceNucleicAcidSubunitSugarComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasIdentifier()) tgt.setIdentifier(Identifier40_50.convertIdentifier(src.getIdentifier())); if (src.hasName()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstancePolymer40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstancePolymer40_50.java index 084a632fb..37a9a997d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstancePolymer40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstancePolymer40_50.java @@ -81,7 +81,7 @@ public class SubstancePolymer40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerMonomerSetComponent tgt = new org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerMonomerSetComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRatioType()) tgt.setRatioType(CodeableConcept40_50.convertCodeableConcept(src.getRatioType())); for (org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerMonomerSetStartingMaterialComponent t : src.getStartingMaterial()) @@ -93,7 +93,7 @@ public class SubstancePolymer40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerMonomerSetComponent tgt = new org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerMonomerSetComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRatioType()) tgt.setRatioType(CodeableConcept40_50.convertCodeableConcept(src.getRatioType())); for (org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerMonomerSetStartingMaterialComponent t : src.getStartingMaterial()) @@ -105,7 +105,7 @@ public class SubstancePolymer40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerMonomerSetStartingMaterialComponent tgt = new org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerMonomerSetStartingMaterialComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMaterial()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getMaterial())); if (src.hasType()) @@ -122,7 +122,7 @@ public class SubstancePolymer40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerMonomerSetStartingMaterialComponent tgt = new org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerMonomerSetStartingMaterialComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setMaterial(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasType()) @@ -139,7 +139,7 @@ public class SubstancePolymer40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerRepeatComponent tgt = new org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerRepeatComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); // todo // if (src.hasNumberOfUnits()) // tgt.setNumberOfUnitsElement(convertInteger(src.getNumberOfUnitsElement())); @@ -156,7 +156,7 @@ public class SubstancePolymer40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerRepeatComponent tgt = new org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerRepeatComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); // todo // if (src.hasNumberOfUnits()) // tgt.setNumberOfUnitsElement(convertInteger(src.getNumberOfUnitsElement())); @@ -173,7 +173,7 @@ public class SubstancePolymer40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerRepeatRepeatUnitComponent tgt = new org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerRepeatRepeatUnitComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOrientationOfPolymerisation()) tgt.setOrientation(CodeableConcept40_50.convertCodeableConcept(src.getOrientationOfPolymerisation())); if (src.hasRepeatUnit()) @@ -192,7 +192,7 @@ public class SubstancePolymer40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerRepeatRepeatUnitComponent tgt = new org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerRepeatRepeatUnitComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOrientation()) tgt.setOrientationOfPolymerisation(CodeableConcept40_50.convertCodeableConcept(src.getOrientation())); if (src.hasUnit()) @@ -211,7 +211,7 @@ public class SubstancePolymer40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerRepeatRepeatUnitDegreeOfPolymerisationComponent tgt = new org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerRepeatRepeatUnitDegreeOfPolymerisationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); // todo // if (src.hasDegree()) // tgt.setDegree(convertCodeableConcept(src.getDegree())); @@ -224,7 +224,7 @@ public class SubstancePolymer40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerRepeatRepeatUnitDegreeOfPolymerisationComponent tgt = new org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerRepeatRepeatUnitDegreeOfPolymerisationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); // todo // if (src.hasDegree()) // tgt.setDegree(convertCodeableConcept(src.getDegree())); @@ -237,7 +237,7 @@ public class SubstancePolymer40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerRepeatRepeatUnitStructuralRepresentationComponent tgt = new org.hl7.fhir.r5.model.SubstancePolymer.SubstancePolymerRepeatRepeatUnitStructuralRepresentationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasRepresentation()) @@ -251,7 +251,7 @@ public class SubstancePolymer40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerRepeatRepeatUnitStructuralRepresentationComponent tgt = new org.hl7.fhir.r4.model.SubstancePolymer.SubstancePolymerRepeatRepeatUnitStructuralRepresentationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasRepresentation()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstanceProtein40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstanceProtein40_50.java index 2e45156ad..b7a3d6528 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstanceProtein40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstanceProtein40_50.java @@ -75,7 +75,7 @@ public class SubstanceProtein40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstanceProtein.SubstanceProteinSubunitComponent tgt = new org.hl7.fhir.r5.model.SubstanceProtein.SubstanceProteinSubunitComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSubunit()) tgt.setSubunitElement(Integer40_50.convertInteger(src.getSubunitElement())); if (src.hasSequence()) @@ -99,7 +99,7 @@ public class SubstanceProtein40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstanceProtein.SubstanceProteinSubunitComponent tgt = new org.hl7.fhir.r4.model.SubstanceProtein.SubstanceProteinSubunitComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSubunit()) tgt.setSubunitElement(Integer40_50.convertInteger(src.getSubunitElement())); if (src.hasSequence()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstanceReferenceInformation40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstanceReferenceInformation40_50.java index 1870865c9..71af9bcec 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstanceReferenceInformation40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstanceReferenceInformation40_50.java @@ -76,7 +76,7 @@ public class SubstanceReferenceInformation40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstanceReferenceInformation.SubstanceReferenceInformationGeneComponent tgt = new org.hl7.fhir.r5.model.SubstanceReferenceInformation.SubstanceReferenceInformationGeneComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasGeneSequenceOrigin()) tgt.setGeneSequenceOrigin(CodeableConcept40_50.convertCodeableConcept(src.getGeneSequenceOrigin())); if (src.hasGene()) @@ -89,7 +89,7 @@ public class SubstanceReferenceInformation40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstanceReferenceInformation.SubstanceReferenceInformationGeneComponent tgt = new org.hl7.fhir.r4.model.SubstanceReferenceInformation.SubstanceReferenceInformationGeneComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasGeneSequenceOrigin()) tgt.setGeneSequenceOrigin(CodeableConcept40_50.convertCodeableConcept(src.getGeneSequenceOrigin())); if (src.hasGene()) @@ -102,7 +102,7 @@ public class SubstanceReferenceInformation40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstanceReferenceInformation.SubstanceReferenceInformationGeneElementComponent tgt = new org.hl7.fhir.r5.model.SubstanceReferenceInformation.SubstanceReferenceInformationGeneElementComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasElement()) @@ -115,7 +115,7 @@ public class SubstanceReferenceInformation40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstanceReferenceInformation.SubstanceReferenceInformationGeneElementComponent tgt = new org.hl7.fhir.r4.model.SubstanceReferenceInformation.SubstanceReferenceInformationGeneElementComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasElement()) @@ -156,7 +156,7 @@ public class SubstanceReferenceInformation40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstanceReferenceInformation.SubstanceReferenceInformationTargetComponent tgt = new org.hl7.fhir.r5.model.SubstanceReferenceInformation.SubstanceReferenceInformationTargetComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasTarget()) tgt.setTarget(Identifier40_50.convertIdentifier(src.getTarget())); if (src.hasType()) @@ -179,7 +179,7 @@ public class SubstanceReferenceInformation40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstanceReferenceInformation.SubstanceReferenceInformationTargetComponent tgt = new org.hl7.fhir.r4.model.SubstanceReferenceInformation.SubstanceReferenceInformationTargetComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasTarget()) tgt.setTarget(Identifier40_50.convertIdentifier(src.getTarget())); if (src.hasType()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstanceSourceMaterial40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstanceSourceMaterial40_50.java index 6c18080d3..e21c45218 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstanceSourceMaterial40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SubstanceSourceMaterial40_50.java @@ -109,7 +109,7 @@ public class SubstanceSourceMaterial40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstanceSourceMaterial.SubstanceSourceMaterialFractionDescriptionComponent tgt = new org.hl7.fhir.r5.model.SubstanceSourceMaterial.SubstanceSourceMaterialFractionDescriptionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFraction()) tgt.setFractionElement(String40_50.convertString(src.getFractionElement())); if (src.hasMaterialType()) @@ -121,7 +121,7 @@ public class SubstanceSourceMaterial40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstanceSourceMaterial.SubstanceSourceMaterialFractionDescriptionComponent tgt = new org.hl7.fhir.r4.model.SubstanceSourceMaterial.SubstanceSourceMaterialFractionDescriptionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFraction()) tgt.setFractionElement(String40_50.convertString(src.getFractionElement())); if (src.hasMaterialType()) @@ -133,7 +133,7 @@ public class SubstanceSourceMaterial40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstanceSourceMaterial.SubstanceSourceMaterialOrganismComponent tgt = new org.hl7.fhir.r5.model.SubstanceSourceMaterial.SubstanceSourceMaterialOrganismComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFamily()) tgt.setFamily(CodeableConcept40_50.convertCodeableConcept(src.getFamily())); if (src.hasGenus()) @@ -157,7 +157,7 @@ public class SubstanceSourceMaterial40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstanceSourceMaterial.SubstanceSourceMaterialOrganismComponent tgt = new org.hl7.fhir.r4.model.SubstanceSourceMaterial.SubstanceSourceMaterialOrganismComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasFamily()) tgt.setFamily(CodeableConcept40_50.convertCodeableConcept(src.getFamily())); if (src.hasGenus()) @@ -181,7 +181,7 @@ public class SubstanceSourceMaterial40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstanceSourceMaterial.SubstanceSourceMaterialOrganismAuthorComponent tgt = new org.hl7.fhir.r5.model.SubstanceSourceMaterial.SubstanceSourceMaterialOrganismAuthorComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasAuthorType()) tgt.setAuthorType(CodeableConcept40_50.convertCodeableConcept(src.getAuthorType())); if (src.hasAuthorDescription()) @@ -193,7 +193,7 @@ public class SubstanceSourceMaterial40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstanceSourceMaterial.SubstanceSourceMaterialOrganismAuthorComponent tgt = new org.hl7.fhir.r4.model.SubstanceSourceMaterial.SubstanceSourceMaterialOrganismAuthorComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasAuthorType()) tgt.setAuthorType(CodeableConcept40_50.convertCodeableConcept(src.getAuthorType())); if (src.hasAuthorDescription()) @@ -205,7 +205,7 @@ public class SubstanceSourceMaterial40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstanceSourceMaterial.SubstanceSourceMaterialOrganismHybridComponent tgt = new org.hl7.fhir.r5.model.SubstanceSourceMaterial.SubstanceSourceMaterialOrganismHybridComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMaternalOrganismId()) tgt.setMaternalOrganismIdElement(String40_50.convertString(src.getMaternalOrganismIdElement())); if (src.hasMaternalOrganismName()) @@ -223,7 +223,7 @@ public class SubstanceSourceMaterial40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstanceSourceMaterial.SubstanceSourceMaterialOrganismHybridComponent tgt = new org.hl7.fhir.r4.model.SubstanceSourceMaterial.SubstanceSourceMaterialOrganismHybridComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasMaternalOrganismId()) tgt.setMaternalOrganismIdElement(String40_50.convertString(src.getMaternalOrganismIdElement())); if (src.hasMaternalOrganismName()) @@ -241,7 +241,7 @@ public class SubstanceSourceMaterial40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstanceSourceMaterial.SubstanceSourceMaterialOrganismOrganismGeneralComponent tgt = new org.hl7.fhir.r5.model.SubstanceSourceMaterial.SubstanceSourceMaterialOrganismOrganismGeneralComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasKingdom()) tgt.setKingdom(CodeableConcept40_50.convertCodeableConcept(src.getKingdom())); if (src.hasPhylum()) @@ -257,7 +257,7 @@ public class SubstanceSourceMaterial40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstanceSourceMaterial.SubstanceSourceMaterialOrganismOrganismGeneralComponent tgt = new org.hl7.fhir.r4.model.SubstanceSourceMaterial.SubstanceSourceMaterialOrganismOrganismGeneralComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasKingdom()) tgt.setKingdom(CodeableConcept40_50.convertCodeableConcept(src.getKingdom())); if (src.hasPhylum()) @@ -273,7 +273,7 @@ public class SubstanceSourceMaterial40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SubstanceSourceMaterial.SubstanceSourceMaterialPartDescriptionComponent tgt = new org.hl7.fhir.r5.model.SubstanceSourceMaterial.SubstanceSourceMaterialPartDescriptionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasPart()) tgt.setPart(CodeableConcept40_50.convertCodeableConcept(src.getPart())); if (src.hasPartLocation()) @@ -285,7 +285,7 @@ public class SubstanceSourceMaterial40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SubstanceSourceMaterial.SubstanceSourceMaterialPartDescriptionComponent tgt = new org.hl7.fhir.r4.model.SubstanceSourceMaterial.SubstanceSourceMaterialPartDescriptionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasPart()) tgt.setPart(CodeableConcept40_50.convertCodeableConcept(src.getPart())); if (src.hasPartLocation()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SupplyDelivery40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SupplyDelivery40_50.java index 321ce7070..25404265b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SupplyDelivery40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SupplyDelivery40_50.java @@ -146,7 +146,7 @@ public class SupplyDelivery40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SupplyDelivery.SupplyDeliverySuppliedItemComponent tgt = new org.hl7.fhir.r5.model.SupplyDelivery.SupplyDeliverySuppliedItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasQuantity()) tgt.setQuantity(SimpleQuantity40_50.convertSimpleQuantity(src.getQuantity())); if (src.hasItem()) @@ -158,7 +158,7 @@ public class SupplyDelivery40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SupplyDelivery.SupplyDeliverySuppliedItemComponent tgt = new org.hl7.fhir.r4.model.SupplyDelivery.SupplyDeliverySuppliedItemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasQuantity()) tgt.setQuantity(SimpleQuantity40_50.convertSimpleQuantity(src.getQuantity())); if (src.hasItem()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SupplyRequest40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SupplyRequest40_50.java index d1b07514b..9b7f9e9c7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SupplyRequest40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SupplyRequest40_50.java @@ -248,7 +248,7 @@ public class SupplyRequest40_50 { if (src == null) return null; org.hl7.fhir.r5.model.SupplyRequest.SupplyRequestParameterComponent tgt = new org.hl7.fhir.r5.model.SupplyRequest.SupplyRequestParameterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) @@ -260,7 +260,7 @@ public class SupplyRequest40_50 { if (src == null) return null; org.hl7.fhir.r4.model.SupplyRequest.SupplyRequestParameterComponent tgt = new org.hl7.fhir.r4.model.SupplyRequest.SupplyRequestParameterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Task40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Task40_50.java index 191274789..6a3a32e50 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Task40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Task40_50.java @@ -402,7 +402,7 @@ public class Task40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Task.TaskRestrictionComponent tgt = new org.hl7.fhir.r5.model.Task.TaskRestrictionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRepetitions()) tgt.setRepetitionsElement(PositiveInt40_50.convertPositiveInt(src.getRepetitionsElement())); if (src.hasPeriod()) @@ -415,7 +415,7 @@ public class Task40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Task.TaskRestrictionComponent tgt = new org.hl7.fhir.r4.model.Task.TaskRestrictionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRepetitions()) tgt.setRepetitionsElement(PositiveInt40_50.convertPositiveInt(src.getRepetitionsElement())); if (src.hasPeriod()) @@ -428,7 +428,7 @@ public class Task40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Task.ParameterComponent tgt = new org.hl7.fhir.r5.model.Task.ParameterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasValue()) @@ -440,7 +440,7 @@ public class Task40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Task.ParameterComponent tgt = new org.hl7.fhir.r4.model.Task.ParameterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasValue()) @@ -452,7 +452,7 @@ public class Task40_50 { if (src == null) return null; org.hl7.fhir.r5.model.Task.TaskOutputComponent tgt = new org.hl7.fhir.r5.model.Task.TaskOutputComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasValue()) @@ -464,7 +464,7 @@ public class Task40_50 { if (src == null) return null; org.hl7.fhir.r4.model.Task.TaskOutputComponent tgt = new org.hl7.fhir.r4.model.Task.TaskOutputComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasValue()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TerminologyCapabilities40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TerminologyCapabilities40_50.java index 9ab602696..481ce513f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TerminologyCapabilities40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TerminologyCapabilities40_50.java @@ -236,7 +236,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesSoftwareComponent tgt = new org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesSoftwareComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasVersion()) @@ -248,7 +248,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesSoftwareComponent tgt = new org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesSoftwareComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasVersion()) @@ -260,7 +260,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesImplementationComponent tgt = new org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesImplementationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDescription()) tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); if (src.hasUrl()) @@ -272,7 +272,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesImplementationComponent tgt = new org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesImplementationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDescription()) tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); if (src.hasUrl()) @@ -284,7 +284,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesCodeSystemComponent tgt = new org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesCodeSystemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasUri()) tgt.setUriElement(Canonical40_50.convertCanonical(src.getUriElement())); for (org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesCodeSystemVersionComponent t : src.getVersion()) @@ -298,7 +298,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesCodeSystemComponent tgt = new org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesCodeSystemComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasUri()) tgt.setUriElement(Canonical40_50.convertCanonical(src.getUriElement())); for (org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesCodeSystemVersionComponent t : src.getVersion()) @@ -312,7 +312,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesCodeSystemVersionComponent tgt = new org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesCodeSystemVersionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(String40_50.convertString(src.getCodeElement())); if (src.hasIsDefault()) @@ -330,7 +330,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesCodeSystemVersionComponent tgt = new org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesCodeSystemVersionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(String40_50.convertString(src.getCodeElement())); if (src.hasIsDefault()) @@ -348,7 +348,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesCodeSystemVersionFilterComponent tgt = new org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesCodeSystemVersionFilterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); for (org.hl7.fhir.r4.model.CodeType t : src.getOp()) tgt.getOp().add(Code40_50.convertCode(t)); @@ -359,7 +359,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesCodeSystemVersionFilterComponent tgt = new org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesCodeSystemVersionFilterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); for (org.hl7.fhir.r5.model.CodeType t : src.getOp()) tgt.getOp().add(Code40_50.convertCode(t)); @@ -370,7 +370,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesExpansionComponent tgt = new org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesExpansionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasHierarchical()) tgt.setHierarchicalElement(Boolean40_50.convertBoolean(src.getHierarchicalElement())); if (src.hasPaging()) @@ -388,7 +388,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesExpansionComponent tgt = new org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesExpansionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasHierarchical()) tgt.setHierarchicalElement(Boolean40_50.convertBoolean(src.getHierarchicalElement())); if (src.hasPaging()) @@ -406,7 +406,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesExpansionParameterComponent tgt = new org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesExpansionParameterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(Code40_50.convertCode(src.getNameElement())); if (src.hasDocumentation()) @@ -418,7 +418,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesExpansionParameterComponent tgt = new org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesExpansionParameterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(Code40_50.convertCode(src.getNameElement())); if (src.hasDocumentation()) @@ -430,7 +430,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesValidateCodeComponent tgt = new org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesValidateCodeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasTranslations()) tgt.setTranslationsElement(Boolean40_50.convertBoolean(src.getTranslationsElement())); return tgt; @@ -440,7 +440,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesValidateCodeComponent tgt = new org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesValidateCodeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasTranslations()) tgt.setTranslationsElement(Boolean40_50.convertBoolean(src.getTranslationsElement())); return tgt; @@ -450,7 +450,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesTranslationComponent tgt = new org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesTranslationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasNeedsMap()) tgt.setNeedsMapElement(Boolean40_50.convertBoolean(src.getNeedsMapElement())); return tgt; @@ -460,7 +460,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesTranslationComponent tgt = new org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesTranslationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasNeedsMap()) tgt.setNeedsMapElement(Boolean40_50.convertBoolean(src.getNeedsMapElement())); return tgt; @@ -470,7 +470,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesClosureComponent tgt = new org.hl7.fhir.r5.model.TerminologyCapabilities.TerminologyCapabilitiesClosureComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasTranslation()) tgt.setTranslationElement(Boolean40_50.convertBoolean(src.getTranslationElement())); return tgt; @@ -480,7 +480,7 @@ public class TerminologyCapabilities40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesClosureComponent tgt = new org.hl7.fhir.r4.model.TerminologyCapabilities.TerminologyCapabilitiesClosureComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasTranslation()) tgt.setTranslationElement(Boolean40_50.convertBoolean(src.getTranslationElement())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TestReport40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TestReport40_50.java index ee9786ae8..e35d4b7af 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TestReport40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TestReport40_50.java @@ -206,7 +206,7 @@ public class TestReport40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestReport.TestReportParticipantComponent tgt = new org.hl7.fhir.r5.model.TestReport.TestReportParticipantComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertTestReportParticipantType(src.getTypeElement())); if (src.hasUri()) @@ -220,7 +220,7 @@ public class TestReport40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestReport.TestReportParticipantComponent tgt = new org.hl7.fhir.r4.model.TestReport.TestReportParticipantComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setTypeElement(convertTestReportParticipantType(src.getTypeElement())); if (src.hasUri()) @@ -278,7 +278,7 @@ public class TestReport40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestReport.TestReportSetupComponent tgt = new org.hl7.fhir.r5.model.TestReport.TestReportSetupComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.TestReport.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -288,7 +288,7 @@ public class TestReport40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestReport.TestReportSetupComponent tgt = new org.hl7.fhir.r4.model.TestReport.TestReportSetupComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.TestReport.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -298,7 +298,7 @@ public class TestReport40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestReport.SetupActionComponent tgt = new org.hl7.fhir.r5.model.TestReport.SetupActionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -310,7 +310,7 @@ public class TestReport40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestReport.SetupActionComponent tgt = new org.hl7.fhir.r4.model.TestReport.SetupActionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -322,7 +322,7 @@ public class TestReport40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestReport.SetupActionOperationComponent tgt = new org.hl7.fhir.r5.model.TestReport.SetupActionOperationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasResult()) tgt.setResultElement(convertTestReportActionResult(src.getResultElement())); if (src.hasMessage()) @@ -336,7 +336,7 @@ public class TestReport40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestReport.SetupActionOperationComponent tgt = new org.hl7.fhir.r4.model.TestReport.SetupActionOperationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasResult()) tgt.setResultElement(convertTestReportActionResult(src.getResultElement())); if (src.hasMessage()) @@ -406,7 +406,7 @@ public class TestReport40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestReport.SetupActionAssertComponent tgt = new org.hl7.fhir.r5.model.TestReport.SetupActionAssertComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasResult()) tgt.setResultElement(convertTestReportActionResult(src.getResultElement())); if (src.hasMessage()) @@ -420,7 +420,7 @@ public class TestReport40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestReport.SetupActionAssertComponent tgt = new org.hl7.fhir.r4.model.TestReport.SetupActionAssertComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasResult()) tgt.setResultElement(convertTestReportActionResult(src.getResultElement())); if (src.hasMessage()) @@ -434,7 +434,7 @@ public class TestReport40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestReport.TestReportTestComponent tgt = new org.hl7.fhir.r5.model.TestReport.TestReportTestComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasDescription()) @@ -448,7 +448,7 @@ public class TestReport40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestReport.TestReportTestComponent tgt = new org.hl7.fhir.r4.model.TestReport.TestReportTestComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasDescription()) @@ -462,7 +462,7 @@ public class TestReport40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestReport.TestActionComponent tgt = new org.hl7.fhir.r5.model.TestReport.TestActionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -474,7 +474,7 @@ public class TestReport40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestReport.TestActionComponent tgt = new org.hl7.fhir.r4.model.TestReport.TestActionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -486,7 +486,7 @@ public class TestReport40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestReport.TestReportTeardownComponent tgt = new org.hl7.fhir.r5.model.TestReport.TestReportTeardownComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.TestReport.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -496,7 +496,7 @@ public class TestReport40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestReport.TestReportTeardownComponent tgt = new org.hl7.fhir.r4.model.TestReport.TestReportTeardownComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.TestReport.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -506,7 +506,7 @@ public class TestReport40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestReport.TeardownActionComponent tgt = new org.hl7.fhir.r5.model.TestReport.TeardownActionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; @@ -516,7 +516,7 @@ public class TestReport40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestReport.TeardownActionComponent tgt = new org.hl7.fhir.r4.model.TestReport.TeardownActionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TestScript40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TestScript40_50.java index 1e3a95966..2c58b884a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TestScript40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TestScript40_50.java @@ -189,7 +189,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptOriginComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptOriginComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasIndex()) tgt.setIndexElement(Integer40_50.convertInteger(src.getIndexElement())); if (src.hasProfile()) @@ -201,7 +201,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptOriginComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptOriginComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasIndex()) tgt.setIndexElement(Integer40_50.convertInteger(src.getIndexElement())); if (src.hasProfile()) @@ -213,7 +213,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptDestinationComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptDestinationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasIndex()) tgt.setIndexElement(Integer40_50.convertInteger(src.getIndexElement())); if (src.hasProfile()) @@ -225,7 +225,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptDestinationComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptDestinationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasIndex()) tgt.setIndexElement(Integer40_50.convertInteger(src.getIndexElement())); if (src.hasProfile()) @@ -237,7 +237,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptMetadataComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t)); for (org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) @@ -249,7 +249,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptMetadataComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptMetadataComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.TestScript.TestScriptMetadataLinkComponent t : src.getLink()) tgt.addLink(convertTestScriptMetadataLinkComponent(t)); for (org.hl7.fhir.r5.model.TestScript.TestScriptMetadataCapabilityComponent t : src.getCapability()) @@ -261,7 +261,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptMetadataLinkComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasUrl()) tgt.setUrlElement(Uri40_50.convertUri(src.getUrlElement())); if (src.hasDescription()) @@ -273,7 +273,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptMetadataLinkComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptMetadataLinkComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasUrl()) tgt.setUrlElement(Uri40_50.convertUri(src.getUrlElement())); if (src.hasDescription()) @@ -285,7 +285,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptMetadataCapabilityComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRequired()) tgt.setRequiredElement(Boolean40_50.convertBoolean(src.getRequiredElement())); if (src.hasValidated()) @@ -305,7 +305,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasRequired()) tgt.setRequiredElement(Boolean40_50.convertBoolean(src.getRequiredElement())); if (src.hasValidated()) @@ -325,7 +325,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptFixtureComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasAutocreate()) tgt.setAutocreateElement(Boolean40_50.convertBoolean(src.getAutocreateElement())); if (src.hasAutodelete()) @@ -339,7 +339,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptFixtureComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptFixtureComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasAutocreate()) tgt.setAutocreateElement(Boolean40_50.convertBoolean(src.getAutocreateElement())); if (src.hasAutodelete()) @@ -353,7 +353,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptVariableComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasDefaultValue()) @@ -377,7 +377,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptVariableComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptVariableComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasDefaultValue()) @@ -401,7 +401,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptSetupComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.TestScript.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -411,7 +411,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptSetupComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptSetupComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.TestScript.SetupActionComponent t : src.getAction()) tgt.addAction(convertSetupActionComponent(t)); return tgt; @@ -421,7 +421,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.SetupActionComponent tgt = new org.hl7.fhir.r5.model.TestScript.SetupActionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -433,7 +433,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.SetupActionComponent tgt = new org.hl7.fhir.r4.model.TestScript.SetupActionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -445,7 +445,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.r5.model.TestScript.SetupActionOperationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(Coding40_50.convertCoding(src.getType())); if (src.hasResource()) @@ -487,7 +487,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(Coding40_50.convertCoding(src.getType())); if (src.hasResource()) @@ -597,7 +597,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.SetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.r5.model.TestScript.SetupActionOperationRequestHeaderComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasField()) tgt.setFieldElement(String40_50.convertString(src.getFieldElement())); if (src.hasValue()) @@ -609,7 +609,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.SetupActionOperationRequestHeaderComponent tgt = new org.hl7.fhir.r4.model.TestScript.SetupActionOperationRequestHeaderComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasField()) tgt.setFieldElement(String40_50.convertString(src.getFieldElement())); if (src.hasValue()) @@ -621,7 +621,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.SetupActionAssertComponent tgt = new org.hl7.fhir.r5.model.TestScript.SetupActionAssertComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLabel()) tgt.setLabelElement(String40_50.convertString(src.getLabelElement())); if (src.hasDescription()) @@ -673,7 +673,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.SetupActionAssertComponent tgt = new org.hl7.fhir.r4.model.TestScript.SetupActionAssertComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLabel()) tgt.setLabelElement(String40_50.convertString(src.getLabelElement())); if (src.hasDescription()) @@ -953,7 +953,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptTestComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasDescription()) @@ -967,7 +967,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptTestComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptTestComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasDescription()) @@ -981,7 +981,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestActionComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestActionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -993,7 +993,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestActionComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestActionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); if (src.hasAssert()) @@ -1005,7 +1005,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.r5.model.TestScript.TestScriptTeardownComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.TestScript.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -1015,7 +1015,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TestScriptTeardownComponent tgt = new org.hl7.fhir.r4.model.TestScript.TestScriptTeardownComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.TestScript.TeardownActionComponent t : src.getAction()) tgt.addAction(convertTeardownActionComponent(t)); return tgt; @@ -1025,7 +1025,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r5.model.TestScript.TeardownActionComponent tgt = new org.hl7.fhir.r5.model.TestScript.TeardownActionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; @@ -1035,7 +1035,7 @@ public class TestScript40_50 { if (src == null) return null; org.hl7.fhir.r4.model.TestScript.TeardownActionComponent tgt = new org.hl7.fhir.r4.model.TestScript.TeardownActionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOperation()) tgt.setOperation(convertSetupActionOperationComponent(src.getOperation())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ValueSet40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ValueSet40_50.java index 590bc7f19..a7fb4ad84 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ValueSet40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ValueSet40_50.java @@ -132,7 +132,7 @@ public class ValueSet40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ValueSetComposeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLockedDate()) tgt.setLockedDateElement(Date40_50.convertDate(src.getLockedDateElement())); if (src.hasInactive()) @@ -148,7 +148,7 @@ public class ValueSet40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ValueSet.ValueSetComposeComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetComposeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLockedDate()) tgt.setLockedDateElement(Date40_50.convertDate(src.getLockedDateElement())); if (src.hasInactive()) @@ -164,7 +164,7 @@ public class ValueSet40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ConceptSetComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSystem()) tgt.setSystemElement(Uri40_50.convertUri(src.getSystemElement())); if (src.hasVersion()) @@ -182,7 +182,7 @@ public class ValueSet40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSystem()) tgt.setSystemElement(Uri40_50.convertUri(src.getSystemElement())); if (src.hasVersion()) @@ -200,7 +200,7 @@ public class ValueSet40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ConceptReferenceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -214,7 +214,7 @@ public class ValueSet40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptReferenceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); if (src.hasDisplay()) @@ -228,7 +228,7 @@ public class ValueSet40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ConceptReferenceDesignationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code40_50.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -242,7 +242,7 @@ public class ValueSet40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptReferenceDesignationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasLanguage()) tgt.setLanguageElement(Code40_50.convertCode(src.getLanguageElement())); if (src.hasUse()) @@ -256,7 +256,7 @@ public class ValueSet40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ConceptSetFilterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasProperty()) tgt.setPropertyElement(Code40_50.convertCode(src.getPropertyElement())); if (src.hasOp()) @@ -270,7 +270,7 @@ public class ValueSet40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptSetFilterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasProperty()) tgt.setPropertyElement(Code40_50.convertCode(src.getPropertyElement())); if (src.hasOp()) @@ -364,7 +364,7 @@ public class ValueSet40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasIdentifier()) tgt.setIdentifierElement(Uri40_50.convertUri(src.getIdentifierElement())); if (src.hasTimestamp()) @@ -384,7 +384,7 @@ public class ValueSet40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasIdentifier()) tgt.setIdentifierElement(Uri40_50.convertUri(src.getIdentifierElement())); if (src.hasTimestamp()) @@ -404,7 +404,7 @@ public class ValueSet40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionParameterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasValue()) @@ -416,7 +416,7 @@ public class ValueSet40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionParameterComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasValue()) @@ -428,7 +428,7 @@ public class ValueSet40_50 { if (src == null) return null; org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionContainsComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSystem()) tgt.setSystemElement(Uri40_50.convertUri(src.getSystemElement())); if (src.hasAbstract()) @@ -452,7 +452,7 @@ public class ValueSet40_50 { if (src == null) return null; org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionContainsComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSystem()) tgt.setSystemElement(Uri40_50.convertUri(src.getSystemElement())); if (src.hasAbstract()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/VerificationResult40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/VerificationResult40_50.java index 5f960fe0d..834e626bd 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/VerificationResult40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/VerificationResult40_50.java @@ -177,7 +177,7 @@ public class VerificationResult40_50 { if (src == null) return null; org.hl7.fhir.r5.model.VerificationResult.VerificationResultPrimarySourceComponent tgt = new org.hl7.fhir.r5.model.VerificationResult.VerificationResultPrimarySourceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasWho()) tgt.setWho(Reference40_50.convertReference(src.getWho())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) @@ -199,7 +199,7 @@ public class VerificationResult40_50 { if (src == null) return null; org.hl7.fhir.r4.model.VerificationResult.VerificationResultPrimarySourceComponent tgt = new org.hl7.fhir.r4.model.VerificationResult.VerificationResultPrimarySourceComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasWho()) tgt.setWho(Reference40_50.convertReference(src.getWho())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getType()) @@ -221,7 +221,7 @@ public class VerificationResult40_50 { if (src == null) return null; org.hl7.fhir.r5.model.VerificationResult.VerificationResultAttestationComponent tgt = new org.hl7.fhir.r5.model.VerificationResult.VerificationResultAttestationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasWho()) tgt.setWho(Reference40_50.convertReference(src.getWho())); if (src.hasOnBehalfOf()) @@ -245,7 +245,7 @@ public class VerificationResult40_50 { if (src == null) return null; org.hl7.fhir.r4.model.VerificationResult.VerificationResultAttestationComponent tgt = new org.hl7.fhir.r4.model.VerificationResult.VerificationResultAttestationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasWho()) tgt.setWho(Reference40_50.convertReference(src.getWho())); if (src.hasOnBehalfOf()) @@ -269,7 +269,7 @@ public class VerificationResult40_50 { if (src == null) return null; org.hl7.fhir.r5.model.VerificationResult.VerificationResultValidatorComponent tgt = new org.hl7.fhir.r5.model.VerificationResult.VerificationResultValidatorComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOrganization()) tgt.setOrganization(Reference40_50.convertReference(src.getOrganization())); if (src.hasIdentityCertificate()) @@ -283,7 +283,7 @@ public class VerificationResult40_50 { if (src == null) return null; org.hl7.fhir.r4.model.VerificationResult.VerificationResultValidatorComponent tgt = new org.hl7.fhir.r4.model.VerificationResult.VerificationResultValidatorComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasOrganization()) tgt.setOrganization(Reference40_50.convertReference(src.getOrganization())); if (src.hasIdentityCertificate()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/VisionPrescription40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/VisionPrescription40_50.java index 7acb38644..7fbeb3160 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/VisionPrescription40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/VisionPrescription40_50.java @@ -145,7 +145,7 @@ public class VisionPrescription40_50 { if (src == null) return null; org.hl7.fhir.r5.model.VisionPrescription.VisionPrescriptionLensSpecificationComponent tgt = new org.hl7.fhir.r5.model.VisionPrescription.VisionPrescriptionLensSpecificationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasProduct()) tgt.setProduct(CodeableConcept40_50.convertCodeableConcept(src.getProduct())); if (src.hasEye()) @@ -180,7 +180,7 @@ public class VisionPrescription40_50 { if (src == null) return null; org.hl7.fhir.r4.model.VisionPrescription.VisionPrescriptionLensSpecificationComponent tgt = new org.hl7.fhir.r4.model.VisionPrescription.VisionPrescriptionLensSpecificationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasProduct()) tgt.setProduct(CodeableConcept40_50.convertCodeableConcept(src.getProduct())); if (src.hasEye()) @@ -253,7 +253,7 @@ public class VisionPrescription40_50 { if (src == null) return null; org.hl7.fhir.r5.model.VisionPrescription.PrismComponent tgt = new org.hl7.fhir.r5.model.VisionPrescription.PrismComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasAmount()) tgt.setAmountElement(Decimal40_50.convertDecimal(src.getAmountElement())); if (src.hasBase()) @@ -265,7 +265,7 @@ public class VisionPrescription40_50 { if (src == null) return null; org.hl7.fhir.r4.model.VisionPrescription.PrismComponent tgt = new org.hl7.fhir.r4.model.VisionPrescription.PrismComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasAmount()) tgt.setAmountElement(Decimal40_50.convertDecimal(src.getAmountElement())); if (src.hasBase()) diff --git a/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv10_30/BackboneElement10_30Test.java b/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv10_30/BackboneElement10_30Test.java new file mode 100644 index 000000000..0487298d1 --- /dev/null +++ b/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv10_30/BackboneElement10_30Test.java @@ -0,0 +1,47 @@ +package org.hl7.fhir.convertors.conv10_30; + +import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_30; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_10_30; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.Arguments; +import org.junit.jupiter.params.provider.MethodSource; + +import java.io.IOException; +import java.io.InputStream; +import java.util.stream.Stream; + +public class BackboneElement10_30Test { + private static Stream filesPaths() { + return Stream.of( + Arguments.of("/backbone_element_10.json", "/backbone_element_30.json") + ); + } + + @ParameterizedTest + @MethodSource("filesPaths") + @DisplayName("Test 10_30 BackboneElement conversion") + public void testConversion(String dstu2_path, String stu_path) throws IOException { + InputStream dstu2_input = this.getClass().getResourceAsStream(dstu2_path); + InputStream stu_exepected_input = this.getClass().getResourceAsStream(stu_path); + + org.hl7.fhir.dstu2.model.Bundle dstu2 = (org.hl7.fhir.dstu2.model.Bundle) new org.hl7.fhir.dstu2.formats.JsonParser().parse(dstu2_input); + org.hl7.fhir.dstu3.model.Resource stu_actual = VersionConvertorFactory_10_30.convertResource(dstu2, new BaseAdvisor_10_30()); + + org.hl7.fhir.dstu3.formats.JsonParser stu_parser = new org.hl7.fhir.dstu3.formats.JsonParser(); + org.hl7.fhir.dstu3.model.Resource stu_expected = stu_parser.parse(stu_exepected_input); + + if (!stu_expected.equalsDeep(stu_actual)) { + System.out.println("Expected"); + System.out.println(stu_parser.composeString(stu_expected)); + System.out.println(); + System.out.println("Actual"); + System.out.println(stu_parser.composeString(stu_actual)); + } + + Assertions.assertTrue(stu_expected.equalsDeep(stu_actual), + "Failed comparing\n" + stu_parser.composeString(stu_actual) + "\nand\n" + stu_parser.composeString(stu_expected) + ); + } +} diff --git a/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv10_40/BackboneElement10_40Test.java b/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv10_40/BackboneElement10_40Test.java new file mode 100644 index 000000000..acbae7890 --- /dev/null +++ b/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv10_40/BackboneElement10_40Test.java @@ -0,0 +1,47 @@ +package org.hl7.fhir.convertors.conv10_40; + +import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_40; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_10_40; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.Arguments; +import org.junit.jupiter.params.provider.MethodSource; + +import java.io.IOException; +import java.io.InputStream; +import java.util.stream.Stream; + +public class BackboneElement10_40Test { + private static Stream filesPaths() { + return Stream.of( + Arguments.of("/backbone_element_10.json", "/backbone_element_40.json") + ); + } + + @ParameterizedTest + @MethodSource("filesPaths") + @DisplayName("Test 10_40 BackboneElement conversion") + public void testConversion(String dstu2_path, String stu_path) throws IOException { + InputStream dstu2_input = this.getClass().getResourceAsStream(dstu2_path); + InputStream stu_exepected_input = this.getClass().getResourceAsStream(stu_path); + + org.hl7.fhir.dstu2.model.Bundle dstu2 = (org.hl7.fhir.dstu2.model.Bundle) new org.hl7.fhir.dstu2.formats.JsonParser().parse(dstu2_input); + org.hl7.fhir.r4.model.Resource stu_actual = VersionConvertorFactory_10_40.convertResource(dstu2, new BaseAdvisor_10_40()); + + org.hl7.fhir.r4.formats.JsonParser stu_parser = new org.hl7.fhir.r4.formats.JsonParser(); + org.hl7.fhir.r4.model.Resource stu_expected = stu_parser.parse(stu_exepected_input); + + if (!stu_expected.equalsDeep(stu_actual)) { + System.out.println("Expected"); + System.out.println(stu_parser.composeString(stu_expected)); + System.out.println(); + System.out.println("Actual"); + System.out.println(stu_parser.composeString(stu_actual)); + } + + Assertions.assertTrue(stu_expected.equalsDeep(stu_actual), + "Failed comparing\n" + stu_parser.composeString(stu_actual) + "\nand\n" + stu_parser.composeString(stu_expected) + ); + } +} diff --git a/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv10_50/BackboneElement10_50Test.java b/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv10_50/BackboneElement10_50Test.java new file mode 100644 index 000000000..4cec94f34 --- /dev/null +++ b/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv10_50/BackboneElement10_50Test.java @@ -0,0 +1,47 @@ +package org.hl7.fhir.convertors.conv10_50; + +import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_50; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_10_50; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.Arguments; +import org.junit.jupiter.params.provider.MethodSource; + +import java.io.IOException; +import java.io.InputStream; +import java.util.stream.Stream; + +public class BackboneElement10_50Test { + private static Stream filesPaths() { + return Stream.of( + Arguments.of("/backbone_element_10.json", "/backbone_element_50.json") + ); + } + + @ParameterizedTest + @MethodSource("filesPaths") + @DisplayName("Test 10_50 BackboneElement conversion") + public void testConversion(String dstu2_path, String stu_path) throws IOException { + InputStream dstu2_input = this.getClass().getResourceAsStream(dstu2_path); + InputStream stu_exepected_input = this.getClass().getResourceAsStream(stu_path); + + org.hl7.fhir.dstu2.model.Bundle dstu2 = (org.hl7.fhir.dstu2.model.Bundle) new org.hl7.fhir.dstu2.formats.JsonParser().parse(dstu2_input); + org.hl7.fhir.r5.model.Resource stu_actual = VersionConvertorFactory_10_50.convertResource(dstu2, new BaseAdvisor_10_50()); + + org.hl7.fhir.r5.formats.JsonParser stu_parser = new org.hl7.fhir.r5.formats.JsonParser(); + org.hl7.fhir.r5.model.Resource stu_expected = stu_parser.parse(stu_exepected_input); + + if (!stu_expected.equalsDeep(stu_actual)) { + System.out.println("Expected"); + System.out.println(stu_parser.composeString(stu_expected)); + System.out.println(); + System.out.println("Actual"); + System.out.println(stu_parser.composeString(stu_actual)); + } + + Assertions.assertTrue(stu_expected.equalsDeep(stu_actual), + "Failed comparing\n" + stu_parser.composeString(stu_actual) + "\nand\n" + stu_parser.composeString(stu_expected) + ); + } +} diff --git a/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv30_40/BackboneElement30_40Test.java b/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv30_40/BackboneElement30_40Test.java new file mode 100644 index 000000000..c17f82cbc --- /dev/null +++ b/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv30_40/BackboneElement30_40Test.java @@ -0,0 +1,47 @@ +package org.hl7.fhir.convertors.conv30_40; + +import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_30_40; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_30_40; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.Arguments; +import org.junit.jupiter.params.provider.MethodSource; + +import java.io.IOException; +import java.io.InputStream; +import java.util.stream.Stream; + +public class BackboneElement30_40Test { + private static Stream filesPaths() { + return Stream.of( + Arguments.of("/backbone_element_30.json", "/backbone_element_40.json") + ); + } + + @ParameterizedTest + @MethodSource("filesPaths") + @DisplayName("Test 30_40 BackboneElement conversion") + public void testConversion(String dstu3_path, String stu_path) throws IOException { + InputStream dstu3_input = this.getClass().getResourceAsStream(dstu3_path); + InputStream stu_exepected_input = this.getClass().getResourceAsStream(stu_path); + + org.hl7.fhir.dstu3.model.Bundle dstu3 = (org.hl7.fhir.dstu3.model.Bundle) new org.hl7.fhir.dstu3.formats.JsonParser().parse(dstu3_input); + org.hl7.fhir.r4.model.Resource stu_actual = VersionConvertorFactory_30_40.convertResource(dstu3, new BaseAdvisor_30_40()); + + org.hl7.fhir.r4.formats.JsonParser stu_parser = new org.hl7.fhir.r4.formats.JsonParser(); + org.hl7.fhir.r4.model.Resource stu_expected = stu_parser.parse(stu_exepected_input); + + if (!stu_expected.equalsDeep(stu_actual)) { + System.out.println("Expected"); + System.out.println(stu_parser.composeString(stu_expected)); + System.out.println(); + System.out.println("Actual"); + System.out.println(stu_parser.composeString(stu_actual)); + } + + Assertions.assertTrue(stu_expected.equalsDeep(stu_actual), + "Failed comparing\n" + stu_parser.composeString(stu_actual) + "\nand\n" + stu_parser.composeString(stu_expected) + ); + } +} diff --git a/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv30_50/BackboneElement30_50Test.java b/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv30_50/BackboneElement30_50Test.java new file mode 100644 index 000000000..044e4b097 --- /dev/null +++ b/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv30_50/BackboneElement30_50Test.java @@ -0,0 +1,47 @@ +package org.hl7.fhir.convertors.conv30_50; + +import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_30_50; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_30_50; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.Arguments; +import org.junit.jupiter.params.provider.MethodSource; + +import java.io.IOException; +import java.io.InputStream; +import java.util.stream.Stream; + +public class BackboneElement30_50Test { + private static Stream filesPaths() { + return Stream.of( + Arguments.of("/backbone_element_30.json", "/backbone_element_50.json") + ); + } + + @ParameterizedTest + @MethodSource("filesPaths") + @DisplayName("Test 30_50 BackboneElement conversion") + public void testConversion(String dstu3_path, String stu_path) throws IOException { + InputStream dstu3_input = this.getClass().getResourceAsStream(dstu3_path); + InputStream stu_exepected_input = this.getClass().getResourceAsStream(stu_path); + + org.hl7.fhir.dstu3.model.Bundle dstu3 = (org.hl7.fhir.dstu3.model.Bundle) new org.hl7.fhir.dstu3.formats.JsonParser().parse(dstu3_input); + org.hl7.fhir.r5.model.Resource stu_actual = VersionConvertorFactory_30_50.convertResource(dstu3, new BaseAdvisor_30_50()); + + org.hl7.fhir.r5.formats.JsonParser stu_parser = new org.hl7.fhir.r5.formats.JsonParser(); + org.hl7.fhir.r5.model.Resource stu_expected = stu_parser.parse(stu_exepected_input); + + if (!stu_expected.equalsDeep(stu_actual)) { + System.out.println("Expected"); + System.out.println(stu_parser.composeString(stu_expected)); + System.out.println(); + System.out.println("Actual"); + System.out.println(stu_parser.composeString(stu_actual)); + } + + Assertions.assertTrue(stu_expected.equalsDeep(stu_actual), + "Failed comparing\n" + stu_parser.composeString(stu_actual) + "\nand\n" + stu_parser.composeString(stu_expected) + ); + } +} diff --git a/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv40_50/BackboneElement40_50Test.java b/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv40_50/BackboneElement40_50Test.java new file mode 100644 index 000000000..0abcf73df --- /dev/null +++ b/org.hl7.fhir.convertors/src/test/java/org/hl7/fhir/convertors/conv40_50/BackboneElement40_50Test.java @@ -0,0 +1,49 @@ +package org.hl7.fhir.convertors.conv40_50; + +import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_30_50; +import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_40_50; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_30_50; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_40_50; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.Arguments; +import org.junit.jupiter.params.provider.MethodSource; + +import java.io.IOException; +import java.io.InputStream; +import java.util.stream.Stream; + +public class BackboneElement40_50Test { + private static Stream filesPaths() { + return Stream.of( + Arguments.of("/backbone_element_40.json", "/backbone_element_50.json") + ); + } + + @ParameterizedTest + @MethodSource("filesPaths") + @DisplayName("Test 40_50 BackboneElement conversion") + public void testConversion(String r4_path, String stu_path) throws IOException { + InputStream r4_input = this.getClass().getResourceAsStream(r4_path); + InputStream stu_exepected_input = this.getClass().getResourceAsStream(stu_path); + + org.hl7.fhir.r4.model.Bundle r4 = (org.hl7.fhir.r4.model.Bundle) new org.hl7.fhir.r4.formats.JsonParser().parse(r4_input); + org.hl7.fhir.r5.model.Resource stu_actual = VersionConvertorFactory_40_50.convertResource(r4, new BaseAdvisor_40_50()); + + org.hl7.fhir.r5.formats.JsonParser stu_parser = new org.hl7.fhir.r5.formats.JsonParser(); + org.hl7.fhir.r5.model.Resource stu_expected = stu_parser.parse(stu_exepected_input); + + if (!stu_expected.equalsDeep(stu_actual)) { + System.out.println("Expected"); + System.out.println(stu_parser.composeString(stu_expected)); + System.out.println(); + System.out.println("Actual"); + System.out.println(stu_parser.composeString(stu_actual)); + } + + Assertions.assertTrue(stu_expected.equalsDeep(stu_actual), + "Failed comparing\n" + stu_parser.composeString(stu_actual) + "\nand\n" + stu_parser.composeString(stu_expected) + ); + } +} diff --git a/org.hl7.fhir.convertors/src/test/resources/backbone_element_10.json b/org.hl7.fhir.convertors/src/test/resources/backbone_element_10.json new file mode 100644 index 000000000..6f4735b6a --- /dev/null +++ b/org.hl7.fhir.convertors/src/test/resources/backbone_element_10.json @@ -0,0 +1,15 @@ +{ + "resourceType": "Bundle", + "id": "bundle-example", + "type": "searchset", + "link": [ + { + "relation": "self", + "url": "https://example.com/base/MedicationRequest?patient=347&_include=MedicationRequest.medication&_count=2", + "modifierExtension" :[{ + "url" : "http://hl7.org/fhir/StructureDefinition/iso-21090-EN-use", + "valueCode" : "I" + }] + } + ] +} diff --git a/org.hl7.fhir.convertors/src/test/resources/backbone_element_30.json b/org.hl7.fhir.convertors/src/test/resources/backbone_element_30.json new file mode 100644 index 000000000..6f4735b6a --- /dev/null +++ b/org.hl7.fhir.convertors/src/test/resources/backbone_element_30.json @@ -0,0 +1,15 @@ +{ + "resourceType": "Bundle", + "id": "bundle-example", + "type": "searchset", + "link": [ + { + "relation": "self", + "url": "https://example.com/base/MedicationRequest?patient=347&_include=MedicationRequest.medication&_count=2", + "modifierExtension" :[{ + "url" : "http://hl7.org/fhir/StructureDefinition/iso-21090-EN-use", + "valueCode" : "I" + }] + } + ] +} diff --git a/org.hl7.fhir.convertors/src/test/resources/backbone_element_40.json b/org.hl7.fhir.convertors/src/test/resources/backbone_element_40.json new file mode 100644 index 000000000..6f4735b6a --- /dev/null +++ b/org.hl7.fhir.convertors/src/test/resources/backbone_element_40.json @@ -0,0 +1,15 @@ +{ + "resourceType": "Bundle", + "id": "bundle-example", + "type": "searchset", + "link": [ + { + "relation": "self", + "url": "https://example.com/base/MedicationRequest?patient=347&_include=MedicationRequest.medication&_count=2", + "modifierExtension" :[{ + "url" : "http://hl7.org/fhir/StructureDefinition/iso-21090-EN-use", + "valueCode" : "I" + }] + } + ] +} diff --git a/org.hl7.fhir.convertors/src/test/resources/backbone_element_50.json b/org.hl7.fhir.convertors/src/test/resources/backbone_element_50.json new file mode 100644 index 000000000..6f4735b6a --- /dev/null +++ b/org.hl7.fhir.convertors/src/test/resources/backbone_element_50.json @@ -0,0 +1,15 @@ +{ + "resourceType": "Bundle", + "id": "bundle-example", + "type": "searchset", + "link": [ + { + "relation": "self", + "url": "https://example.com/base/MedicationRequest?patient=347&_include=MedicationRequest.medication&_count=2", + "modifierExtension" :[{ + "url" : "http://hl7.org/fhir/StructureDefinition/iso-21090-EN-use", + "valueCode" : "I" + }] + } + ] +}