001package org.hl7.fhir.convertors.conv43_50.datatypes43_50;
002
003import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_43_50;
004import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Address43_50;
005import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Age43_50;
006import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation43_50;
007import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Attachment43_50;
008import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50;
009import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Coding43_50;
010import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.ContactPoint43_50;
011import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Count43_50;
012import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Distance43_50;
013import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Duration43_50;
014import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.HumanName43_50;
015import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50;
016import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Money43_50;
017import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.MoneyQuantity43_50;
018import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50;
019import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Quantity43_50;
020import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Range43_50;
021import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Ratio43_50;
022import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.SampledData43_50;
023import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Signature43_50;
024import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.SimpleQuantity43_50;
025import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Timing43_50;
026import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50;
027import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.Contributor43_50;
028import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.DataRequirement43_50;
029import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.Expression43_50;
030import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ParameterDefinition43_50;
031import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.RelatedArtifact43_50;
032import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.TriggerDefinition43_50;
033import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50;
034import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Base64Binary43_50;
035import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50;
036import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50;
037import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50;
038import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Date43_50;
039import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50;
040import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Decimal43_50;
041import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Id43_50;
042import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Instant43_50;
043import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Integer43_50;
044import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50;
045import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Oid43_50;
046import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.PositiveInt43_50;
047import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50;
048import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Time43_50;
049import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.UnsignedInt43_50;
050import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50;
051import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Url43_50;
052import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uuid43_50;
053import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Dosage43_50;
054import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.ElementDefinition43_50;
055import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Extension43_50;
056import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Meta43_50;
057import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Narrative43_50;
058import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50;
059import org.hl7.fhir.convertors.conv43_50.resources43_50.MarketingStatus43_50;
060import org.hl7.fhir.convertors.conv43_50.resources43_50.Population43_50;
061import org.hl7.fhir.convertors.conv43_50.resources43_50.ProdCharacteristic43_50;
062import org.hl7.fhir.convertors.conv43_50.resources43_50.ProductShelfLife43_50;
063import org.hl7.fhir.convertors.conv43_50.resources43_50.SubstanceAmount43_50;
064import org.hl7.fhir.exceptions.FHIRException;
065
066public class Type43_50 {
067
068  private final BaseAdvisor_43_50 advisor;
069
070  public Type43_50(BaseAdvisor_43_50 advisor) {
071    this.advisor = advisor;
072  }
073
074  public org.hl7.fhir.r5.model.DataType convertType(org.hl7.fhir.r4b.model.DataType src) throws FHIRException {
075    if (src == null || src.isEmpty()) return null;
076    if (src instanceof org.hl7.fhir.r4b.model.Base64BinaryType)
077      return Base64Binary43_50.convertBase64Binary((org.hl7.fhir.r4b.model.Base64BinaryType) src);
078    if (src instanceof org.hl7.fhir.r4b.model.BooleanType)
079      return Boolean43_50.convertBoolean((org.hl7.fhir.r4b.model.BooleanType) src);
080    if (src instanceof org.hl7.fhir.r4b.model.CanonicalType)
081      return Canonical43_50.convertCanonical((org.hl7.fhir.r4b.model.CanonicalType) src);
082    if (src instanceof org.hl7.fhir.r4b.model.CodeType)
083      return Code43_50.convertCode((org.hl7.fhir.r4b.model.CodeType) src);
084    if (src instanceof org.hl7.fhir.r4b.model.DateType)
085      return Date43_50.convertDate((org.hl7.fhir.r4b.model.DateType) src);
086    if (src instanceof org.hl7.fhir.r4b.model.DateTimeType)
087      return DateTime43_50.convertDateTime((org.hl7.fhir.r4b.model.DateTimeType) src);
088    if (src instanceof org.hl7.fhir.r4b.model.DecimalType)
089      return Decimal43_50.convertDecimal((org.hl7.fhir.r4b.model.DecimalType) src);
090    if (src instanceof org.hl7.fhir.r4b.model.IdType) return Id43_50.convertId((org.hl7.fhir.r4b.model.IdType) src);
091    if (src instanceof org.hl7.fhir.r4b.model.InstantType)
092      return Instant43_50.convertInstant((org.hl7.fhir.r4b.model.InstantType) src);
093    if (src instanceof org.hl7.fhir.r4b.model.UnsignedIntType)
094      return UnsignedInt43_50.convertUnsignedInt((org.hl7.fhir.r4b.model.UnsignedIntType) src);
095    if (src instanceof org.hl7.fhir.r4b.model.PositiveIntType)
096      return PositiveInt43_50.convertPositiveInt((org.hl7.fhir.r4b.model.PositiveIntType) src);
097    if (src instanceof org.hl7.fhir.r4b.model.IntegerType)
098      return Integer43_50.convertInteger((org.hl7.fhir.r4b.model.IntegerType) src);
099    if (src instanceof org.hl7.fhir.r4b.model.MarkdownType)
100      return MarkDown43_50.convertMarkdown((org.hl7.fhir.r4b.model.MarkdownType) src);
101    if (src instanceof org.hl7.fhir.r4b.model.OidType) return Oid43_50.convertOid((org.hl7.fhir.r4b.model.OidType) src);
102    if (src instanceof org.hl7.fhir.r4b.model.TimeType)
103      return Time43_50.convertTime((org.hl7.fhir.r4b.model.TimeType) src);
104    if (src instanceof org.hl7.fhir.r4b.model.UrlType) return Url43_50.convertUrl((org.hl7.fhir.r4b.model.UrlType) src);
105    if (src instanceof org.hl7.fhir.r4b.model.UuidType)
106      return Uuid43_50.convertUuid((org.hl7.fhir.r4b.model.UuidType) src);
107    if (src instanceof org.hl7.fhir.r4b.model.UriType) return Uri43_50.convertUri((org.hl7.fhir.r4b.model.UriType) src);
108    if (src instanceof org.hl7.fhir.r4b.model.StringType)
109      return String43_50.convertString((org.hl7.fhir.r4b.model.StringType) src);
110    if (src instanceof org.hl7.fhir.r4b.model.Extension)
111      return Extension43_50.convertExtension((org.hl7.fhir.r4b.model.Extension) src);
112    if (src instanceof org.hl7.fhir.r4b.model.Narrative)
113      return Narrative43_50.convertNarrative((org.hl7.fhir.r4b.model.Narrative) src);
114    if (src instanceof org.hl7.fhir.r4b.model.Address)
115      return Address43_50.convertAddress((org.hl7.fhir.r4b.model.Address) src);
116    if (src instanceof org.hl7.fhir.r4b.model.Age) return Age43_50.convertAge((org.hl7.fhir.r4b.model.Age) src);
117    if (src instanceof org.hl7.fhir.r4b.model.Annotation)
118      return Annotation43_50.convertAnnotation((org.hl7.fhir.r4b.model.Annotation) src);
119    if (src instanceof org.hl7.fhir.r4b.model.Attachment)
120      return Attachment43_50.convertAttachment((org.hl7.fhir.r4b.model.Attachment) src);
121    if (src instanceof org.hl7.fhir.r4b.model.CodeableConcept)
122      return CodeableConcept43_50.convertCodeableConcept((org.hl7.fhir.r4b.model.CodeableConcept) src);
123    if (src instanceof org.hl7.fhir.r4b.model.Coding)
124      return Coding43_50.convertCoding((org.hl7.fhir.r4b.model.Coding) src);
125    if (src instanceof org.hl7.fhir.r4b.model.ContactDetail)
126      return ContactDetail43_50.convertContactDetail((org.hl7.fhir.r4b.model.ContactDetail) src);
127    if (src instanceof org.hl7.fhir.r4b.model.ContactPoint)
128      return ContactPoint43_50.convertContactPoint((org.hl7.fhir.r4b.model.ContactPoint) src);
129    if (src instanceof org.hl7.fhir.r4b.model.Contributor)
130      return Contributor43_50.convertContributor((org.hl7.fhir.r4b.model.Contributor) src);
131    if (src instanceof org.hl7.fhir.r4b.model.Count) return Count43_50.convertCount((org.hl7.fhir.r4b.model.Count) src);
132    if (src instanceof org.hl7.fhir.r4b.model.DataRequirement)
133      return DataRequirement43_50.convertDataRequirement((org.hl7.fhir.r4b.model.DataRequirement) src);
134    if (src instanceof org.hl7.fhir.r4b.model.Distance)
135      return Distance43_50.convertDistance((org.hl7.fhir.r4b.model.Distance) src);
136    if (src instanceof org.hl7.fhir.r4b.model.Dosage)
137      return Dosage43_50.convertDosage((org.hl7.fhir.r4b.model.Dosage) src);
138    if (src instanceof org.hl7.fhir.r4b.model.Duration)
139      return Duration43_50.convertDuration((org.hl7.fhir.r4b.model.Duration) src);
140    if (src instanceof org.hl7.fhir.r4b.model.Expression)
141      return Expression43_50.convertExpression((org.hl7.fhir.r4b.model.Expression) src);
142    if (src instanceof org.hl7.fhir.r4b.model.HumanName)
143      return HumanName43_50.convertHumanName((org.hl7.fhir.r4b.model.HumanName) src);
144    if (src instanceof org.hl7.fhir.r4b.model.Identifier)
145      return Identifier43_50.convertIdentifier((org.hl7.fhir.r4b.model.Identifier) src);
146    if (src instanceof org.hl7.fhir.r4b.model.MarketingStatus)
147      return MarketingStatus43_50.convertMarketingStatus((org.hl7.fhir.r4b.model.MarketingStatus) src);
148    if (src instanceof org.hl7.fhir.r4b.model.Meta) return Meta43_50.convertMeta((org.hl7.fhir.r4b.model.Meta) src);
149    if (src instanceof org.hl7.fhir.r4b.model.Money) return Money43_50.convertMoney((org.hl7.fhir.r4b.model.Money) src);
150    if (src instanceof org.hl7.fhir.r4b.model.ParameterDefinition)
151      return ParameterDefinition43_50.convertParameterDefinition((org.hl7.fhir.r4b.model.ParameterDefinition) src);
152    if (src instanceof org.hl7.fhir.r4b.model.Period)
153      return Period43_50.convertPeriod((org.hl7.fhir.r4b.model.Period) src);
154    if (src instanceof org.hl7.fhir.r4b.model.Population)
155      return Population43_50.convertPopulation((org.hl7.fhir.r4b.model.Population) src);
156    if (src instanceof org.hl7.fhir.r4b.model.ProdCharacteristic)
157      return ProdCharacteristic43_50.convertProdCharacteristic((org.hl7.fhir.r4b.model.ProdCharacteristic) src);
158    if (src instanceof org.hl7.fhir.r4b.model.ProductShelfLife)
159      return ProductShelfLife43_50.convertProductShelfLife((org.hl7.fhir.r4b.model.ProductShelfLife) src);
160    if (src instanceof org.hl7.fhir.r4b.model.MoneyQuantity)
161      return MoneyQuantity43_50.convertMoneyQuantity((org.hl7.fhir.r4b.model.MoneyQuantity) src);
162    if (src instanceof org.hl7.fhir.r4b.model.SimpleQuantity)
163      return SimpleQuantity43_50.convertSimpleQuantity((org.hl7.fhir.r4b.model.SimpleQuantity) src);
164    if (src instanceof org.hl7.fhir.r4b.model.Quantity)
165      return Quantity43_50.convertQuantity((org.hl7.fhir.r4b.model.Quantity) src);
166    if (src instanceof org.hl7.fhir.r4b.model.Range) return Range43_50.convertRange((org.hl7.fhir.r4b.model.Range) src);
167    if (src instanceof org.hl7.fhir.r4b.model.Ratio) return Ratio43_50.convertRatio((org.hl7.fhir.r4b.model.Ratio) src);
168    if (src instanceof org.hl7.fhir.r4b.model.Reference)
169      return Reference43_50.convertReference((org.hl7.fhir.r4b.model.Reference) src);
170    if (src instanceof org.hl7.fhir.r4b.model.RelatedArtifact)
171      return RelatedArtifact43_50.convertRelatedArtifact((org.hl7.fhir.r4b.model.RelatedArtifact) src);
172    if (src instanceof org.hl7.fhir.r4b.model.SampledData)
173      return SampledData43_50.convertSampledData((org.hl7.fhir.r4b.model.SampledData) src);
174    if (src instanceof org.hl7.fhir.r4b.model.Signature)
175      return Signature43_50.convertSignature((org.hl7.fhir.r4b.model.Signature) src);
176    if (src instanceof org.hl7.fhir.r4b.model.SubstanceAmount)
177      return SubstanceAmount43_50.convertSubstanceAmount((org.hl7.fhir.r4b.model.SubstanceAmount) src);
178    if (src instanceof org.hl7.fhir.r4b.model.Timing)
179      return Timing43_50.convertTiming((org.hl7.fhir.r4b.model.Timing) src);
180    if (src instanceof org.hl7.fhir.r4b.model.TriggerDefinition)
181      return TriggerDefinition43_50.convertTriggerDefinition((org.hl7.fhir.r4b.model.TriggerDefinition) src);
182    if (src instanceof org.hl7.fhir.r4b.model.UsageContext)
183      return UsageContext43_50.convertUsageContext((org.hl7.fhir.r4b.model.UsageContext) src);
184    if (src instanceof org.hl7.fhir.r4b.model.ElementDefinition)
185      return ElementDefinition43_50.convertElementDefinition((org.hl7.fhir.r4b.model.ElementDefinition) src);
186    if (advisor.failFastOnNullOrUnknownEntry()) {
187      throw new FHIRException("Unknown type " + src.fhirType());
188    } else {
189      return null;
190    }
191  }
192
193  public org.hl7.fhir.r4b.model.DataType convertType(org.hl7.fhir.r5.model.DataType src) throws FHIRException {
194    if (src == null || src.isEmpty()) return null;
195    if (src instanceof org.hl7.fhir.r5.model.Base64BinaryType)
196      return Base64Binary43_50.convertBase64Binary((org.hl7.fhir.r5.model.Base64BinaryType) src);
197    if (src instanceof org.hl7.fhir.r5.model.BooleanType)
198      return Boolean43_50.convertBoolean((org.hl7.fhir.r5.model.BooleanType) src);
199    if (src instanceof org.hl7.fhir.r5.model.CanonicalType)
200      return Canonical43_50.convertCanonical((org.hl7.fhir.r5.model.CanonicalType) src);
201    if (src instanceof org.hl7.fhir.r5.model.CodeType)
202      return Code43_50.convertCode((org.hl7.fhir.r5.model.CodeType) src);
203    if (src instanceof org.hl7.fhir.r5.model.DateType)
204      return Date43_50.convertDate((org.hl7.fhir.r5.model.DateType) src);
205    if (src instanceof org.hl7.fhir.r5.model.DateTimeType)
206      return DateTime43_50.convertDateTime((org.hl7.fhir.r5.model.DateTimeType) src);
207    if (src instanceof org.hl7.fhir.r5.model.DecimalType)
208      return Decimal43_50.convertDecimal((org.hl7.fhir.r5.model.DecimalType) src);
209    if (src instanceof org.hl7.fhir.r5.model.IdType) return Id43_50.convertId((org.hl7.fhir.r5.model.IdType) src);
210    if (src instanceof org.hl7.fhir.r5.model.InstantType)
211      return Instant43_50.convertInstant((org.hl7.fhir.r5.model.InstantType) src);
212    if (src instanceof org.hl7.fhir.r5.model.MarkdownType)
213      return MarkDown43_50.convertMarkdown((org.hl7.fhir.r5.model.MarkdownType) src);
214    if (src instanceof org.hl7.fhir.r5.model.OidType) return Oid43_50.convertOid((org.hl7.fhir.r5.model.OidType) src);
215    if (src instanceof org.hl7.fhir.r5.model.PositiveIntType)
216      return PositiveInt43_50.convertPositiveInt((org.hl7.fhir.r5.model.PositiveIntType) src);
217    if (src instanceof org.hl7.fhir.r5.model.StringType)
218      return String43_50.convertString((org.hl7.fhir.r5.model.StringType) src);
219    if (src instanceof org.hl7.fhir.r5.model.TimeType)
220      return Time43_50.convertTime((org.hl7.fhir.r5.model.TimeType) src);
221    if (src instanceof org.hl7.fhir.r5.model.UnsignedIntType)
222      return UnsignedInt43_50.convertUnsignedInt((org.hl7.fhir.r5.model.UnsignedIntType) src);
223    if (src instanceof org.hl7.fhir.r5.model.IntegerType)
224      return Integer43_50.convertInteger((org.hl7.fhir.r5.model.IntegerType) src);
225    if (src instanceof org.hl7.fhir.r5.model.UrlType) return Url43_50.convertUrl((org.hl7.fhir.r5.model.UrlType) src);
226    if (src instanceof org.hl7.fhir.r5.model.UuidType)
227      return Uuid43_50.convertUuid((org.hl7.fhir.r5.model.UuidType) src);
228    if (src instanceof org.hl7.fhir.r5.model.UriType) return Uri43_50.convertUri((org.hl7.fhir.r5.model.UriType) src);
229    if (src instanceof org.hl7.fhir.r5.model.Extension)
230      return Extension43_50.convertExtension((org.hl7.fhir.r5.model.Extension) src);
231    if (src instanceof org.hl7.fhir.r5.model.Narrative)
232      return Narrative43_50.convertNarrative((org.hl7.fhir.r5.model.Narrative) src);
233    if (src instanceof org.hl7.fhir.r5.model.Address)
234      return Address43_50.convertAddress((org.hl7.fhir.r5.model.Address) src);
235    if (src instanceof org.hl7.fhir.r5.model.Age) return Age43_50.convertAge((org.hl7.fhir.r5.model.Age) src);
236    if (src instanceof org.hl7.fhir.r5.model.Annotation)
237      return Annotation43_50.convertAnnotation((org.hl7.fhir.r5.model.Annotation) src);
238    if (src instanceof org.hl7.fhir.r5.model.Attachment)
239      return Attachment43_50.convertAttachment((org.hl7.fhir.r5.model.Attachment) src);
240    if (src instanceof org.hl7.fhir.r5.model.CodeableConcept)
241      return CodeableConcept43_50.convertCodeableConcept((org.hl7.fhir.r5.model.CodeableConcept) src);
242    if (src instanceof org.hl7.fhir.r5.model.Coding)
243      return Coding43_50.convertCoding((org.hl7.fhir.r5.model.Coding) src);
244    if (src instanceof org.hl7.fhir.r5.model.ContactDetail)
245      return ContactDetail43_50.convertContactDetail((org.hl7.fhir.r5.model.ContactDetail) src);
246    if (src instanceof org.hl7.fhir.r5.model.ContactPoint)
247      return ContactPoint43_50.convertContactPoint((org.hl7.fhir.r5.model.ContactPoint) src);
248    if (src instanceof org.hl7.fhir.r5.model.Contributor)
249      return Contributor43_50.convertContributor((org.hl7.fhir.r5.model.Contributor) src);
250    if (src instanceof org.hl7.fhir.r5.model.Count) return Count43_50.convertCount((org.hl7.fhir.r5.model.Count) src);
251    if (src instanceof org.hl7.fhir.r5.model.DataRequirement)
252      return DataRequirement43_50.convertDataRequirement((org.hl7.fhir.r5.model.DataRequirement) src);
253    if (src instanceof org.hl7.fhir.r5.model.Distance)
254      return Distance43_50.convertDistance((org.hl7.fhir.r5.model.Distance) src);
255    if (src instanceof org.hl7.fhir.r5.model.Dosage)
256      return Dosage43_50.convertDosage((org.hl7.fhir.r5.model.Dosage) src);
257    if (src instanceof org.hl7.fhir.r5.model.Duration)
258      return Duration43_50.convertDuration((org.hl7.fhir.r5.model.Duration) src);
259    if (src instanceof org.hl7.fhir.r5.model.Expression)
260      return Expression43_50.convertExpression((org.hl7.fhir.r5.model.Expression) src);
261    if (src instanceof org.hl7.fhir.r5.model.HumanName)
262      return HumanName43_50.convertHumanName((org.hl7.fhir.r5.model.HumanName) src);
263    if (src instanceof org.hl7.fhir.r5.model.Identifier)
264      return Identifier43_50.convertIdentifier((org.hl7.fhir.r5.model.Identifier) src);
265    if (src instanceof org.hl7.fhir.r5.model.MarketingStatus)
266      return MarketingStatus43_50.convertMarketingStatus((org.hl7.fhir.r5.model.MarketingStatus) src);
267    if (src instanceof org.hl7.fhir.r5.model.Meta) return Meta43_50.convertMeta((org.hl7.fhir.r5.model.Meta) src);
268    if (src instanceof org.hl7.fhir.r5.model.Money) return Money43_50.convertMoney((org.hl7.fhir.r5.model.Money) src);
269    if (src instanceof org.hl7.fhir.r5.model.ParameterDefinition)
270      return ParameterDefinition43_50.convertParameterDefinition((org.hl7.fhir.r5.model.ParameterDefinition) src);
271    if (src instanceof org.hl7.fhir.r5.model.Period)
272      return Period43_50.convertPeriod((org.hl7.fhir.r5.model.Period) src);
273    if (src instanceof org.hl7.fhir.r5.model.Population)
274      return Population43_50.convertPopulation((org.hl7.fhir.r5.model.Population) src);
275    if (src instanceof org.hl7.fhir.r5.model.ProdCharacteristic)
276      return ProdCharacteristic43_50.convertProdCharacteristic((org.hl7.fhir.r5.model.ProdCharacteristic) src);
277    if (src instanceof org.hl7.fhir.r5.model.ProductShelfLife)
278      return ProductShelfLife43_50.convertProductShelfLife((org.hl7.fhir.r5.model.ProductShelfLife) src);
279    if (src instanceof org.hl7.fhir.r5.model.MoneyQuantity)
280      return MoneyQuantity43_50.convertMoneyQuantity((org.hl7.fhir.r5.model.MoneyQuantity) src);
281    if (src instanceof org.hl7.fhir.r5.model.SimpleQuantity)
282      return SimpleQuantity43_50.convertSimpleQuantity((org.hl7.fhir.r5.model.SimpleQuantity) src);
283    if (src instanceof org.hl7.fhir.r5.model.Quantity)
284      return Quantity43_50.convertQuantity((org.hl7.fhir.r5.model.Quantity) src);
285    if (src instanceof org.hl7.fhir.r5.model.Range) return Range43_50.convertRange((org.hl7.fhir.r5.model.Range) src);
286    if (src instanceof org.hl7.fhir.r5.model.Ratio) return Ratio43_50.convertRatio((org.hl7.fhir.r5.model.Ratio) src);
287    if (src instanceof org.hl7.fhir.r5.model.Reference)
288      return Reference43_50.convertReference((org.hl7.fhir.r5.model.Reference) src);
289    if (src instanceof org.hl7.fhir.r5.model.RelatedArtifact)
290      return RelatedArtifact43_50.convertRelatedArtifact((org.hl7.fhir.r5.model.RelatedArtifact) src);
291    if (src instanceof org.hl7.fhir.r5.model.SampledData)
292      return SampledData43_50.convertSampledData((org.hl7.fhir.r5.model.SampledData) src);
293    if (src instanceof org.hl7.fhir.r5.model.Signature)
294      return Signature43_50.convertSignature((org.hl7.fhir.r5.model.Signature) src);
295    if (src instanceof org.hl7.fhir.r5.model.SubstanceAmount)
296      return SubstanceAmount43_50.convertSubstanceAmount((org.hl7.fhir.r5.model.SubstanceAmount) src);
297    if (src instanceof org.hl7.fhir.r5.model.Timing)
298      return Timing43_50.convertTiming((org.hl7.fhir.r5.model.Timing) src);
299    if (src instanceof org.hl7.fhir.r5.model.TriggerDefinition)
300      return TriggerDefinition43_50.convertTriggerDefinition((org.hl7.fhir.r5.model.TriggerDefinition) src);
301    if (src instanceof org.hl7.fhir.r5.model.UsageContext)
302      return UsageContext43_50.convertUsageContext((org.hl7.fhir.r5.model.UsageContext) src);
303    if (src instanceof org.hl7.fhir.r5.model.ElementDefinition)
304      return ElementDefinition43_50.convertElementDefinition((org.hl7.fhir.r5.model.ElementDefinition) src);
305    if (advisor.failFastOnNullOrUnknownEntry()) {
306      throw new FHIRException("Unknown type " + src.fhirType());
307    } else {
308      return null;
309    }
310  }
311}