001package org.hl7.fhir.convertors.conv30_50.resources30_50; 002 003import org.hl7.fhir.convertors.context.ConversionContext30_50; 004import org.hl7.fhir.convertors.conv30_50.datatypes30_50.ContactDetail30_50; 005import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; 006import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; 007import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; 008import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; 009import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; 010import org.hl7.fhir.exceptions.FHIRException; 011import org.hl7.fhir.r5.model.StringType; 012import org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetParameterComponent; 013 014import java.util.stream.Collectors; 015 016public class StructureMap30_50 { 017 018 public static org.hl7.fhir.r5.model.StructureMap convertStructureMap(org.hl7.fhir.dstu3.model.StructureMap src) throws FHIRException { 019 if (src == null) 020 return null; 021 org.hl7.fhir.r5.model.StructureMap tgt = new org.hl7.fhir.r5.model.StructureMap(); 022 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyDomainResource(src, tgt); 023 if (src.hasUrl()) 024 tgt.setUrlElement(Uri30_50.convertUri(src.getUrlElement())); 025 for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) 026 tgt.addIdentifier(Identifier30_50.convertIdentifier(t)); 027 if (src.hasVersion()) 028 tgt.setVersionElement(String30_50.convertString(src.getVersionElement())); 029 if (src.hasName()) 030 tgt.setNameElement(String30_50.convertString(src.getNameElement())); 031 if (src.hasTitle()) 032 tgt.setTitleElement(String30_50.convertString(src.getTitleElement())); 033 if (src.hasStatus()) 034 tgt.setStatusElement(Enumerations30_50.convertPublicationStatus(src.getStatusElement())); 035 if (src.hasExperimental()) 036 tgt.setExperimentalElement(Boolean30_50.convertBoolean(src.getExperimentalElement())); 037 if (src.hasDate()) 038 tgt.setDateElement(DateTime30_50.convertDateTime(src.getDateElement())); 039 if (src.hasPublisher()) 040 tgt.setPublisherElement(String30_50.convertString(src.getPublisherElement())); 041 for (org.hl7.fhir.dstu3.model.ContactDetail t : src.getContact()) 042 tgt.addContact(ContactDetail30_50.convertContactDetail(t)); 043 if (src.hasDescription()) 044 tgt.setDescriptionElement(MarkDown30_50.convertMarkdown(src.getDescriptionElement())); 045 for (org.hl7.fhir.dstu3.model.UsageContext t : src.getUseContext()) 046 tgt.addUseContext(UsageContext30_50.convertUsageContext(t)); 047 for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getJurisdiction()) 048 tgt.addJurisdiction(CodeableConcept30_50.convertCodeableConcept(t)); 049 if (src.hasPurpose()) 050 tgt.setPurposeElement(MarkDown30_50.convertMarkdown(src.getPurposeElement())); 051 if (src.hasCopyright()) 052 tgt.setCopyrightElement(MarkDown30_50.convertMarkdown(src.getCopyrightElement())); 053 for (org.hl7.fhir.dstu3.model.StructureMap.StructureMapStructureComponent t : src.getStructure()) 054 tgt.addStructure(convertStructureMapStructureComponent(t)); 055 for (org.hl7.fhir.dstu3.model.UriType t : src.getImport()) tgt.addImport(t.getValue()); 056 for (org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupComponent t : src.getGroup()) 057 tgt.addGroup(convertStructureMapGroupComponent(t)); 058 return tgt; 059 } 060 061 public static org.hl7.fhir.dstu3.model.StructureMap convertStructureMap(org.hl7.fhir.r5.model.StructureMap src) throws FHIRException { 062 if (src == null) 063 return null; 064 org.hl7.fhir.dstu3.model.StructureMap tgt = new org.hl7.fhir.dstu3.model.StructureMap(); 065 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyDomainResource(src, tgt); 066 if (src.hasUrl()) 067 tgt.setUrlElement(Uri30_50.convertUri(src.getUrlElement())); 068 for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) 069 tgt.addIdentifier(Identifier30_50.convertIdentifier(t)); 070 if (src.hasVersion()) 071 tgt.setVersionElement(String30_50.convertString(src.getVersionElement())); 072 if (src.hasName()) 073 tgt.setNameElement(String30_50.convertString(src.getNameElement())); 074 if (src.hasTitle()) 075 tgt.setTitleElement(String30_50.convertString(src.getTitleElement())); 076 if (src.hasStatus()) 077 tgt.setStatusElement(Enumerations30_50.convertPublicationStatus(src.getStatusElement())); 078 if (src.hasExperimental()) 079 tgt.setExperimentalElement(Boolean30_50.convertBoolean(src.getExperimentalElement())); 080 if (src.hasDate()) 081 tgt.setDateElement(DateTime30_50.convertDateTime(src.getDateElement())); 082 if (src.hasPublisher()) 083 tgt.setPublisherElement(String30_50.convertString(src.getPublisherElement())); 084 for (org.hl7.fhir.r5.model.ContactDetail t : src.getContact()) 085 tgt.addContact(ContactDetail30_50.convertContactDetail(t)); 086 if (src.hasDescription()) 087 tgt.setDescriptionElement(MarkDown30_50.convertMarkdown(src.getDescriptionElement())); 088 for (org.hl7.fhir.r5.model.UsageContext t : src.getUseContext()) 089 tgt.addUseContext(UsageContext30_50.convertUsageContext(t)); 090 for (org.hl7.fhir.r5.model.CodeableConcept t : src.getJurisdiction()) 091 tgt.addJurisdiction(CodeableConcept30_50.convertCodeableConcept(t)); 092 if (src.hasPurpose()) 093 tgt.setPurposeElement(MarkDown30_50.convertMarkdown(src.getPurposeElement())); 094 if (src.hasCopyright()) 095 tgt.setCopyrightElement(MarkDown30_50.convertMarkdown(src.getCopyrightElement())); 096 for (org.hl7.fhir.r5.model.StructureMap.StructureMapStructureComponent t : src.getStructure()) 097 tgt.addStructure(convertStructureMapStructureComponent(t)); 098 for (org.hl7.fhir.r5.model.UriType t : src.getImport()) tgt.addImport(t.getValue()); 099 for (org.hl7.fhir.r5.model.StructureMap.StructureMapGroupComponent t : src.getGroup()) 100 tgt.addGroup(convertStructureMapGroupComponent(t)); 101 return tgt; 102 } 103 104 105 public static org.hl7.fhir.r5.model.StructureMap.StructureMapGroupComponent convertStructureMapGroupComponent(org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupComponent src) throws FHIRException { 106 if (src == null) 107 return null; 108 org.hl7.fhir.r5.model.StructureMap.StructureMapGroupComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupComponent(); 109 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 110 if (src.hasName()) 111 tgt.setNameElement(Id30_50.convertId(src.getNameElement())); 112 if (src.hasExtends()) 113 tgt.setExtendsElement(Id30_50.convertId(src.getExtendsElement())); 114 if (src.hasTypeMode()) 115 tgt.setTypeModeElement(convertStructureMapGroupTypeMode(src.getTypeModeElement())); 116 if (src.hasDocumentation()) 117 tgt.setDocumentationElement(String30_50.convertString(src.getDocumentationElement())); 118 for (org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupInputComponent t : src.getInput()) 119 tgt.addInput(convertStructureMapGroupInputComponent(t)); 120 for (org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleComponent t : src.getRule()) 121 tgt.addRule(convertStructureMapGroupRuleComponent(t)); 122 return tgt; 123 } 124 125 public static org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupComponent convertStructureMapGroupComponent(org.hl7.fhir.r5.model.StructureMap.StructureMapGroupComponent src) throws FHIRException { 126 if (src == null) 127 return null; 128 org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupComponent(); 129 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 130 if (src.hasName()) 131 tgt.setNameElement(Id30_50.convertId(src.getNameElement())); 132 if (src.hasExtends()) 133 tgt.setExtendsElement(Id30_50.convertId(src.getExtendsElement())); 134 if (src.hasTypeMode()) 135 tgt.setTypeModeElement(convertStructureMapGroupTypeMode(src.getTypeModeElement())); 136 if (src.hasDocumentation()) 137 tgt.setDocumentationElement(String30_50.convertString(src.getDocumentationElement())); 138 for (org.hl7.fhir.r5.model.StructureMap.StructureMapGroupInputComponent t : src.getInput()) 139 tgt.addInput(convertStructureMapGroupInputComponent(t)); 140 for (org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleComponent t : src.getRule()) 141 tgt.addRule(convertStructureMapGroupRuleComponent(t)); 142 return tgt; 143 } 144 145 public static org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupInputComponent convertStructureMapGroupInputComponent(org.hl7.fhir.r5.model.StructureMap.StructureMapGroupInputComponent src) throws FHIRException { 146 if (src == null) 147 return null; 148 org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupInputComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupInputComponent(); 149 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 150 if (src.hasName()) 151 tgt.setNameElement(Id30_50.convertId(src.getNameElement())); 152 if (src.hasType()) 153 tgt.setTypeElement(String30_50.convertString(src.getTypeElement())); 154 if (src.hasMode()) 155 tgt.setModeElement(convertStructureMapInputMode(src.getModeElement())); 156 if (src.hasDocumentation()) 157 tgt.setDocumentationElement(String30_50.convertString(src.getDocumentationElement())); 158 return tgt; 159 } 160 161 public static org.hl7.fhir.r5.model.StructureMap.StructureMapGroupInputComponent convertStructureMapGroupInputComponent(org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupInputComponent src) throws FHIRException { 162 if (src == null) 163 return null; 164 org.hl7.fhir.r5.model.StructureMap.StructureMapGroupInputComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupInputComponent(); 165 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 166 if (src.hasName()) 167 tgt.setNameElement(Id30_50.convertId(src.getNameElement())); 168 if (src.hasType()) 169 tgt.setTypeElement(String30_50.convertString(src.getTypeElement())); 170 if (src.hasMode()) 171 tgt.setModeElement(convertStructureMapInputMode(src.getModeElement())); 172 if (src.hasDocumentation()) 173 tgt.setDocumentationElement(String30_50.convertString(src.getDocumentationElement())); 174 return tgt; 175 } 176 177 public static org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleComponent convertStructureMapGroupRuleComponent(org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleComponent src) throws FHIRException { 178 if (src == null) 179 return null; 180 org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleComponent(); 181 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 182 if (src.hasName()) 183 tgt.setNameElement(Id30_50.convertId(src.getNameElement())); 184 for (org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleSourceComponent t : src.getSource()) 185 tgt.addSource(convertStructureMapGroupRuleSourceComponent(t)); 186 for (org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetComponent t : src.getTarget()) 187 tgt.addTarget(convertStructureMapGroupRuleTargetComponent(t)); 188 for (org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleComponent t : src.getRule()) 189 tgt.addRule(convertStructureMapGroupRuleComponent(t)); 190 for (org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleDependentComponent t : src.getDependent()) 191 tgt.addDependent(convertStructureMapGroupRuleDependentComponent(t)); 192 if (src.hasDocumentation()) 193 tgt.setDocumentationElement(String30_50.convertString(src.getDocumentationElement())); 194 return tgt; 195 } 196 197 public static org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleComponent convertStructureMapGroupRuleComponent(org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleComponent src) throws FHIRException { 198 if (src == null) 199 return null; 200 org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleComponent(); 201 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 202 if (src.hasName()) 203 tgt.setNameElement(Id30_50.convertId(src.getNameElement())); 204 for (org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleSourceComponent t : src.getSource()) 205 tgt.addSource(convertStructureMapGroupRuleSourceComponent(t)); 206 for (org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetComponent t : src.getTarget()) 207 tgt.addTarget(convertStructureMapGroupRuleTargetComponent(t)); 208 for (org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleComponent t : src.getRule()) 209 tgt.addRule(convertStructureMapGroupRuleComponent(t)); 210 for (org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleDependentComponent t : src.getDependent()) 211 tgt.addDependent(convertStructureMapGroupRuleDependentComponent(t)); 212 if (src.hasDocumentation()) 213 tgt.setDocumentationElement(String30_50.convertString(src.getDocumentationElement())); 214 return tgt; 215 } 216 217 public static org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleDependentComponent convertStructureMapGroupRuleDependentComponent(org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleDependentComponent src) throws FHIRException { 218 if (src == null) 219 return null; 220 org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleDependentComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleDependentComponent(); 221 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 222 if (src.hasName()) 223 tgt.setNameElement(Id30_50.convertId(src.getNameElement())); 224 for (org.hl7.fhir.dstu3.model.StringType t : src.getVariable()) tgt.addParameter().setValue(String30_50.convertString(t)); 225 return tgt; 226 } 227 228 public static org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleDependentComponent convertStructureMapGroupRuleDependentComponent(org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleDependentComponent src) throws FHIRException { 229 if (src == null) 230 return null; 231 org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleDependentComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleDependentComponent(); 232 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 233 if (src.hasName()) 234 tgt.setNameElement(Id30_50.convertId(src.getNameElement())); 235 for (StructureMapGroupRuleTargetParameterComponent t : src.getParameter()) tgt.addVariable(t.getValue().primitiveValue()); 236 return tgt; 237 } 238 239 public static org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleSourceComponent convertStructureMapGroupRuleSourceComponent(org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleSourceComponent src) throws FHIRException { 240 if (src == null) 241 return null; 242 org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleSourceComponent(); 243 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 244 if (src.hasContext()) 245 tgt.setContextElement(Id30_50.convertId(src.getContextElement())); 246 if (src.hasMin()) 247 tgt.setMinElement(Integer30_50.convertInteger(src.getMinElement())); 248 if (src.hasMax()) 249 tgt.setMaxElement(String30_50.convertString(src.getMaxElement())); 250 if (src.hasType()) 251 tgt.setTypeElement(String30_50.convertString(src.getTypeElement())); 252 if (src.hasDefaultValue()) 253 tgt.setDefaultValue(ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().convertType(src.getDefaultValueElement())); 254 if (src.hasElement()) 255 tgt.setElementElement(String30_50.convertString(src.getElementElement())); 256 if (src.hasListMode()) 257 tgt.setListModeElement(convertStructureMapSourceListMode(src.getListModeElement())); 258 if (src.hasVariable()) 259 tgt.setVariableElement(Id30_50.convertId(src.getVariableElement())); 260 if (src.hasCondition()) 261 tgt.setConditionElement(String30_50.convertString(src.getConditionElement())); 262 if (src.hasCheck()) 263 tgt.setCheckElement(String30_50.convertString(src.getCheckElement())); 264 return tgt; 265 } 266 267 public static org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleSourceComponent convertStructureMapGroupRuleSourceComponent(org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleSourceComponent src) throws FHIRException { 268 if (src == null) 269 return null; 270 org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleSourceComponent(); 271 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 272 if (src.hasContext()) 273 tgt.setContextElement(Id30_50.convertId(src.getContextElement())); 274 if (src.hasMin()) 275 tgt.setMinElement(Integer30_50.convertInteger(src.getMinElement())); 276 if (src.hasMax()) 277 tgt.setMaxElement(String30_50.convertString(src.getMaxElement())); 278 if (src.hasType()) 279 tgt.setTypeElement(String30_50.convertString(src.getTypeElement())); 280 if (src.hasDefaultValue()) 281 tgt.setDefaultValueElement((StringType) ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().convertType(src.getDefaultValue())); 282 if (src.hasElement()) 283 tgt.setElementElement(String30_50.convertString(src.getElementElement())); 284 if (src.hasListMode()) 285 tgt.setListModeElement(convertStructureMapSourceListMode(src.getListModeElement())); 286 if (src.hasVariable()) 287 tgt.setVariableElement(Id30_50.convertId(src.getVariableElement())); 288 if (src.hasCondition()) 289 tgt.setConditionElement(String30_50.convertString(src.getConditionElement())); 290 if (src.hasCheck()) 291 tgt.setCheckElement(String30_50.convertString(src.getCheckElement())); 292 return tgt; 293 } 294 295 public static org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetComponent convertStructureMapGroupRuleTargetComponent(org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetComponent src) throws FHIRException { 296 if (src == null) 297 return null; 298 org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetComponent(); 299 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 300 if (src.hasContext()) 301 tgt.setContextElement(Id30_50.convertId(src.getContextElement())); 302 if (src.hasContextType() && src.getContextType() != org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextType.VARIABLE) 303 throw new Error("This conversion is not supported. Consult code maintainers"); // this should never happens - no one knows what the intent was here. 304 if (src.hasElement()) 305 tgt.setElementElement(String30_50.convertString(src.getElementElement())); 306 if (src.hasVariable()) 307 tgt.setVariableElement(Id30_50.convertId(src.getVariableElement())); 308 tgt.setListMode(src.getListMode().stream() 309 .map(StructureMap30_50::convertStructureMapTargetListMode) 310 .collect(Collectors.toList())); 311 if (src.hasListRuleId()) 312 tgt.setListRuleIdElement(Id30_50.convertId(src.getListRuleIdElement())); 313 if (src.hasTransform()) 314 tgt.setTransformElement(convertStructureMapTransform(src.getTransformElement())); 315 for (org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetParameterComponent t : src.getParameter()) 316 tgt.addParameter(convertStructureMapGroupRuleTargetParameterComponent(t)); 317 return tgt; 318 } 319 320 public static org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetComponent convertStructureMapGroupRuleTargetComponent(org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetComponent src) throws FHIRException { 321 if (src == null) 322 return null; 323 org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetComponent(); 324 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 325 if (src.hasContext()) 326 tgt.setContextElement(Id30_50.convertId(src.getContextElement())); 327 tgt.setContextType(org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextType.VARIABLE); 328 if (src.hasElement()) 329 tgt.setElementElement(String30_50.convertString(src.getElementElement())); 330 if (src.hasVariable()) 331 tgt.setVariableElement(Id30_50.convertId(src.getVariableElement())); 332 tgt.setListMode(src.getListMode().stream() 333 .map(StructureMap30_50::convertStructureMapTargetListMode) 334 .collect(Collectors.toList())); 335 if (src.hasListRuleId()) 336 tgt.setListRuleIdElement(Id30_50.convertId(src.getListRuleIdElement())); 337 if (src.hasTransform()) 338 tgt.setTransformElement(convertStructureMapTransform(src.getTransformElement())); 339 for (org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetParameterComponent t : src.getParameter()) 340 tgt.addParameter(convertStructureMapGroupRuleTargetParameterComponent(t)); 341 return tgt; 342 } 343 344 public static org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetParameterComponent convertStructureMapGroupRuleTargetParameterComponent(org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetParameterComponent src) throws FHIRException { 345 if (src == null) 346 return null; 347 org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetParameterComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetParameterComponent(); 348 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 349 if (src.hasValue()) 350 tgt.setValue(ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().convertType(src.getValue())); 351 return tgt; 352 } 353 354 public static org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetParameterComponent convertStructureMapGroupRuleTargetParameterComponent(org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupRuleTargetParameterComponent src) throws FHIRException { 355 if (src == null) 356 return null; 357 org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetParameterComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetParameterComponent(); 358 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 359 if (src.hasValue()) 360 tgt.setValue(ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().convertType(src.getValue())); 361 return tgt; 362 } 363 364 static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapGroupTypeMode> convertStructureMapGroupTypeMode(org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupTypeMode> src) throws FHIRException { 365 if (src == null || src.isEmpty()) 366 return null; 367 org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapGroupTypeMode> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.StructureMap.StructureMapGroupTypeModeEnumFactory()); 368 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 369 switch (src.getValue()) { 370 case NONE: 371 return null; 372 case TYPES: 373 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapGroupTypeMode.TYPES); 374 break; 375 case TYPEANDTYPES: 376 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapGroupTypeMode.TYPEANDTYPES); 377 break; 378 default: 379 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapGroupTypeMode.NULL); 380 break; 381 } 382 return tgt; 383 } 384 385 static public org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupTypeMode> convertStructureMapGroupTypeMode(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapGroupTypeMode> src) throws FHIRException { 386 org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupTypeMode> tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupTypeModeEnumFactory()); 387 if (src == null || src.isEmpty()) { 388 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupTypeMode.NONE); 389 return tgt; 390 } 391 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 392 switch (src.getValue()) { 393 case TYPES: 394 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupTypeMode.TYPES); 395 break; 396 case TYPEANDTYPES: 397 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupTypeMode.TYPEANDTYPES); 398 break; 399 default: 400 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupTypeMode.NULL); 401 break; 402 } 403 return tgt; 404 } 405 406 static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapInputMode> convertStructureMapInputMode(org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapInputMode> src) throws FHIRException { 407 if (src == null || src.isEmpty()) 408 return null; 409 org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapInputMode> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.StructureMap.StructureMapInputModeEnumFactory()); 410 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 411 switch (src.getValue()) { 412 case SOURCE: 413 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapInputMode.SOURCE); 414 break; 415 case TARGET: 416 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapInputMode.TARGET); 417 break; 418 default: 419 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapInputMode.NULL); 420 break; 421 } 422 return tgt; 423 } 424 425 static public org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapInputMode> convertStructureMapInputMode(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapInputMode> src) throws FHIRException { 426 if (src == null || src.isEmpty()) 427 return null; 428 org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapInputMode> tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.StructureMap.StructureMapInputModeEnumFactory()); 429 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 430 switch (src.getValue()) { 431 case SOURCE: 432 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapInputMode.SOURCE); 433 break; 434 case TARGET: 435 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapInputMode.TARGET); 436 break; 437 default: 438 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapInputMode.NULL); 439 break; 440 } 441 return tgt; 442 } 443 444 static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapModelMode> convertStructureMapModelMode(org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapModelMode> src) throws FHIRException { 445 if (src == null || src.isEmpty()) 446 return null; 447 org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapModelMode> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.StructureMap.StructureMapModelModeEnumFactory()); 448 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 449 switch (src.getValue()) { 450 case SOURCE: 451 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapModelMode.SOURCE); 452 break; 453 case QUERIED: 454 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapModelMode.QUERIED); 455 break; 456 case TARGET: 457 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapModelMode.TARGET); 458 break; 459 case PRODUCED: 460 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapModelMode.PRODUCED); 461 break; 462 default: 463 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapModelMode.NULL); 464 break; 465 } 466 return tgt; 467 } 468 469 static public org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapModelMode> convertStructureMapModelMode(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapModelMode> src) throws FHIRException { 470 if (src == null || src.isEmpty()) 471 return null; 472 org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapModelMode> tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.StructureMap.StructureMapModelModeEnumFactory()); 473 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 474 switch (src.getValue()) { 475 case SOURCE: 476 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapModelMode.SOURCE); 477 break; 478 case QUERIED: 479 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapModelMode.QUERIED); 480 break; 481 case TARGET: 482 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapModelMode.TARGET); 483 break; 484 case PRODUCED: 485 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapModelMode.PRODUCED); 486 break; 487 default: 488 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapModelMode.NULL); 489 break; 490 } 491 return tgt; 492 } 493 494 static public org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapSourceListMode> convertStructureMapSourceListMode(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapSourceListMode> src) throws FHIRException { 495 if (src == null || src.isEmpty()) 496 return null; 497 org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapSourceListMode> tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.StructureMap.StructureMapSourceListModeEnumFactory()); 498 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 499 switch (src.getValue()) { 500 case FIRST: 501 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapSourceListMode.FIRST); 502 break; 503 case NOTFIRST: 504 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapSourceListMode.NOTFIRST); 505 break; 506 case LAST: 507 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapSourceListMode.LAST); 508 break; 509 case NOTLAST: 510 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapSourceListMode.NOTLAST); 511 break; 512 case ONLYONE: 513 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapSourceListMode.ONLYONE); 514 break; 515 default: 516 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapSourceListMode.NULL); 517 break; 518 } 519 return tgt; 520 } 521 522 static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapSourceListMode> convertStructureMapSourceListMode(org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapSourceListMode> src) throws FHIRException { 523 if (src == null || src.isEmpty()) 524 return null; 525 org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapSourceListMode> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.StructureMap.StructureMapSourceListModeEnumFactory()); 526 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 527 switch (src.getValue()) { 528 case FIRST: 529 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapSourceListMode.FIRST); 530 break; 531 case NOTFIRST: 532 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapSourceListMode.NOTFIRST); 533 break; 534 case LAST: 535 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapSourceListMode.LAST); 536 break; 537 case NOTLAST: 538 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapSourceListMode.NOTLAST); 539 break; 540 case ONLYONE: 541 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapSourceListMode.ONLYONE); 542 break; 543 default: 544 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapSourceListMode.NULL); 545 break; 546 } 547 return tgt; 548 } 549 550 public static org.hl7.fhir.dstu3.model.StructureMap.StructureMapStructureComponent convertStructureMapStructureComponent(org.hl7.fhir.r5.model.StructureMap.StructureMapStructureComponent src) throws FHIRException { 551 if (src == null) 552 return null; 553 org.hl7.fhir.dstu3.model.StructureMap.StructureMapStructureComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapStructureComponent(); 554 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 555 if (src.hasUrl()) 556 tgt.setUrl(src.getUrl()); 557 if (src.hasMode()) 558 tgt.setModeElement(convertStructureMapModelMode(src.getModeElement())); 559 if (src.hasAlias()) 560 tgt.setAliasElement(String30_50.convertString(src.getAliasElement())); 561 if (src.hasDocumentation()) 562 tgt.setDocumentationElement(String30_50.convertString(src.getDocumentationElement())); 563 return tgt; 564 } 565 566 public static org.hl7.fhir.r5.model.StructureMap.StructureMapStructureComponent convertStructureMapStructureComponent(org.hl7.fhir.dstu3.model.StructureMap.StructureMapStructureComponent src) throws FHIRException { 567 if (src == null) 568 return null; 569 org.hl7.fhir.r5.model.StructureMap.StructureMapStructureComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapStructureComponent(); 570 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 571 if (src.hasUrl()) 572 tgt.setUrl(src.getUrl()); 573 if (src.hasMode()) 574 tgt.setModeElement(convertStructureMapModelMode(src.getModeElement())); 575 if (src.hasAlias()) 576 tgt.setAliasElement(String30_50.convertString(src.getAliasElement())); 577 if (src.hasDocumentation()) 578 tgt.setDocumentationElement(String30_50.convertString(src.getDocumentationElement())); 579 return tgt; 580 } 581 582 static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapTargetListMode> convertStructureMapTargetListMode(org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapTargetListMode> src) throws FHIRException { 583 if (src == null || src.isEmpty()) 584 return null; 585 org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapTargetListMode> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.StructureMap.StructureMapTargetListModeEnumFactory()); 586 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 587 switch (src.getValue()) { 588 case FIRST: 589 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTargetListMode.FIRST); 590 break; 591 case SHARE: 592 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTargetListMode.SHARE); 593 break; 594 case LAST: 595 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTargetListMode.LAST); 596 break; 597 case COLLATE: 598 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTargetListMode.COLLATE); 599 break; 600 default: 601 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTargetListMode.NULL); 602 break; 603 } 604 return tgt; 605 } 606 607 static public org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapTargetListMode> convertStructureMapTargetListMode(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapTargetListMode> src) throws FHIRException { 608 if (src == null || src.isEmpty()) 609 return null; 610 org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapTargetListMode> tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.StructureMap.StructureMapTargetListModeEnumFactory()); 611 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 612 switch (src.getValue()) { 613 case FIRST: 614 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTargetListMode.FIRST); 615 break; 616 case SHARE: 617 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTargetListMode.SHARE); 618 break; 619 case LAST: 620 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTargetListMode.LAST); 621 break; 622 case COLLATE: 623 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTargetListMode.COLLATE); 624 break; 625 default: 626 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTargetListMode.NULL); 627 break; 628 } 629 return tgt; 630 } 631 632 static public org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform> convertStructureMapTransform(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapTransform> src) throws FHIRException { 633 if (src == null || src.isEmpty()) 634 return null; 635 org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform> tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransformEnumFactory()); 636 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 637 switch (src.getValue()) { 638 case CREATE: 639 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform.CREATE); 640 break; 641 case COPY: 642 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform.COPY); 643 break; 644 case TRUNCATE: 645 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform.TRUNCATE); 646 break; 647 case ESCAPE: 648 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform.ESCAPE); 649 break; 650 case CAST: 651 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform.CAST); 652 break; 653 case APPEND: 654 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform.APPEND); 655 break; 656 case TRANSLATE: 657 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform.TRANSLATE); 658 break; 659 case REFERENCE: 660 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform.REFERENCE); 661 break; 662 case DATEOP: 663 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform.DATEOP); 664 break; 665 case UUID: 666 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform.UUID); 667 break; 668 case POINTER: 669 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform.POINTER); 670 break; 671 case EVALUATE: 672 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform.EVALUATE); 673 break; 674 case CC: 675 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform.CC); 676 break; 677 case C: 678 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform.C); 679 break; 680 case QTY: 681 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform.QTY); 682 break; 683 case ID: 684 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform.ID); 685 break; 686 case CP: 687 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform.CP); 688 break; 689 default: 690 tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform.NULL); 691 break; 692 } 693 return tgt; 694 } 695 696 static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapTransform> convertStructureMapTransform(org.hl7.fhir.dstu3.model.Enumeration<org.hl7.fhir.dstu3.model.StructureMap.StructureMapTransform> src) throws FHIRException { 697 if (src == null || src.isEmpty()) 698 return null; 699 org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.StructureMap.StructureMapTransform> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.StructureMap.StructureMapTransformEnumFactory()); 700 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); 701 switch (src.getValue()) { 702 case CREATE: 703 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTransform.CREATE); 704 break; 705 case COPY: 706 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTransform.COPY); 707 break; 708 case TRUNCATE: 709 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTransform.TRUNCATE); 710 break; 711 case ESCAPE: 712 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTransform.ESCAPE); 713 break; 714 case CAST: 715 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTransform.CAST); 716 break; 717 case APPEND: 718 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTransform.APPEND); 719 break; 720 case TRANSLATE: 721 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTransform.TRANSLATE); 722 break; 723 case REFERENCE: 724 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTransform.REFERENCE); 725 break; 726 case DATEOP: 727 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTransform.DATEOP); 728 break; 729 case UUID: 730 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTransform.UUID); 731 break; 732 case POINTER: 733 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTransform.POINTER); 734 break; 735 case EVALUATE: 736 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTransform.EVALUATE); 737 break; 738 case CC: 739 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTransform.CC); 740 break; 741 case C: 742 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTransform.C); 743 break; 744 case QTY: 745 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTransform.QTY); 746 break; 747 case ID: 748 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTransform.ID); 749 break; 750 case CP: 751 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTransform.CP); 752 break; 753 default: 754 tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapTransform.NULL); 755 break; 756 } 757 return tgt; 758 } 759}