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