Changing filenames to reflect version

This commit is contained in:
markiantorno 2020-02-05 13:28:43 -05:00
parent 3a6ab2f545
commit 147164d66d
132 changed files with 2230 additions and 491 deletions

View File

@ -32,6 +32,8 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
import org.hl7.fhir.convertors.conv40_50.StructureDefinition40_50;
import org.hl7.fhir.convertors.conv40_50.ValueSet40_50;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.exceptions.FHIRFormatError;
import org.hl7.fhir.r5.elementmodel.Manager.FhirFormat;
@ -164,7 +166,7 @@ public class SpecDifferenceEvaluator {
for (org.hl7.fhir.r4.model.Bundle.BundleEntryComponent be : bundle.getEntry()) {
if (be.getResource() instanceof org.hl7.fhir.r4.model.StructureDefinition) {
org.hl7.fhir.r4.model.StructureDefinition sd = (org.hl7.fhir.r4.model.StructureDefinition) be.getResource();
map.put(sd.getName(), org.hl7.fhir.convertors.conv40_50.StructureDefinition.convertStructureDefinition(sd));
map.put(sd.getName(), StructureDefinition40_50.convertStructureDefinition(sd));
}
}
@ -184,7 +186,7 @@ public class SpecDifferenceEvaluator {
for (org.hl7.fhir.r4.model.Bundle.BundleEntryComponent be : bundle.getEntry()) {
if (be.getResource() instanceof org.hl7.fhir.r4.model.ValueSet) {
org.hl7.fhir.r4.model.ValueSet sd = (org.hl7.fhir.r4.model.ValueSet) be.getResource();
map.put(sd.getName(), org.hl7.fhir.convertors.conv40_50.ValueSet.convertValueSet(sd));
map.put(sd.getName(), ValueSet40_50.convertValueSet(sd));
}
}
}

View File

@ -24,6 +24,7 @@ package org.hl7.fhir.convertors;
import java.net.URISyntaxException;
import java.util.Map;
import org.hl7.fhir.convertors.conv40_50.TerminologyCapabilities40_50;
import org.hl7.fhir.r4.utils.client.FHIRToolingClient;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.utils.client.ToolingClientLogger;
@ -43,7 +44,7 @@ public class TerminologyClientR4 implements TerminologyClient {
@Override
public TerminologyCapabilities getTerminologyCapabilities() throws FHIRException {
return (TerminologyCapabilities) org.hl7.fhir.convertors.conv40_50.TerminologyCapabilities.convertTerminologyCapabilities(client.getTerminologyCapabilities());
return (TerminologyCapabilities) TerminologyCapabilities40_50.convertTerminologyCapabilities(client.getTerminologyCapabilities());
}
@Override

View File

@ -28,11 +28,7 @@ package org.hl7.fhir.convertors;
*/
import org.hl7.fhir.convertors.conv40_50.*;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CodeType;
import org.hl7.fhir.r5.model.CodeableReference;
import org.hl7.fhir.r5.model.Enumeration;
import org.hl7.fhir.r5.model.Enumerations.ResourceTypeEnum;
import org.hl7.fhir.r5.model.Enumerations.ResourceTypeEnumEnumFactory;
/*
@ -2853,7 +2849,7 @@ public class VersionConvertor_40_50 {
org.hl7.fhir.r5.model.ElementDefinition.ElementDefinitionBindingComponent tgt = new org.hl7.fhir.r5.model.ElementDefinition.ElementDefinitionBindingComponent();
copyElement(src, tgt);
if (src.hasStrength())
tgt.setStrength(Enumerations.convertBindingStrength(src.getStrength()));
tgt.setStrength(Enumerations40_50.convertBindingStrength(src.getStrength()));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
if (src.hasValueSet())
@ -2867,7 +2863,7 @@ public class VersionConvertor_40_50 {
org.hl7.fhir.r4.model.ElementDefinition.ElementDefinitionBindingComponent tgt = new org.hl7.fhir.r4.model.ElementDefinition.ElementDefinitionBindingComponent();
copyElement(src, tgt);
if (src.hasStrength())
tgt.setStrength(Enumerations.convertBindingStrength(src.getStrength()));
tgt.setStrength(Enumerations40_50.convertBindingStrength(src.getStrength()));
if (src.hasDescription())
tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
if (src.hasValueSet())
@ -3278,263 +3274,263 @@ public class VersionConvertor_40_50 {
if (src == null)
return null;
if (src instanceof org.hl7.fhir.r4.model.Parameters)
return Parameters.convertParameters((org.hl7.fhir.r4.model.Parameters) src);
return Parameters40_50.convertParameters((org.hl7.fhir.r4.model.Parameters) src);
if (src instanceof org.hl7.fhir.r4.model.Account)
return Account.convertAccount((org.hl7.fhir.r4.model.Account) src);
return Account40_50.convertAccount((org.hl7.fhir.r4.model.Account) src);
if (src instanceof org.hl7.fhir.r4.model.ActivityDefinition)
return ActivityDefinition.convertActivityDefinition((org.hl7.fhir.r4.model.ActivityDefinition) src);
return ActivityDefinition40_50.convertActivityDefinition((org.hl7.fhir.r4.model.ActivityDefinition) src);
// if (src instanceof org.hl7.fhir.r4.model.AdverseEvent)
// return AdverseEvent.convertAdverseEvent((org.hl7.fhir.r4.model.AdverseEvent) src);
if (src instanceof org.hl7.fhir.r4.model.AllergyIntolerance)
return AllergyIntolerance.convertAllergyIntolerance((org.hl7.fhir.r4.model.AllergyIntolerance) src);
return AllergyIntolerance40_50.convertAllergyIntolerance((org.hl7.fhir.r4.model.AllergyIntolerance) src);
if (src instanceof org.hl7.fhir.r4.model.Appointment)
return Appointment.convertAppointment((org.hl7.fhir.r4.model.Appointment) src);
return Appointment40_50.convertAppointment((org.hl7.fhir.r4.model.Appointment) src);
if (src instanceof org.hl7.fhir.r4.model.AppointmentResponse)
return AppointmentResponse.convertAppointmentResponse((org.hl7.fhir.r4.model.AppointmentResponse) src);
return AppointmentResponse40_50.convertAppointmentResponse((org.hl7.fhir.r4.model.AppointmentResponse) src);
if (src instanceof org.hl7.fhir.r4.model.AuditEvent)
return AuditEvent.convertAuditEvent((org.hl7.fhir.r4.model.AuditEvent) src);
return AuditEvent40_50.convertAuditEvent((org.hl7.fhir.r4.model.AuditEvent) src);
if (src instanceof org.hl7.fhir.r4.model.Basic)
return Basic.convertBasic((org.hl7.fhir.r4.model.Basic) src);
return Basic40_50.convertBasic((org.hl7.fhir.r4.model.Basic) src);
if (src instanceof org.hl7.fhir.r4.model.Binary)
return Binary.convertBinary((org.hl7.fhir.r4.model.Binary) src);
return Binary40_50.convertBinary((org.hl7.fhir.r4.model.Binary) src);
if (src instanceof org.hl7.fhir.r4.model.BiologicallyDerivedProduct)
return BiologicallyDerivedProduct.convertBiologicallyDerivedProduct((org.hl7.fhir.r4.model.BiologicallyDerivedProduct) src);
return BiologicallyDerivedProduct40_50.convertBiologicallyDerivedProduct((org.hl7.fhir.r4.model.BiologicallyDerivedProduct) src);
if (src instanceof org.hl7.fhir.r4.model.BodyStructure)
return BodyStructure.convertBodyStructure((org.hl7.fhir.r4.model.BodyStructure) src);
return BodyStructure40_50.convertBodyStructure((org.hl7.fhir.r4.model.BodyStructure) src);
if (src instanceof org.hl7.fhir.r4.model.Bundle)
return Bundle.convertBundle((org.hl7.fhir.r4.model.Bundle) src);
return Bundle40_50.convertBundle((org.hl7.fhir.r4.model.Bundle) src);
if (src instanceof org.hl7.fhir.r4.model.CapabilityStatement)
return CapabilityStatement.convertCapabilityStatement((org.hl7.fhir.r4.model.CapabilityStatement) src);
return CapabilityStatement40_50.convertCapabilityStatement((org.hl7.fhir.r4.model.CapabilityStatement) src);
if (src instanceof org.hl7.fhir.r4.model.CarePlan)
return CarePlan.convertCarePlan((org.hl7.fhir.r4.model.CarePlan) src);
return CarePlan40_50.convertCarePlan((org.hl7.fhir.r4.model.CarePlan) src);
if (src instanceof org.hl7.fhir.r4.model.CareTeam)
return CareTeam.convertCareTeam((org.hl7.fhir.r4.model.CareTeam) src);
return CareTeam40_50.convertCareTeam((org.hl7.fhir.r4.model.CareTeam) src);
// if (src instanceof org.hl7.fhir.r4.model.CatalogEntry)
// return CatalogEntry.convertCatalogEntry((org.hl7.fhir.r4.model.CatalogEntry) src);
if (src instanceof org.hl7.fhir.r4.model.ChargeItem)
return ChargeItem.convertChargeItem((org.hl7.fhir.r4.model.ChargeItem) src);
return ChargeItem40_50.convertChargeItem((org.hl7.fhir.r4.model.ChargeItem) src);
if (src instanceof org.hl7.fhir.r4.model.ChargeItemDefinition)
return ChargeItemDefinition.convertChargeItemDefinition((org.hl7.fhir.r4.model.ChargeItemDefinition) src);
return ChargeItemDefinition40_50.convertChargeItemDefinition((org.hl7.fhir.r4.model.ChargeItemDefinition) src);
if (src instanceof org.hl7.fhir.r4.model.Claim)
return Claim.convertClaim((org.hl7.fhir.r4.model.Claim) src);
return Claim40_50.convertClaim((org.hl7.fhir.r4.model.Claim) src);
if (src instanceof org.hl7.fhir.r4.model.ClaimResponse)
return ClaimResponse.convertClaimResponse((org.hl7.fhir.r4.model.ClaimResponse) src);
return ClaimResponse40_50.convertClaimResponse((org.hl7.fhir.r4.model.ClaimResponse) src);
if (src instanceof org.hl7.fhir.r4.model.ClinicalImpression)
return ClinicalImpression.convertClinicalImpression((org.hl7.fhir.r4.model.ClinicalImpression) src);
return ClinicalImpression40_50.convertClinicalImpression((org.hl7.fhir.r4.model.ClinicalImpression) src);
if (src instanceof org.hl7.fhir.r4.model.CodeSystem)
return CodeSystem.convertCodeSystem((org.hl7.fhir.r4.model.CodeSystem) src);
return CodeSystem40_50.convertCodeSystem((org.hl7.fhir.r4.model.CodeSystem) src);
if (src instanceof org.hl7.fhir.r4.model.Communication)
return Communication.convertCommunication((org.hl7.fhir.r4.model.Communication) src);
return Communication40_50.convertCommunication((org.hl7.fhir.r4.model.Communication) src);
if (src instanceof org.hl7.fhir.r4.model.CommunicationRequest)
return CommunicationRequest.convertCommunicationRequest((org.hl7.fhir.r4.model.CommunicationRequest) src);
return CommunicationRequest40_50.convertCommunicationRequest((org.hl7.fhir.r4.model.CommunicationRequest) src);
if (src instanceof org.hl7.fhir.r4.model.CompartmentDefinition)
return CompartmentDefinition.convertCompartmentDefinition((org.hl7.fhir.r4.model.CompartmentDefinition) src);
return CompartmentDefinition40_50.convertCompartmentDefinition((org.hl7.fhir.r4.model.CompartmentDefinition) src);
if (src instanceof org.hl7.fhir.r4.model.Composition)
return Composition.convertComposition((org.hl7.fhir.r4.model.Composition) src);
return Composition40_50.convertComposition((org.hl7.fhir.r4.model.Composition) src);
if (src instanceof org.hl7.fhir.r4.model.ConceptMap)
return ConceptMap.convertConceptMap((org.hl7.fhir.r4.model.ConceptMap) src);
return ConceptMap40_50.convertConceptMap((org.hl7.fhir.r4.model.ConceptMap) src);
if (src instanceof org.hl7.fhir.r4.model.Condition)
return Condition.convertCondition((org.hl7.fhir.r4.model.Condition) src);
return Condition40_50.convertCondition((org.hl7.fhir.r4.model.Condition) src);
if (src instanceof org.hl7.fhir.r4.model.Consent)
return Consent.convertConsent((org.hl7.fhir.r4.model.Consent) src);
return Consent40_50.convertConsent((org.hl7.fhir.r4.model.Consent) src);
if (src instanceof org.hl7.fhir.r4.model.Contract)
return Contract.convertContract((org.hl7.fhir.r4.model.Contract) src);
return Contract40_50.convertContract((org.hl7.fhir.r4.model.Contract) src);
if (src instanceof org.hl7.fhir.r4.model.Coverage)
return Coverage.convertCoverage((org.hl7.fhir.r4.model.Coverage) src);
return Coverage40_50.convertCoverage((org.hl7.fhir.r4.model.Coverage) src);
if (src instanceof org.hl7.fhir.r4.model.CoverageEligibilityRequest)
return CoverageEligibilityRequest.convertCoverageEligibilityRequest((org.hl7.fhir.r4.model.CoverageEligibilityRequest) src);
return CoverageEligibilityRequest40_50.convertCoverageEligibilityRequest((org.hl7.fhir.r4.model.CoverageEligibilityRequest) src);
if (src instanceof org.hl7.fhir.r4.model.CoverageEligibilityResponse)
return CoverageEligibilityResponse.convertCoverageEligibilityResponse((org.hl7.fhir.r4.model.CoverageEligibilityResponse) src);
return CoverageEligibilityResponse40_50.convertCoverageEligibilityResponse((org.hl7.fhir.r4.model.CoverageEligibilityResponse) src);
if (src instanceof org.hl7.fhir.r4.model.DetectedIssue)
return DetectedIssue.convertDetectedIssue((org.hl7.fhir.r4.model.DetectedIssue) src);
return DetectedIssue40_50.convertDetectedIssue((org.hl7.fhir.r4.model.DetectedIssue) src);
if (src instanceof org.hl7.fhir.r4.model.Device)
return Device.convertDevice((org.hl7.fhir.r4.model.Device) src);
return Device40_50.convertDevice((org.hl7.fhir.r4.model.Device) src);
if (src instanceof org.hl7.fhir.r4.model.DeviceDefinition)
return DeviceDefinition.convertDeviceDefinition((org.hl7.fhir.r4.model.DeviceDefinition) src);
return DeviceDefinition40_50.convertDeviceDefinition((org.hl7.fhir.r4.model.DeviceDefinition) src);
if (src instanceof org.hl7.fhir.r4.model.DeviceMetric)
return DeviceMetric.convertDeviceMetric((org.hl7.fhir.r4.model.DeviceMetric) src);
return DeviceMetric40_50.convertDeviceMetric((org.hl7.fhir.r4.model.DeviceMetric) src);
if (src instanceof org.hl7.fhir.r4.model.DeviceRequest)
return DeviceRequest.convertDeviceRequest((org.hl7.fhir.r4.model.DeviceRequest) src);
return DeviceRequest40_50.convertDeviceRequest((org.hl7.fhir.r4.model.DeviceRequest) src);
if (src instanceof org.hl7.fhir.r4.model.DeviceUseStatement)
return DeviceUseStatement.convertDeviceUseStatement((org.hl7.fhir.r4.model.DeviceUseStatement) src);
return DeviceUseStatement40_50.convertDeviceUseStatement((org.hl7.fhir.r4.model.DeviceUseStatement) src);
if (src instanceof org.hl7.fhir.r4.model.DiagnosticReport)
return DiagnosticReport.convertDiagnosticReport((org.hl7.fhir.r4.model.DiagnosticReport) src);
return DiagnosticReport40_50.convertDiagnosticReport((org.hl7.fhir.r4.model.DiagnosticReport) src);
if (src instanceof org.hl7.fhir.r4.model.DocumentManifest)
return DocumentManifest.convertDocumentManifest((org.hl7.fhir.r4.model.DocumentManifest) src);
return DocumentManifest40_50.convertDocumentManifest((org.hl7.fhir.r4.model.DocumentManifest) src);
if (src instanceof org.hl7.fhir.r4.model.DocumentReference)
return DocumentReference.convertDocumentReference((org.hl7.fhir.r4.model.DocumentReference) src);
return DocumentReference40_50.convertDocumentReference((org.hl7.fhir.r4.model.DocumentReference) src);
if (src instanceof org.hl7.fhir.r4.model.Encounter)
return Encounter.convertEncounter((org.hl7.fhir.r4.model.Encounter) src);
return Encounter40_50.convertEncounter((org.hl7.fhir.r4.model.Encounter) src);
if (src instanceof org.hl7.fhir.r4.model.Endpoint)
return Endpoint.convertEndpoint((org.hl7.fhir.r4.model.Endpoint) src);
return Endpoint40_50.convertEndpoint((org.hl7.fhir.r4.model.Endpoint) src);
if (src instanceof org.hl7.fhir.r4.model.EnrollmentRequest)
return EnrollmentRequest.convertEnrollmentRequest((org.hl7.fhir.r4.model.EnrollmentRequest) src);
return EnrollmentRequest40_50.convertEnrollmentRequest((org.hl7.fhir.r4.model.EnrollmentRequest) src);
if (src instanceof org.hl7.fhir.r4.model.EnrollmentResponse)
return EnrollmentResponse.convertEnrollmentResponse((org.hl7.fhir.r4.model.EnrollmentResponse) src);
return EnrollmentResponse40_50.convertEnrollmentResponse((org.hl7.fhir.r4.model.EnrollmentResponse) src);
if (src instanceof org.hl7.fhir.r4.model.EpisodeOfCare)
return EpisodeOfCare.convertEpisodeOfCare((org.hl7.fhir.r4.model.EpisodeOfCare) src);
return EpisodeOfCare40_50.convertEpisodeOfCare((org.hl7.fhir.r4.model.EpisodeOfCare) src);
if (src instanceof org.hl7.fhir.r4.model.EventDefinition)
return EventDefinition.convertEventDefinition((org.hl7.fhir.r4.model.EventDefinition) src);
return EventDefinition40_50.convertEventDefinition((org.hl7.fhir.r4.model.EventDefinition) src);
if (src instanceof org.hl7.fhir.r4.model.ExampleScenario)
return ExampleScenario.convertExampleScenario((org.hl7.fhir.r4.model.ExampleScenario) src);
return ExampleScenario40_50.convertExampleScenario((org.hl7.fhir.r4.model.ExampleScenario) src);
if (src instanceof org.hl7.fhir.r4.model.ExplanationOfBenefit)
return ExplanationOfBenefit.convertExplanationOfBenefit((org.hl7.fhir.r4.model.ExplanationOfBenefit) src);
return ExplanationOfBenefit40_50.convertExplanationOfBenefit((org.hl7.fhir.r4.model.ExplanationOfBenefit) src);
if (src instanceof org.hl7.fhir.r4.model.FamilyMemberHistory)
return FamilyMemberHistory.convertFamilyMemberHistory((org.hl7.fhir.r4.model.FamilyMemberHistory) src);
return FamilyMemberHistory40_50.convertFamilyMemberHistory((org.hl7.fhir.r4.model.FamilyMemberHistory) src);
if (src instanceof org.hl7.fhir.r4.model.Flag)
return Flag.convertFlag((org.hl7.fhir.r4.model.Flag) src);
return Flag40_50.convertFlag((org.hl7.fhir.r4.model.Flag) src);
if (src instanceof org.hl7.fhir.r4.model.Goal)
return Goal.convertGoal((org.hl7.fhir.r4.model.Goal) src);
return Goal40_50.convertGoal((org.hl7.fhir.r4.model.Goal) src);
if (src instanceof org.hl7.fhir.r4.model.GraphDefinition)
return GraphDefinition.convertGraphDefinition((org.hl7.fhir.r4.model.GraphDefinition) src);
return GraphDefinition40_50.convertGraphDefinition((org.hl7.fhir.r4.model.GraphDefinition) src);
if (src instanceof org.hl7.fhir.r4.model.Group)
return Group.convertGroup((org.hl7.fhir.r4.model.Group) src);
return Group40_50.convertGroup((org.hl7.fhir.r4.model.Group) src);
if (src instanceof org.hl7.fhir.r4.model.GuidanceResponse)
return GuidanceResponse.convertGuidanceResponse((org.hl7.fhir.r4.model.GuidanceResponse) src);
return GuidanceResponse40_50.convertGuidanceResponse((org.hl7.fhir.r4.model.GuidanceResponse) src);
if (src instanceof org.hl7.fhir.r4.model.HealthcareService)
return HealthcareService.convertHealthcareService((org.hl7.fhir.r4.model.HealthcareService) src);
return HealthcareService40_50.convertHealthcareService((org.hl7.fhir.r4.model.HealthcareService) src);
if (src instanceof org.hl7.fhir.r4.model.ImagingStudy)
return ImagingStudy.convertImagingStudy((org.hl7.fhir.r4.model.ImagingStudy) src);
return ImagingStudy40_50.convertImagingStudy((org.hl7.fhir.r4.model.ImagingStudy) src);
if (src instanceof org.hl7.fhir.r4.model.Immunization)
return Immunization.convertImmunization((org.hl7.fhir.r4.model.Immunization) src);
return Immunization40_50.convertImmunization((org.hl7.fhir.r4.model.Immunization) src);
if (src instanceof org.hl7.fhir.r4.model.ImmunizationEvaluation)
return ImmunizationEvaluation.convertImmunizationEvaluation((org.hl7.fhir.r4.model.ImmunizationEvaluation) src);
return ImmunizationEvaluation40_50.convertImmunizationEvaluation((org.hl7.fhir.r4.model.ImmunizationEvaluation) src);
if (src instanceof org.hl7.fhir.r4.model.ImmunizationRecommendation)
return ImmunizationRecommendation.convertImmunizationRecommendation((org.hl7.fhir.r4.model.ImmunizationRecommendation) src);
return ImmunizationRecommendation40_50.convertImmunizationRecommendation((org.hl7.fhir.r4.model.ImmunizationRecommendation) src);
if (src instanceof org.hl7.fhir.r4.model.ImplementationGuide)
return ImplementationGuide.convertImplementationGuide((org.hl7.fhir.r4.model.ImplementationGuide) src);
return ImplementationGuide40_50.convertImplementationGuide((org.hl7.fhir.r4.model.ImplementationGuide) src);
if (src instanceof org.hl7.fhir.r4.model.InsurancePlan)
return InsurancePlan.convertInsurancePlan((org.hl7.fhir.r4.model.InsurancePlan) src);
return InsurancePlan40_50.convertInsurancePlan((org.hl7.fhir.r4.model.InsurancePlan) src);
if (src instanceof org.hl7.fhir.r4.model.Invoice)
return Invoice.convertInvoice((org.hl7.fhir.r4.model.Invoice) src);
return Invoice40_50.convertInvoice((org.hl7.fhir.r4.model.Invoice) src);
if (src instanceof org.hl7.fhir.r4.model.Library)
return Library.convertLibrary((org.hl7.fhir.r4.model.Library) src);
return Library40_50.convertLibrary((org.hl7.fhir.r4.model.Library) src);
if (src instanceof org.hl7.fhir.r4.model.Linkage)
return Linkage.convertLinkage((org.hl7.fhir.r4.model.Linkage) src);
return Linkage40_50.convertLinkage((org.hl7.fhir.r4.model.Linkage) src);
if (src instanceof org.hl7.fhir.r4.model.ListResource)
return ListResource.convertListResource((org.hl7.fhir.r4.model.ListResource) src);
return ListResource40_50.convertListResource((org.hl7.fhir.r4.model.ListResource) src);
if (src instanceof org.hl7.fhir.r4.model.Location)
return Location.convertLocation((org.hl7.fhir.r4.model.Location) src);
return Location40_50.convertLocation((org.hl7.fhir.r4.model.Location) src);
if (src instanceof org.hl7.fhir.r4.model.Measure)
return Measure.convertMeasure((org.hl7.fhir.r4.model.Measure) src);
return Measure40_50.convertMeasure((org.hl7.fhir.r4.model.Measure) src);
if (src instanceof org.hl7.fhir.r4.model.MeasureReport)
return MeasureReport.convertMeasureReport((org.hl7.fhir.r4.model.MeasureReport) src);
return MeasureReport40_50.convertMeasureReport((org.hl7.fhir.r4.model.MeasureReport) src);
if (src instanceof org.hl7.fhir.r4.model.Media)
return Media.convertMedia((org.hl7.fhir.r4.model.Media) src);
return Media40_50.convertMedia((org.hl7.fhir.r4.model.Media) src);
if (src instanceof org.hl7.fhir.r4.model.Medication)
return Medication.convertMedication((org.hl7.fhir.r4.model.Medication) src);
return Medication40_50.convertMedication((org.hl7.fhir.r4.model.Medication) src);
if (src instanceof org.hl7.fhir.r4.model.MedicationAdministration)
return MedicationAdministration.convertMedicationAdministration((org.hl7.fhir.r4.model.MedicationAdministration) src);
return MedicationAdministration40_50.convertMedicationAdministration((org.hl7.fhir.r4.model.MedicationAdministration) src);
if (src instanceof org.hl7.fhir.r4.model.MedicationDispense)
return MedicationDispense.convertMedicationDispense((org.hl7.fhir.r4.model.MedicationDispense) src);
return MedicationDispense40_50.convertMedicationDispense((org.hl7.fhir.r4.model.MedicationDispense) src);
if (src instanceof org.hl7.fhir.r4.model.MedicationKnowledge)
return MedicationKnowledge.convertMedicationKnowledge((org.hl7.fhir.r4.model.MedicationKnowledge) src);
return MedicationKnowledge40_50.convertMedicationKnowledge((org.hl7.fhir.r4.model.MedicationKnowledge) src);
if (src instanceof org.hl7.fhir.r4.model.MedicationRequest)
return MedicationRequest.convertMedicationRequest((org.hl7.fhir.r4.model.MedicationRequest) src);
return MedicationRequest40_50.convertMedicationRequest((org.hl7.fhir.r4.model.MedicationRequest) src);
if (src instanceof org.hl7.fhir.r4.model.MedicationStatement)
return MedicationStatement.convertMedicationStatement((org.hl7.fhir.r4.model.MedicationStatement) src);
return MedicationStatement40_50.convertMedicationStatement((org.hl7.fhir.r4.model.MedicationStatement) src);
if (src instanceof org.hl7.fhir.r4.model.MessageDefinition)
return MessageDefinition.convertMessageDefinition((org.hl7.fhir.r4.model.MessageDefinition) src);
return MessageDefinition40_50.convertMessageDefinition((org.hl7.fhir.r4.model.MessageDefinition) src);
if (src instanceof org.hl7.fhir.r4.model.MessageHeader)
return MessageHeader.convertMessageHeader((org.hl7.fhir.r4.model.MessageHeader) src);
return MessageHeader40_50.convertMessageHeader((org.hl7.fhir.r4.model.MessageHeader) src);
if (src instanceof org.hl7.fhir.r4.model.MolecularSequence)
return MolecularSequence.convertMolecularSequence((org.hl7.fhir.r4.model.MolecularSequence) src);
return MolecularSequence40_50.convertMolecularSequence((org.hl7.fhir.r4.model.MolecularSequence) src);
if (src instanceof org.hl7.fhir.r4.model.NamingSystem)
return NamingSystem.convertNamingSystem((org.hl7.fhir.r4.model.NamingSystem) src);
return NamingSystem40_50.convertNamingSystem((org.hl7.fhir.r4.model.NamingSystem) src);
if (src instanceof org.hl7.fhir.r4.model.NutritionOrder)
return NutritionOrder.convertNutritionOrder((org.hl7.fhir.r4.model.NutritionOrder) src);
return NutritionOrder40_50.convertNutritionOrder((org.hl7.fhir.r4.model.NutritionOrder) src);
if (src instanceof org.hl7.fhir.r4.model.Observation)
return Observation.convertObservation((org.hl7.fhir.r4.model.Observation) src);
return Observation40_50.convertObservation((org.hl7.fhir.r4.model.Observation) src);
if (src instanceof org.hl7.fhir.r4.model.ObservationDefinition)
return ObservationDefinition.convertObservationDefinition((org.hl7.fhir.r4.model.ObservationDefinition) src);
return ObservationDefinition40_50.convertObservationDefinition((org.hl7.fhir.r4.model.ObservationDefinition) src);
if (src instanceof org.hl7.fhir.r4.model.OperationDefinition)
return OperationDefinition.convertOperationDefinition((org.hl7.fhir.r4.model.OperationDefinition) src);
return OperationDefinition40_50.convertOperationDefinition((org.hl7.fhir.r4.model.OperationDefinition) src);
if (src instanceof org.hl7.fhir.r4.model.OperationOutcome)
return OperationOutcome.convertOperationOutcome((org.hl7.fhir.r4.model.OperationOutcome) src);
return OperationOutcome40_50.convertOperationOutcome((org.hl7.fhir.r4.model.OperationOutcome) src);
if (src instanceof org.hl7.fhir.r4.model.Organization)
return Organization.convertOrganization((org.hl7.fhir.r4.model.Organization) src);
return Organization40_50.convertOrganization((org.hl7.fhir.r4.model.Organization) src);
if (src instanceof org.hl7.fhir.r4.model.OrganizationAffiliation)
return OrganizationAffiliation.convertOrganizationAffiliation((org.hl7.fhir.r4.model.OrganizationAffiliation) src);
return OrganizationAffiliation40_50.convertOrganizationAffiliation((org.hl7.fhir.r4.model.OrganizationAffiliation) src);
if (src instanceof org.hl7.fhir.r4.model.Patient)
return Patient.convertPatient((org.hl7.fhir.r4.model.Patient) src);
return Patient40_50.convertPatient((org.hl7.fhir.r4.model.Patient) src);
if (src instanceof org.hl7.fhir.r4.model.PaymentNotice)
return PaymentNotice.convertPaymentNotice((org.hl7.fhir.r4.model.PaymentNotice) src);
return PaymentNotice40_50.convertPaymentNotice((org.hl7.fhir.r4.model.PaymentNotice) src);
if (src instanceof org.hl7.fhir.r4.model.PaymentReconciliation)
return PaymentReconciliation.convertPaymentReconciliation((org.hl7.fhir.r4.model.PaymentReconciliation) src);
return PaymentReconciliation40_50.convertPaymentReconciliation((org.hl7.fhir.r4.model.PaymentReconciliation) src);
if (src instanceof org.hl7.fhir.r4.model.Person)
return Person.convertPerson((org.hl7.fhir.r4.model.Person) src);
return Person40_50.convertPerson((org.hl7.fhir.r4.model.Person) src);
if (src instanceof org.hl7.fhir.r4.model.PlanDefinition)
return PlanDefinition.convertPlanDefinition((org.hl7.fhir.r4.model.PlanDefinition) src);
return PlanDefinition40_50.convertPlanDefinition((org.hl7.fhir.r4.model.PlanDefinition) src);
if (src instanceof org.hl7.fhir.r4.model.Practitioner)
return Practitioner.convertPractitioner((org.hl7.fhir.r4.model.Practitioner) src);
return Practitioner40_50.convertPractitioner((org.hl7.fhir.r4.model.Practitioner) src);
if (src instanceof org.hl7.fhir.r4.model.PractitionerRole)
return PractitionerRole.convertPractitionerRole((org.hl7.fhir.r4.model.PractitionerRole) src);
return PractitionerRole40_50.convertPractitionerRole((org.hl7.fhir.r4.model.PractitionerRole) src);
if (src instanceof org.hl7.fhir.r4.model.Procedure)
return Procedure.convertProcedure((org.hl7.fhir.r4.model.Procedure) src);
return Procedure40_50.convertProcedure((org.hl7.fhir.r4.model.Procedure) src);
if (src instanceof org.hl7.fhir.r4.model.Provenance)
return Provenance.convertProvenance((org.hl7.fhir.r4.model.Provenance) src);
return Provenance40_50.convertProvenance((org.hl7.fhir.r4.model.Provenance) src);
if (src instanceof org.hl7.fhir.r4.model.Questionnaire)
return Questionnaire.convertQuestionnaire((org.hl7.fhir.r4.model.Questionnaire) src);
return Questionnaire40_50.convertQuestionnaire((org.hl7.fhir.r4.model.Questionnaire) src);
if (src instanceof org.hl7.fhir.r4.model.QuestionnaireResponse)
return QuestionnaireResponse.convertQuestionnaireResponse((org.hl7.fhir.r4.model.QuestionnaireResponse) src);
return QuestionnaireResponse40_50.convertQuestionnaireResponse((org.hl7.fhir.r4.model.QuestionnaireResponse) src);
if (src instanceof org.hl7.fhir.r4.model.RelatedPerson)
return RelatedPerson.convertRelatedPerson((org.hl7.fhir.r4.model.RelatedPerson) src);
return RelatedPerson40_50.convertRelatedPerson((org.hl7.fhir.r4.model.RelatedPerson) src);
if (src instanceof org.hl7.fhir.r4.model.RequestGroup)
return RequestGroup.convertRequestGroup((org.hl7.fhir.r4.model.RequestGroup) src);
return RequestGroup40_50.convertRequestGroup((org.hl7.fhir.r4.model.RequestGroup) src);
if (src instanceof org.hl7.fhir.r4.model.ResearchStudy)
return ResearchStudy.convertResearchStudy((org.hl7.fhir.r4.model.ResearchStudy) src);
return ResearchStudy40_50.convertResearchStudy((org.hl7.fhir.r4.model.ResearchStudy) src);
if (src instanceof org.hl7.fhir.r4.model.ResearchSubject)
return ResearchSubject.convertResearchSubject((org.hl7.fhir.r4.model.ResearchSubject) src);
return ResearchSubject40_50.convertResearchSubject((org.hl7.fhir.r4.model.ResearchSubject) src);
if (src instanceof org.hl7.fhir.r4.model.RiskAssessment)
return RiskAssessment.convertRiskAssessment((org.hl7.fhir.r4.model.RiskAssessment) src);
return RiskAssessment40_50.convertRiskAssessment((org.hl7.fhir.r4.model.RiskAssessment) src);
if (src instanceof org.hl7.fhir.r4.model.Schedule)
return Schedule.convertSchedule((org.hl7.fhir.r4.model.Schedule) src);
return Schedule40_50.convertSchedule((org.hl7.fhir.r4.model.Schedule) src);
if (src instanceof org.hl7.fhir.r4.model.SearchParameter)
return SearchParameter.convertSearchParameter((org.hl7.fhir.r4.model.SearchParameter) src);
return SearchParameter40_50.convertSearchParameter((org.hl7.fhir.r4.model.SearchParameter) src);
if (src instanceof org.hl7.fhir.r4.model.ServiceRequest)
return ServiceRequest.convertServiceRequest((org.hl7.fhir.r4.model.ServiceRequest) src);
return ServiceRequest40_50.convertServiceRequest((org.hl7.fhir.r4.model.ServiceRequest) src);
if (src instanceof org.hl7.fhir.r4.model.Slot)
return Slot.convertSlot((org.hl7.fhir.r4.model.Slot) src);
return Slot40_50.convertSlot((org.hl7.fhir.r4.model.Slot) src);
if (src instanceof org.hl7.fhir.r4.model.Specimen)
return Specimen.convertSpecimen((org.hl7.fhir.r4.model.Specimen) src);
return Specimen40_50.convertSpecimen((org.hl7.fhir.r4.model.Specimen) src);
if (src instanceof org.hl7.fhir.r4.model.SpecimenDefinition)
return SpecimenDefinition.convertSpecimenDefinition((org.hl7.fhir.r4.model.SpecimenDefinition) src);
return SpecimenDefinition40_50.convertSpecimenDefinition((org.hl7.fhir.r4.model.SpecimenDefinition) src);
if (src instanceof org.hl7.fhir.r4.model.StructureDefinition)
return StructureDefinition.convertStructureDefinition((org.hl7.fhir.r4.model.StructureDefinition) src);
return StructureDefinition40_50.convertStructureDefinition((org.hl7.fhir.r4.model.StructureDefinition) src);
if (src instanceof org.hl7.fhir.r4.model.StructureMap)
return StructureMap.convertStructureMap((org.hl7.fhir.r4.model.StructureMap) src);
return StructureMap40_50.convertStructureMap((org.hl7.fhir.r4.model.StructureMap) src);
// if (src instanceof org.hl7.fhir.r4.model.Subscription)
// return Subscription.convertSubscription((org.hl7.fhir.r4.model.Subscription) src);
if (src instanceof org.hl7.fhir.r4.model.Substance)
return Substance.convertSubstance((org.hl7.fhir.r4.model.Substance) src);
return Substance40_50.convertSubstance((org.hl7.fhir.r4.model.Substance) src);
if (src instanceof org.hl7.fhir.r4.model.SubstanceNucleicAcid)
return SubstanceNucleicAcid.convertSubstanceNucleicAcid((org.hl7.fhir.r4.model.SubstanceNucleicAcid) src);
return SubstanceNucleicAcid40_50.convertSubstanceNucleicAcid((org.hl7.fhir.r4.model.SubstanceNucleicAcid) src);
if (src instanceof org.hl7.fhir.r4.model.SubstancePolymer)
return SubstancePolymer.convertSubstancePolymer((org.hl7.fhir.r4.model.SubstancePolymer) src);
return SubstancePolymer40_50.convertSubstancePolymer((org.hl7.fhir.r4.model.SubstancePolymer) src);
if (src instanceof org.hl7.fhir.r4.model.SubstanceProtein)
return SubstanceProtein.convertSubstanceProtein((org.hl7.fhir.r4.model.SubstanceProtein) src);
return SubstanceProtein40_50.convertSubstanceProtein((org.hl7.fhir.r4.model.SubstanceProtein) src);
if (src instanceof org.hl7.fhir.r4.model.SubstanceReferenceInformation)
return SubstanceReferenceInformation.convertSubstanceReferenceInformation((org.hl7.fhir.r4.model.SubstanceReferenceInformation) src);
return SubstanceReferenceInformation40_50.convertSubstanceReferenceInformation((org.hl7.fhir.r4.model.SubstanceReferenceInformation) src);
if (src instanceof org.hl7.fhir.r4.model.SubstanceSourceMaterial)
return SubstanceSourceMaterial.convertSubstanceSourceMaterial((org.hl7.fhir.r4.model.SubstanceSourceMaterial) src);
return SubstanceSourceMaterial40_50.convertSubstanceSourceMaterial((org.hl7.fhir.r4.model.SubstanceSourceMaterial) src);
if (src instanceof org.hl7.fhir.r4.model.SupplyDelivery)
return SupplyDelivery.convertSupplyDelivery((org.hl7.fhir.r4.model.SupplyDelivery) src);
return SupplyDelivery40_50.convertSupplyDelivery((org.hl7.fhir.r4.model.SupplyDelivery) src);
if (src instanceof org.hl7.fhir.r4.model.SupplyRequest)
return SupplyRequest.convertSupplyRequest((org.hl7.fhir.r4.model.SupplyRequest) src);
return SupplyRequest40_50.convertSupplyRequest((org.hl7.fhir.r4.model.SupplyRequest) src);
if (src instanceof org.hl7.fhir.r4.model.Task)
return Task.convertTask((org.hl7.fhir.r4.model.Task) src);
return Task40_50.convertTask((org.hl7.fhir.r4.model.Task) src);
if (src instanceof org.hl7.fhir.r4.model.TerminologyCapabilities)
return TerminologyCapabilities.convertTerminologyCapabilities((org.hl7.fhir.r4.model.TerminologyCapabilities) src);
return TerminologyCapabilities40_50.convertTerminologyCapabilities((org.hl7.fhir.r4.model.TerminologyCapabilities) src);
if (src instanceof org.hl7.fhir.r4.model.TestReport)
return TestReport.convertTestReport((org.hl7.fhir.r4.model.TestReport) src);
return TestReport40_50.convertTestReport((org.hl7.fhir.r4.model.TestReport) src);
if (src instanceof org.hl7.fhir.r4.model.TestScript)
return TestScript.convertTestScript((org.hl7.fhir.r4.model.TestScript) src);
return TestScript40_50.convertTestScript((org.hl7.fhir.r4.model.TestScript) src);
if (src instanceof org.hl7.fhir.r4.model.ValueSet)
return ValueSet.convertValueSet((org.hl7.fhir.r4.model.ValueSet) src);
return ValueSet40_50.convertValueSet((org.hl7.fhir.r4.model.ValueSet) src);
if (src instanceof org.hl7.fhir.r4.model.VerificationResult)
return VerificationResult.convertVerificationResult((org.hl7.fhir.r4.model.VerificationResult) src);
return VerificationResult40_50.convertVerificationResult((org.hl7.fhir.r4.model.VerificationResult) src);
if (src instanceof org.hl7.fhir.r4.model.VisionPrescription)
return VisionPrescription.convertVisionPrescription((org.hl7.fhir.r4.model.VisionPrescription) src);
return VisionPrescription40_50.convertVisionPrescription((org.hl7.fhir.r4.model.VisionPrescription) src);
throw new Error("Unknown resource "+src.fhirType());
}
@ -3542,263 +3538,263 @@ public class VersionConvertor_40_50 {
if (src == null)
return null;
if (src instanceof org.hl7.fhir.r5.model.Parameters)
return Parameters.convertParameters((org.hl7.fhir.r5.model.Parameters) src);
return Parameters40_50.convertParameters((org.hl7.fhir.r5.model.Parameters) src);
if (src instanceof org.hl7.fhir.r5.model.Account)
return Account.convertAccount((org.hl7.fhir.r5.model.Account) src);
return Account40_50.convertAccount((org.hl7.fhir.r5.model.Account) src);
if (src instanceof org.hl7.fhir.r5.model.ActivityDefinition)
return ActivityDefinition.convertActivityDefinition((org.hl7.fhir.r5.model.ActivityDefinition) src);
return ActivityDefinition40_50.convertActivityDefinition((org.hl7.fhir.r5.model.ActivityDefinition) src);
// if (src instanceof org.hl7.fhir.r5.model.AdverseEvent)
// return AdverseEvent.convertAdverseEvent((org.hl7.fhir.r5.model.AdverseEvent) src);
if (src instanceof org.hl7.fhir.r5.model.AllergyIntolerance)
return AllergyIntolerance.convertAllergyIntolerance((org.hl7.fhir.r5.model.AllergyIntolerance) src);
return AllergyIntolerance40_50.convertAllergyIntolerance((org.hl7.fhir.r5.model.AllergyIntolerance) src);
if (src instanceof org.hl7.fhir.r5.model.Appointment)
return Appointment.convertAppointment((org.hl7.fhir.r5.model.Appointment) src);
return Appointment40_50.convertAppointment((org.hl7.fhir.r5.model.Appointment) src);
if (src instanceof org.hl7.fhir.r5.model.AppointmentResponse)
return AppointmentResponse.convertAppointmentResponse((org.hl7.fhir.r5.model.AppointmentResponse) src);
return AppointmentResponse40_50.convertAppointmentResponse((org.hl7.fhir.r5.model.AppointmentResponse) src);
if (src instanceof org.hl7.fhir.r5.model.AuditEvent)
return AuditEvent.convertAuditEvent((org.hl7.fhir.r5.model.AuditEvent) src);
return AuditEvent40_50.convertAuditEvent((org.hl7.fhir.r5.model.AuditEvent) src);
if (src instanceof org.hl7.fhir.r5.model.Basic)
return Basic.convertBasic((org.hl7.fhir.r5.model.Basic) src);
return Basic40_50.convertBasic((org.hl7.fhir.r5.model.Basic) src);
if (src instanceof org.hl7.fhir.r5.model.Binary)
return Binary.convertBinary((org.hl7.fhir.r5.model.Binary) src);
return Binary40_50.convertBinary((org.hl7.fhir.r5.model.Binary) src);
if (src instanceof org.hl7.fhir.r5.model.BiologicallyDerivedProduct)
return BiologicallyDerivedProduct.convertBiologicallyDerivedProduct((org.hl7.fhir.r5.model.BiologicallyDerivedProduct) src);
return BiologicallyDerivedProduct40_50.convertBiologicallyDerivedProduct((org.hl7.fhir.r5.model.BiologicallyDerivedProduct) src);
if (src instanceof org.hl7.fhir.r5.model.BodyStructure)
return BodyStructure.convertBodyStructure((org.hl7.fhir.r5.model.BodyStructure) src);
return BodyStructure40_50.convertBodyStructure((org.hl7.fhir.r5.model.BodyStructure) src);
if (src instanceof org.hl7.fhir.r5.model.Bundle)
return Bundle.convertBundle((org.hl7.fhir.r5.model.Bundle) src);
return Bundle40_50.convertBundle((org.hl7.fhir.r5.model.Bundle) src);
if (src instanceof org.hl7.fhir.r5.model.CapabilityStatement)
return CapabilityStatement.convertCapabilityStatement((org.hl7.fhir.r5.model.CapabilityStatement) src);
return CapabilityStatement40_50.convertCapabilityStatement((org.hl7.fhir.r5.model.CapabilityStatement) src);
if (src instanceof org.hl7.fhir.r5.model.CarePlan)
return CarePlan.convertCarePlan((org.hl7.fhir.r5.model.CarePlan) src);
return CarePlan40_50.convertCarePlan((org.hl7.fhir.r5.model.CarePlan) src);
if (src instanceof org.hl7.fhir.r5.model.CareTeam)
return CareTeam.convertCareTeam((org.hl7.fhir.r5.model.CareTeam) src);
return CareTeam40_50.convertCareTeam((org.hl7.fhir.r5.model.CareTeam) src);
// if (src instanceof org.hl7.fhir.r5.model.CatalogEntry)
// return CatalogEntry.convertCatalogEntry((org.hl7.fhir.r5.model.CatalogEntry) src);
if (src instanceof org.hl7.fhir.r5.model.ChargeItem)
return ChargeItem.convertChargeItem((org.hl7.fhir.r5.model.ChargeItem) src);
return ChargeItem40_50.convertChargeItem((org.hl7.fhir.r5.model.ChargeItem) src);
if (src instanceof org.hl7.fhir.r5.model.ChargeItemDefinition)
return ChargeItemDefinition.convertChargeItemDefinition((org.hl7.fhir.r5.model.ChargeItemDefinition) src);
return ChargeItemDefinition40_50.convertChargeItemDefinition((org.hl7.fhir.r5.model.ChargeItemDefinition) src);
if (src instanceof org.hl7.fhir.r5.model.Claim)
return Claim.convertClaim((org.hl7.fhir.r5.model.Claim) src);
return Claim40_50.convertClaim((org.hl7.fhir.r5.model.Claim) src);
if (src instanceof org.hl7.fhir.r5.model.ClaimResponse)
return ClaimResponse.convertClaimResponse((org.hl7.fhir.r5.model.ClaimResponse) src);
return ClaimResponse40_50.convertClaimResponse((org.hl7.fhir.r5.model.ClaimResponse) src);
if (src instanceof org.hl7.fhir.r5.model.ClinicalImpression)
return ClinicalImpression.convertClinicalImpression((org.hl7.fhir.r5.model.ClinicalImpression) src);
return ClinicalImpression40_50.convertClinicalImpression((org.hl7.fhir.r5.model.ClinicalImpression) src);
if (src instanceof org.hl7.fhir.r5.model.CodeSystem)
return CodeSystem.convertCodeSystem((org.hl7.fhir.r5.model.CodeSystem) src);
return CodeSystem40_50.convertCodeSystem((org.hl7.fhir.r5.model.CodeSystem) src);
if (src instanceof org.hl7.fhir.r5.model.Communication)
return Communication.convertCommunication((org.hl7.fhir.r5.model.Communication) src);
return Communication40_50.convertCommunication((org.hl7.fhir.r5.model.Communication) src);
if (src instanceof org.hl7.fhir.r5.model.CommunicationRequest)
return CommunicationRequest.convertCommunicationRequest((org.hl7.fhir.r5.model.CommunicationRequest) src);
return CommunicationRequest40_50.convertCommunicationRequest((org.hl7.fhir.r5.model.CommunicationRequest) src);
if (src instanceof org.hl7.fhir.r5.model.CompartmentDefinition)
return CompartmentDefinition.convertCompartmentDefinition((org.hl7.fhir.r5.model.CompartmentDefinition) src);
return CompartmentDefinition40_50.convertCompartmentDefinition((org.hl7.fhir.r5.model.CompartmentDefinition) src);
if (src instanceof org.hl7.fhir.r5.model.Composition)
return Composition.convertComposition((org.hl7.fhir.r5.model.Composition) src);
return Composition40_50.convertComposition((org.hl7.fhir.r5.model.Composition) src);
if (src instanceof org.hl7.fhir.r5.model.ConceptMap)
return ConceptMap.convertConceptMap((org.hl7.fhir.r5.model.ConceptMap) src);
return ConceptMap40_50.convertConceptMap((org.hl7.fhir.r5.model.ConceptMap) src);
if (src instanceof org.hl7.fhir.r5.model.Condition)
return Condition.convertCondition((org.hl7.fhir.r5.model.Condition) src);
return Condition40_50.convertCondition((org.hl7.fhir.r5.model.Condition) src);
if (src instanceof org.hl7.fhir.r5.model.Consent)
return Consent.convertConsent((org.hl7.fhir.r5.model.Consent) src);
return Consent40_50.convertConsent((org.hl7.fhir.r5.model.Consent) src);
if (src instanceof org.hl7.fhir.r5.model.Contract)
return Contract.convertContract((org.hl7.fhir.r5.model.Contract) src);
return Contract40_50.convertContract((org.hl7.fhir.r5.model.Contract) src);
if (src instanceof org.hl7.fhir.r5.model.Coverage)
return Coverage.convertCoverage((org.hl7.fhir.r5.model.Coverage) src);
return Coverage40_50.convertCoverage((org.hl7.fhir.r5.model.Coverage) src);
if (src instanceof org.hl7.fhir.r5.model.CoverageEligibilityRequest)
return CoverageEligibilityRequest.convertCoverageEligibilityRequest((org.hl7.fhir.r5.model.CoverageEligibilityRequest) src);
return CoverageEligibilityRequest40_50.convertCoverageEligibilityRequest((org.hl7.fhir.r5.model.CoverageEligibilityRequest) src);
if (src instanceof org.hl7.fhir.r5.model.CoverageEligibilityResponse)
return CoverageEligibilityResponse.convertCoverageEligibilityResponse((org.hl7.fhir.r5.model.CoverageEligibilityResponse) src);
return CoverageEligibilityResponse40_50.convertCoverageEligibilityResponse((org.hl7.fhir.r5.model.CoverageEligibilityResponse) src);
if (src instanceof org.hl7.fhir.r5.model.DetectedIssue)
return DetectedIssue.convertDetectedIssue((org.hl7.fhir.r5.model.DetectedIssue) src);
return DetectedIssue40_50.convertDetectedIssue((org.hl7.fhir.r5.model.DetectedIssue) src);
if (src instanceof org.hl7.fhir.r5.model.Device)
return Device.convertDevice((org.hl7.fhir.r5.model.Device) src);
return Device40_50.convertDevice((org.hl7.fhir.r5.model.Device) src);
if (src instanceof org.hl7.fhir.r5.model.DeviceDefinition)
return DeviceDefinition.convertDeviceDefinition((org.hl7.fhir.r5.model.DeviceDefinition) src);
return DeviceDefinition40_50.convertDeviceDefinition((org.hl7.fhir.r5.model.DeviceDefinition) src);
if (src instanceof org.hl7.fhir.r5.model.DeviceMetric)
return DeviceMetric.convertDeviceMetric((org.hl7.fhir.r5.model.DeviceMetric) src);
return DeviceMetric40_50.convertDeviceMetric((org.hl7.fhir.r5.model.DeviceMetric) src);
if (src instanceof org.hl7.fhir.r5.model.DeviceRequest)
return DeviceRequest.convertDeviceRequest((org.hl7.fhir.r5.model.DeviceRequest) src);
return DeviceRequest40_50.convertDeviceRequest((org.hl7.fhir.r5.model.DeviceRequest) src);
if (src instanceof org.hl7.fhir.r5.model.DeviceUseStatement)
return DeviceUseStatement.convertDeviceUseStatement((org.hl7.fhir.r5.model.DeviceUseStatement) src);
return DeviceUseStatement40_50.convertDeviceUseStatement((org.hl7.fhir.r5.model.DeviceUseStatement) src);
if (src instanceof org.hl7.fhir.r5.model.DiagnosticReport)
return DiagnosticReport.convertDiagnosticReport((org.hl7.fhir.r5.model.DiagnosticReport) src);
return DiagnosticReport40_50.convertDiagnosticReport((org.hl7.fhir.r5.model.DiagnosticReport) src);
if (src instanceof org.hl7.fhir.r5.model.DocumentManifest)
return DocumentManifest.convertDocumentManifest((org.hl7.fhir.r5.model.DocumentManifest) src);
return DocumentManifest40_50.convertDocumentManifest((org.hl7.fhir.r5.model.DocumentManifest) src);
if (src instanceof org.hl7.fhir.r5.model.DocumentReference)
return DocumentReference.convertDocumentReference((org.hl7.fhir.r5.model.DocumentReference) src);
return DocumentReference40_50.convertDocumentReference((org.hl7.fhir.r5.model.DocumentReference) src);
if (src instanceof org.hl7.fhir.r5.model.Encounter)
return Encounter.convertEncounter((org.hl7.fhir.r5.model.Encounter) src);
return Encounter40_50.convertEncounter((org.hl7.fhir.r5.model.Encounter) src);
if (src instanceof org.hl7.fhir.r5.model.Endpoint)
return Endpoint.convertEndpoint((org.hl7.fhir.r5.model.Endpoint) src);
return Endpoint40_50.convertEndpoint((org.hl7.fhir.r5.model.Endpoint) src);
if (src instanceof org.hl7.fhir.r5.model.EnrollmentRequest)
return EnrollmentRequest.convertEnrollmentRequest((org.hl7.fhir.r5.model.EnrollmentRequest) src);
return EnrollmentRequest40_50.convertEnrollmentRequest((org.hl7.fhir.r5.model.EnrollmentRequest) src);
if (src instanceof org.hl7.fhir.r5.model.EnrollmentResponse)
return EnrollmentResponse.convertEnrollmentResponse((org.hl7.fhir.r5.model.EnrollmentResponse) src);
return EnrollmentResponse40_50.convertEnrollmentResponse((org.hl7.fhir.r5.model.EnrollmentResponse) src);
if (src instanceof org.hl7.fhir.r5.model.EpisodeOfCare)
return EpisodeOfCare.convertEpisodeOfCare((org.hl7.fhir.r5.model.EpisodeOfCare) src);
return EpisodeOfCare40_50.convertEpisodeOfCare((org.hl7.fhir.r5.model.EpisodeOfCare) src);
if (src instanceof org.hl7.fhir.r5.model.EventDefinition)
return EventDefinition.convertEventDefinition((org.hl7.fhir.r5.model.EventDefinition) src);
return EventDefinition40_50.convertEventDefinition((org.hl7.fhir.r5.model.EventDefinition) src);
if (src instanceof org.hl7.fhir.r5.model.ExampleScenario)
return ExampleScenario.convertExampleScenario((org.hl7.fhir.r5.model.ExampleScenario) src);
return ExampleScenario40_50.convertExampleScenario((org.hl7.fhir.r5.model.ExampleScenario) src);
if (src instanceof org.hl7.fhir.r5.model.ExplanationOfBenefit)
return ExplanationOfBenefit.convertExplanationOfBenefit((org.hl7.fhir.r5.model.ExplanationOfBenefit) src);
return ExplanationOfBenefit40_50.convertExplanationOfBenefit((org.hl7.fhir.r5.model.ExplanationOfBenefit) src);
if (src instanceof org.hl7.fhir.r5.model.FamilyMemberHistory)
return FamilyMemberHistory.convertFamilyMemberHistory((org.hl7.fhir.r5.model.FamilyMemberHistory) src);
return FamilyMemberHistory40_50.convertFamilyMemberHistory((org.hl7.fhir.r5.model.FamilyMemberHistory) src);
if (src instanceof org.hl7.fhir.r5.model.Flag)
return Flag.convertFlag((org.hl7.fhir.r5.model.Flag) src);
return Flag40_50.convertFlag((org.hl7.fhir.r5.model.Flag) src);
if (src instanceof org.hl7.fhir.r5.model.Goal)
return Goal.convertGoal((org.hl7.fhir.r5.model.Goal) src);
return Goal40_50.convertGoal((org.hl7.fhir.r5.model.Goal) src);
if (src instanceof org.hl7.fhir.r5.model.GraphDefinition)
return GraphDefinition.convertGraphDefinition((org.hl7.fhir.r5.model.GraphDefinition) src);
return GraphDefinition40_50.convertGraphDefinition((org.hl7.fhir.r5.model.GraphDefinition) src);
if (src instanceof org.hl7.fhir.r5.model.Group)
return Group.convertGroup((org.hl7.fhir.r5.model.Group) src);
return Group40_50.convertGroup((org.hl7.fhir.r5.model.Group) src);
if (src instanceof org.hl7.fhir.r5.model.GuidanceResponse)
return GuidanceResponse.convertGuidanceResponse((org.hl7.fhir.r5.model.GuidanceResponse) src);
return GuidanceResponse40_50.convertGuidanceResponse((org.hl7.fhir.r5.model.GuidanceResponse) src);
if (src instanceof org.hl7.fhir.r5.model.HealthcareService)
return HealthcareService.convertHealthcareService((org.hl7.fhir.r5.model.HealthcareService) src);
return HealthcareService40_50.convertHealthcareService((org.hl7.fhir.r5.model.HealthcareService) src);
if (src instanceof org.hl7.fhir.r5.model.ImagingStudy)
return ImagingStudy.convertImagingStudy((org.hl7.fhir.r5.model.ImagingStudy) src);
return ImagingStudy40_50.convertImagingStudy((org.hl7.fhir.r5.model.ImagingStudy) src);
if (src instanceof org.hl7.fhir.r5.model.Immunization)
return Immunization.convertImmunization((org.hl7.fhir.r5.model.Immunization) src);
return Immunization40_50.convertImmunization((org.hl7.fhir.r5.model.Immunization) src);
if (src instanceof org.hl7.fhir.r5.model.ImmunizationEvaluation)
return ImmunizationEvaluation.convertImmunizationEvaluation((org.hl7.fhir.r5.model.ImmunizationEvaluation) src);
return ImmunizationEvaluation40_50.convertImmunizationEvaluation((org.hl7.fhir.r5.model.ImmunizationEvaluation) src);
if (src instanceof org.hl7.fhir.r5.model.ImmunizationRecommendation)
return ImmunizationRecommendation.convertImmunizationRecommendation((org.hl7.fhir.r5.model.ImmunizationRecommendation) src);
return ImmunizationRecommendation40_50.convertImmunizationRecommendation((org.hl7.fhir.r5.model.ImmunizationRecommendation) src);
if (src instanceof org.hl7.fhir.r5.model.ImplementationGuide)
return ImplementationGuide.convertImplementationGuide((org.hl7.fhir.r5.model.ImplementationGuide) src);
return ImplementationGuide40_50.convertImplementationGuide((org.hl7.fhir.r5.model.ImplementationGuide) src);
if (src instanceof org.hl7.fhir.r5.model.InsurancePlan)
return InsurancePlan.convertInsurancePlan((org.hl7.fhir.r5.model.InsurancePlan) src);
return InsurancePlan40_50.convertInsurancePlan((org.hl7.fhir.r5.model.InsurancePlan) src);
if (src instanceof org.hl7.fhir.r5.model.Invoice)
return Invoice.convertInvoice((org.hl7.fhir.r5.model.Invoice) src);
return Invoice40_50.convertInvoice((org.hl7.fhir.r5.model.Invoice) src);
if (src instanceof org.hl7.fhir.r5.model.Library)
return Library.convertLibrary((org.hl7.fhir.r5.model.Library) src);
return Library40_50.convertLibrary((org.hl7.fhir.r5.model.Library) src);
if (src instanceof org.hl7.fhir.r5.model.Linkage)
return Linkage.convertLinkage((org.hl7.fhir.r5.model.Linkage) src);
return Linkage40_50.convertLinkage((org.hl7.fhir.r5.model.Linkage) src);
if (src instanceof org.hl7.fhir.r5.model.ListResource)
return ListResource.convertListResource((org.hl7.fhir.r5.model.ListResource) src);
return ListResource40_50.convertListResource((org.hl7.fhir.r5.model.ListResource) src);
if (src instanceof org.hl7.fhir.r5.model.Location)
return Location.convertLocation((org.hl7.fhir.r5.model.Location) src);
return Location40_50.convertLocation((org.hl7.fhir.r5.model.Location) src);
if (src instanceof org.hl7.fhir.r5.model.Measure)
return Measure.convertMeasure((org.hl7.fhir.r5.model.Measure) src);
return Measure40_50.convertMeasure((org.hl7.fhir.r5.model.Measure) src);
if (src instanceof org.hl7.fhir.r5.model.MeasureReport)
return MeasureReport.convertMeasureReport((org.hl7.fhir.r5.model.MeasureReport) src);
return MeasureReport40_50.convertMeasureReport((org.hl7.fhir.r5.model.MeasureReport) src);
if (src instanceof org.hl7.fhir.r5.model.DocumentReference) // todo: will never get here (doesn't work anyway)
return Media.convertMedia((org.hl7.fhir.r5.model.DocumentReference) src);
return Media40_50.convertMedia((org.hl7.fhir.r5.model.DocumentReference) src);
if (src instanceof org.hl7.fhir.r5.model.Medication)
return Medication.convertMedication((org.hl7.fhir.r5.model.Medication) src);
return Medication40_50.convertMedication((org.hl7.fhir.r5.model.Medication) src);
if (src instanceof org.hl7.fhir.r5.model.MedicationAdministration)
return MedicationAdministration.convertMedicationAdministration((org.hl7.fhir.r5.model.MedicationAdministration) src);
return MedicationAdministration40_50.convertMedicationAdministration((org.hl7.fhir.r5.model.MedicationAdministration) src);
if (src instanceof org.hl7.fhir.r5.model.MedicationDispense)
return MedicationDispense.convertMedicationDispense((org.hl7.fhir.r5.model.MedicationDispense) src);
return MedicationDispense40_50.convertMedicationDispense((org.hl7.fhir.r5.model.MedicationDispense) src);
if (src instanceof org.hl7.fhir.r5.model.MedicationKnowledge)
return MedicationKnowledge.convertMedicationKnowledge((org.hl7.fhir.r5.model.MedicationKnowledge) src);
return MedicationKnowledge40_50.convertMedicationKnowledge((org.hl7.fhir.r5.model.MedicationKnowledge) src);
if (src instanceof org.hl7.fhir.r5.model.MedicationRequest)
return MedicationRequest.convertMedicationRequest((org.hl7.fhir.r5.model.MedicationRequest) src);
return MedicationRequest40_50.convertMedicationRequest((org.hl7.fhir.r5.model.MedicationRequest) src);
if (src instanceof org.hl7.fhir.r5.model.MedicationUsage)
return MedicationStatement.convertMedicationStatement((org.hl7.fhir.r5.model.MedicationUsage) src);
return MedicationStatement40_50.convertMedicationStatement((org.hl7.fhir.r5.model.MedicationUsage) src);
if (src instanceof org.hl7.fhir.r5.model.MessageDefinition)
return MessageDefinition.convertMessageDefinition((org.hl7.fhir.r5.model.MessageDefinition) src);
return MessageDefinition40_50.convertMessageDefinition((org.hl7.fhir.r5.model.MessageDefinition) src);
if (src instanceof org.hl7.fhir.r5.model.MessageHeader)
return MessageHeader.convertMessageHeader((org.hl7.fhir.r5.model.MessageHeader) src);
return MessageHeader40_50.convertMessageHeader((org.hl7.fhir.r5.model.MessageHeader) src);
if (src instanceof org.hl7.fhir.r5.model.MolecularSequence)
return MolecularSequence.convertMolecularSequence((org.hl7.fhir.r5.model.MolecularSequence) src);
return MolecularSequence40_50.convertMolecularSequence((org.hl7.fhir.r5.model.MolecularSequence) src);
if (src instanceof org.hl7.fhir.r5.model.NamingSystem)
return NamingSystem.convertNamingSystem((org.hl7.fhir.r5.model.NamingSystem) src);
return NamingSystem40_50.convertNamingSystem((org.hl7.fhir.r5.model.NamingSystem) src);
if (src instanceof org.hl7.fhir.r5.model.NutritionOrder)
return NutritionOrder.convertNutritionOrder((org.hl7.fhir.r5.model.NutritionOrder) src);
return NutritionOrder40_50.convertNutritionOrder((org.hl7.fhir.r5.model.NutritionOrder) src);
if (src instanceof org.hl7.fhir.r5.model.Observation)
return Observation.convertObservation((org.hl7.fhir.r5.model.Observation) src);
return Observation40_50.convertObservation((org.hl7.fhir.r5.model.Observation) src);
if (src instanceof org.hl7.fhir.r5.model.ObservationDefinition)
return ObservationDefinition.convertObservationDefinition((org.hl7.fhir.r5.model.ObservationDefinition) src);
return ObservationDefinition40_50.convertObservationDefinition((org.hl7.fhir.r5.model.ObservationDefinition) src);
if (src instanceof org.hl7.fhir.r5.model.OperationDefinition)
return OperationDefinition.convertOperationDefinition((org.hl7.fhir.r5.model.OperationDefinition) src);
return OperationDefinition40_50.convertOperationDefinition((org.hl7.fhir.r5.model.OperationDefinition) src);
if (src instanceof org.hl7.fhir.r5.model.OperationOutcome)
return OperationOutcome.convertOperationOutcome((org.hl7.fhir.r5.model.OperationOutcome) src);
return OperationOutcome40_50.convertOperationOutcome((org.hl7.fhir.r5.model.OperationOutcome) src);
if (src instanceof org.hl7.fhir.r5.model.Organization)
return Organization.convertOrganization((org.hl7.fhir.r5.model.Organization) src);
return Organization40_50.convertOrganization((org.hl7.fhir.r5.model.Organization) src);
if (src instanceof org.hl7.fhir.r5.model.OrganizationAffiliation)
return OrganizationAffiliation.convertOrganizationAffiliation((org.hl7.fhir.r5.model.OrganizationAffiliation) src);
return OrganizationAffiliation40_50.convertOrganizationAffiliation((org.hl7.fhir.r5.model.OrganizationAffiliation) src);
if (src instanceof org.hl7.fhir.r5.model.Patient)
return Patient.convertPatient((org.hl7.fhir.r5.model.Patient) src);
return Patient40_50.convertPatient((org.hl7.fhir.r5.model.Patient) src);
if (src instanceof org.hl7.fhir.r5.model.PaymentNotice)
return PaymentNotice.convertPaymentNotice((org.hl7.fhir.r5.model.PaymentNotice) src);
return PaymentNotice40_50.convertPaymentNotice((org.hl7.fhir.r5.model.PaymentNotice) src);
if (src instanceof org.hl7.fhir.r5.model.PaymentReconciliation)
return PaymentReconciliation.convertPaymentReconciliation((org.hl7.fhir.r5.model.PaymentReconciliation) src);
return PaymentReconciliation40_50.convertPaymentReconciliation((org.hl7.fhir.r5.model.PaymentReconciliation) src);
if (src instanceof org.hl7.fhir.r5.model.Person)
return Person.convertPerson((org.hl7.fhir.r5.model.Person) src);
return Person40_50.convertPerson((org.hl7.fhir.r5.model.Person) src);
if (src instanceof org.hl7.fhir.r5.model.PlanDefinition)
return PlanDefinition.convertPlanDefinition((org.hl7.fhir.r5.model.PlanDefinition) src);
return PlanDefinition40_50.convertPlanDefinition((org.hl7.fhir.r5.model.PlanDefinition) src);
if (src instanceof org.hl7.fhir.r5.model.Practitioner)
return Practitioner.convertPractitioner((org.hl7.fhir.r5.model.Practitioner) src);
return Practitioner40_50.convertPractitioner((org.hl7.fhir.r5.model.Practitioner) src);
if (src instanceof org.hl7.fhir.r5.model.PractitionerRole)
return PractitionerRole.convertPractitionerRole((org.hl7.fhir.r5.model.PractitionerRole) src);
return PractitionerRole40_50.convertPractitionerRole((org.hl7.fhir.r5.model.PractitionerRole) src);
if (src instanceof org.hl7.fhir.r5.model.Procedure)
return Procedure.convertProcedure((org.hl7.fhir.r5.model.Procedure) src);
return Procedure40_50.convertProcedure((org.hl7.fhir.r5.model.Procedure) src);
if (src instanceof org.hl7.fhir.r5.model.Provenance)
return Provenance.convertProvenance((org.hl7.fhir.r5.model.Provenance) src);
return Provenance40_50.convertProvenance((org.hl7.fhir.r5.model.Provenance) src);
if (src instanceof org.hl7.fhir.r5.model.Questionnaire)
return Questionnaire.convertQuestionnaire((org.hl7.fhir.r5.model.Questionnaire) src);
return Questionnaire40_50.convertQuestionnaire((org.hl7.fhir.r5.model.Questionnaire) src);
if (src instanceof org.hl7.fhir.r5.model.QuestionnaireResponse)
return QuestionnaireResponse.convertQuestionnaireResponse((org.hl7.fhir.r5.model.QuestionnaireResponse) src);
return QuestionnaireResponse40_50.convertQuestionnaireResponse((org.hl7.fhir.r5.model.QuestionnaireResponse) src);
if (src instanceof org.hl7.fhir.r5.model.RelatedPerson)
return RelatedPerson.convertRelatedPerson((org.hl7.fhir.r5.model.RelatedPerson) src);
return RelatedPerson40_50.convertRelatedPerson((org.hl7.fhir.r5.model.RelatedPerson) src);
if (src instanceof org.hl7.fhir.r5.model.RequestGroup)
return RequestGroup.convertRequestGroup((org.hl7.fhir.r5.model.RequestGroup) src);
return RequestGroup40_50.convertRequestGroup((org.hl7.fhir.r5.model.RequestGroup) src);
if (src instanceof org.hl7.fhir.r5.model.ResearchStudy)
return ResearchStudy.convertResearchStudy((org.hl7.fhir.r5.model.ResearchStudy) src);
return ResearchStudy40_50.convertResearchStudy((org.hl7.fhir.r5.model.ResearchStudy) src);
if (src instanceof org.hl7.fhir.r5.model.ResearchSubject)
return ResearchSubject.convertResearchSubject((org.hl7.fhir.r5.model.ResearchSubject) src);
return ResearchSubject40_50.convertResearchSubject((org.hl7.fhir.r5.model.ResearchSubject) src);
if (src instanceof org.hl7.fhir.r5.model.RiskAssessment)
return RiskAssessment.convertRiskAssessment((org.hl7.fhir.r5.model.RiskAssessment) src);
return RiskAssessment40_50.convertRiskAssessment((org.hl7.fhir.r5.model.RiskAssessment) src);
if (src instanceof org.hl7.fhir.r5.model.Schedule)
return Schedule.convertSchedule((org.hl7.fhir.r5.model.Schedule) src);
return Schedule40_50.convertSchedule((org.hl7.fhir.r5.model.Schedule) src);
if (src instanceof org.hl7.fhir.r5.model.SearchParameter)
return SearchParameter.convertSearchParameter((org.hl7.fhir.r5.model.SearchParameter) src);
return SearchParameter40_50.convertSearchParameter((org.hl7.fhir.r5.model.SearchParameter) src);
if (src instanceof org.hl7.fhir.r5.model.ServiceRequest)
return ServiceRequest.convertServiceRequest((org.hl7.fhir.r5.model.ServiceRequest) src);
return ServiceRequest40_50.convertServiceRequest((org.hl7.fhir.r5.model.ServiceRequest) src);
if (src instanceof org.hl7.fhir.r5.model.Slot)
return Slot.convertSlot((org.hl7.fhir.r5.model.Slot) src);
return Slot40_50.convertSlot((org.hl7.fhir.r5.model.Slot) src);
if (src instanceof org.hl7.fhir.r5.model.Specimen)
return Specimen.convertSpecimen((org.hl7.fhir.r5.model.Specimen) src);
return Specimen40_50.convertSpecimen((org.hl7.fhir.r5.model.Specimen) src);
if (src instanceof org.hl7.fhir.r5.model.SpecimenDefinition)
return SpecimenDefinition.convertSpecimenDefinition((org.hl7.fhir.r5.model.SpecimenDefinition) src);
return SpecimenDefinition40_50.convertSpecimenDefinition((org.hl7.fhir.r5.model.SpecimenDefinition) src);
if (src instanceof org.hl7.fhir.r5.model.StructureDefinition)
return StructureDefinition.convertStructureDefinition((org.hl7.fhir.r5.model.StructureDefinition) src);
return StructureDefinition40_50.convertStructureDefinition((org.hl7.fhir.r5.model.StructureDefinition) src);
if (src instanceof org.hl7.fhir.r5.model.StructureMap)
return StructureMap.convertStructureMap((org.hl7.fhir.r5.model.StructureMap) src);
return StructureMap40_50.convertStructureMap((org.hl7.fhir.r5.model.StructureMap) src);
// if (src instanceof org.hl7.fhir.r5.model.Subscription)
// return Subscription.convertSubscription((org.hl7.fhir.r5.model.Subscription) src);
if (src instanceof org.hl7.fhir.r5.model.Substance)
return Substance.convertSubstance((org.hl7.fhir.r5.model.Substance) src);
return Substance40_50.convertSubstance((org.hl7.fhir.r5.model.Substance) src);
if (src instanceof org.hl7.fhir.r5.model.SubstanceNucleicAcid)
return SubstanceNucleicAcid.convertSubstanceNucleicAcid((org.hl7.fhir.r5.model.SubstanceNucleicAcid) src);
return SubstanceNucleicAcid40_50.convertSubstanceNucleicAcid((org.hl7.fhir.r5.model.SubstanceNucleicAcid) src);
if (src instanceof org.hl7.fhir.r5.model.SubstancePolymer)
return SubstancePolymer.convertSubstancePolymer((org.hl7.fhir.r5.model.SubstancePolymer) src);
return SubstancePolymer40_50.convertSubstancePolymer((org.hl7.fhir.r5.model.SubstancePolymer) src);
if (src instanceof org.hl7.fhir.r5.model.SubstanceProtein)
return SubstanceProtein.convertSubstanceProtein((org.hl7.fhir.r5.model.SubstanceProtein) src);
return SubstanceProtein40_50.convertSubstanceProtein((org.hl7.fhir.r5.model.SubstanceProtein) src);
if (src instanceof org.hl7.fhir.r5.model.SubstanceReferenceInformation)
return SubstanceReferenceInformation.convertSubstanceReferenceInformation((org.hl7.fhir.r5.model.SubstanceReferenceInformation) src);
return SubstanceReferenceInformation40_50.convertSubstanceReferenceInformation((org.hl7.fhir.r5.model.SubstanceReferenceInformation) src);
if (src instanceof org.hl7.fhir.r5.model.SubstanceSourceMaterial)
return SubstanceSourceMaterial.convertSubstanceSourceMaterial((org.hl7.fhir.r5.model.SubstanceSourceMaterial) src);
return SubstanceSourceMaterial40_50.convertSubstanceSourceMaterial((org.hl7.fhir.r5.model.SubstanceSourceMaterial) src);
if (src instanceof org.hl7.fhir.r5.model.SupplyDelivery)
return SupplyDelivery.convertSupplyDelivery((org.hl7.fhir.r5.model.SupplyDelivery) src);
return SupplyDelivery40_50.convertSupplyDelivery((org.hl7.fhir.r5.model.SupplyDelivery) src);
if (src instanceof org.hl7.fhir.r5.model.SupplyRequest)
return SupplyRequest.convertSupplyRequest((org.hl7.fhir.r5.model.SupplyRequest) src);
return SupplyRequest40_50.convertSupplyRequest((org.hl7.fhir.r5.model.SupplyRequest) src);
if (src instanceof org.hl7.fhir.r5.model.Task)
return Task.convertTask((org.hl7.fhir.r5.model.Task) src);
return Task40_50.convertTask((org.hl7.fhir.r5.model.Task) src);
if (src instanceof org.hl7.fhir.r5.model.TerminologyCapabilities)
return TerminologyCapabilities.convertTerminologyCapabilities((org.hl7.fhir.r5.model.TerminologyCapabilities) src);
return TerminologyCapabilities40_50.convertTerminologyCapabilities((org.hl7.fhir.r5.model.TerminologyCapabilities) src);
if (src instanceof org.hl7.fhir.r5.model.TestReport)
return TestReport.convertTestReport((org.hl7.fhir.r5.model.TestReport) src);
return TestReport40_50.convertTestReport((org.hl7.fhir.r5.model.TestReport) src);
if (src instanceof org.hl7.fhir.r5.model.TestScript)
return TestScript.convertTestScript((org.hl7.fhir.r5.model.TestScript) src);
return TestScript40_50.convertTestScript((org.hl7.fhir.r5.model.TestScript) src);
if (src instanceof org.hl7.fhir.r5.model.ValueSet)
return ValueSet.convertValueSet((org.hl7.fhir.r5.model.ValueSet) src);
return ValueSet40_50.convertValueSet((org.hl7.fhir.r5.model.ValueSet) src);
if (src instanceof org.hl7.fhir.r5.model.VerificationResult)
return VerificationResult.convertVerificationResult((org.hl7.fhir.r5.model.VerificationResult) src);
return VerificationResult40_50.convertVerificationResult((org.hl7.fhir.r5.model.VerificationResult) src);
if (src instanceof org.hl7.fhir.r5.model.VisionPrescription)
return VisionPrescription.convertVisionPrescription((org.hl7.fhir.r5.model.VisionPrescription) src);
return VisionPrescription40_50.convertVisionPrescription((org.hl7.fhir.r5.model.VisionPrescription) src);
throw new Error("Unknown resource "+src.fhirType());
}

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Account extends VersionConvertor_40_50 {
public class Account40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Account convertAccount(org.hl7.fhir.r4.model.Account src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class ActivityDefinition extends VersionConvertor_40_50 {
public class ActivityDefinition40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.ActivityDefinition convertActivityDefinition(org.hl7.fhir.r4.model.ActivityDefinition src) throws FHIRException {
if (src == null)
@ -72,7 +72,7 @@ public class ActivityDefinition extends VersionConvertor_40_50 {
if (src.hasSubtitle())
tgt.setSubtitleElement(convertString(src.getSubtitleElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasSubject())
@ -190,7 +190,7 @@ public class ActivityDefinition extends VersionConvertor_40_50 {
if (src.hasSubtitle())
tgt.setSubtitleElement(convertString(src.getSubtitleElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasSubject())

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class AllergyIntolerance extends VersionConvertor_40_50 {
public class AllergyIntolerance40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.AllergyIntolerance convertAllergyIntolerance(org.hl7.fhir.r4.model.AllergyIntolerance src) throws FHIRException {
if (src == null)

View File

@ -52,7 +52,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Appointment extends VersionConvertor_40_50 {
public class Appointment40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Appointment convertAppointment(org.hl7.fhir.r4.model.Appointment src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class AppointmentResponse extends VersionConvertor_40_50 {
public class AppointmentResponse40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.AppointmentResponse convertAppointmentResponse(org.hl7.fhir.r4.model.AppointmentResponse src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class AuditEvent extends VersionConvertor_40_50 {
public class AuditEvent40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.AuditEvent convertAuditEvent(org.hl7.fhir.r4.model.AuditEvent src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Basic extends VersionConvertor_40_50 {
public class Basic40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Basic convertBasic(org.hl7.fhir.r4.model.Basic src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Binary extends VersionConvertor_40_50 {
public class Binary40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Binary convertBinary(org.hl7.fhir.r4.model.Binary src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class BiologicallyDerivedProduct extends VersionConvertor_40_50 {
public class BiologicallyDerivedProduct40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.BiologicallyDerivedProduct convertBiologicallyDerivedProduct(org.hl7.fhir.r4.model.BiologicallyDerivedProduct src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class BodyStructure extends VersionConvertor_40_50 {
public class BodyStructure40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.BodyStructure convertBodyStructure(org.hl7.fhir.r4.model.BodyStructure src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Bundle extends VersionConvertor_40_50 {
public class Bundle40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Bundle convertBundle(org.hl7.fhir.r4.model.Bundle src) throws FHIRException {
if (src == null)

View File

@ -20,7 +20,6 @@ package org.hl7.fhir.convertors.conv40_50;
* #L%
*/
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.CodeType;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
/*
@ -52,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class CapabilityStatement extends VersionConvertor_40_50 {
public class CapabilityStatement40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.CapabilityStatement convertCapabilityStatement(org.hl7.fhir.r4.model.CapabilityStatement src) throws FHIRException {
if (src == null)
@ -68,7 +67,7 @@ public class CapabilityStatement extends VersionConvertor_40_50 {
if (src.hasTitle())
tgt.setTitleElement(convertString(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasDate())
@ -103,7 +102,7 @@ public class CapabilityStatement extends VersionConvertor_40_50 {
if (src.hasImplementation())
tgt.setImplementation(convertCapabilityStatementImplementationComponent(src.getImplementation()));
if (src.hasFhirVersion())
tgt.setFhirVersion(Enumerations.convertFHIRVersion(src.getFhirVersion()));
tgt.setFhirVersion(Enumerations40_50.convertFHIRVersion(src.getFhirVersion()));
if (src.hasFormat()) {
for (org.hl7.fhir.r4.model.CodeType t : src.getFormat()) tgt.getFormat().add(convertCode(t));
}
@ -139,7 +138,7 @@ public class CapabilityStatement extends VersionConvertor_40_50 {
if (src.hasTitle())
tgt.setTitleElement(convertString(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasDate())
@ -174,7 +173,7 @@ public class CapabilityStatement extends VersionConvertor_40_50 {
if (src.hasImplementation())
tgt.setImplementation(convertCapabilityStatementImplementationComponent(src.getImplementation()));
if (src.hasFhirVersion())
tgt.setFhirVersion(Enumerations.convertFHIRVersion(src.getFhirVersion()));
tgt.setFhirVersion(Enumerations40_50.convertFHIRVersion(src.getFhirVersion()));
if (src.hasFormat()) {
for (org.hl7.fhir.r5.model.CodeType t : src.getFormat()) tgt.getFormat().add(convertCode(t));
}
@ -714,7 +713,7 @@ public class CapabilityStatement extends VersionConvertor_40_50 {
if (src.hasDefinition())
tgt.setDefinitionElement(convertCanonical(src.getDefinitionElement()));
if (src.hasType())
tgt.setType(Enumerations.convertSearchParamType(src.getType()));
tgt.setType(Enumerations40_50.convertSearchParamType(src.getType()));
if (src.hasDocumentation())
tgt.setDocumentationElement(convertMarkdown(src.getDocumentationElement()));
return tgt;
@ -730,7 +729,7 @@ public class CapabilityStatement extends VersionConvertor_40_50 {
if (src.hasDefinition())
tgt.setDefinitionElement(convertCanonical(src.getDefinitionElement()));
if (src.hasType())
tgt.setType(Enumerations.convertSearchParamType(src.getType()));
tgt.setType(Enumerations40_50.convertSearchParamType(src.getType()));
if (src.hasDocumentation())
tgt.setDocumentationElement(convertMarkdown(src.getDocumentationElement()));
return tgt;

View File

@ -52,7 +52,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class CarePlan extends VersionConvertor_40_50 {
public class CarePlan40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.CarePlan convertCarePlan(org.hl7.fhir.r4.model.CarePlan src) throws FHIRException {
if (src == null)

View File

@ -52,7 +52,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class CareTeam extends VersionConvertor_40_50 {
public class CareTeam40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.CareTeam convertCareTeam(org.hl7.fhir.r4.model.CareTeam src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class ChargeItem extends VersionConvertor_40_50 {
public class ChargeItem40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.ChargeItem convertChargeItem(org.hl7.fhir.r4.model.ChargeItem src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class ChargeItemDefinition extends VersionConvertor_40_50 {
public class ChargeItemDefinition40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.ChargeItemDefinition convertChargeItemDefinition(org.hl7.fhir.r4.model.ChargeItemDefinition src) throws FHIRException {
if (src == null)
@ -77,7 +77,7 @@ public class ChargeItemDefinition extends VersionConvertor_40_50 {
for (org.hl7.fhir.r4.model.CanonicalType t : src.getReplaces()) tgt.getReplaces().add(convertCanonical(t));
}
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasDate())
@ -141,7 +141,7 @@ public class ChargeItemDefinition extends VersionConvertor_40_50 {
for (org.hl7.fhir.r5.model.CanonicalType t : src.getReplaces()) tgt.getReplaces().add(convertCanonical(t));
}
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasDate())

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Claim extends VersionConvertor_40_50 {
public class Claim40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Claim convertClaim(org.hl7.fhir.r4.model.Claim src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class ClaimResponse extends VersionConvertor_40_50 {
public class ClaimResponse40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.ClaimResponse convertClaimResponse(org.hl7.fhir.r4.model.ClaimResponse src) throws FHIRException {
if (src == null)
@ -727,7 +727,7 @@ public class ClaimResponse extends VersionConvertor_40_50 {
if (src.hasNumber())
tgt.setNumberElement(convertPositiveInt(src.getNumberElement()));
if (src.hasType())
tgt.setType(Enumerations.convertNoteType(src.getType()));
tgt.setType(Enumerations40_50.convertNoteType(src.getType()));
if (src.hasText())
tgt.setTextElement(convertString(src.getTextElement()));
if (src.hasLanguage())
@ -743,7 +743,7 @@ public class ClaimResponse extends VersionConvertor_40_50 {
if (src.hasNumber())
tgt.setNumberElement(convertPositiveInt(src.getNumberElement()));
if (src.hasType())
tgt.setType(Enumerations.convertNoteType(src.getType()));
tgt.setType(Enumerations40_50.convertNoteType(src.getType()));
if (src.hasText())
tgt.setTextElement(convertString(src.getTextElement()));
if (src.hasLanguage())

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class ClinicalImpression extends VersionConvertor_40_50 {
public class ClinicalImpression40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.ClinicalImpression convertClinicalImpression(org.hl7.fhir.r4.model.ClinicalImpression src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class CodeSystem extends VersionConvertor_40_50 {
public class CodeSystem40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.CodeSystem convertCodeSystem(org.hl7.fhir.r4.model.CodeSystem src) throws FHIRException {
if (src == null)
@ -70,7 +70,7 @@ public class CodeSystem extends VersionConvertor_40_50 {
if (src.hasTitle())
tgt.setTitleElement(convertString(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasDate())
@ -137,7 +137,7 @@ public class CodeSystem extends VersionConvertor_40_50 {
if (src.hasTitle())
tgt.setTitleElement(convertString(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasDate())

View File

@ -55,7 +55,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Communication extends VersionConvertor_40_50 {
public class Communication40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Communication convertCommunication(org.hl7.fhir.r4.model.Communication src) throws FHIRException {
if (src == null)

View File

@ -52,7 +52,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class CommunicationRequest extends VersionConvertor_40_50 {
public class CommunicationRequest40_50 extends VersionConvertor_40_50 {
public final static String EXT_PAYLOAD_CONTENT = "http://hl7.org/fhir/4.0/StructureDefinition/extension-CommunicationRequest.payload.content";

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class CompartmentDefinition extends VersionConvertor_40_50 {
public class CompartmentDefinition40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.CompartmentDefinition convertCompartmentDefinition(org.hl7.fhir.r4.model.CompartmentDefinition src) throws FHIRException {
if (src == null)
@ -65,7 +65,7 @@ public class CompartmentDefinition extends VersionConvertor_40_50 {
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasDate())
@ -104,7 +104,7 @@ public class CompartmentDefinition extends VersionConvertor_40_50 {
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasDate())

View File

@ -52,7 +52,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Composition extends VersionConvertor_40_50 {
public class Composition40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Composition convertComposition(org.hl7.fhir.r4.model.Composition src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class ConceptMap extends VersionConvertor_40_50 {
public class ConceptMap40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.ConceptMap convertConceptMap(org.hl7.fhir.r4.model.ConceptMap src) throws FHIRException {
if (src == null)
@ -69,7 +69,7 @@ public class ConceptMap extends VersionConvertor_40_50 {
if (src.hasTitle())
tgt.setTitleElement(convertString(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasDate())
@ -117,7 +117,7 @@ public class ConceptMap extends VersionConvertor_40_50 {
if (src.hasTitle())
tgt.setTitleElement(convertString(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasDate())
@ -237,7 +237,7 @@ public class ConceptMap extends VersionConvertor_40_50 {
if (src.hasDisplay())
tgt.setDisplayElement(convertString(src.getDisplayElement()));
if (src.hasEquivalence())
tgt.setRelationship(Enumerations.convertConceptMapRelationship(src.getEquivalence()));
tgt.setRelationship(Enumerations40_50.convertConceptMapRelationship(src.getEquivalence()));
if (src.hasComment())
tgt.setCommentElement(convertString(src.getCommentElement()));
if (src.hasDependsOn()) {
@ -259,7 +259,7 @@ public class ConceptMap extends VersionConvertor_40_50 {
if (src.hasDisplay())
tgt.setDisplayElement(convertString(src.getDisplayElement()));
if (src.hasRelationship())
tgt.setEquivalence(Enumerations.convertConceptMapEquivalence(src.getRelationship()));
tgt.setEquivalence(Enumerations40_50.convertConceptMapEquivalence(src.getRelationship()));
if (src.hasComment())
tgt.setCommentElement(convertString(src.getCommentElement()));
if (src.hasDependsOn()) {

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Condition extends VersionConvertor_40_50 {
public class Condition40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Condition convertCondition(org.hl7.fhir.r4.model.Condition src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Consent extends VersionConvertor_40_50 {
public class Consent40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Consent convertConsent(org.hl7.fhir.r4.model.Consent src) throws FHIRException {
if (src == null)

View File

@ -53,7 +53,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Contract extends VersionConvertor_40_50 {
public class Contract40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Contract convertContract(org.hl7.fhir.r4.model.Contract src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Coverage extends VersionConvertor_40_50 {
public class Coverage40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Coverage convertCoverage(org.hl7.fhir.r4.model.Coverage src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class CoverageEligibilityRequest extends VersionConvertor_40_50 {
public class CoverageEligibilityRequest40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.CoverageEligibilityRequest convertCoverageEligibilityRequest(org.hl7.fhir.r4.model.CoverageEligibilityRequest src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class CoverageEligibilityResponse extends VersionConvertor_40_50 {
public class CoverageEligibilityResponse40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.CoverageEligibilityResponse convertCoverageEligibilityResponse(org.hl7.fhir.r4.model.CoverageEligibilityResponse src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class DetectedIssue extends VersionConvertor_40_50 {
public class DetectedIssue40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.DetectedIssue convertDetectedIssue(org.hl7.fhir.r4.model.DetectedIssue src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Device extends VersionConvertor_40_50 {
public class Device40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Device convertDevice(org.hl7.fhir.r4.model.Device src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class DeviceDefinition extends VersionConvertor_40_50 {
public class DeviceDefinition40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.DeviceDefinition convertDeviceDefinition(org.hl7.fhir.r4.model.DeviceDefinition src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class DeviceMetric extends VersionConvertor_40_50 {
public class DeviceMetric40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.DeviceMetric convertDeviceMetric(org.hl7.fhir.r4.model.DeviceMetric src) throws FHIRException {
if (src == null)

View File

@ -52,7 +52,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class DeviceRequest extends VersionConvertor_40_50 {
public class DeviceRequest40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.DeviceRequest convertDeviceRequest(org.hl7.fhir.r4.model.DeviceRequest src) throws FHIRException {
if (src == null)

View File

@ -52,7 +52,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class DeviceUseStatement extends VersionConvertor_40_50 {
public class DeviceUseStatement40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.r4.model.DeviceUseStatement src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class DiagnosticReport extends VersionConvertor_40_50 {
public class DiagnosticReport40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.DiagnosticReport convertDiagnosticReport(org.hl7.fhir.r4.model.DiagnosticReport src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class DocumentManifest extends VersionConvertor_40_50 {
public class DocumentManifest40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.DocumentManifest convertDocumentManifest(org.hl7.fhir.r4.model.DocumentManifest src) throws FHIRException {
if (src == null)
@ -64,7 +64,7 @@ public class DocumentManifest extends VersionConvertor_40_50 {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
}
if (src.hasStatus())
tgt.setStatus(Enumerations.convertDocumentReferenceStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertDocumentReferenceStatus(src.getStatus()));
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
if (src.hasSubject())
@ -101,7 +101,7 @@ public class DocumentManifest extends VersionConvertor_40_50 {
for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
}
if (src.hasStatus())
tgt.setStatus(Enumerations.convertDocumentReferenceStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertDocumentReferenceStatus(src.getStatus()));
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
if (src.hasSubject())

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class DocumentReference extends VersionConvertor_40_50 {
public class DocumentReference40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.DocumentReference convertDocumentReference(org.hl7.fhir.r4.model.DocumentReference src) throws FHIRException {
if (src == null)
@ -64,7 +64,7 @@ public class DocumentReference extends VersionConvertor_40_50 {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
}
if (src.hasStatus())
tgt.setStatus(Enumerations.convertDocumentReferenceStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertDocumentReferenceStatus(src.getStatus()));
if (src.hasDocStatus())
tgt.setDocStatus(convertReferredDocumentStatus(src.getDocStatus()));
if (src.hasType())
@ -110,7 +110,7 @@ public class DocumentReference extends VersionConvertor_40_50 {
for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
}
if (src.hasStatus())
tgt.setStatus(Enumerations.convertDocumentReferenceStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertDocumentReferenceStatus(src.getStatus()));
if (src.hasDocStatus())
tgt.setDocStatus(convertReferredDocumentStatus(src.getDocStatus()));
if (src.hasType())

View File

@ -52,7 +52,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Encounter extends VersionConvertor_40_50 {
public class Encounter40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Encounter convertEncounter(org.hl7.fhir.r4.model.Encounter src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Endpoint extends VersionConvertor_40_50 {
public class Endpoint40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Endpoint convertEndpoint(org.hl7.fhir.r4.model.Endpoint src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class EnrollmentRequest extends VersionConvertor_40_50 {
public class EnrollmentRequest40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.EnrollmentRequest convertEnrollmentRequest(org.hl7.fhir.r4.model.EnrollmentRequest src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class EnrollmentResponse extends VersionConvertor_40_50 {
public class EnrollmentResponse40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.EnrollmentResponse convertEnrollmentResponse(org.hl7.fhir.r4.model.EnrollmentResponse src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Enumerations extends VersionConvertor_40_50 {
public class Enumerations40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Enumerations.BindingStrength convertBindingStrength(org.hl7.fhir.r4.model.Enumerations.BindingStrength src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class EpisodeOfCare extends VersionConvertor_40_50 {
public class EpisodeOfCare40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.EpisodeOfCare convertEpisodeOfCare(org.hl7.fhir.r4.model.EpisodeOfCare src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class EventDefinition extends VersionConvertor_40_50 {
public class EventDefinition40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.EventDefinition convertEventDefinition(org.hl7.fhir.r4.model.EventDefinition src) throws FHIRException {
if (src == null)
@ -72,7 +72,7 @@ public class EventDefinition extends VersionConvertor_40_50 {
if (src.hasSubtitle())
tgt.setSubtitleElement(convertString(src.getSubtitleElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasSubject())
@ -147,7 +147,7 @@ public class EventDefinition extends VersionConvertor_40_50 {
if (src.hasSubtitle())
tgt.setSubtitleElement(convertString(src.getSubtitleElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasSubject())

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class ExampleScenario extends VersionConvertor_40_50 {
public class ExampleScenario40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.ExampleScenario convertExampleScenario(org.hl7.fhir.r4.model.ExampleScenario src) throws FHIRException {
if (src == null)
@ -68,7 +68,7 @@ public class ExampleScenario extends VersionConvertor_40_50 {
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasDate())
@ -118,7 +118,7 @@ public class ExampleScenario extends VersionConvertor_40_50 {
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasDate())

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class ExplanationOfBenefit extends VersionConvertor_40_50 {
public class ExplanationOfBenefit40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.ExplanationOfBenefit convertExplanationOfBenefit(org.hl7.fhir.r4.model.ExplanationOfBenefit src) throws FHIRException {
if (src == null)
@ -1253,7 +1253,7 @@ public class ExplanationOfBenefit extends VersionConvertor_40_50 {
if (src.hasNumber())
tgt.setNumberElement(convertPositiveInt(src.getNumberElement()));
if (src.hasType())
tgt.setType(Enumerations.convertNoteType(src.getType()));
tgt.setType(Enumerations40_50.convertNoteType(src.getType()));
if (src.hasText())
tgt.setTextElement(convertString(src.getTextElement()));
if (src.hasLanguage())
@ -1269,7 +1269,7 @@ public class ExplanationOfBenefit extends VersionConvertor_40_50 {
if (src.hasNumber())
tgt.setNumberElement(convertPositiveInt(src.getNumberElement()));
if (src.hasType())
tgt.setType(Enumerations.convertNoteType(src.getType()));
tgt.setType(Enumerations40_50.convertNoteType(src.getType()));
if (src.hasText())
tgt.setTextElement(convertString(src.getTextElement()));
if (src.hasLanguage())

View File

@ -52,7 +52,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class FamilyMemberHistory extends VersionConvertor_40_50 {
public class FamilyMemberHistory40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.FamilyMemberHistory convertFamilyMemberHistory(org.hl7.fhir.r4.model.FamilyMemberHistory src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Flag extends VersionConvertor_40_50 {
public class Flag40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Flag convertFlag(org.hl7.fhir.r4.model.Flag src) throws FHIRException {
if (src == null)

View File

@ -52,7 +52,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Goal extends VersionConvertor_40_50 {
public class Goal40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Goal convertGoal(org.hl7.fhir.r4.model.Goal src) throws FHIRException {
if (src == null)

View File

@ -20,9 +20,6 @@ package org.hl7.fhir.convertors.conv40_50;
* #L%
*/
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CodeType;
import org.hl7.fhir.r5.model.Enumeration;
import org.hl7.fhir.r5.model.Enumerations.ResourceTypeEnum;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
/*
@ -54,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class GraphDefinition extends VersionConvertor_40_50 {
public class GraphDefinition40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.GraphDefinition convertGraphDefinition(org.hl7.fhir.r4.model.GraphDefinition src) throws FHIRException {
if (src == null)
@ -68,7 +65,7 @@ public class GraphDefinition extends VersionConvertor_40_50 {
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasDate())
@ -110,7 +107,7 @@ public class GraphDefinition extends VersionConvertor_40_50 {
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasDate())

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Group extends VersionConvertor_40_50 {
public class Group40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Group convertGroup(org.hl7.fhir.r4.model.Group src) throws FHIRException {
if (src == null)

View File

@ -52,7 +52,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class GuidanceResponse extends VersionConvertor_40_50 {
public class GuidanceResponse40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.GuidanceResponse convertGuidanceResponse(org.hl7.fhir.r4.model.GuidanceResponse src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class HealthcareService extends VersionConvertor_40_50 {
public class HealthcareService40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.HealthcareService convertHealthcareService(org.hl7.fhir.r4.model.HealthcareService src) throws FHIRException {
if (src == null)

View File

@ -53,7 +53,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class ImagingStudy extends VersionConvertor_40_50 {
public class ImagingStudy40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.ImagingStudy convertImagingStudy(org.hl7.fhir.r4.model.ImagingStudy src) throws FHIRException {
if (src == null)

View File

@ -52,7 +52,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Immunization extends VersionConvertor_40_50 {
public class Immunization40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Immunization convertImmunization(org.hl7.fhir.r4.model.Immunization src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class ImmunizationEvaluation extends VersionConvertor_40_50 {
public class ImmunizationEvaluation40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.ImmunizationEvaluation convertImmunizationEvaluation(org.hl7.fhir.r4.model.ImmunizationEvaluation src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class ImmunizationRecommendation extends VersionConvertor_40_50 {
public class ImmunizationRecommendation40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.ImmunizationRecommendation convertImmunizationRecommendation(org.hl7.fhir.r4.model.ImmunizationRecommendation src) throws FHIRException {
if (src == null)

View File

@ -52,7 +52,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class ImplementationGuide extends VersionConvertor_40_50 {
public class ImplementationGuide40_50 extends VersionConvertor_40_50 {
static final String EXT_IG_DEFINITION_PARAMETER = "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter";
@ -70,7 +70,7 @@ public class ImplementationGuide extends VersionConvertor_40_50 {
if (src.hasTitle())
tgt.setTitleElement(convertString(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasDate())
@ -95,7 +95,7 @@ public class ImplementationGuide extends VersionConvertor_40_50 {
if (src.hasLicense())
tgt.setLicense(convertSPDXLicense(src.getLicense()));
if (src.hasFhirVersion()) {
for (org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Enumerations.FHIRVersion> t : src.getFhirVersion()) copyElement(t, tgt.addFhirVersionElement().setValue(Enumerations.convertFHIRVersion(t.getValue())));
for (org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Enumerations.FHIRVersion> t : src.getFhirVersion()) copyElement(t, tgt.addFhirVersionElement().setValue(Enumerations40_50.convertFHIRVersion(t.getValue())));
}
if (src.hasDependsOn()) {
for (org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent t : src.getDependsOn()) tgt.addDependsOn(convertImplementationGuideDependsOnComponent(t));
@ -124,7 +124,7 @@ public class ImplementationGuide extends VersionConvertor_40_50 {
if (src.hasTitle())
tgt.setTitleElement(convertString(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasDate())
@ -149,7 +149,7 @@ public class ImplementationGuide extends VersionConvertor_40_50 {
if (src.hasLicense())
tgt.setLicense(convertSPDXLicense(src.getLicense()));
if (src.hasFhirVersion()) {
for (org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.FHIRVersion> t : src.getFhirVersion()) copyElement(t, tgt.addFhirVersionElement().setValue(Enumerations.convertFHIRVersion(t.getValue())));
for (org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.FHIRVersion> t : src.getFhirVersion()) copyElement(t, tgt.addFhirVersionElement().setValue(Enumerations40_50.convertFHIRVersion(t.getValue())));
}
if (src.hasDependsOn()) {
for (org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDependsOnComponent t : src.getDependsOn()) tgt.addDependsOn(convertImplementationGuideDependsOnComponent(t));
@ -1709,7 +1709,7 @@ public class ImplementationGuide extends VersionConvertor_40_50 {
if (src.hasReference())
tgt.setReference(convertReference(src.getReference()));
if (src.hasFhirVersion()) {
for (org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Enumerations.FHIRVersion> t : src.getFhirVersion()) copyElement(t, tgt.addFhirVersionElement().setValue(Enumerations.convertFHIRVersion(t.getValue())));
for (org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Enumerations.FHIRVersion> t : src.getFhirVersion()) copyElement(t, tgt.addFhirVersionElement().setValue(Enumerations40_50.convertFHIRVersion(t.getValue())));
}
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
@ -1730,7 +1730,7 @@ public class ImplementationGuide extends VersionConvertor_40_50 {
if (src.hasReference())
tgt.setReference(convertReference(src.getReference()));
if (src.hasFhirVersion()) {
for (org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.FHIRVersion> t : src.getFhirVersion()) copyElement(t, tgt.addFhirVersionElement().setValue(Enumerations.convertFHIRVersion(t.getValue())));
for (org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.Enumerations.FHIRVersion> t : src.getFhirVersion()) copyElement(t, tgt.addFhirVersionElement().setValue(Enumerations40_50.convertFHIRVersion(t.getValue())));
}
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class InsurancePlan extends VersionConvertor_40_50 {
public class InsurancePlan40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.InsurancePlan convertInsurancePlan(org.hl7.fhir.r4.model.InsurancePlan src) throws FHIRException {
if (src == null)
@ -62,7 +62,7 @@ public class InsurancePlan extends VersionConvertor_40_50 {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
}
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasType()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(convertCodeableConcept(t));
}
@ -107,7 +107,7 @@ public class InsurancePlan extends VersionConvertor_40_50 {
for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
}
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasType()) {
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getType()) tgt.addType(convertCodeableConcept(t));
}

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Invoice extends VersionConvertor_40_50 {
public class Invoice40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Invoice convertInvoice(org.hl7.fhir.r4.model.Invoice src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Library extends VersionConvertor_40_50 {
public class Library40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Library convertLibrary(org.hl7.fhir.r4.model.Library src) throws FHIRException {
if (src == null)
@ -72,7 +72,7 @@ public class Library extends VersionConvertor_40_50 {
if (src.hasSubtitle())
tgt.setSubtitleElement(convertString(src.getSubtitleElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasType())
@ -155,7 +155,7 @@ public class Library extends VersionConvertor_40_50 {
if (src.hasSubtitle())
tgt.setSubtitleElement(convertString(src.getSubtitleElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasType())

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Linkage extends VersionConvertor_40_50 {
public class Linkage40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Linkage convertLinkage(org.hl7.fhir.r4.model.Linkage src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class ListResource extends VersionConvertor_40_50 {
public class ListResource40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.ListResource convertListResource(org.hl7.fhir.r4.model.ListResource src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Location extends VersionConvertor_40_50 {
public class Location40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Location convertLocation(org.hl7.fhir.r4.model.Location src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Measure extends VersionConvertor_40_50 {
public class Measure40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Measure convertMeasure(org.hl7.fhir.r4.model.Measure src) throws FHIRException {
if (src == null)
@ -72,7 +72,7 @@ public class Measure extends VersionConvertor_40_50 {
if (src.hasSubtitle())
tgt.setSubtitleElement(convertString(src.getSubtitleElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasSubject())
@ -177,7 +177,7 @@ public class Measure extends VersionConvertor_40_50 {
if (src.hasSubtitle())
tgt.setSubtitleElement(convertString(src.getSubtitleElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasSubject())

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class MeasureReport extends VersionConvertor_40_50 {
public class MeasureReport40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.MeasureReport convertMeasureReport(org.hl7.fhir.r4.model.MeasureReport src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Media extends VersionConvertor_40_50 {
public class Media40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.DocumentReference convertMedia(org.hl7.fhir.r4.model.Media src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Medication extends VersionConvertor_40_50 {
public class Medication40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Medication convertMedication(org.hl7.fhir.r4.model.Medication src) throws FHIRException {
if (src == null)

View File

@ -56,7 +56,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class MedicationAdministration extends VersionConvertor_40_50 {
public class MedicationAdministration40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.MedicationAdministration convertMedicationAdministration(org.hl7.fhir.r4.model.MedicationAdministration src) throws FHIRException {
if (src == null)

View File

@ -54,7 +54,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class MedicationDispense extends VersionConvertor_40_50 {
public class MedicationDispense40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.MedicationDispense convertMedicationDispense(org.hl7.fhir.r4.model.MedicationDispense src) throws FHIRException {
if (src == null)

View File

@ -54,7 +54,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class MedicationKnowledge extends VersionConvertor_40_50 {
public class MedicationKnowledge40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.MedicationKnowledge convertMedicationKnowledge(org.hl7.fhir.r4.model.MedicationKnowledge src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class MedicationRequest extends VersionConvertor_40_50 {
public class MedicationRequest40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.MedicationRequest convertMedicationRequest(org.hl7.fhir.r4.model.MedicationRequest src) throws FHIRException {
if (src == null)

View File

@ -52,7 +52,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class MedicationStatement extends VersionConvertor_40_50 {
public class MedicationStatement40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.MedicationUsage convertMedicationStatement(org.hl7.fhir.r4.model.MedicationStatement src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class MessageDefinition extends VersionConvertor_40_50 {
public class MessageDefinition40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.MessageDefinition convertMessageDefinition(org.hl7.fhir.r4.model.MessageDefinition src) throws FHIRException {
if (src == null)
@ -73,7 +73,7 @@ public class MessageDefinition extends VersionConvertor_40_50 {
for (org.hl7.fhir.r4.model.CanonicalType t : src.getReplaces()) tgt.getReplaces().add(convertCanonical(t));
}
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasDate())
@ -138,7 +138,7 @@ public class MessageDefinition extends VersionConvertor_40_50 {
for (org.hl7.fhir.r5.model.CanonicalType t : src.getReplaces()) tgt.getReplaces().add(convertCanonical(t));
}
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasDate())

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class MessageHeader extends VersionConvertor_40_50 {
public class MessageHeader40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.MessageHeader convertMessageHeader(org.hl7.fhir.r4.model.MessageHeader src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class MolecularSequence extends VersionConvertor_40_50 {
public class MolecularSequence40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.MolecularSequence convertMolecularSequence(org.hl7.fhir.r4.model.MolecularSequence src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class NamingSystem extends VersionConvertor_40_50 {
public class NamingSystem40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.NamingSystem convertNamingSystem(org.hl7.fhir.r4.model.NamingSystem src) throws FHIRException {
if (src == null)
@ -61,7 +61,7 @@ public class NamingSystem extends VersionConvertor_40_50 {
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasKind())
tgt.setKind(convertNamingSystemType(src.getKind()));
if (src.hasDate())
@ -99,7 +99,7 @@ public class NamingSystem extends VersionConvertor_40_50 {
if (src.hasName())
tgt.setNameElement(convertString(src.getNameElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasKind())
tgt.setKind(convertNamingSystemType(src.getKind()));
if (src.hasDate())

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class NutritionOrder extends VersionConvertor_40_50 {
public class NutritionOrder40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.NutritionOrder convertNutritionOrder(org.hl7.fhir.r4.model.NutritionOrder src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Observation extends VersionConvertor_40_50 {
public class Observation40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Observation convertObservation(org.hl7.fhir.r4.model.Observation src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class ObservationDefinition extends VersionConvertor_40_50 {
public class ObservationDefinition40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.ObservationDefinition convertObservationDefinition(org.hl7.fhir.r4.model.ObservationDefinition src) throws FHIRException {
if (src == null)
@ -237,7 +237,7 @@ public class ObservationDefinition extends VersionConvertor_40_50 {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getAppliesTo()) tgt.addAppliesTo(convertCodeableConcept(t));
}
if (src.hasGender())
tgt.setGender(Enumerations.convertAdministrativeGender(src.getGender()));
tgt.setGender(Enumerations40_50.convertAdministrativeGender(src.getGender()));
if (src.hasAge())
tgt.setAge(convertRange(src.getAge()));
if (src.hasGestationalAge())
@ -262,7 +262,7 @@ public class ObservationDefinition extends VersionConvertor_40_50 {
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getAppliesTo()) tgt.addAppliesTo(convertCodeableConcept(t));
}
if (src.hasGender())
tgt.setGender(Enumerations.convertAdministrativeGender(src.getGender()));
tgt.setGender(Enumerations40_50.convertAdministrativeGender(src.getGender()));
if (src.hasAge())
tgt.setAge(convertRange(src.getAge()));
if (src.hasGestationalAge())

View File

@ -21,12 +21,6 @@ package org.hl7.fhir.convertors.conv40_50;
*/
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.CodeType;
import org.hl7.fhir.r5.model.Enumeration;
import org.hl7.fhir.r5.model.Enumerations.ResourceTypeEnum;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.hl7.fhir.convertors.VersionConvertor_40_50;
/*
@ -58,7 +52,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class OperationDefinition extends VersionConvertor_40_50 {
public class OperationDefinition40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.OperationDefinition convertOperationDefinition(org.hl7.fhir.r4.model.OperationDefinition src) throws FHIRException {
if (src == null)
@ -74,7 +68,7 @@ public class OperationDefinition extends VersionConvertor_40_50 {
if (src.hasTitle())
tgt.setTitleElement(convertString(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasKind())
tgt.setKind(convertOperationKind(src.getKind()));
if (src.hasExperimental())
@ -140,7 +134,7 @@ public class OperationDefinition extends VersionConvertor_40_50 {
if (src.hasTitle())
tgt.setTitleElement(convertString(src.getTitleElement()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasKind())
tgt.setKind(convertOperationKind(src.getKind()));
if (src.hasExperimental())
@ -239,7 +233,7 @@ public class OperationDefinition extends VersionConvertor_40_50 {
for (org.hl7.fhir.r4.model.CanonicalType t : src.getTargetProfile()) tgt.getTargetProfile().add(convertCanonical(t));
}
if (src.hasSearchType())
tgt.setSearchType(Enumerations.convertSearchParamType(src.getSearchType()));
tgt.setSearchType(Enumerations40_50.convertSearchParamType(src.getSearchType()));
if (src.hasBinding())
tgt.setBinding(convertOperationDefinitionParameterBindingComponent(src.getBinding()));
if (src.hasReferencedFrom()) {
@ -272,7 +266,7 @@ public class OperationDefinition extends VersionConvertor_40_50 {
for (org.hl7.fhir.r5.model.CanonicalType t : src.getTargetProfile()) tgt.getTargetProfile().add(convertCanonical(t));
}
if (src.hasSearchType())
tgt.setSearchType(Enumerations.convertSearchParamType(src.getSearchType()));
tgt.setSearchType(Enumerations40_50.convertSearchParamType(src.getSearchType()));
if (src.hasBinding())
tgt.setBinding(convertOperationDefinitionParameterBindingComponent(src.getBinding()));
if (src.hasReferencedFrom()) {
@ -316,7 +310,7 @@ public class OperationDefinition extends VersionConvertor_40_50 {
org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.r5.model.OperationDefinition.OperationDefinitionParameterBindingComponent();
copyElement(src, tgt);
if (src.hasStrength())
tgt.setStrength(Enumerations.convertBindingStrength(src.getStrength()));
tgt.setStrength(Enumerations40_50.convertBindingStrength(src.getStrength()));
if (src.hasValueSet())
tgt.setValueSetElement(convertCanonical(src.getValueSetElement()));
return tgt;
@ -328,7 +322,7 @@ public class OperationDefinition extends VersionConvertor_40_50 {
org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterBindingComponent tgt = new org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterBindingComponent();
copyElement(src, tgt);
if (src.hasStrength())
tgt.setStrength(Enumerations.convertBindingStrength(src.getStrength()));
tgt.setStrength(Enumerations40_50.convertBindingStrength(src.getStrength()));
if (src.hasValueSet())
tgt.setValueSetElement(convertCanonical(src.getValueSetElement()));
return tgt;

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class OperationOutcome extends VersionConvertor_40_50 {
public class OperationOutcome40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.OperationOutcome convertOperationOutcome(org.hl7.fhir.r4.model.OperationOutcome src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Organization extends VersionConvertor_40_50 {
public class Organization40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Organization convertOrganization(org.hl7.fhir.r4.model.Organization src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class OrganizationAffiliation extends VersionConvertor_40_50 {
public class OrganizationAffiliation40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.OrganizationAffiliation convertOrganizationAffiliation(org.hl7.fhir.r4.model.OrganizationAffiliation src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Parameters extends VersionConvertor_40_50 {
public class Parameters40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Parameters convertParameters(org.hl7.fhir.r4.model.Parameters src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Patient extends VersionConvertor_40_50 {
public class Patient40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Patient convertPatient(org.hl7.fhir.r4.model.Patient src) throws FHIRException {
if (src == null)
@ -70,7 +70,7 @@ public class Patient extends VersionConvertor_40_50 {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t));
}
if (src.hasGender())
tgt.setGender(Enumerations.convertAdministrativeGender(src.getGender()));
tgt.setGender(Enumerations40_50.convertAdministrativeGender(src.getGender()));
if (src.hasBirthDate())
tgt.setBirthDateElement(convertDate(src.getBirthDateElement()));
if (src.hasDeceased())
@ -119,7 +119,7 @@ public class Patient extends VersionConvertor_40_50 {
for (org.hl7.fhir.r5.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t));
}
if (src.hasGender())
tgt.setGender(Enumerations.convertAdministrativeGender(src.getGender()));
tgt.setGender(Enumerations40_50.convertAdministrativeGender(src.getGender()));
if (src.hasBirthDate())
tgt.setBirthDateElement(convertDate(src.getBirthDateElement()));
if (src.hasDeceased())
@ -167,7 +167,7 @@ public class Patient extends VersionConvertor_40_50 {
if (src.hasAddress())
tgt.setAddress(convertAddress(src.getAddress()));
if (src.hasGender())
tgt.setGender(Enumerations.convertAdministrativeGender(src.getGender()));
tgt.setGender(Enumerations40_50.convertAdministrativeGender(src.getGender()));
if (src.hasOrganization())
tgt.setOrganization(convertReference(src.getOrganization()));
if (src.hasPeriod())
@ -191,7 +191,7 @@ public class Patient extends VersionConvertor_40_50 {
if (src.hasAddress())
tgt.setAddress(convertAddress(src.getAddress()));
if (src.hasGender())
tgt.setGender(Enumerations.convertAdministrativeGender(src.getGender()));
tgt.setGender(Enumerations40_50.convertAdministrativeGender(src.getGender()));
if (src.hasOrganization())
tgt.setOrganization(convertReference(src.getOrganization()));
if (src.hasPeriod())

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class PaymentNotice extends VersionConvertor_40_50 {
public class PaymentNotice40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.PaymentNotice convertPaymentNotice(org.hl7.fhir.r4.model.PaymentNotice src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class PaymentReconciliation extends VersionConvertor_40_50 {
public class PaymentReconciliation40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.PaymentReconciliation convertPaymentReconciliation(org.hl7.fhir.r4.model.PaymentReconciliation src) throws FHIRException {
if (src == null)
@ -265,7 +265,7 @@ public class PaymentReconciliation extends VersionConvertor_40_50 {
org.hl7.fhir.r5.model.PaymentReconciliation.NotesComponent tgt = new org.hl7.fhir.r5.model.PaymentReconciliation.NotesComponent();
copyElement(src, tgt);
if (src.hasType())
tgt.setType(Enumerations.convertNoteType(src.getType()));
tgt.setType(Enumerations40_50.convertNoteType(src.getType()));
if (src.hasText())
tgt.setTextElement(convertString(src.getTextElement()));
return tgt;
@ -277,7 +277,7 @@ public class PaymentReconciliation extends VersionConvertor_40_50 {
org.hl7.fhir.r4.model.PaymentReconciliation.NotesComponent tgt = new org.hl7.fhir.r4.model.PaymentReconciliation.NotesComponent();
copyElement(src, tgt);
if (src.hasType())
tgt.setType(Enumerations.convertNoteType(src.getType()));
tgt.setType(Enumerations40_50.convertNoteType(src.getType()));
if (src.hasText())
tgt.setTextElement(convertString(src.getTextElement()));
return tgt;

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Person extends VersionConvertor_40_50 {
public class Person40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Person convertPerson(org.hl7.fhir.r4.model.Person src) throws FHIRException {
if (src == null)
@ -68,7 +68,7 @@ public class Person extends VersionConvertor_40_50 {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t));
}
if (src.hasGender())
tgt.setGender(Enumerations.convertAdministrativeGender(src.getGender()));
tgt.setGender(Enumerations40_50.convertAdministrativeGender(src.getGender()));
if (src.hasBirthDate())
tgt.setBirthDateElement(convertDate(src.getBirthDateElement()));
if (src.hasAddress()) {
@ -101,7 +101,7 @@ public class Person extends VersionConvertor_40_50 {
for (org.hl7.fhir.r5.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t));
}
if (src.hasGender())
tgt.setGender(Enumerations.convertAdministrativeGender(src.getGender()));
tgt.setGender(Enumerations40_50.convertAdministrativeGender(src.getGender()));
if (src.hasBirthDate())
tgt.setBirthDateElement(convertDate(src.getBirthDateElement()));
if (src.hasAddress()) {

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class PlanDefinition extends VersionConvertor_40_50 {
public class PlanDefinition40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.PlanDefinition convertPlanDefinition(org.hl7.fhir.r4.model.PlanDefinition src) throws FHIRException {
if (src == null)
@ -74,7 +74,7 @@ public class PlanDefinition extends VersionConvertor_40_50 {
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasSubject())
@ -157,7 +157,7 @@ public class PlanDefinition extends VersionConvertor_40_50 {
if (src.hasType())
tgt.setType(convertCodeableConcept(src.getType()));
if (src.hasStatus())
tgt.setStatus(Enumerations.convertPublicationStatus(src.getStatus()));
tgt.setStatus(Enumerations40_50.convertPublicationStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimentalElement(convertBoolean(src.getExperimentalElement()));
if (src.hasSubject())

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Practitioner extends VersionConvertor_40_50 {
public class Practitioner40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Practitioner convertPractitioner(org.hl7.fhir.r4.model.Practitioner src) throws FHIRException {
if (src == null)
@ -73,7 +73,7 @@ public class Practitioner extends VersionConvertor_40_50 {
for (org.hl7.fhir.r4.model.Address t : src.getAddress()) tgt.addAddress(convertAddress(t));
}
if (src.hasGender())
tgt.setGender(Enumerations.convertAdministrativeGender(src.getGender()));
tgt.setGender(Enumerations40_50.convertAdministrativeGender(src.getGender()));
if (src.hasBirthDate())
tgt.setBirthDateElement(convertDate(src.getBirthDateElement()));
if (src.hasPhoto()) {
@ -108,7 +108,7 @@ public class Practitioner extends VersionConvertor_40_50 {
for (org.hl7.fhir.r5.model.Address t : src.getAddress()) tgt.addAddress(convertAddress(t));
}
if (src.hasGender())
tgt.setGender(Enumerations.convertAdministrativeGender(src.getGender()));
tgt.setGender(Enumerations40_50.convertAdministrativeGender(src.getGender()));
if (src.hasBirthDate())
tgt.setBirthDateElement(convertDate(src.getBirthDateElement()));
if (src.hasPhoto()) {

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class PractitionerRole extends VersionConvertor_40_50 {
public class PractitionerRole40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.PractitionerRole convertPractitionerRole(org.hl7.fhir.r4.model.PractitionerRole src) throws FHIRException {
if (src == null)

View File

@ -52,7 +52,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Procedure extends VersionConvertor_40_50 {
public class Procedure40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Procedure convertProcedure(org.hl7.fhir.r4.model.Procedure src) throws FHIRException {
if (src == null)

View File

@ -51,7 +51,7 @@ import org.hl7.fhir.convertors.VersionConvertor_40_50;
*/
// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
public class Provenance extends VersionConvertor_40_50 {
public class Provenance40_50 extends VersionConvertor_40_50 {
public static org.hl7.fhir.r5.model.Provenance convertProvenance(org.hl7.fhir.r4.model.Provenance src) throws FHIRException {
if (src == null)

Some files were not shown because too many files have changed in this diff Show More