
001package org.hl7.fhir.convertors.conv14_40.resources14_40; 002 003import org.hl7.fhir.convertors.context.ConversionContext14_40; 004import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Signature14_40; 005import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Decimal14_40; 006import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Instant14_40; 007import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.String14_40; 008import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.UnsignedInt14_40; 009import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Uri14_40; 010import org.hl7.fhir.exceptions.FHIRException; 011import org.hl7.fhir.r4.model.Bundle; 012import org.hl7.fhir.r4.model.Enumeration; 013 014public class Bundle14_40 { 015 016 public static org.hl7.fhir.r4.model.Bundle convertBundle(org.hl7.fhir.dstu2016may.model.Bundle src) throws FHIRException { 017 if (src == null || src.isEmpty()) 018 return null; 019 org.hl7.fhir.r4.model.Bundle tgt = new org.hl7.fhir.r4.model.Bundle(); 020 ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyResource(src, tgt); 021 if (src.hasType()) 022 tgt.setTypeElement(convertBundleType(src.getTypeElement())); 023 if (src.hasTotal()) 024 tgt.setTotalElement(UnsignedInt14_40.convertUnsignedInt(src.getTotalElement())); 025 for (org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent t : src.getLink()) 026 tgt.addLink(convertBundleLinkComponent(t)); 027 for (org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent t : src.getEntry()) 028 tgt.addEntry(convertBundleEntryComponent(t)); 029 if (src.hasSignature()) 030 tgt.setSignature(Signature14_40.convertSignature(src.getSignature())); 031 return tgt; 032 } 033 034 public static org.hl7.fhir.dstu2016may.model.Bundle convertBundle(org.hl7.fhir.r4.model.Bundle src) throws FHIRException { 035 if (src == null || src.isEmpty()) 036 return null; 037 org.hl7.fhir.dstu2016may.model.Bundle tgt = new org.hl7.fhir.dstu2016may.model.Bundle(); 038 ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyResource(src, tgt); 039 if (src.hasType()) 040 tgt.setTypeElement(convertBundleType(src.getTypeElement())); 041 if (src.hasTotal()) 042 tgt.setTotalElement(UnsignedInt14_40.convertUnsignedInt(src.getTotalElement())); 043 for (org.hl7.fhir.r4.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); 044 for (org.hl7.fhir.r4.model.Bundle.BundleEntryComponent t : src.getEntry()) 045 tgt.addEntry(convertBundleEntryComponent(t)); 046 if (src.hasSignature()) 047 tgt.setSignature(Signature14_40.convertSignature(src.getSignature())); 048 return tgt; 049 } 050 051 public static org.hl7.fhir.r4.model.Bundle.BundleEntryComponent convertBundleEntryComponent(org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent src) throws FHIRException { 052 if (src == null || src.isEmpty()) 053 return null; 054 org.hl7.fhir.r4.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryComponent(); 055 ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); 056 for (org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent t : src.getLink()) 057 tgt.addLink(convertBundleLinkComponent(t)); 058 if (src.hasFullUrl()) 059 tgt.setFullUrlElement(Uri14_40.convertUri(src.getFullUrlElement())); 060 if (src.hasResource()) 061 tgt.setResource(ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().convertResource(src.getResource())); 062 if (src.hasSearch()) 063 tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch())); 064 if (src.hasRequest()) 065 tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest())); 066 if (src.hasResponse()) 067 tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse())); 068 return tgt; 069 } 070 071 public static org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent convertBundleEntryComponent(org.hl7.fhir.r4.model.Bundle.BundleEntryComponent src) throws FHIRException { 072 if (src == null || src.isEmpty()) 073 return null; 074 org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent(); 075 ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); 076 for (org.hl7.fhir.r4.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t)); 077 if (src.hasFullUrl()) 078 tgt.setFullUrlElement(Uri14_40.convertUri(src.getFullUrlElement())); 079 if (src.hasResource()) 080 tgt.setResource(ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().convertResource(src.getResource())); 081 if (src.hasSearch()) 082 tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch())); 083 if (src.hasRequest()) 084 tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest())); 085 if (src.hasResponse()) 086 tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse())); 087 return tgt; 088 } 089 090 public static org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent convertBundleEntryRequestComponent(org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryRequestComponent src) throws FHIRException { 091 if (src == null || src.isEmpty()) 092 return null; 093 org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent(); 094 ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); 095 if (src.hasMethod()) 096 tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); 097 if (src.hasUrlElement()) 098 tgt.setUrlElement(Uri14_40.convertUri(src.getUrlElement())); 099 if (src.hasIfNoneMatch()) 100 tgt.setIfNoneMatchElement(String14_40.convertString(src.getIfNoneMatchElement())); 101 if (src.hasIfModifiedSince()) 102 tgt.setIfModifiedSinceElement(Instant14_40.convertInstant(src.getIfModifiedSinceElement())); 103 if (src.hasIfMatch()) 104 tgt.setIfMatchElement(String14_40.convertString(src.getIfMatchElement())); 105 if (src.hasIfNoneExist()) 106 tgt.setIfNoneExistElement(String14_40.convertString(src.getIfNoneExistElement())); 107 return tgt; 108 } 109 110 public static org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryRequestComponent convertBundleEntryRequestComponent(org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent src) throws FHIRException { 111 if (src == null || src.isEmpty()) 112 return null; 113 org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryRequestComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryRequestComponent(); 114 ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); 115 if (src.hasMethod()) 116 tgt.setMethodElement(convertHTTPVerb(src.getMethodElement())); 117 if (src.hasUrlElement()) 118 tgt.setUrlElement(Uri14_40.convertUri(src.getUrlElement())); 119 if (src.hasIfNoneMatch()) 120 tgt.setIfNoneMatchElement(String14_40.convertString(src.getIfNoneMatchElement())); 121 if (src.hasIfModifiedSince()) 122 tgt.setIfModifiedSinceElement(Instant14_40.convertInstant(src.getIfModifiedSinceElement())); 123 if (src.hasIfMatch()) 124 tgt.setIfMatchElement(String14_40.convertString(src.getIfMatchElement())); 125 if (src.hasIfNoneExist()) 126 tgt.setIfNoneExistElement(String14_40.convertString(src.getIfNoneExistElement())); 127 return tgt; 128 } 129 130 public static org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent convertBundleEntryResponseComponent(org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent src) throws FHIRException { 131 if (src == null || src.isEmpty()) 132 return null; 133 org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent(); 134 ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); 135 if (src.hasStatusElement()) 136 tgt.setStatusElement(String14_40.convertString(src.getStatusElement())); 137 if (src.hasLocation()) 138 tgt.setLocationElement(Uri14_40.convertUri(src.getLocationElement())); 139 if (src.hasEtag()) 140 tgt.setEtagElement(String14_40.convertString(src.getEtagElement())); 141 if (src.hasLastModified()) 142 tgt.setLastModifiedElement(Instant14_40.convertInstant(src.getLastModifiedElement())); 143 return tgt; 144 } 145 146 public static org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent convertBundleEntryResponseComponent(org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent src) throws FHIRException { 147 if (src == null || src.isEmpty()) 148 return null; 149 org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent(); 150 ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); 151 if (src.hasStatusElement()) 152 tgt.setStatusElement(String14_40.convertString(src.getStatusElement())); 153 if (src.hasLocation()) 154 tgt.setLocationElement(Uri14_40.convertUri(src.getLocationElement())); 155 if (src.hasEtag()) 156 tgt.setEtagElement(String14_40.convertString(src.getEtagElement())); 157 if (src.hasLastModified()) 158 tgt.setLastModifiedElement(Instant14_40.convertInstant(src.getLastModifiedElement())); 159 return tgt; 160 } 161 162 public static org.hl7.fhir.dstu2016may.model.Bundle.BundleEntrySearchComponent convertBundleEntrySearchComponent(org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent src) throws FHIRException { 163 if (src == null || src.isEmpty()) 164 return null; 165 org.hl7.fhir.dstu2016may.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntrySearchComponent(); 166 ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); 167 if (src.hasMode()) 168 tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); 169 if (src.hasScore()) 170 tgt.setScoreElement(Decimal14_40.convertDecimal(src.getScoreElement())); 171 return tgt; 172 } 173 174 public static org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent convertBundleEntrySearchComponent(org.hl7.fhir.dstu2016may.model.Bundle.BundleEntrySearchComponent src) throws FHIRException { 175 if (src == null || src.isEmpty()) 176 return null; 177 org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent(); 178 ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); 179 if (src.hasMode()) 180 tgt.setModeElement(convertSearchEntryMode(src.getModeElement())); 181 if (src.hasScore()) 182 tgt.setScoreElement(Decimal14_40.convertDecimal(src.getScoreElement())); 183 return tgt; 184 } 185 186 public static org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent convertBundleLinkComponent(org.hl7.fhir.r4.model.Bundle.BundleLinkComponent src) throws FHIRException { 187 if (src == null || src.isEmpty()) 188 return null; 189 org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent(); 190 ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); 191 if (src.hasRelationElement()) 192 tgt.setRelationElement(String14_40.convertString(src.getRelationElement())); 193 if (src.hasUrlElement()) 194 tgt.setUrlElement(Uri14_40.convertUri(src.getUrlElement())); 195 return tgt; 196 } 197 198 public static org.hl7.fhir.r4.model.Bundle.BundleLinkComponent convertBundleLinkComponent(org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent src) throws FHIRException { 199 if (src == null || src.isEmpty()) 200 return null; 201 org.hl7.fhir.r4.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleLinkComponent(); 202 ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyBackboneElement(src,tgt); 203 if (src.hasRelationElement()) 204 tgt.setRelationElement(String14_40.convertString(src.getRelationElement())); 205 if (src.hasUrlElement()) 206 tgt.setUrlElement(Uri14_40.convertUri(src.getUrlElement())); 207 return tgt; 208 } 209 210 static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Bundle.BundleType> convertBundleType(org.hl7.fhir.dstu2016may.model.Enumeration<org.hl7.fhir.dstu2016may.model.Bundle.BundleType> src) throws FHIRException { 211 if (src == null || src.isEmpty()) 212 return null; 213 Enumeration<Bundle.BundleType> tgt = new Enumeration<>(new Bundle.BundleTypeEnumFactory()); 214 ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); 215 if (src.getValue() == null) { 216 tgt.setValue(null); 217 } else { 218 switch (src.getValue()) { 219 case DOCUMENT: 220 tgt.setValue(Bundle.BundleType.DOCUMENT); 221 break; 222 case MESSAGE: 223 tgt.setValue(Bundle.BundleType.MESSAGE); 224 break; 225 case TRANSACTION: 226 tgt.setValue(Bundle.BundleType.TRANSACTION); 227 break; 228 case TRANSACTIONRESPONSE: 229 tgt.setValue(Bundle.BundleType.TRANSACTIONRESPONSE); 230 break; 231 case BATCH: 232 tgt.setValue(Bundle.BundleType.BATCH); 233 break; 234 case BATCHRESPONSE: 235 tgt.setValue(Bundle.BundleType.BATCHRESPONSE); 236 break; 237 case HISTORY: 238 tgt.setValue(Bundle.BundleType.HISTORY); 239 break; 240 case SEARCHSET: 241 tgt.setValue(Bundle.BundleType.SEARCHSET); 242 break; 243 case COLLECTION: 244 tgt.setValue(Bundle.BundleType.COLLECTION); 245 break; 246 default: 247 tgt.setValue(Bundle.BundleType.NULL); 248 break; 249 } 250 } 251 return tgt; 252 } 253 254 static public org.hl7.fhir.dstu2016may.model.Enumeration<org.hl7.fhir.dstu2016may.model.Bundle.BundleType> convertBundleType(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Bundle.BundleType> src) throws FHIRException { 255 if (src == null || src.isEmpty()) 256 return null; 257 org.hl7.fhir.dstu2016may.model.Enumeration<org.hl7.fhir.dstu2016may.model.Bundle.BundleType> tgt = new org.hl7.fhir.dstu2016may.model.Enumeration<>(new org.hl7.fhir.dstu2016may.model.Bundle.BundleTypeEnumFactory()); 258 ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); 259 if (src.getValue() == null) { 260 tgt.setValue(null); 261 } else { 262 switch (src.getValue()) { 263 case DOCUMENT: 264 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.BundleType.DOCUMENT); 265 break; 266 case MESSAGE: 267 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.BundleType.MESSAGE); 268 break; 269 case TRANSACTION: 270 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.BundleType.TRANSACTION); 271 break; 272 case TRANSACTIONRESPONSE: 273 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.BundleType.TRANSACTIONRESPONSE); 274 break; 275 case BATCH: 276 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.BundleType.BATCH); 277 break; 278 case BATCHRESPONSE: 279 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.BundleType.BATCHRESPONSE); 280 break; 281 case HISTORY: 282 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.BundleType.HISTORY); 283 break; 284 case SEARCHSET: 285 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.BundleType.SEARCHSET); 286 break; 287 case COLLECTION: 288 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.BundleType.COLLECTION); 289 break; 290 default: 291 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.BundleType.NULL); 292 break; 293 } 294 } 295 return tgt; 296 } 297 298 static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Bundle.HTTPVerb> convertHTTPVerb(org.hl7.fhir.dstu2016may.model.Enumeration<org.hl7.fhir.dstu2016may.model.Bundle.HTTPVerb> src) throws FHIRException { 299 if (src == null || src.isEmpty()) 300 return null; 301 Enumeration<Bundle.HTTPVerb> tgt = new Enumeration<>(new Bundle.HTTPVerbEnumFactory()); 302 ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); 303 if (src.getValue() == null) { 304 tgt.setValue(null); 305 } else { 306 switch (src.getValue()) { 307 case GET: 308 tgt.setValue(Bundle.HTTPVerb.GET); 309 break; 310 case POST: 311 tgt.setValue(Bundle.HTTPVerb.POST); 312 break; 313 case PUT: 314 tgt.setValue(Bundle.HTTPVerb.PUT); 315 break; 316 case DELETE: 317 tgt.setValue(Bundle.HTTPVerb.DELETE); 318 break; 319 default: 320 tgt.setValue(Bundle.HTTPVerb.NULL); 321 break; 322 } 323 } 324 return tgt; 325 } 326 327 static public org.hl7.fhir.dstu2016may.model.Enumeration<org.hl7.fhir.dstu2016may.model.Bundle.HTTPVerb> convertHTTPVerb(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Bundle.HTTPVerb> src) throws FHIRException { 328 if (src == null || src.isEmpty()) 329 return null; 330 org.hl7.fhir.dstu2016may.model.Enumeration<org.hl7.fhir.dstu2016may.model.Bundle.HTTPVerb> tgt = new org.hl7.fhir.dstu2016may.model.Enumeration<>(new org.hl7.fhir.dstu2016may.model.Bundle.HTTPVerbEnumFactory()); 331 ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); 332 if (src.getValue() == null) { 333 tgt.setValue(null); 334 } else { 335 switch (src.getValue()) { 336 case GET: 337 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.HTTPVerb.GET); 338 break; 339 case POST: 340 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.HTTPVerb.POST); 341 break; 342 case PUT: 343 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.HTTPVerb.PUT); 344 break; 345 case DELETE: 346 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.HTTPVerb.DELETE); 347 break; 348 default: 349 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.HTTPVerb.NULL); 350 break; 351 } 352 } 353 return tgt; 354 } 355 356 static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Bundle.SearchEntryMode> convertSearchEntryMode(org.hl7.fhir.dstu2016may.model.Enumeration<org.hl7.fhir.dstu2016may.model.Bundle.SearchEntryMode> src) throws FHIRException { 357 if (src == null || src.isEmpty()) 358 return null; 359 Enumeration<Bundle.SearchEntryMode> tgt = new Enumeration<>(new Bundle.SearchEntryModeEnumFactory()); 360 ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); 361 if (src.getValue() == null) { 362 tgt.setValue(null); 363 } else { 364 switch (src.getValue()) { 365 case MATCH: 366 tgt.setValue(Bundle.SearchEntryMode.MATCH); 367 break; 368 case INCLUDE: 369 tgt.setValue(Bundle.SearchEntryMode.INCLUDE); 370 break; 371 case OUTCOME: 372 tgt.setValue(Bundle.SearchEntryMode.OUTCOME); 373 break; 374 default: 375 tgt.setValue(Bundle.SearchEntryMode.NULL); 376 break; 377 } 378 } 379 return tgt; 380 } 381 382 static public org.hl7.fhir.dstu2016may.model.Enumeration<org.hl7.fhir.dstu2016may.model.Bundle.SearchEntryMode> convertSearchEntryMode(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.Bundle.SearchEntryMode> src) throws FHIRException { 383 if (src == null || src.isEmpty()) 384 return null; 385 org.hl7.fhir.dstu2016may.model.Enumeration<org.hl7.fhir.dstu2016may.model.Bundle.SearchEntryMode> tgt = new org.hl7.fhir.dstu2016may.model.Enumeration<>(new org.hl7.fhir.dstu2016may.model.Bundle.SearchEntryModeEnumFactory()); 386 ConversionContext14_40.INSTANCE.getVersionConvertor_14_40().copyElement(src, tgt); 387 if (src.getValue() == null) { 388 tgt.setValue(null); 389 } else { 390 switch (src.getValue()) { 391 case MATCH: 392 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.SearchEntryMode.MATCH); 393 break; 394 case INCLUDE: 395 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.SearchEntryMode.INCLUDE); 396 break; 397 case OUTCOME: 398 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.SearchEntryMode.OUTCOME); 399 break; 400 default: 401 tgt.setValue(org.hl7.fhir.dstu2016may.model.Bundle.SearchEntryMode.NULL); 402 break; 403 } 404 } 405 return tgt; 406 } 407}