View Javadoc
1   package ca.uhn.fhir.jpa.config;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   import java.util.concurrent.Executor;
6   import java.util.concurrent.Executors;
7   
8   import javax.persistence.EntityManager;
9   import org.springframework.transaction.PlatformTransactionManager;
10  import ca.uhn.fhir.jpa.dao.DaoConfig;
11  
12  import org.springframework.beans.factory.annotation.Autowire;
13  import org.springframework.context.annotation.Bean;
14  import org.springframework.context.annotation.Configuration;
15  import org.springframework.context.annotation.Lazy;
16  import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
17  import org.springframework.scheduling.annotation.EnableScheduling;
18  import org.springframework.scheduling.annotation.SchedulingConfigurer;
19  import org.springframework.scheduling.config.ScheduledTaskRegistrar;
20  
21  import ca.uhn.fhir.context.FhirContext;
22  import ca.uhn.fhir.model.api.IResource;
23  import ca.uhn.fhir.rest.server.IResourceProvider;
24  import ca.uhn.fhir.jpa.dao.*;
25  
26  @Configuration
27  public abstract class BaseJavaConfigDstu2 extends ca.uhn.fhir.jpa.config.BaseDstu2Config {
28  
29  	/**
30  	 * Subclasses may override
31  	 */
32  	protected boolean isSupported(String theResourceType) {
33  		return true;
34  	}
35  
36  	@Bean(name="myResourceProvidersDstu2")
37  	public List<IResourceProvider> resourceProvidersDstu2() {
38  		List<IResourceProvider> retVal = new ArrayList<IResourceProvider>();
39  		if (isSupported("Account")) {
40  			retVal.add(rpAccountDstu2());
41  		}
42  		if (isSupported("AllergyIntolerance")) {
43  			retVal.add(rpAllergyIntoleranceDstu2());
44  		}
45  		if (isSupported("Appointment")) {
46  			retVal.add(rpAppointmentDstu2());
47  		}
48  		if (isSupported("AppointmentResponse")) {
49  			retVal.add(rpAppointmentResponseDstu2());
50  		}
51  		if (isSupported("AuditEvent")) {
52  			retVal.add(rpAuditEventDstu2());
53  		}
54  		if (isSupported("Basic")) {
55  			retVal.add(rpBasicDstu2());
56  		}
57  		if (isSupported("Binary")) {
58  			retVal.add(rpBinaryDstu2());
59  		}
60  		if (isSupported("BodySite")) {
61  			retVal.add(rpBodySiteDstu2());
62  		}
63  		if (isSupported("Bundle")) {
64  			retVal.add(rpBundleDstu2());
65  		}
66  		if (isSupported("CarePlan")) {
67  			retVal.add(rpCarePlanDstu2());
68  		}
69  		if (isSupported("Claim")) {
70  			retVal.add(rpClaimDstu2());
71  		}
72  		if (isSupported("ClaimResponse")) {
73  			retVal.add(rpClaimResponseDstu2());
74  		}
75  		if (isSupported("ClinicalImpression")) {
76  			retVal.add(rpClinicalImpressionDstu2());
77  		}
78  		if (isSupported("Communication")) {
79  			retVal.add(rpCommunicationDstu2());
80  		}
81  		if (isSupported("CommunicationRequest")) {
82  			retVal.add(rpCommunicationRequestDstu2());
83  		}
84  		if (isSupported("Composition")) {
85  			retVal.add(rpCompositionDstu2());
86  		}
87  		if (isSupported("ConceptMap")) {
88  			retVal.add(rpConceptMapDstu2());
89  		}
90  		if (isSupported("Condition")) {
91  			retVal.add(rpConditionDstu2());
92  		}
93  		if (isSupported("Conformance")) {
94  			retVal.add(rpConformanceDstu2());
95  		}
96  		if (isSupported("Contract")) {
97  			retVal.add(rpContractDstu2());
98  		}
99  		if (isSupported("Coverage")) {
100 			retVal.add(rpCoverageDstu2());
101 		}
102 		if (isSupported("DataElement")) {
103 			retVal.add(rpDataElementDstu2());
104 		}
105 		if (isSupported("DetectedIssue")) {
106 			retVal.add(rpDetectedIssueDstu2());
107 		}
108 		if (isSupported("Device")) {
109 			retVal.add(rpDeviceDstu2());
110 		}
111 		if (isSupported("DeviceComponent")) {
112 			retVal.add(rpDeviceComponentDstu2());
113 		}
114 		if (isSupported("DeviceMetric")) {
115 			retVal.add(rpDeviceMetricDstu2());
116 		}
117 		if (isSupported("DeviceUseRequest")) {
118 			retVal.add(rpDeviceUseRequestDstu2());
119 		}
120 		if (isSupported("DeviceUseStatement")) {
121 			retVal.add(rpDeviceUseStatementDstu2());
122 		}
123 		if (isSupported("DiagnosticOrder")) {
124 			retVal.add(rpDiagnosticOrderDstu2());
125 		}
126 		if (isSupported("DiagnosticReport")) {
127 			retVal.add(rpDiagnosticReportDstu2());
128 		}
129 		if (isSupported("DocumentManifest")) {
130 			retVal.add(rpDocumentManifestDstu2());
131 		}
132 		if (isSupported("DocumentReference")) {
133 			retVal.add(rpDocumentReferenceDstu2());
134 		}
135 		if (isSupported("EligibilityRequest")) {
136 			retVal.add(rpEligibilityRequestDstu2());
137 		}
138 		if (isSupported("EligibilityResponse")) {
139 			retVal.add(rpEligibilityResponseDstu2());
140 		}
141 		if (isSupported("Encounter")) {
142 			retVal.add(rpEncounterDstu2());
143 		}
144 		if (isSupported("EnrollmentRequest")) {
145 			retVal.add(rpEnrollmentRequestDstu2());
146 		}
147 		if (isSupported("EnrollmentResponse")) {
148 			retVal.add(rpEnrollmentResponseDstu2());
149 		}
150 		if (isSupported("EpisodeOfCare")) {
151 			retVal.add(rpEpisodeOfCareDstu2());
152 		}
153 		if (isSupported("ExplanationOfBenefit")) {
154 			retVal.add(rpExplanationOfBenefitDstu2());
155 		}
156 		if (isSupported("FamilyMemberHistory")) {
157 			retVal.add(rpFamilyMemberHistoryDstu2());
158 		}
159 		if (isSupported("Flag")) {
160 			retVal.add(rpFlagDstu2());
161 		}
162 		if (isSupported("Goal")) {
163 			retVal.add(rpGoalDstu2());
164 		}
165 		if (isSupported("Group")) {
166 			retVal.add(rpGroupDstu2());
167 		}
168 		if (isSupported("HealthcareService")) {
169 			retVal.add(rpHealthcareServiceDstu2());
170 		}
171 		if (isSupported("ImagingObjectSelection")) {
172 			retVal.add(rpImagingObjectSelectionDstu2());
173 		}
174 		if (isSupported("ImagingStudy")) {
175 			retVal.add(rpImagingStudyDstu2());
176 		}
177 		if (isSupported("Immunization")) {
178 			retVal.add(rpImmunizationDstu2());
179 		}
180 		if (isSupported("ImmunizationRecommendation")) {
181 			retVal.add(rpImmunizationRecommendationDstu2());
182 		}
183 		if (isSupported("ImplementationGuide")) {
184 			retVal.add(rpImplementationGuideDstu2());
185 		}
186 		if (isSupported("List")) {
187 			retVal.add(rpListResourceDstu2());
188 		}
189 		if (isSupported("Location")) {
190 			retVal.add(rpLocationDstu2());
191 		}
192 		if (isSupported("Media")) {
193 			retVal.add(rpMediaDstu2());
194 		}
195 		if (isSupported("Medication")) {
196 			retVal.add(rpMedicationDstu2());
197 		}
198 		if (isSupported("MedicationAdministration")) {
199 			retVal.add(rpMedicationAdministrationDstu2());
200 		}
201 		if (isSupported("MedicationDispense")) {
202 			retVal.add(rpMedicationDispenseDstu2());
203 		}
204 		if (isSupported("MedicationOrder")) {
205 			retVal.add(rpMedicationOrderDstu2());
206 		}
207 		if (isSupported("MedicationStatement")) {
208 			retVal.add(rpMedicationStatementDstu2());
209 		}
210 		if (isSupported("MessageHeader")) {
211 			retVal.add(rpMessageHeaderDstu2());
212 		}
213 		if (isSupported("NamingSystem")) {
214 			retVal.add(rpNamingSystemDstu2());
215 		}
216 		if (isSupported("NutritionOrder")) {
217 			retVal.add(rpNutritionOrderDstu2());
218 		}
219 		if (isSupported("Observation")) {
220 			retVal.add(rpObservationDstu2());
221 		}
222 		if (isSupported("OperationDefinition")) {
223 			retVal.add(rpOperationDefinitionDstu2());
224 		}
225 		if (isSupported("OperationOutcome")) {
226 			retVal.add(rpOperationOutcomeDstu2());
227 		}
228 		if (isSupported("Order")) {
229 			retVal.add(rpOrderDstu2());
230 		}
231 		if (isSupported("OrderResponse")) {
232 			retVal.add(rpOrderResponseDstu2());
233 		}
234 		if (isSupported("Organization")) {
235 			retVal.add(rpOrganizationDstu2());
236 		}
237 		if (isSupported("Parameters")) {
238 			retVal.add(rpParametersDstu2());
239 		}
240 		if (isSupported("Patient")) {
241 			retVal.add(rpPatientDstu2());
242 		}
243 		if (isSupported("PaymentNotice")) {
244 			retVal.add(rpPaymentNoticeDstu2());
245 		}
246 		if (isSupported("PaymentReconciliation")) {
247 			retVal.add(rpPaymentReconciliationDstu2());
248 		}
249 		if (isSupported("Person")) {
250 			retVal.add(rpPersonDstu2());
251 		}
252 		if (isSupported("Practitioner")) {
253 			retVal.add(rpPractitionerDstu2());
254 		}
255 		if (isSupported("Procedure")) {
256 			retVal.add(rpProcedureDstu2());
257 		}
258 		if (isSupported("ProcedureRequest")) {
259 			retVal.add(rpProcedureRequestDstu2());
260 		}
261 		if (isSupported("ProcessRequest")) {
262 			retVal.add(rpProcessRequestDstu2());
263 		}
264 		if (isSupported("ProcessResponse")) {
265 			retVal.add(rpProcessResponseDstu2());
266 		}
267 		if (isSupported("Provenance")) {
268 			retVal.add(rpProvenanceDstu2());
269 		}
270 		if (isSupported("Questionnaire")) {
271 			retVal.add(rpQuestionnaireDstu2());
272 		}
273 		if (isSupported("QuestionnaireResponse")) {
274 			retVal.add(rpQuestionnaireResponseDstu2());
275 		}
276 		if (isSupported("ReferralRequest")) {
277 			retVal.add(rpReferralRequestDstu2());
278 		}
279 		if (isSupported("RelatedPerson")) {
280 			retVal.add(rpRelatedPersonDstu2());
281 		}
282 		if (isSupported("RiskAssessment")) {
283 			retVal.add(rpRiskAssessmentDstu2());
284 		}
285 		if (isSupported("Schedule")) {
286 			retVal.add(rpScheduleDstu2());
287 		}
288 		if (isSupported("SearchParameter")) {
289 			retVal.add(rpSearchParameterDstu2());
290 		}
291 		if (isSupported("Slot")) {
292 			retVal.add(rpSlotDstu2());
293 		}
294 		if (isSupported("Specimen")) {
295 			retVal.add(rpSpecimenDstu2());
296 		}
297 		if (isSupported("StructureDefinition")) {
298 			retVal.add(rpStructureDefinitionDstu2());
299 		}
300 		if (isSupported("Subscription")) {
301 			retVal.add(rpSubscriptionDstu2());
302 		}
303 		if (isSupported("Substance")) {
304 			retVal.add(rpSubstanceDstu2());
305 		}
306 		if (isSupported("SupplyDelivery")) {
307 			retVal.add(rpSupplyDeliveryDstu2());
308 		}
309 		if (isSupported("SupplyRequest")) {
310 			retVal.add(rpSupplyRequestDstu2());
311 		}
312 		if (isSupported("TestScript")) {
313 			retVal.add(rpTestScriptDstu2());
314 		}
315 		if (isSupported("ValueSet")) {
316 			retVal.add(rpValueSetDstu2());
317 		}
318 		if (isSupported("VisionPrescription")) {
319 			retVal.add(rpVisionPrescriptionDstu2());
320 		}
321 		return retVal;
322 	}
323 
324 	@Bean(name="myResourceDaosDstu2")
325 	public List<IFhirResourceDao<?>> resourceDaosDstu2() {
326 		List<IFhirResourceDao<?>> retVal = new ArrayList<IFhirResourceDao<?>>();
327 		if (isSupported("Account")) {
328 			retVal.add(daoAccountDstu2());
329 		}
330 		if (isSupported("AllergyIntolerance")) {
331 			retVal.add(daoAllergyIntoleranceDstu2());
332 		}
333 		if (isSupported("Appointment")) {
334 			retVal.add(daoAppointmentDstu2());
335 		}
336 		if (isSupported("AppointmentResponse")) {
337 			retVal.add(daoAppointmentResponseDstu2());
338 		}
339 		if (isSupported("AuditEvent")) {
340 			retVal.add(daoAuditEventDstu2());
341 		}
342 		if (isSupported("Basic")) {
343 			retVal.add(daoBasicDstu2());
344 		}
345 		if (isSupported("Binary")) {
346 			retVal.add(daoBinaryDstu2());
347 		}
348 		if (isSupported("BodySite")) {
349 			retVal.add(daoBodySiteDstu2());
350 		}
351 		if (isSupported("Bundle")) {
352 			retVal.add(daoBundleDstu2());
353 		}
354 		if (isSupported("CarePlan")) {
355 			retVal.add(daoCarePlanDstu2());
356 		}
357 		if (isSupported("Claim")) {
358 			retVal.add(daoClaimDstu2());
359 		}
360 		if (isSupported("ClaimResponse")) {
361 			retVal.add(daoClaimResponseDstu2());
362 		}
363 		if (isSupported("ClinicalImpression")) {
364 			retVal.add(daoClinicalImpressionDstu2());
365 		}
366 		if (isSupported("Communication")) {
367 			retVal.add(daoCommunicationDstu2());
368 		}
369 		if (isSupported("CommunicationRequest")) {
370 			retVal.add(daoCommunicationRequestDstu2());
371 		}
372 		if (isSupported("Composition")) {
373 			retVal.add(daoCompositionDstu2());
374 		}
375 		if (isSupported("ConceptMap")) {
376 			retVal.add(daoConceptMapDstu2());
377 		}
378 		if (isSupported("Condition")) {
379 			retVal.add(daoConditionDstu2());
380 		}
381 		if (isSupported("Conformance")) {
382 			retVal.add(daoConformanceDstu2());
383 		}
384 		if (isSupported("Contract")) {
385 			retVal.add(daoContractDstu2());
386 		}
387 		if (isSupported("Coverage")) {
388 			retVal.add(daoCoverageDstu2());
389 		}
390 		if (isSupported("DataElement")) {
391 			retVal.add(daoDataElementDstu2());
392 		}
393 		if (isSupported("DetectedIssue")) {
394 			retVal.add(daoDetectedIssueDstu2());
395 		}
396 		if (isSupported("Device")) {
397 			retVal.add(daoDeviceDstu2());
398 		}
399 		if (isSupported("DeviceComponent")) {
400 			retVal.add(daoDeviceComponentDstu2());
401 		}
402 		if (isSupported("DeviceMetric")) {
403 			retVal.add(daoDeviceMetricDstu2());
404 		}
405 		if (isSupported("DeviceUseRequest")) {
406 			retVal.add(daoDeviceUseRequestDstu2());
407 		}
408 		if (isSupported("DeviceUseStatement")) {
409 			retVal.add(daoDeviceUseStatementDstu2());
410 		}
411 		if (isSupported("DiagnosticOrder")) {
412 			retVal.add(daoDiagnosticOrderDstu2());
413 		}
414 		if (isSupported("DiagnosticReport")) {
415 			retVal.add(daoDiagnosticReportDstu2());
416 		}
417 		if (isSupported("DocumentManifest")) {
418 			retVal.add(daoDocumentManifestDstu2());
419 		}
420 		if (isSupported("DocumentReference")) {
421 			retVal.add(daoDocumentReferenceDstu2());
422 		}
423 		if (isSupported("EligibilityRequest")) {
424 			retVal.add(daoEligibilityRequestDstu2());
425 		}
426 		if (isSupported("EligibilityResponse")) {
427 			retVal.add(daoEligibilityResponseDstu2());
428 		}
429 		if (isSupported("Encounter")) {
430 			retVal.add(daoEncounterDstu2());
431 		}
432 		if (isSupported("EnrollmentRequest")) {
433 			retVal.add(daoEnrollmentRequestDstu2());
434 		}
435 		if (isSupported("EnrollmentResponse")) {
436 			retVal.add(daoEnrollmentResponseDstu2());
437 		}
438 		if (isSupported("EpisodeOfCare")) {
439 			retVal.add(daoEpisodeOfCareDstu2());
440 		}
441 		if (isSupported("ExplanationOfBenefit")) {
442 			retVal.add(daoExplanationOfBenefitDstu2());
443 		}
444 		if (isSupported("FamilyMemberHistory")) {
445 			retVal.add(daoFamilyMemberHistoryDstu2());
446 		}
447 		if (isSupported("Flag")) {
448 			retVal.add(daoFlagDstu2());
449 		}
450 		if (isSupported("Goal")) {
451 			retVal.add(daoGoalDstu2());
452 		}
453 		if (isSupported("Group")) {
454 			retVal.add(daoGroupDstu2());
455 		}
456 		if (isSupported("HealthcareService")) {
457 			retVal.add(daoHealthcareServiceDstu2());
458 		}
459 		if (isSupported("ImagingObjectSelection")) {
460 			retVal.add(daoImagingObjectSelectionDstu2());
461 		}
462 		if (isSupported("ImagingStudy")) {
463 			retVal.add(daoImagingStudyDstu2());
464 		}
465 		if (isSupported("Immunization")) {
466 			retVal.add(daoImmunizationDstu2());
467 		}
468 		if (isSupported("ImmunizationRecommendation")) {
469 			retVal.add(daoImmunizationRecommendationDstu2());
470 		}
471 		if (isSupported("ImplementationGuide")) {
472 			retVal.add(daoImplementationGuideDstu2());
473 		}
474 		if (isSupported("List")) {
475 			retVal.add(daoListResourceDstu2());
476 		}
477 		if (isSupported("Location")) {
478 			retVal.add(daoLocationDstu2());
479 		}
480 		if (isSupported("Media")) {
481 			retVal.add(daoMediaDstu2());
482 		}
483 		if (isSupported("Medication")) {
484 			retVal.add(daoMedicationDstu2());
485 		}
486 		if (isSupported("MedicationAdministration")) {
487 			retVal.add(daoMedicationAdministrationDstu2());
488 		}
489 		if (isSupported("MedicationDispense")) {
490 			retVal.add(daoMedicationDispenseDstu2());
491 		}
492 		if (isSupported("MedicationOrder")) {
493 			retVal.add(daoMedicationOrderDstu2());
494 		}
495 		if (isSupported("MedicationStatement")) {
496 			retVal.add(daoMedicationStatementDstu2());
497 		}
498 		if (isSupported("MessageHeader")) {
499 			retVal.add(daoMessageHeaderDstu2());
500 		}
501 		if (isSupported("NamingSystem")) {
502 			retVal.add(daoNamingSystemDstu2());
503 		}
504 		if (isSupported("NutritionOrder")) {
505 			retVal.add(daoNutritionOrderDstu2());
506 		}
507 		if (isSupported("Observation")) {
508 			retVal.add(daoObservationDstu2());
509 		}
510 		if (isSupported("OperationDefinition")) {
511 			retVal.add(daoOperationDefinitionDstu2());
512 		}
513 		if (isSupported("OperationOutcome")) {
514 			retVal.add(daoOperationOutcomeDstu2());
515 		}
516 		if (isSupported("Order")) {
517 			retVal.add(daoOrderDstu2());
518 		}
519 		if (isSupported("OrderResponse")) {
520 			retVal.add(daoOrderResponseDstu2());
521 		}
522 		if (isSupported("Organization")) {
523 			retVal.add(daoOrganizationDstu2());
524 		}
525 		if (isSupported("Parameters")) {
526 			retVal.add(daoParametersDstu2());
527 		}
528 		if (isSupported("Patient")) {
529 			retVal.add(daoPatientDstu2());
530 		}
531 		if (isSupported("PaymentNotice")) {
532 			retVal.add(daoPaymentNoticeDstu2());
533 		}
534 		if (isSupported("PaymentReconciliation")) {
535 			retVal.add(daoPaymentReconciliationDstu2());
536 		}
537 		if (isSupported("Person")) {
538 			retVal.add(daoPersonDstu2());
539 		}
540 		if (isSupported("Practitioner")) {
541 			retVal.add(daoPractitionerDstu2());
542 		}
543 		if (isSupported("Procedure")) {
544 			retVal.add(daoProcedureDstu2());
545 		}
546 		if (isSupported("ProcedureRequest")) {
547 			retVal.add(daoProcedureRequestDstu2());
548 		}
549 		if (isSupported("ProcessRequest")) {
550 			retVal.add(daoProcessRequestDstu2());
551 		}
552 		if (isSupported("ProcessResponse")) {
553 			retVal.add(daoProcessResponseDstu2());
554 		}
555 		if (isSupported("Provenance")) {
556 			retVal.add(daoProvenanceDstu2());
557 		}
558 		if (isSupported("Questionnaire")) {
559 			retVal.add(daoQuestionnaireDstu2());
560 		}
561 		if (isSupported("QuestionnaireResponse")) {
562 			retVal.add(daoQuestionnaireResponseDstu2());
563 		}
564 		if (isSupported("ReferralRequest")) {
565 			retVal.add(daoReferralRequestDstu2());
566 		}
567 		if (isSupported("RelatedPerson")) {
568 			retVal.add(daoRelatedPersonDstu2());
569 		}
570 		if (isSupported("RiskAssessment")) {
571 			retVal.add(daoRiskAssessmentDstu2());
572 		}
573 		if (isSupported("Schedule")) {
574 			retVal.add(daoScheduleDstu2());
575 		}
576 		if (isSupported("SearchParameter")) {
577 			retVal.add(daoSearchParameterDstu2());
578 		}
579 		if (isSupported("Slot")) {
580 			retVal.add(daoSlotDstu2());
581 		}
582 		if (isSupported("Specimen")) {
583 			retVal.add(daoSpecimenDstu2());
584 		}
585 		if (isSupported("StructureDefinition")) {
586 			retVal.add(daoStructureDefinitionDstu2());
587 		}
588 		if (isSupported("Subscription")) {
589 			retVal.add(daoSubscriptionDstu2());
590 		}
591 		if (isSupported("Substance")) {
592 			retVal.add(daoSubstanceDstu2());
593 		}
594 		if (isSupported("SupplyDelivery")) {
595 			retVal.add(daoSupplyDeliveryDstu2());
596 		}
597 		if (isSupported("SupplyRequest")) {
598 			retVal.add(daoSupplyRequestDstu2());
599 		}
600 		if (isSupported("TestScript")) {
601 			retVal.add(daoTestScriptDstu2());
602 		}
603 		if (isSupported("ValueSet")) {
604 			retVal.add(daoValueSetDstu2());
605 		}
606 		if (isSupported("VisionPrescription")) {
607 			retVal.add(daoVisionPrescriptionDstu2());
608 		}
609 		return retVal;
610 	}
611 
612 	@Bean(name="myAccountDaoDstu2", autowire=Autowire.BY_NAME)
613 	@Lazy
614 	public 
615 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Account>
616 		 daoAccountDstu2() {
617 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Account> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Account>();
618 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Account.class);
619 		retVal.setContext(fhirContextDstu2());
620 		return retVal;
621 	}
622 
623 	@Bean(name="myAccountRpDstu2")
624 	@Lazy
625 	public ca.uhn.fhir.jpa.rp.dstu2.AccountResourceProvider rpAccountDstu2() {
626 		ca.uhn.fhir.jpa.rp.dstu2.AccountResourceProvider retVal;
627 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.AccountResourceProvider();
628 		retVal.setContext(fhirContextDstu2());
629 		retVal.setDao(daoAccountDstu2());
630 		return retVal;
631 	}
632 
633 	@Bean(name="myAllergyIntoleranceDaoDstu2", autowire=Autowire.BY_NAME)
634 	@Lazy
635 	public 
636 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance>
637 		 daoAllergyIntoleranceDstu2() {
638 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance>();
639 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance.class);
640 		retVal.setContext(fhirContextDstu2());
641 		return retVal;
642 	}
643 
644 	@Bean(name="myAllergyIntoleranceRpDstu2")
645 	@Lazy
646 	public ca.uhn.fhir.jpa.rp.dstu2.AllergyIntoleranceResourceProvider rpAllergyIntoleranceDstu2() {
647 		ca.uhn.fhir.jpa.rp.dstu2.AllergyIntoleranceResourceProvider retVal;
648 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.AllergyIntoleranceResourceProvider();
649 		retVal.setContext(fhirContextDstu2());
650 		retVal.setDao(daoAllergyIntoleranceDstu2());
651 		return retVal;
652 	}
653 
654 	@Bean(name="myAppointmentDaoDstu2", autowire=Autowire.BY_NAME)
655 	@Lazy
656 	public 
657 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Appointment>
658 		 daoAppointmentDstu2() {
659 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Appointment> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Appointment>();
660 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Appointment.class);
661 		retVal.setContext(fhirContextDstu2());
662 		return retVal;
663 	}
664 
665 	@Bean(name="myAppointmentRpDstu2")
666 	@Lazy
667 	public ca.uhn.fhir.jpa.rp.dstu2.AppointmentResourceProvider rpAppointmentDstu2() {
668 		ca.uhn.fhir.jpa.rp.dstu2.AppointmentResourceProvider retVal;
669 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.AppointmentResourceProvider();
670 		retVal.setContext(fhirContextDstu2());
671 		retVal.setDao(daoAppointmentDstu2());
672 		return retVal;
673 	}
674 
675 	@Bean(name="myAppointmentResponseDaoDstu2", autowire=Autowire.BY_NAME)
676 	@Lazy
677 	public 
678 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.AppointmentResponse>
679 		 daoAppointmentResponseDstu2() {
680 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.AppointmentResponse> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.AppointmentResponse>();
681 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.AppointmentResponse.class);
682 		retVal.setContext(fhirContextDstu2());
683 		return retVal;
684 	}
685 
686 	@Bean(name="myAppointmentResponseRpDstu2")
687 	@Lazy
688 	public ca.uhn.fhir.jpa.rp.dstu2.AppointmentResponseResourceProvider rpAppointmentResponseDstu2() {
689 		ca.uhn.fhir.jpa.rp.dstu2.AppointmentResponseResourceProvider retVal;
690 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.AppointmentResponseResourceProvider();
691 		retVal.setContext(fhirContextDstu2());
692 		retVal.setDao(daoAppointmentResponseDstu2());
693 		return retVal;
694 	}
695 
696 	@Bean(name="myAuditEventDaoDstu2", autowire=Autowire.BY_NAME)
697 	@Lazy
698 	public 
699 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.AuditEvent>
700 		 daoAuditEventDstu2() {
701 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.AuditEvent> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.AuditEvent>();
702 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.AuditEvent.class);
703 		retVal.setContext(fhirContextDstu2());
704 		return retVal;
705 	}
706 
707 	@Bean(name="myAuditEventRpDstu2")
708 	@Lazy
709 	public ca.uhn.fhir.jpa.rp.dstu2.AuditEventResourceProvider rpAuditEventDstu2() {
710 		ca.uhn.fhir.jpa.rp.dstu2.AuditEventResourceProvider retVal;
711 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.AuditEventResourceProvider();
712 		retVal.setContext(fhirContextDstu2());
713 		retVal.setDao(daoAuditEventDstu2());
714 		return retVal;
715 	}
716 
717 	@Bean(name="myBasicDaoDstu2", autowire=Autowire.BY_NAME)
718 	@Lazy
719 	public 
720 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Basic>
721 		 daoBasicDstu2() {
722 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Basic> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Basic>();
723 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Basic.class);
724 		retVal.setContext(fhirContextDstu2());
725 		return retVal;
726 	}
727 
728 	@Bean(name="myBasicRpDstu2")
729 	@Lazy
730 	public ca.uhn.fhir.jpa.rp.dstu2.BasicResourceProvider rpBasicDstu2() {
731 		ca.uhn.fhir.jpa.rp.dstu2.BasicResourceProvider retVal;
732 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.BasicResourceProvider();
733 		retVal.setContext(fhirContextDstu2());
734 		retVal.setDao(daoBasicDstu2());
735 		return retVal;
736 	}
737 
738 	@Bean(name="myBinaryDaoDstu2", autowire=Autowire.BY_NAME)
739 	@Lazy
740 	public 
741 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Binary>
742 		 daoBinaryDstu2() {
743 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Binary> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Binary>();
744 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Binary.class);
745 		retVal.setContext(fhirContextDstu2());
746 		return retVal;
747 	}
748 
749 	@Bean(name="myBinaryRpDstu2")
750 	@Lazy
751 	public ca.uhn.fhir.jpa.rp.dstu2.BinaryResourceProvider rpBinaryDstu2() {
752 		ca.uhn.fhir.jpa.rp.dstu2.BinaryResourceProvider retVal;
753 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.BinaryResourceProvider();
754 		retVal.setContext(fhirContextDstu2());
755 		retVal.setDao(daoBinaryDstu2());
756 		return retVal;
757 	}
758 
759 	@Bean(name="myBodySiteDaoDstu2", autowire=Autowire.BY_NAME)
760 	@Lazy
761 	public 
762 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.BodySite>
763 		 daoBodySiteDstu2() {
764 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.BodySite> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.BodySite>();
765 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.BodySite.class);
766 		retVal.setContext(fhirContextDstu2());
767 		return retVal;
768 	}
769 
770 	@Bean(name="myBodySiteRpDstu2")
771 	@Lazy
772 	public ca.uhn.fhir.jpa.rp.dstu2.BodySiteResourceProvider rpBodySiteDstu2() {
773 		ca.uhn.fhir.jpa.rp.dstu2.BodySiteResourceProvider retVal;
774 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.BodySiteResourceProvider();
775 		retVal.setContext(fhirContextDstu2());
776 		retVal.setDao(daoBodySiteDstu2());
777 		return retVal;
778 	}
779 
780 	@Bean(name="myBundleDaoDstu2", autowire=Autowire.BY_NAME)
781 	@Lazy
782 	public 
783 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Bundle>
784 		 daoBundleDstu2() {
785 		ca.uhn.fhir.jpa.dao.FhirResourceDaoBundleDstu2 retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoBundleDstu2();
786 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Bundle.class);
787 		retVal.setContext(fhirContextDstu2());
788 		return retVal;
789 	}
790 
791 	@Bean(name="myBundleRpDstu2")
792 	@Lazy
793 	public ca.uhn.fhir.jpa.rp.dstu2.BundleResourceProvider rpBundleDstu2() {
794 		ca.uhn.fhir.jpa.rp.dstu2.BundleResourceProvider retVal;
795 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.BundleResourceProvider();
796 		retVal.setContext(fhirContextDstu2());
797 		retVal.setDao(daoBundleDstu2());
798 		return retVal;
799 	}
800 
801 	@Bean(name="myCarePlanDaoDstu2", autowire=Autowire.BY_NAME)
802 	@Lazy
803 	public 
804 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.CarePlan>
805 		 daoCarePlanDstu2() {
806 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.CarePlan> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.CarePlan>();
807 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.CarePlan.class);
808 		retVal.setContext(fhirContextDstu2());
809 		return retVal;
810 	}
811 
812 	@Bean(name="myCarePlanRpDstu2")
813 	@Lazy
814 	public ca.uhn.fhir.jpa.rp.dstu2.CarePlanResourceProvider rpCarePlanDstu2() {
815 		ca.uhn.fhir.jpa.rp.dstu2.CarePlanResourceProvider retVal;
816 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.CarePlanResourceProvider();
817 		retVal.setContext(fhirContextDstu2());
818 		retVal.setDao(daoCarePlanDstu2());
819 		return retVal;
820 	}
821 
822 	@Bean(name="myClaimDaoDstu2", autowire=Autowire.BY_NAME)
823 	@Lazy
824 	public 
825 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Claim>
826 		 daoClaimDstu2() {
827 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Claim> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Claim>();
828 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Claim.class);
829 		retVal.setContext(fhirContextDstu2());
830 		return retVal;
831 	}
832 
833 	@Bean(name="myClaimRpDstu2")
834 	@Lazy
835 	public ca.uhn.fhir.jpa.rp.dstu2.ClaimResourceProvider rpClaimDstu2() {
836 		ca.uhn.fhir.jpa.rp.dstu2.ClaimResourceProvider retVal;
837 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ClaimResourceProvider();
838 		retVal.setContext(fhirContextDstu2());
839 		retVal.setDao(daoClaimDstu2());
840 		return retVal;
841 	}
842 
843 	@Bean(name="myClaimResponseDaoDstu2", autowire=Autowire.BY_NAME)
844 	@Lazy
845 	public 
846 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.ClaimResponse>
847 		 daoClaimResponseDstu2() {
848 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ClaimResponse> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ClaimResponse>();
849 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.ClaimResponse.class);
850 		retVal.setContext(fhirContextDstu2());
851 		return retVal;
852 	}
853 
854 	@Bean(name="myClaimResponseRpDstu2")
855 	@Lazy
856 	public ca.uhn.fhir.jpa.rp.dstu2.ClaimResponseResourceProvider rpClaimResponseDstu2() {
857 		ca.uhn.fhir.jpa.rp.dstu2.ClaimResponseResourceProvider retVal;
858 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ClaimResponseResourceProvider();
859 		retVal.setContext(fhirContextDstu2());
860 		retVal.setDao(daoClaimResponseDstu2());
861 		return retVal;
862 	}
863 
864 	@Bean(name="myClinicalImpressionDaoDstu2", autowire=Autowire.BY_NAME)
865 	@Lazy
866 	public 
867 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.ClinicalImpression>
868 		 daoClinicalImpressionDstu2() {
869 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ClinicalImpression> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ClinicalImpression>();
870 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.ClinicalImpression.class);
871 		retVal.setContext(fhirContextDstu2());
872 		return retVal;
873 	}
874 
875 	@Bean(name="myClinicalImpressionRpDstu2")
876 	@Lazy
877 	public ca.uhn.fhir.jpa.rp.dstu2.ClinicalImpressionResourceProvider rpClinicalImpressionDstu2() {
878 		ca.uhn.fhir.jpa.rp.dstu2.ClinicalImpressionResourceProvider retVal;
879 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ClinicalImpressionResourceProvider();
880 		retVal.setContext(fhirContextDstu2());
881 		retVal.setDao(daoClinicalImpressionDstu2());
882 		return retVal;
883 	}
884 
885 	@Bean(name="myCommunicationDaoDstu2", autowire=Autowire.BY_NAME)
886 	@Lazy
887 	public 
888 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Communication>
889 		 daoCommunicationDstu2() {
890 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Communication> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Communication>();
891 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Communication.class);
892 		retVal.setContext(fhirContextDstu2());
893 		return retVal;
894 	}
895 
896 	@Bean(name="myCommunicationRpDstu2")
897 	@Lazy
898 	public ca.uhn.fhir.jpa.rp.dstu2.CommunicationResourceProvider rpCommunicationDstu2() {
899 		ca.uhn.fhir.jpa.rp.dstu2.CommunicationResourceProvider retVal;
900 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.CommunicationResourceProvider();
901 		retVal.setContext(fhirContextDstu2());
902 		retVal.setDao(daoCommunicationDstu2());
903 		return retVal;
904 	}
905 
906 	@Bean(name="myCommunicationRequestDaoDstu2", autowire=Autowire.BY_NAME)
907 	@Lazy
908 	public 
909 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.CommunicationRequest>
910 		 daoCommunicationRequestDstu2() {
911 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.CommunicationRequest> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.CommunicationRequest>();
912 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.CommunicationRequest.class);
913 		retVal.setContext(fhirContextDstu2());
914 		return retVal;
915 	}
916 
917 	@Bean(name="myCommunicationRequestRpDstu2")
918 	@Lazy
919 	public ca.uhn.fhir.jpa.rp.dstu2.CommunicationRequestResourceProvider rpCommunicationRequestDstu2() {
920 		ca.uhn.fhir.jpa.rp.dstu2.CommunicationRequestResourceProvider retVal;
921 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.CommunicationRequestResourceProvider();
922 		retVal.setContext(fhirContextDstu2());
923 		retVal.setDao(daoCommunicationRequestDstu2());
924 		return retVal;
925 	}
926 
927 	@Bean(name="myCompositionDaoDstu2", autowire=Autowire.BY_NAME)
928 	@Lazy
929 	public 
930 		IFhirResourceDaoComposition<ca.uhn.fhir.model.dstu2.resource.Composition>
931 		 daoCompositionDstu2() {
932 		ca.uhn.fhir.jpa.dao.FhirResourceDaoCompositionDstu2 retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoCompositionDstu2();
933 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Composition.class);
934 		retVal.setContext(fhirContextDstu2());
935 		return retVal;
936 	}
937 
938 	@Bean(name="myCompositionRpDstu2")
939 	@Lazy
940 	public ca.uhn.fhir.jpa.rp.dstu2.CompositionResourceProvider rpCompositionDstu2() {
941 		ca.uhn.fhir.jpa.rp.dstu2.CompositionResourceProvider retVal;
942 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.CompositionResourceProvider();
943 		retVal.setContext(fhirContextDstu2());
944 		retVal.setDao(daoCompositionDstu2());
945 		return retVal;
946 	}
947 
948 	@Bean(name="myConceptMapDaoDstu2", autowire=Autowire.BY_NAME)
949 	@Lazy
950 	public 
951 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.ConceptMap>
952 		 daoConceptMapDstu2() {
953 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ConceptMap> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ConceptMap>();
954 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.ConceptMap.class);
955 		retVal.setContext(fhirContextDstu2());
956 		return retVal;
957 	}
958 
959 	@Bean(name="myConceptMapRpDstu2")
960 	@Lazy
961 	public ca.uhn.fhir.jpa.rp.dstu2.ConceptMapResourceProvider rpConceptMapDstu2() {
962 		ca.uhn.fhir.jpa.rp.dstu2.ConceptMapResourceProvider retVal;
963 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ConceptMapResourceProvider();
964 		retVal.setContext(fhirContextDstu2());
965 		retVal.setDao(daoConceptMapDstu2());
966 		return retVal;
967 	}
968 
969 	@Bean(name="myConditionDaoDstu2", autowire=Autowire.BY_NAME)
970 	@Lazy
971 	public 
972 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Condition>
973 		 daoConditionDstu2() {
974 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Condition> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Condition>();
975 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Condition.class);
976 		retVal.setContext(fhirContextDstu2());
977 		return retVal;
978 	}
979 
980 	@Bean(name="myConditionRpDstu2")
981 	@Lazy
982 	public ca.uhn.fhir.jpa.rp.dstu2.ConditionResourceProvider rpConditionDstu2() {
983 		ca.uhn.fhir.jpa.rp.dstu2.ConditionResourceProvider retVal;
984 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ConditionResourceProvider();
985 		retVal.setContext(fhirContextDstu2());
986 		retVal.setDao(daoConditionDstu2());
987 		return retVal;
988 	}
989 
990 	@Bean(name="myConformanceDaoDstu2", autowire=Autowire.BY_NAME)
991 	@Lazy
992 	public 
993 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Conformance>
994 		 daoConformanceDstu2() {
995 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Conformance> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Conformance>();
996 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Conformance.class);
997 		retVal.setContext(fhirContextDstu2());
998 		return retVal;
999 	}
1000 
1001 	@Bean(name="myConformanceRpDstu2")
1002 	@Lazy
1003 	public ca.uhn.fhir.jpa.rp.dstu2.ConformanceResourceProvider rpConformanceDstu2() {
1004 		ca.uhn.fhir.jpa.rp.dstu2.ConformanceResourceProvider retVal;
1005 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ConformanceResourceProvider();
1006 		retVal.setContext(fhirContextDstu2());
1007 		retVal.setDao(daoConformanceDstu2());
1008 		return retVal;
1009 	}
1010 
1011 	@Bean(name="myContractDaoDstu2", autowire=Autowire.BY_NAME)
1012 	@Lazy
1013 	public 
1014 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Contract>
1015 		 daoContractDstu2() {
1016 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Contract> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Contract>();
1017 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Contract.class);
1018 		retVal.setContext(fhirContextDstu2());
1019 		return retVal;
1020 	}
1021 
1022 	@Bean(name="myContractRpDstu2")
1023 	@Lazy
1024 	public ca.uhn.fhir.jpa.rp.dstu2.ContractResourceProvider rpContractDstu2() {
1025 		ca.uhn.fhir.jpa.rp.dstu2.ContractResourceProvider retVal;
1026 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ContractResourceProvider();
1027 		retVal.setContext(fhirContextDstu2());
1028 		retVal.setDao(daoContractDstu2());
1029 		return retVal;
1030 	}
1031 
1032 	@Bean(name="myCoverageDaoDstu2", autowire=Autowire.BY_NAME)
1033 	@Lazy
1034 	public 
1035 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Coverage>
1036 		 daoCoverageDstu2() {
1037 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Coverage> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Coverage>();
1038 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Coverage.class);
1039 		retVal.setContext(fhirContextDstu2());
1040 		return retVal;
1041 	}
1042 
1043 	@Bean(name="myCoverageRpDstu2")
1044 	@Lazy
1045 	public ca.uhn.fhir.jpa.rp.dstu2.CoverageResourceProvider rpCoverageDstu2() {
1046 		ca.uhn.fhir.jpa.rp.dstu2.CoverageResourceProvider retVal;
1047 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.CoverageResourceProvider();
1048 		retVal.setContext(fhirContextDstu2());
1049 		retVal.setDao(daoCoverageDstu2());
1050 		return retVal;
1051 	}
1052 
1053 	@Bean(name="myDataElementDaoDstu2", autowire=Autowire.BY_NAME)
1054 	@Lazy
1055 	public 
1056 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.DataElement>
1057 		 daoDataElementDstu2() {
1058 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DataElement> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DataElement>();
1059 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.DataElement.class);
1060 		retVal.setContext(fhirContextDstu2());
1061 		return retVal;
1062 	}
1063 
1064 	@Bean(name="myDataElementRpDstu2")
1065 	@Lazy
1066 	public ca.uhn.fhir.jpa.rp.dstu2.DataElementResourceProvider rpDataElementDstu2() {
1067 		ca.uhn.fhir.jpa.rp.dstu2.DataElementResourceProvider retVal;
1068 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.DataElementResourceProvider();
1069 		retVal.setContext(fhirContextDstu2());
1070 		retVal.setDao(daoDataElementDstu2());
1071 		return retVal;
1072 	}
1073 
1074 	@Bean(name="myDetectedIssueDaoDstu2", autowire=Autowire.BY_NAME)
1075 	@Lazy
1076 	public 
1077 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.DetectedIssue>
1078 		 daoDetectedIssueDstu2() {
1079 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DetectedIssue> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DetectedIssue>();
1080 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.DetectedIssue.class);
1081 		retVal.setContext(fhirContextDstu2());
1082 		return retVal;
1083 	}
1084 
1085 	@Bean(name="myDetectedIssueRpDstu2")
1086 	@Lazy
1087 	public ca.uhn.fhir.jpa.rp.dstu2.DetectedIssueResourceProvider rpDetectedIssueDstu2() {
1088 		ca.uhn.fhir.jpa.rp.dstu2.DetectedIssueResourceProvider retVal;
1089 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.DetectedIssueResourceProvider();
1090 		retVal.setContext(fhirContextDstu2());
1091 		retVal.setDao(daoDetectedIssueDstu2());
1092 		return retVal;
1093 	}
1094 
1095 	@Bean(name="myDeviceDaoDstu2", autowire=Autowire.BY_NAME)
1096 	@Lazy
1097 	public 
1098 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Device>
1099 		 daoDeviceDstu2() {
1100 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Device> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Device>();
1101 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Device.class);
1102 		retVal.setContext(fhirContextDstu2());
1103 		return retVal;
1104 	}
1105 
1106 	@Bean(name="myDeviceRpDstu2")
1107 	@Lazy
1108 	public ca.uhn.fhir.jpa.rp.dstu2.DeviceResourceProvider rpDeviceDstu2() {
1109 		ca.uhn.fhir.jpa.rp.dstu2.DeviceResourceProvider retVal;
1110 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.DeviceResourceProvider();
1111 		retVal.setContext(fhirContextDstu2());
1112 		retVal.setDao(daoDeviceDstu2());
1113 		return retVal;
1114 	}
1115 
1116 	@Bean(name="myDeviceComponentDaoDstu2", autowire=Autowire.BY_NAME)
1117 	@Lazy
1118 	public 
1119 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.DeviceComponent>
1120 		 daoDeviceComponentDstu2() {
1121 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DeviceComponent> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DeviceComponent>();
1122 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.DeviceComponent.class);
1123 		retVal.setContext(fhirContextDstu2());
1124 		return retVal;
1125 	}
1126 
1127 	@Bean(name="myDeviceComponentRpDstu2")
1128 	@Lazy
1129 	public ca.uhn.fhir.jpa.rp.dstu2.DeviceComponentResourceProvider rpDeviceComponentDstu2() {
1130 		ca.uhn.fhir.jpa.rp.dstu2.DeviceComponentResourceProvider retVal;
1131 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.DeviceComponentResourceProvider();
1132 		retVal.setContext(fhirContextDstu2());
1133 		retVal.setDao(daoDeviceComponentDstu2());
1134 		return retVal;
1135 	}
1136 
1137 	@Bean(name="myDeviceMetricDaoDstu2", autowire=Autowire.BY_NAME)
1138 	@Lazy
1139 	public 
1140 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.DeviceMetric>
1141 		 daoDeviceMetricDstu2() {
1142 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DeviceMetric> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DeviceMetric>();
1143 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.DeviceMetric.class);
1144 		retVal.setContext(fhirContextDstu2());
1145 		return retVal;
1146 	}
1147 
1148 	@Bean(name="myDeviceMetricRpDstu2")
1149 	@Lazy
1150 	public ca.uhn.fhir.jpa.rp.dstu2.DeviceMetricResourceProvider rpDeviceMetricDstu2() {
1151 		ca.uhn.fhir.jpa.rp.dstu2.DeviceMetricResourceProvider retVal;
1152 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.DeviceMetricResourceProvider();
1153 		retVal.setContext(fhirContextDstu2());
1154 		retVal.setDao(daoDeviceMetricDstu2());
1155 		return retVal;
1156 	}
1157 
1158 	@Bean(name="myDeviceUseRequestDaoDstu2", autowire=Autowire.BY_NAME)
1159 	@Lazy
1160 	public 
1161 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest>
1162 		 daoDeviceUseRequestDstu2() {
1163 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest>();
1164 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest.class);
1165 		retVal.setContext(fhirContextDstu2());
1166 		return retVal;
1167 	}
1168 
1169 	@Bean(name="myDeviceUseRequestRpDstu2")
1170 	@Lazy
1171 	public ca.uhn.fhir.jpa.rp.dstu2.DeviceUseRequestResourceProvider rpDeviceUseRequestDstu2() {
1172 		ca.uhn.fhir.jpa.rp.dstu2.DeviceUseRequestResourceProvider retVal;
1173 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.DeviceUseRequestResourceProvider();
1174 		retVal.setContext(fhirContextDstu2());
1175 		retVal.setDao(daoDeviceUseRequestDstu2());
1176 		return retVal;
1177 	}
1178 
1179 	@Bean(name="myDeviceUseStatementDaoDstu2", autowire=Autowire.BY_NAME)
1180 	@Lazy
1181 	public 
1182 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.DeviceUseStatement>
1183 		 daoDeviceUseStatementDstu2() {
1184 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DeviceUseStatement> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DeviceUseStatement>();
1185 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.DeviceUseStatement.class);
1186 		retVal.setContext(fhirContextDstu2());
1187 		return retVal;
1188 	}
1189 
1190 	@Bean(name="myDeviceUseStatementRpDstu2")
1191 	@Lazy
1192 	public ca.uhn.fhir.jpa.rp.dstu2.DeviceUseStatementResourceProvider rpDeviceUseStatementDstu2() {
1193 		ca.uhn.fhir.jpa.rp.dstu2.DeviceUseStatementResourceProvider retVal;
1194 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.DeviceUseStatementResourceProvider();
1195 		retVal.setContext(fhirContextDstu2());
1196 		retVal.setDao(daoDeviceUseStatementDstu2());
1197 		return retVal;
1198 	}
1199 
1200 	@Bean(name="myDiagnosticOrderDaoDstu2", autowire=Autowire.BY_NAME)
1201 	@Lazy
1202 	public 
1203 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder>
1204 		 daoDiagnosticOrderDstu2() {
1205 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder>();
1206 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder.class);
1207 		retVal.setContext(fhirContextDstu2());
1208 		return retVal;
1209 	}
1210 
1211 	@Bean(name="myDiagnosticOrderRpDstu2")
1212 	@Lazy
1213 	public ca.uhn.fhir.jpa.rp.dstu2.DiagnosticOrderResourceProvider rpDiagnosticOrderDstu2() {
1214 		ca.uhn.fhir.jpa.rp.dstu2.DiagnosticOrderResourceProvider retVal;
1215 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.DiagnosticOrderResourceProvider();
1216 		retVal.setContext(fhirContextDstu2());
1217 		retVal.setDao(daoDiagnosticOrderDstu2());
1218 		return retVal;
1219 	}
1220 
1221 	@Bean(name="myDiagnosticReportDaoDstu2", autowire=Autowire.BY_NAME)
1222 	@Lazy
1223 	public 
1224 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.DiagnosticReport>
1225 		 daoDiagnosticReportDstu2() {
1226 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DiagnosticReport> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DiagnosticReport>();
1227 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.DiagnosticReport.class);
1228 		retVal.setContext(fhirContextDstu2());
1229 		return retVal;
1230 	}
1231 
1232 	@Bean(name="myDiagnosticReportRpDstu2")
1233 	@Lazy
1234 	public ca.uhn.fhir.jpa.rp.dstu2.DiagnosticReportResourceProvider rpDiagnosticReportDstu2() {
1235 		ca.uhn.fhir.jpa.rp.dstu2.DiagnosticReportResourceProvider retVal;
1236 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.DiagnosticReportResourceProvider();
1237 		retVal.setContext(fhirContextDstu2());
1238 		retVal.setDao(daoDiagnosticReportDstu2());
1239 		return retVal;
1240 	}
1241 
1242 	@Bean(name="myDocumentManifestDaoDstu2", autowire=Autowire.BY_NAME)
1243 	@Lazy
1244 	public 
1245 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.DocumentManifest>
1246 		 daoDocumentManifestDstu2() {
1247 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DocumentManifest> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DocumentManifest>();
1248 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.DocumentManifest.class);
1249 		retVal.setContext(fhirContextDstu2());
1250 		return retVal;
1251 	}
1252 
1253 	@Bean(name="myDocumentManifestRpDstu2")
1254 	@Lazy
1255 	public ca.uhn.fhir.jpa.rp.dstu2.DocumentManifestResourceProvider rpDocumentManifestDstu2() {
1256 		ca.uhn.fhir.jpa.rp.dstu2.DocumentManifestResourceProvider retVal;
1257 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.DocumentManifestResourceProvider();
1258 		retVal.setContext(fhirContextDstu2());
1259 		retVal.setDao(daoDocumentManifestDstu2());
1260 		return retVal;
1261 	}
1262 
1263 	@Bean(name="myDocumentReferenceDaoDstu2", autowire=Autowire.BY_NAME)
1264 	@Lazy
1265 	public 
1266 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.DocumentReference>
1267 		 daoDocumentReferenceDstu2() {
1268 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DocumentReference> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.DocumentReference>();
1269 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.DocumentReference.class);
1270 		retVal.setContext(fhirContextDstu2());
1271 		return retVal;
1272 	}
1273 
1274 	@Bean(name="myDocumentReferenceRpDstu2")
1275 	@Lazy
1276 	public ca.uhn.fhir.jpa.rp.dstu2.DocumentReferenceResourceProvider rpDocumentReferenceDstu2() {
1277 		ca.uhn.fhir.jpa.rp.dstu2.DocumentReferenceResourceProvider retVal;
1278 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.DocumentReferenceResourceProvider();
1279 		retVal.setContext(fhirContextDstu2());
1280 		retVal.setDao(daoDocumentReferenceDstu2());
1281 		return retVal;
1282 	}
1283 
1284 	@Bean(name="myEligibilityRequestDaoDstu2", autowire=Autowire.BY_NAME)
1285 	@Lazy
1286 	public 
1287 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.EligibilityRequest>
1288 		 daoEligibilityRequestDstu2() {
1289 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.EligibilityRequest> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.EligibilityRequest>();
1290 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.EligibilityRequest.class);
1291 		retVal.setContext(fhirContextDstu2());
1292 		return retVal;
1293 	}
1294 
1295 	@Bean(name="myEligibilityRequestRpDstu2")
1296 	@Lazy
1297 	public ca.uhn.fhir.jpa.rp.dstu2.EligibilityRequestResourceProvider rpEligibilityRequestDstu2() {
1298 		ca.uhn.fhir.jpa.rp.dstu2.EligibilityRequestResourceProvider retVal;
1299 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.EligibilityRequestResourceProvider();
1300 		retVal.setContext(fhirContextDstu2());
1301 		retVal.setDao(daoEligibilityRequestDstu2());
1302 		return retVal;
1303 	}
1304 
1305 	@Bean(name="myEligibilityResponseDaoDstu2", autowire=Autowire.BY_NAME)
1306 	@Lazy
1307 	public 
1308 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.EligibilityResponse>
1309 		 daoEligibilityResponseDstu2() {
1310 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.EligibilityResponse> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.EligibilityResponse>();
1311 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.EligibilityResponse.class);
1312 		retVal.setContext(fhirContextDstu2());
1313 		return retVal;
1314 	}
1315 
1316 	@Bean(name="myEligibilityResponseRpDstu2")
1317 	@Lazy
1318 	public ca.uhn.fhir.jpa.rp.dstu2.EligibilityResponseResourceProvider rpEligibilityResponseDstu2() {
1319 		ca.uhn.fhir.jpa.rp.dstu2.EligibilityResponseResourceProvider retVal;
1320 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.EligibilityResponseResourceProvider();
1321 		retVal.setContext(fhirContextDstu2());
1322 		retVal.setDao(daoEligibilityResponseDstu2());
1323 		return retVal;
1324 	}
1325 
1326 	@Bean(name="myEncounterDaoDstu2", autowire=Autowire.BY_NAME)
1327 	@Lazy
1328 	public 
1329 		IFhirResourceDaoEncounter<ca.uhn.fhir.model.dstu2.resource.Encounter>
1330 		 daoEncounterDstu2() {
1331 		ca.uhn.fhir.jpa.dao.FhirResourceDaoEncounterDstu2 retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoEncounterDstu2();
1332 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Encounter.class);
1333 		retVal.setContext(fhirContextDstu2());
1334 		return retVal;
1335 	}
1336 
1337 	@Bean(name="myEncounterRpDstu2")
1338 	@Lazy
1339 	public ca.uhn.fhir.jpa.rp.dstu2.EncounterResourceProvider rpEncounterDstu2() {
1340 		ca.uhn.fhir.jpa.rp.dstu2.EncounterResourceProvider retVal;
1341 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.EncounterResourceProvider();
1342 		retVal.setContext(fhirContextDstu2());
1343 		retVal.setDao(daoEncounterDstu2());
1344 		return retVal;
1345 	}
1346 
1347 	@Bean(name="myEnrollmentRequestDaoDstu2", autowire=Autowire.BY_NAME)
1348 	@Lazy
1349 	public 
1350 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest>
1351 		 daoEnrollmentRequestDstu2() {
1352 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest>();
1353 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest.class);
1354 		retVal.setContext(fhirContextDstu2());
1355 		return retVal;
1356 	}
1357 
1358 	@Bean(name="myEnrollmentRequestRpDstu2")
1359 	@Lazy
1360 	public ca.uhn.fhir.jpa.rp.dstu2.EnrollmentRequestResourceProvider rpEnrollmentRequestDstu2() {
1361 		ca.uhn.fhir.jpa.rp.dstu2.EnrollmentRequestResourceProvider retVal;
1362 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.EnrollmentRequestResourceProvider();
1363 		retVal.setContext(fhirContextDstu2());
1364 		retVal.setDao(daoEnrollmentRequestDstu2());
1365 		return retVal;
1366 	}
1367 
1368 	@Bean(name="myEnrollmentResponseDaoDstu2", autowire=Autowire.BY_NAME)
1369 	@Lazy
1370 	public 
1371 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.EnrollmentResponse>
1372 		 daoEnrollmentResponseDstu2() {
1373 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.EnrollmentResponse> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.EnrollmentResponse>();
1374 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.EnrollmentResponse.class);
1375 		retVal.setContext(fhirContextDstu2());
1376 		return retVal;
1377 	}
1378 
1379 	@Bean(name="myEnrollmentResponseRpDstu2")
1380 	@Lazy
1381 	public ca.uhn.fhir.jpa.rp.dstu2.EnrollmentResponseResourceProvider rpEnrollmentResponseDstu2() {
1382 		ca.uhn.fhir.jpa.rp.dstu2.EnrollmentResponseResourceProvider retVal;
1383 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.EnrollmentResponseResourceProvider();
1384 		retVal.setContext(fhirContextDstu2());
1385 		retVal.setDao(daoEnrollmentResponseDstu2());
1386 		return retVal;
1387 	}
1388 
1389 	@Bean(name="myEpisodeOfCareDaoDstu2", autowire=Autowire.BY_NAME)
1390 	@Lazy
1391 	public 
1392 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare>
1393 		 daoEpisodeOfCareDstu2() {
1394 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare>();
1395 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare.class);
1396 		retVal.setContext(fhirContextDstu2());
1397 		return retVal;
1398 	}
1399 
1400 	@Bean(name="myEpisodeOfCareRpDstu2")
1401 	@Lazy
1402 	public ca.uhn.fhir.jpa.rp.dstu2.EpisodeOfCareResourceProvider rpEpisodeOfCareDstu2() {
1403 		ca.uhn.fhir.jpa.rp.dstu2.EpisodeOfCareResourceProvider retVal;
1404 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.EpisodeOfCareResourceProvider();
1405 		retVal.setContext(fhirContextDstu2());
1406 		retVal.setDao(daoEpisodeOfCareDstu2());
1407 		return retVal;
1408 	}
1409 
1410 	@Bean(name="myExplanationOfBenefitDaoDstu2", autowire=Autowire.BY_NAME)
1411 	@Lazy
1412 	public 
1413 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.ExplanationOfBenefit>
1414 		 daoExplanationOfBenefitDstu2() {
1415 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ExplanationOfBenefit> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ExplanationOfBenefit>();
1416 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.ExplanationOfBenefit.class);
1417 		retVal.setContext(fhirContextDstu2());
1418 		return retVal;
1419 	}
1420 
1421 	@Bean(name="myExplanationOfBenefitRpDstu2")
1422 	@Lazy
1423 	public ca.uhn.fhir.jpa.rp.dstu2.ExplanationOfBenefitResourceProvider rpExplanationOfBenefitDstu2() {
1424 		ca.uhn.fhir.jpa.rp.dstu2.ExplanationOfBenefitResourceProvider retVal;
1425 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ExplanationOfBenefitResourceProvider();
1426 		retVal.setContext(fhirContextDstu2());
1427 		retVal.setDao(daoExplanationOfBenefitDstu2());
1428 		return retVal;
1429 	}
1430 
1431 	@Bean(name="myFamilyMemberHistoryDaoDstu2", autowire=Autowire.BY_NAME)
1432 	@Lazy
1433 	public 
1434 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory>
1435 		 daoFamilyMemberHistoryDstu2() {
1436 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory>();
1437 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory.class);
1438 		retVal.setContext(fhirContextDstu2());
1439 		return retVal;
1440 	}
1441 
1442 	@Bean(name="myFamilyMemberHistoryRpDstu2")
1443 	@Lazy
1444 	public ca.uhn.fhir.jpa.rp.dstu2.FamilyMemberHistoryResourceProvider rpFamilyMemberHistoryDstu2() {
1445 		ca.uhn.fhir.jpa.rp.dstu2.FamilyMemberHistoryResourceProvider retVal;
1446 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.FamilyMemberHistoryResourceProvider();
1447 		retVal.setContext(fhirContextDstu2());
1448 		retVal.setDao(daoFamilyMemberHistoryDstu2());
1449 		return retVal;
1450 	}
1451 
1452 	@Bean(name="myFlagDaoDstu2", autowire=Autowire.BY_NAME)
1453 	@Lazy
1454 	public 
1455 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Flag>
1456 		 daoFlagDstu2() {
1457 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Flag> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Flag>();
1458 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Flag.class);
1459 		retVal.setContext(fhirContextDstu2());
1460 		return retVal;
1461 	}
1462 
1463 	@Bean(name="myFlagRpDstu2")
1464 	@Lazy
1465 	public ca.uhn.fhir.jpa.rp.dstu2.FlagResourceProvider rpFlagDstu2() {
1466 		ca.uhn.fhir.jpa.rp.dstu2.FlagResourceProvider retVal;
1467 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.FlagResourceProvider();
1468 		retVal.setContext(fhirContextDstu2());
1469 		retVal.setDao(daoFlagDstu2());
1470 		return retVal;
1471 	}
1472 
1473 	@Bean(name="myGoalDaoDstu2", autowire=Autowire.BY_NAME)
1474 	@Lazy
1475 	public 
1476 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Goal>
1477 		 daoGoalDstu2() {
1478 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Goal> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Goal>();
1479 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Goal.class);
1480 		retVal.setContext(fhirContextDstu2());
1481 		return retVal;
1482 	}
1483 
1484 	@Bean(name="myGoalRpDstu2")
1485 	@Lazy
1486 	public ca.uhn.fhir.jpa.rp.dstu2.GoalResourceProvider rpGoalDstu2() {
1487 		ca.uhn.fhir.jpa.rp.dstu2.GoalResourceProvider retVal;
1488 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.GoalResourceProvider();
1489 		retVal.setContext(fhirContextDstu2());
1490 		retVal.setDao(daoGoalDstu2());
1491 		return retVal;
1492 	}
1493 
1494 	@Bean(name="myGroupDaoDstu2", autowire=Autowire.BY_NAME)
1495 	@Lazy
1496 	public 
1497 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Group>
1498 		 daoGroupDstu2() {
1499 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Group> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Group>();
1500 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Group.class);
1501 		retVal.setContext(fhirContextDstu2());
1502 		return retVal;
1503 	}
1504 
1505 	@Bean(name="myGroupRpDstu2")
1506 	@Lazy
1507 	public ca.uhn.fhir.jpa.rp.dstu2.GroupResourceProvider rpGroupDstu2() {
1508 		ca.uhn.fhir.jpa.rp.dstu2.GroupResourceProvider retVal;
1509 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.GroupResourceProvider();
1510 		retVal.setContext(fhirContextDstu2());
1511 		retVal.setDao(daoGroupDstu2());
1512 		return retVal;
1513 	}
1514 
1515 	@Bean(name="myHealthcareServiceDaoDstu2", autowire=Autowire.BY_NAME)
1516 	@Lazy
1517 	public 
1518 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.HealthcareService>
1519 		 daoHealthcareServiceDstu2() {
1520 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.HealthcareService> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.HealthcareService>();
1521 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.HealthcareService.class);
1522 		retVal.setContext(fhirContextDstu2());
1523 		return retVal;
1524 	}
1525 
1526 	@Bean(name="myHealthcareServiceRpDstu2")
1527 	@Lazy
1528 	public ca.uhn.fhir.jpa.rp.dstu2.HealthcareServiceResourceProvider rpHealthcareServiceDstu2() {
1529 		ca.uhn.fhir.jpa.rp.dstu2.HealthcareServiceResourceProvider retVal;
1530 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.HealthcareServiceResourceProvider();
1531 		retVal.setContext(fhirContextDstu2());
1532 		retVal.setDao(daoHealthcareServiceDstu2());
1533 		return retVal;
1534 	}
1535 
1536 	@Bean(name="myImagingObjectSelectionDaoDstu2", autowire=Autowire.BY_NAME)
1537 	@Lazy
1538 	public 
1539 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection>
1540 		 daoImagingObjectSelectionDstu2() {
1541 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection>();
1542 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection.class);
1543 		retVal.setContext(fhirContextDstu2());
1544 		return retVal;
1545 	}
1546 
1547 	@Bean(name="myImagingObjectSelectionRpDstu2")
1548 	@Lazy
1549 	public ca.uhn.fhir.jpa.rp.dstu2.ImagingObjectSelectionResourceProvider rpImagingObjectSelectionDstu2() {
1550 		ca.uhn.fhir.jpa.rp.dstu2.ImagingObjectSelectionResourceProvider retVal;
1551 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ImagingObjectSelectionResourceProvider();
1552 		retVal.setContext(fhirContextDstu2());
1553 		retVal.setDao(daoImagingObjectSelectionDstu2());
1554 		return retVal;
1555 	}
1556 
1557 	@Bean(name="myImagingStudyDaoDstu2", autowire=Autowire.BY_NAME)
1558 	@Lazy
1559 	public 
1560 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.ImagingStudy>
1561 		 daoImagingStudyDstu2() {
1562 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ImagingStudy> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ImagingStudy>();
1563 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.ImagingStudy.class);
1564 		retVal.setContext(fhirContextDstu2());
1565 		return retVal;
1566 	}
1567 
1568 	@Bean(name="myImagingStudyRpDstu2")
1569 	@Lazy
1570 	public ca.uhn.fhir.jpa.rp.dstu2.ImagingStudyResourceProvider rpImagingStudyDstu2() {
1571 		ca.uhn.fhir.jpa.rp.dstu2.ImagingStudyResourceProvider retVal;
1572 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ImagingStudyResourceProvider();
1573 		retVal.setContext(fhirContextDstu2());
1574 		retVal.setDao(daoImagingStudyDstu2());
1575 		return retVal;
1576 	}
1577 
1578 	@Bean(name="myImmunizationDaoDstu2", autowire=Autowire.BY_NAME)
1579 	@Lazy
1580 	public 
1581 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Immunization>
1582 		 daoImmunizationDstu2() {
1583 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Immunization> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Immunization>();
1584 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Immunization.class);
1585 		retVal.setContext(fhirContextDstu2());
1586 		return retVal;
1587 	}
1588 
1589 	@Bean(name="myImmunizationRpDstu2")
1590 	@Lazy
1591 	public ca.uhn.fhir.jpa.rp.dstu2.ImmunizationResourceProvider rpImmunizationDstu2() {
1592 		ca.uhn.fhir.jpa.rp.dstu2.ImmunizationResourceProvider retVal;
1593 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ImmunizationResourceProvider();
1594 		retVal.setContext(fhirContextDstu2());
1595 		retVal.setDao(daoImmunizationDstu2());
1596 		return retVal;
1597 	}
1598 
1599 	@Bean(name="myImmunizationRecommendationDaoDstu2", autowire=Autowire.BY_NAME)
1600 	@Lazy
1601 	public 
1602 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.ImmunizationRecommendation>
1603 		 daoImmunizationRecommendationDstu2() {
1604 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ImmunizationRecommendation> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ImmunizationRecommendation>();
1605 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.ImmunizationRecommendation.class);
1606 		retVal.setContext(fhirContextDstu2());
1607 		return retVal;
1608 	}
1609 
1610 	@Bean(name="myImmunizationRecommendationRpDstu2")
1611 	@Lazy
1612 	public ca.uhn.fhir.jpa.rp.dstu2.ImmunizationRecommendationResourceProvider rpImmunizationRecommendationDstu2() {
1613 		ca.uhn.fhir.jpa.rp.dstu2.ImmunizationRecommendationResourceProvider retVal;
1614 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ImmunizationRecommendationResourceProvider();
1615 		retVal.setContext(fhirContextDstu2());
1616 		retVal.setDao(daoImmunizationRecommendationDstu2());
1617 		return retVal;
1618 	}
1619 
1620 	@Bean(name="myImplementationGuideDaoDstu2", autowire=Autowire.BY_NAME)
1621 	@Lazy
1622 	public 
1623 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.ImplementationGuide>
1624 		 daoImplementationGuideDstu2() {
1625 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ImplementationGuide> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ImplementationGuide>();
1626 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.ImplementationGuide.class);
1627 		retVal.setContext(fhirContextDstu2());
1628 		return retVal;
1629 	}
1630 
1631 	@Bean(name="myImplementationGuideRpDstu2")
1632 	@Lazy
1633 	public ca.uhn.fhir.jpa.rp.dstu2.ImplementationGuideResourceProvider rpImplementationGuideDstu2() {
1634 		ca.uhn.fhir.jpa.rp.dstu2.ImplementationGuideResourceProvider retVal;
1635 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ImplementationGuideResourceProvider();
1636 		retVal.setContext(fhirContextDstu2());
1637 		retVal.setDao(daoImplementationGuideDstu2());
1638 		return retVal;
1639 	}
1640 
1641 	@Bean(name="myListDaoDstu2", autowire=Autowire.BY_NAME)
1642 	@Lazy
1643 	public 
1644 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.ListResource>
1645 		 daoListResourceDstu2() {
1646 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ListResource> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ListResource>();
1647 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.ListResource.class);
1648 		retVal.setContext(fhirContextDstu2());
1649 		return retVal;
1650 	}
1651 
1652 	@Bean(name="myListResourceRpDstu2")
1653 	@Lazy
1654 	public ca.uhn.fhir.jpa.rp.dstu2.ListResourceResourceProvider rpListResourceDstu2() {
1655 		ca.uhn.fhir.jpa.rp.dstu2.ListResourceResourceProvider retVal;
1656 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ListResourceResourceProvider();
1657 		retVal.setContext(fhirContextDstu2());
1658 		retVal.setDao(daoListResourceDstu2());
1659 		return retVal;
1660 	}
1661 
1662 	@Bean(name="myLocationDaoDstu2", autowire=Autowire.BY_NAME)
1663 	@Lazy
1664 	public 
1665 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Location>
1666 		 daoLocationDstu2() {
1667 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Location> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Location>();
1668 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Location.class);
1669 		retVal.setContext(fhirContextDstu2());
1670 		return retVal;
1671 	}
1672 
1673 	@Bean(name="myLocationRpDstu2")
1674 	@Lazy
1675 	public ca.uhn.fhir.jpa.rp.dstu2.LocationResourceProvider rpLocationDstu2() {
1676 		ca.uhn.fhir.jpa.rp.dstu2.LocationResourceProvider retVal;
1677 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.LocationResourceProvider();
1678 		retVal.setContext(fhirContextDstu2());
1679 		retVal.setDao(daoLocationDstu2());
1680 		return retVal;
1681 	}
1682 
1683 	@Bean(name="myMediaDaoDstu2", autowire=Autowire.BY_NAME)
1684 	@Lazy
1685 	public 
1686 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Media>
1687 		 daoMediaDstu2() {
1688 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Media> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Media>();
1689 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Media.class);
1690 		retVal.setContext(fhirContextDstu2());
1691 		return retVal;
1692 	}
1693 
1694 	@Bean(name="myMediaRpDstu2")
1695 	@Lazy
1696 	public ca.uhn.fhir.jpa.rp.dstu2.MediaResourceProvider rpMediaDstu2() {
1697 		ca.uhn.fhir.jpa.rp.dstu2.MediaResourceProvider retVal;
1698 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.MediaResourceProvider();
1699 		retVal.setContext(fhirContextDstu2());
1700 		retVal.setDao(daoMediaDstu2());
1701 		return retVal;
1702 	}
1703 
1704 	@Bean(name="myMedicationDaoDstu2", autowire=Autowire.BY_NAME)
1705 	@Lazy
1706 	public 
1707 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Medication>
1708 		 daoMedicationDstu2() {
1709 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Medication> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Medication>();
1710 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Medication.class);
1711 		retVal.setContext(fhirContextDstu2());
1712 		return retVal;
1713 	}
1714 
1715 	@Bean(name="myMedicationRpDstu2")
1716 	@Lazy
1717 	public ca.uhn.fhir.jpa.rp.dstu2.MedicationResourceProvider rpMedicationDstu2() {
1718 		ca.uhn.fhir.jpa.rp.dstu2.MedicationResourceProvider retVal;
1719 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.MedicationResourceProvider();
1720 		retVal.setContext(fhirContextDstu2());
1721 		retVal.setDao(daoMedicationDstu2());
1722 		return retVal;
1723 	}
1724 
1725 	@Bean(name="myMedicationAdministrationDaoDstu2", autowire=Autowire.BY_NAME)
1726 	@Lazy
1727 	public 
1728 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.MedicationAdministration>
1729 		 daoMedicationAdministrationDstu2() {
1730 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.MedicationAdministration> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.MedicationAdministration>();
1731 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.MedicationAdministration.class);
1732 		retVal.setContext(fhirContextDstu2());
1733 		return retVal;
1734 	}
1735 
1736 	@Bean(name="myMedicationAdministrationRpDstu2")
1737 	@Lazy
1738 	public ca.uhn.fhir.jpa.rp.dstu2.MedicationAdministrationResourceProvider rpMedicationAdministrationDstu2() {
1739 		ca.uhn.fhir.jpa.rp.dstu2.MedicationAdministrationResourceProvider retVal;
1740 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.MedicationAdministrationResourceProvider();
1741 		retVal.setContext(fhirContextDstu2());
1742 		retVal.setDao(daoMedicationAdministrationDstu2());
1743 		return retVal;
1744 	}
1745 
1746 	@Bean(name="myMedicationDispenseDaoDstu2", autowire=Autowire.BY_NAME)
1747 	@Lazy
1748 	public 
1749 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.MedicationDispense>
1750 		 daoMedicationDispenseDstu2() {
1751 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.MedicationDispense> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.MedicationDispense>();
1752 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.MedicationDispense.class);
1753 		retVal.setContext(fhirContextDstu2());
1754 		return retVal;
1755 	}
1756 
1757 	@Bean(name="myMedicationDispenseRpDstu2")
1758 	@Lazy
1759 	public ca.uhn.fhir.jpa.rp.dstu2.MedicationDispenseResourceProvider rpMedicationDispenseDstu2() {
1760 		ca.uhn.fhir.jpa.rp.dstu2.MedicationDispenseResourceProvider retVal;
1761 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.MedicationDispenseResourceProvider();
1762 		retVal.setContext(fhirContextDstu2());
1763 		retVal.setDao(daoMedicationDispenseDstu2());
1764 		return retVal;
1765 	}
1766 
1767 	@Bean(name="myMedicationOrderDaoDstu2", autowire=Autowire.BY_NAME)
1768 	@Lazy
1769 	public 
1770 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.MedicationOrder>
1771 		 daoMedicationOrderDstu2() {
1772 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.MedicationOrder> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.MedicationOrder>();
1773 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.MedicationOrder.class);
1774 		retVal.setContext(fhirContextDstu2());
1775 		return retVal;
1776 	}
1777 
1778 	@Bean(name="myMedicationOrderRpDstu2")
1779 	@Lazy
1780 	public ca.uhn.fhir.jpa.rp.dstu2.MedicationOrderResourceProvider rpMedicationOrderDstu2() {
1781 		ca.uhn.fhir.jpa.rp.dstu2.MedicationOrderResourceProvider retVal;
1782 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.MedicationOrderResourceProvider();
1783 		retVal.setContext(fhirContextDstu2());
1784 		retVal.setDao(daoMedicationOrderDstu2());
1785 		return retVal;
1786 	}
1787 
1788 	@Bean(name="myMedicationStatementDaoDstu2", autowire=Autowire.BY_NAME)
1789 	@Lazy
1790 	public 
1791 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.MedicationStatement>
1792 		 daoMedicationStatementDstu2() {
1793 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.MedicationStatement> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.MedicationStatement>();
1794 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.MedicationStatement.class);
1795 		retVal.setContext(fhirContextDstu2());
1796 		return retVal;
1797 	}
1798 
1799 	@Bean(name="myMedicationStatementRpDstu2")
1800 	@Lazy
1801 	public ca.uhn.fhir.jpa.rp.dstu2.MedicationStatementResourceProvider rpMedicationStatementDstu2() {
1802 		ca.uhn.fhir.jpa.rp.dstu2.MedicationStatementResourceProvider retVal;
1803 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.MedicationStatementResourceProvider();
1804 		retVal.setContext(fhirContextDstu2());
1805 		retVal.setDao(daoMedicationStatementDstu2());
1806 		return retVal;
1807 	}
1808 
1809 	@Bean(name="myMessageHeaderDaoDstu2", autowire=Autowire.BY_NAME)
1810 	@Lazy
1811 	public 
1812 		IFhirResourceDaoMessageHeader<ca.uhn.fhir.model.dstu2.resource.MessageHeader>
1813 		 daoMessageHeaderDstu2() {
1814 		ca.uhn.fhir.jpa.dao.FhirResourceDaoMessageHeaderDstu2 retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoMessageHeaderDstu2();
1815 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.MessageHeader.class);
1816 		retVal.setContext(fhirContextDstu2());
1817 		return retVal;
1818 	}
1819 
1820 	@Bean(name="myMessageHeaderRpDstu2")
1821 	@Lazy
1822 	public ca.uhn.fhir.jpa.rp.dstu2.MessageHeaderResourceProvider rpMessageHeaderDstu2() {
1823 		ca.uhn.fhir.jpa.rp.dstu2.MessageHeaderResourceProvider retVal;
1824 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.MessageHeaderResourceProvider();
1825 		retVal.setContext(fhirContextDstu2());
1826 		retVal.setDao(daoMessageHeaderDstu2());
1827 		return retVal;
1828 	}
1829 
1830 	@Bean(name="myNamingSystemDaoDstu2", autowire=Autowire.BY_NAME)
1831 	@Lazy
1832 	public 
1833 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.NamingSystem>
1834 		 daoNamingSystemDstu2() {
1835 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.NamingSystem> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.NamingSystem>();
1836 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.NamingSystem.class);
1837 		retVal.setContext(fhirContextDstu2());
1838 		return retVal;
1839 	}
1840 
1841 	@Bean(name="myNamingSystemRpDstu2")
1842 	@Lazy
1843 	public ca.uhn.fhir.jpa.rp.dstu2.NamingSystemResourceProvider rpNamingSystemDstu2() {
1844 		ca.uhn.fhir.jpa.rp.dstu2.NamingSystemResourceProvider retVal;
1845 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.NamingSystemResourceProvider();
1846 		retVal.setContext(fhirContextDstu2());
1847 		retVal.setDao(daoNamingSystemDstu2());
1848 		return retVal;
1849 	}
1850 
1851 	@Bean(name="myNutritionOrderDaoDstu2", autowire=Autowire.BY_NAME)
1852 	@Lazy
1853 	public 
1854 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.NutritionOrder>
1855 		 daoNutritionOrderDstu2() {
1856 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.NutritionOrder> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.NutritionOrder>();
1857 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.NutritionOrder.class);
1858 		retVal.setContext(fhirContextDstu2());
1859 		return retVal;
1860 	}
1861 
1862 	@Bean(name="myNutritionOrderRpDstu2")
1863 	@Lazy
1864 	public ca.uhn.fhir.jpa.rp.dstu2.NutritionOrderResourceProvider rpNutritionOrderDstu2() {
1865 		ca.uhn.fhir.jpa.rp.dstu2.NutritionOrderResourceProvider retVal;
1866 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.NutritionOrderResourceProvider();
1867 		retVal.setContext(fhirContextDstu2());
1868 		retVal.setDao(daoNutritionOrderDstu2());
1869 		return retVal;
1870 	}
1871 
1872 	@Bean(name="myObservationDaoDstu2", autowire=Autowire.BY_NAME)
1873 	@Lazy
1874 	public 
1875 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Observation>
1876 		 daoObservationDstu2() {
1877 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Observation> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Observation>();
1878 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Observation.class);
1879 		retVal.setContext(fhirContextDstu2());
1880 		return retVal;
1881 	}
1882 
1883 	@Bean(name="myObservationRpDstu2")
1884 	@Lazy
1885 	public ca.uhn.fhir.jpa.rp.dstu2.ObservationResourceProvider rpObservationDstu2() {
1886 		ca.uhn.fhir.jpa.rp.dstu2.ObservationResourceProvider retVal;
1887 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ObservationResourceProvider();
1888 		retVal.setContext(fhirContextDstu2());
1889 		retVal.setDao(daoObservationDstu2());
1890 		return retVal;
1891 	}
1892 
1893 	@Bean(name="myOperationDefinitionDaoDstu2", autowire=Autowire.BY_NAME)
1894 	@Lazy
1895 	public 
1896 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.OperationDefinition>
1897 		 daoOperationDefinitionDstu2() {
1898 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.OperationDefinition> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.OperationDefinition>();
1899 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.OperationDefinition.class);
1900 		retVal.setContext(fhirContextDstu2());
1901 		return retVal;
1902 	}
1903 
1904 	@Bean(name="myOperationDefinitionRpDstu2")
1905 	@Lazy
1906 	public ca.uhn.fhir.jpa.rp.dstu2.OperationDefinitionResourceProvider rpOperationDefinitionDstu2() {
1907 		ca.uhn.fhir.jpa.rp.dstu2.OperationDefinitionResourceProvider retVal;
1908 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.OperationDefinitionResourceProvider();
1909 		retVal.setContext(fhirContextDstu2());
1910 		retVal.setDao(daoOperationDefinitionDstu2());
1911 		return retVal;
1912 	}
1913 
1914 	@Bean(name="myOperationOutcomeDaoDstu2", autowire=Autowire.BY_NAME)
1915 	@Lazy
1916 	public 
1917 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.OperationOutcome>
1918 		 daoOperationOutcomeDstu2() {
1919 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.OperationOutcome> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.OperationOutcome>();
1920 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.OperationOutcome.class);
1921 		retVal.setContext(fhirContextDstu2());
1922 		return retVal;
1923 	}
1924 
1925 	@Bean(name="myOperationOutcomeRpDstu2")
1926 	@Lazy
1927 	public ca.uhn.fhir.jpa.rp.dstu2.OperationOutcomeResourceProvider rpOperationOutcomeDstu2() {
1928 		ca.uhn.fhir.jpa.rp.dstu2.OperationOutcomeResourceProvider retVal;
1929 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.OperationOutcomeResourceProvider();
1930 		retVal.setContext(fhirContextDstu2());
1931 		retVal.setDao(daoOperationOutcomeDstu2());
1932 		return retVal;
1933 	}
1934 
1935 	@Bean(name="myOrderDaoDstu2", autowire=Autowire.BY_NAME)
1936 	@Lazy
1937 	public 
1938 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Order>
1939 		 daoOrderDstu2() {
1940 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Order> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Order>();
1941 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Order.class);
1942 		retVal.setContext(fhirContextDstu2());
1943 		return retVal;
1944 	}
1945 
1946 	@Bean(name="myOrderRpDstu2")
1947 	@Lazy
1948 	public ca.uhn.fhir.jpa.rp.dstu2.OrderResourceProvider rpOrderDstu2() {
1949 		ca.uhn.fhir.jpa.rp.dstu2.OrderResourceProvider retVal;
1950 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.OrderResourceProvider();
1951 		retVal.setContext(fhirContextDstu2());
1952 		retVal.setDao(daoOrderDstu2());
1953 		return retVal;
1954 	}
1955 
1956 	@Bean(name="myOrderResponseDaoDstu2", autowire=Autowire.BY_NAME)
1957 	@Lazy
1958 	public 
1959 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.OrderResponse>
1960 		 daoOrderResponseDstu2() {
1961 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.OrderResponse> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.OrderResponse>();
1962 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.OrderResponse.class);
1963 		retVal.setContext(fhirContextDstu2());
1964 		return retVal;
1965 	}
1966 
1967 	@Bean(name="myOrderResponseRpDstu2")
1968 	@Lazy
1969 	public ca.uhn.fhir.jpa.rp.dstu2.OrderResponseResourceProvider rpOrderResponseDstu2() {
1970 		ca.uhn.fhir.jpa.rp.dstu2.OrderResponseResourceProvider retVal;
1971 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.OrderResponseResourceProvider();
1972 		retVal.setContext(fhirContextDstu2());
1973 		retVal.setDao(daoOrderResponseDstu2());
1974 		return retVal;
1975 	}
1976 
1977 	@Bean(name="myOrganizationDaoDstu2", autowire=Autowire.BY_NAME)
1978 	@Lazy
1979 	public 
1980 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Organization>
1981 		 daoOrganizationDstu2() {
1982 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Organization> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Organization>();
1983 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Organization.class);
1984 		retVal.setContext(fhirContextDstu2());
1985 		return retVal;
1986 	}
1987 
1988 	@Bean(name="myOrganizationRpDstu2")
1989 	@Lazy
1990 	public ca.uhn.fhir.jpa.rp.dstu2.OrganizationResourceProvider rpOrganizationDstu2() {
1991 		ca.uhn.fhir.jpa.rp.dstu2.OrganizationResourceProvider retVal;
1992 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.OrganizationResourceProvider();
1993 		retVal.setContext(fhirContextDstu2());
1994 		retVal.setDao(daoOrganizationDstu2());
1995 		return retVal;
1996 	}
1997 
1998 	@Bean(name="myParametersDaoDstu2", autowire=Autowire.BY_NAME)
1999 	@Lazy
2000 	public 
2001 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Parameters>
2002 		 daoParametersDstu2() {
2003 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Parameters> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Parameters>();
2004 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Parameters.class);
2005 		retVal.setContext(fhirContextDstu2());
2006 		return retVal;
2007 	}
2008 
2009 	@Bean(name="myParametersRpDstu2")
2010 	@Lazy
2011 	public ca.uhn.fhir.jpa.rp.dstu2.ParametersResourceProvider rpParametersDstu2() {
2012 		ca.uhn.fhir.jpa.rp.dstu2.ParametersResourceProvider retVal;
2013 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ParametersResourceProvider();
2014 		retVal.setContext(fhirContextDstu2());
2015 		retVal.setDao(daoParametersDstu2());
2016 		return retVal;
2017 	}
2018 
2019 	@Bean(name="myPatientDaoDstu2", autowire=Autowire.BY_NAME)
2020 	@Lazy
2021 	public 
2022 		IFhirResourceDaoPatient<ca.uhn.fhir.model.dstu2.resource.Patient>
2023 		 daoPatientDstu2() {
2024 		ca.uhn.fhir.jpa.dao.FhirResourceDaoPatientDstu2 retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoPatientDstu2();
2025 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Patient.class);
2026 		retVal.setContext(fhirContextDstu2());
2027 		return retVal;
2028 	}
2029 
2030 	@Bean(name="myPatientRpDstu2")
2031 	@Lazy
2032 	public ca.uhn.fhir.jpa.rp.dstu2.PatientResourceProvider rpPatientDstu2() {
2033 		ca.uhn.fhir.jpa.rp.dstu2.PatientResourceProvider retVal;
2034 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.PatientResourceProvider();
2035 		retVal.setContext(fhirContextDstu2());
2036 		retVal.setDao(daoPatientDstu2());
2037 		return retVal;
2038 	}
2039 
2040 	@Bean(name="myPaymentNoticeDaoDstu2", autowire=Autowire.BY_NAME)
2041 	@Lazy
2042 	public 
2043 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.PaymentNotice>
2044 		 daoPaymentNoticeDstu2() {
2045 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.PaymentNotice> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.PaymentNotice>();
2046 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.PaymentNotice.class);
2047 		retVal.setContext(fhirContextDstu2());
2048 		return retVal;
2049 	}
2050 
2051 	@Bean(name="myPaymentNoticeRpDstu2")
2052 	@Lazy
2053 	public ca.uhn.fhir.jpa.rp.dstu2.PaymentNoticeResourceProvider rpPaymentNoticeDstu2() {
2054 		ca.uhn.fhir.jpa.rp.dstu2.PaymentNoticeResourceProvider retVal;
2055 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.PaymentNoticeResourceProvider();
2056 		retVal.setContext(fhirContextDstu2());
2057 		retVal.setDao(daoPaymentNoticeDstu2());
2058 		return retVal;
2059 	}
2060 
2061 	@Bean(name="myPaymentReconciliationDaoDstu2", autowire=Autowire.BY_NAME)
2062 	@Lazy
2063 	public 
2064 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.PaymentReconciliation>
2065 		 daoPaymentReconciliationDstu2() {
2066 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.PaymentReconciliation> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.PaymentReconciliation>();
2067 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.PaymentReconciliation.class);
2068 		retVal.setContext(fhirContextDstu2());
2069 		return retVal;
2070 	}
2071 
2072 	@Bean(name="myPaymentReconciliationRpDstu2")
2073 	@Lazy
2074 	public ca.uhn.fhir.jpa.rp.dstu2.PaymentReconciliationResourceProvider rpPaymentReconciliationDstu2() {
2075 		ca.uhn.fhir.jpa.rp.dstu2.PaymentReconciliationResourceProvider retVal;
2076 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.PaymentReconciliationResourceProvider();
2077 		retVal.setContext(fhirContextDstu2());
2078 		retVal.setDao(daoPaymentReconciliationDstu2());
2079 		return retVal;
2080 	}
2081 
2082 	@Bean(name="myPersonDaoDstu2", autowire=Autowire.BY_NAME)
2083 	@Lazy
2084 	public 
2085 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Person>
2086 		 daoPersonDstu2() {
2087 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Person> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Person>();
2088 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Person.class);
2089 		retVal.setContext(fhirContextDstu2());
2090 		return retVal;
2091 	}
2092 
2093 	@Bean(name="myPersonRpDstu2")
2094 	@Lazy
2095 	public ca.uhn.fhir.jpa.rp.dstu2.PersonResourceProvider rpPersonDstu2() {
2096 		ca.uhn.fhir.jpa.rp.dstu2.PersonResourceProvider retVal;
2097 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.PersonResourceProvider();
2098 		retVal.setContext(fhirContextDstu2());
2099 		retVal.setDao(daoPersonDstu2());
2100 		return retVal;
2101 	}
2102 
2103 	@Bean(name="myPractitionerDaoDstu2", autowire=Autowire.BY_NAME)
2104 	@Lazy
2105 	public 
2106 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Practitioner>
2107 		 daoPractitionerDstu2() {
2108 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Practitioner> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Practitioner>();
2109 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Practitioner.class);
2110 		retVal.setContext(fhirContextDstu2());
2111 		return retVal;
2112 	}
2113 
2114 	@Bean(name="myPractitionerRpDstu2")
2115 	@Lazy
2116 	public ca.uhn.fhir.jpa.rp.dstu2.PractitionerResourceProvider rpPractitionerDstu2() {
2117 		ca.uhn.fhir.jpa.rp.dstu2.PractitionerResourceProvider retVal;
2118 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.PractitionerResourceProvider();
2119 		retVal.setContext(fhirContextDstu2());
2120 		retVal.setDao(daoPractitionerDstu2());
2121 		return retVal;
2122 	}
2123 
2124 	@Bean(name="myProcedureDaoDstu2", autowire=Autowire.BY_NAME)
2125 	@Lazy
2126 	public 
2127 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Procedure>
2128 		 daoProcedureDstu2() {
2129 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Procedure> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Procedure>();
2130 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Procedure.class);
2131 		retVal.setContext(fhirContextDstu2());
2132 		return retVal;
2133 	}
2134 
2135 	@Bean(name="myProcedureRpDstu2")
2136 	@Lazy
2137 	public ca.uhn.fhir.jpa.rp.dstu2.ProcedureResourceProvider rpProcedureDstu2() {
2138 		ca.uhn.fhir.jpa.rp.dstu2.ProcedureResourceProvider retVal;
2139 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ProcedureResourceProvider();
2140 		retVal.setContext(fhirContextDstu2());
2141 		retVal.setDao(daoProcedureDstu2());
2142 		return retVal;
2143 	}
2144 
2145 	@Bean(name="myProcedureRequestDaoDstu2", autowire=Autowire.BY_NAME)
2146 	@Lazy
2147 	public 
2148 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.ProcedureRequest>
2149 		 daoProcedureRequestDstu2() {
2150 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ProcedureRequest> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ProcedureRequest>();
2151 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.ProcedureRequest.class);
2152 		retVal.setContext(fhirContextDstu2());
2153 		return retVal;
2154 	}
2155 
2156 	@Bean(name="myProcedureRequestRpDstu2")
2157 	@Lazy
2158 	public ca.uhn.fhir.jpa.rp.dstu2.ProcedureRequestResourceProvider rpProcedureRequestDstu2() {
2159 		ca.uhn.fhir.jpa.rp.dstu2.ProcedureRequestResourceProvider retVal;
2160 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ProcedureRequestResourceProvider();
2161 		retVal.setContext(fhirContextDstu2());
2162 		retVal.setDao(daoProcedureRequestDstu2());
2163 		return retVal;
2164 	}
2165 
2166 	@Bean(name="myProcessRequestDaoDstu2", autowire=Autowire.BY_NAME)
2167 	@Lazy
2168 	public 
2169 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.ProcessRequest>
2170 		 daoProcessRequestDstu2() {
2171 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ProcessRequest> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ProcessRequest>();
2172 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.ProcessRequest.class);
2173 		retVal.setContext(fhirContextDstu2());
2174 		return retVal;
2175 	}
2176 
2177 	@Bean(name="myProcessRequestRpDstu2")
2178 	@Lazy
2179 	public ca.uhn.fhir.jpa.rp.dstu2.ProcessRequestResourceProvider rpProcessRequestDstu2() {
2180 		ca.uhn.fhir.jpa.rp.dstu2.ProcessRequestResourceProvider retVal;
2181 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ProcessRequestResourceProvider();
2182 		retVal.setContext(fhirContextDstu2());
2183 		retVal.setDao(daoProcessRequestDstu2());
2184 		return retVal;
2185 	}
2186 
2187 	@Bean(name="myProcessResponseDaoDstu2", autowire=Autowire.BY_NAME)
2188 	@Lazy
2189 	public 
2190 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.ProcessResponse>
2191 		 daoProcessResponseDstu2() {
2192 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ProcessResponse> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ProcessResponse>();
2193 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.ProcessResponse.class);
2194 		retVal.setContext(fhirContextDstu2());
2195 		return retVal;
2196 	}
2197 
2198 	@Bean(name="myProcessResponseRpDstu2")
2199 	@Lazy
2200 	public ca.uhn.fhir.jpa.rp.dstu2.ProcessResponseResourceProvider rpProcessResponseDstu2() {
2201 		ca.uhn.fhir.jpa.rp.dstu2.ProcessResponseResourceProvider retVal;
2202 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ProcessResponseResourceProvider();
2203 		retVal.setContext(fhirContextDstu2());
2204 		retVal.setDao(daoProcessResponseDstu2());
2205 		return retVal;
2206 	}
2207 
2208 	@Bean(name="myProvenanceDaoDstu2", autowire=Autowire.BY_NAME)
2209 	@Lazy
2210 	public 
2211 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Provenance>
2212 		 daoProvenanceDstu2() {
2213 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Provenance> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Provenance>();
2214 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Provenance.class);
2215 		retVal.setContext(fhirContextDstu2());
2216 		return retVal;
2217 	}
2218 
2219 	@Bean(name="myProvenanceRpDstu2")
2220 	@Lazy
2221 	public ca.uhn.fhir.jpa.rp.dstu2.ProvenanceResourceProvider rpProvenanceDstu2() {
2222 		ca.uhn.fhir.jpa.rp.dstu2.ProvenanceResourceProvider retVal;
2223 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ProvenanceResourceProvider();
2224 		retVal.setContext(fhirContextDstu2());
2225 		retVal.setDao(daoProvenanceDstu2());
2226 		return retVal;
2227 	}
2228 
2229 	@Bean(name="myQuestionnaireDaoDstu2", autowire=Autowire.BY_NAME)
2230 	@Lazy
2231 	public 
2232 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Questionnaire>
2233 		 daoQuestionnaireDstu2() {
2234 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Questionnaire> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Questionnaire>();
2235 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Questionnaire.class);
2236 		retVal.setContext(fhirContextDstu2());
2237 		return retVal;
2238 	}
2239 
2240 	@Bean(name="myQuestionnaireRpDstu2")
2241 	@Lazy
2242 	public ca.uhn.fhir.jpa.rp.dstu2.QuestionnaireResourceProvider rpQuestionnaireDstu2() {
2243 		ca.uhn.fhir.jpa.rp.dstu2.QuestionnaireResourceProvider retVal;
2244 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.QuestionnaireResourceProvider();
2245 		retVal.setContext(fhirContextDstu2());
2246 		retVal.setDao(daoQuestionnaireDstu2());
2247 		return retVal;
2248 	}
2249 
2250 	@Bean(name="myQuestionnaireResponseDaoDstu2", autowire=Autowire.BY_NAME)
2251 	@Lazy
2252 	public 
2253 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse>
2254 		 daoQuestionnaireResponseDstu2() {
2255 		ca.uhn.fhir.jpa.dao.FhirResourceDaoQuestionnaireResponseDstu2 retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoQuestionnaireResponseDstu2();
2256 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse.class);
2257 		retVal.setContext(fhirContextDstu2());
2258 		return retVal;
2259 	}
2260 
2261 	@Bean(name="myQuestionnaireResponseRpDstu2")
2262 	@Lazy
2263 	public ca.uhn.fhir.jpa.rp.dstu2.QuestionnaireResponseResourceProvider rpQuestionnaireResponseDstu2() {
2264 		ca.uhn.fhir.jpa.rp.dstu2.QuestionnaireResponseResourceProvider retVal;
2265 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.QuestionnaireResponseResourceProvider();
2266 		retVal.setContext(fhirContextDstu2());
2267 		retVal.setDao(daoQuestionnaireResponseDstu2());
2268 		return retVal;
2269 	}
2270 
2271 	@Bean(name="myReferralRequestDaoDstu2", autowire=Autowire.BY_NAME)
2272 	@Lazy
2273 	public 
2274 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.ReferralRequest>
2275 		 daoReferralRequestDstu2() {
2276 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ReferralRequest> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.ReferralRequest>();
2277 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.ReferralRequest.class);
2278 		retVal.setContext(fhirContextDstu2());
2279 		return retVal;
2280 	}
2281 
2282 	@Bean(name="myReferralRequestRpDstu2")
2283 	@Lazy
2284 	public ca.uhn.fhir.jpa.rp.dstu2.ReferralRequestResourceProvider rpReferralRequestDstu2() {
2285 		ca.uhn.fhir.jpa.rp.dstu2.ReferralRequestResourceProvider retVal;
2286 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ReferralRequestResourceProvider();
2287 		retVal.setContext(fhirContextDstu2());
2288 		retVal.setDao(daoReferralRequestDstu2());
2289 		return retVal;
2290 	}
2291 
2292 	@Bean(name="myRelatedPersonDaoDstu2", autowire=Autowire.BY_NAME)
2293 	@Lazy
2294 	public 
2295 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.RelatedPerson>
2296 		 daoRelatedPersonDstu2() {
2297 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.RelatedPerson> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.RelatedPerson>();
2298 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.RelatedPerson.class);
2299 		retVal.setContext(fhirContextDstu2());
2300 		return retVal;
2301 	}
2302 
2303 	@Bean(name="myRelatedPersonRpDstu2")
2304 	@Lazy
2305 	public ca.uhn.fhir.jpa.rp.dstu2.RelatedPersonResourceProvider rpRelatedPersonDstu2() {
2306 		ca.uhn.fhir.jpa.rp.dstu2.RelatedPersonResourceProvider retVal;
2307 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.RelatedPersonResourceProvider();
2308 		retVal.setContext(fhirContextDstu2());
2309 		retVal.setDao(daoRelatedPersonDstu2());
2310 		return retVal;
2311 	}
2312 
2313 	@Bean(name="myRiskAssessmentDaoDstu2", autowire=Autowire.BY_NAME)
2314 	@Lazy
2315 	public 
2316 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.RiskAssessment>
2317 		 daoRiskAssessmentDstu2() {
2318 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.RiskAssessment> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.RiskAssessment>();
2319 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.RiskAssessment.class);
2320 		retVal.setContext(fhirContextDstu2());
2321 		return retVal;
2322 	}
2323 
2324 	@Bean(name="myRiskAssessmentRpDstu2")
2325 	@Lazy
2326 	public ca.uhn.fhir.jpa.rp.dstu2.RiskAssessmentResourceProvider rpRiskAssessmentDstu2() {
2327 		ca.uhn.fhir.jpa.rp.dstu2.RiskAssessmentResourceProvider retVal;
2328 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.RiskAssessmentResourceProvider();
2329 		retVal.setContext(fhirContextDstu2());
2330 		retVal.setDao(daoRiskAssessmentDstu2());
2331 		return retVal;
2332 	}
2333 
2334 	@Bean(name="myScheduleDaoDstu2", autowire=Autowire.BY_NAME)
2335 	@Lazy
2336 	public 
2337 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Schedule>
2338 		 daoScheduleDstu2() {
2339 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Schedule> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Schedule>();
2340 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Schedule.class);
2341 		retVal.setContext(fhirContextDstu2());
2342 		return retVal;
2343 	}
2344 
2345 	@Bean(name="myScheduleRpDstu2")
2346 	@Lazy
2347 	public ca.uhn.fhir.jpa.rp.dstu2.ScheduleResourceProvider rpScheduleDstu2() {
2348 		ca.uhn.fhir.jpa.rp.dstu2.ScheduleResourceProvider retVal;
2349 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ScheduleResourceProvider();
2350 		retVal.setContext(fhirContextDstu2());
2351 		retVal.setDao(daoScheduleDstu2());
2352 		return retVal;
2353 	}
2354 
2355 	@Bean(name="mySearchParameterDaoDstu2", autowire=Autowire.BY_NAME)
2356 	@Lazy
2357 	public 
2358 		IFhirResourceDaoSearchParameter<ca.uhn.fhir.model.dstu2.resource.SearchParameter>
2359 		 daoSearchParameterDstu2() {
2360 		ca.uhn.fhir.jpa.dao.FhirResourceDaoSearchParameterDstu2 retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoSearchParameterDstu2();
2361 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.SearchParameter.class);
2362 		retVal.setContext(fhirContextDstu2());
2363 		return retVal;
2364 	}
2365 
2366 	@Bean(name="mySearchParameterRpDstu2")
2367 	@Lazy
2368 	public ca.uhn.fhir.jpa.rp.dstu2.SearchParameterResourceProvider rpSearchParameterDstu2() {
2369 		ca.uhn.fhir.jpa.rp.dstu2.SearchParameterResourceProvider retVal;
2370 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.SearchParameterResourceProvider();
2371 		retVal.setContext(fhirContextDstu2());
2372 		retVal.setDao(daoSearchParameterDstu2());
2373 		return retVal;
2374 	}
2375 
2376 	@Bean(name="mySlotDaoDstu2", autowire=Autowire.BY_NAME)
2377 	@Lazy
2378 	public 
2379 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Slot>
2380 		 daoSlotDstu2() {
2381 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Slot> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Slot>();
2382 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Slot.class);
2383 		retVal.setContext(fhirContextDstu2());
2384 		return retVal;
2385 	}
2386 
2387 	@Bean(name="mySlotRpDstu2")
2388 	@Lazy
2389 	public ca.uhn.fhir.jpa.rp.dstu2.SlotResourceProvider rpSlotDstu2() {
2390 		ca.uhn.fhir.jpa.rp.dstu2.SlotResourceProvider retVal;
2391 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.SlotResourceProvider();
2392 		retVal.setContext(fhirContextDstu2());
2393 		retVal.setDao(daoSlotDstu2());
2394 		return retVal;
2395 	}
2396 
2397 	@Bean(name="mySpecimenDaoDstu2", autowire=Autowire.BY_NAME)
2398 	@Lazy
2399 	public 
2400 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Specimen>
2401 		 daoSpecimenDstu2() {
2402 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Specimen> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Specimen>();
2403 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Specimen.class);
2404 		retVal.setContext(fhirContextDstu2());
2405 		return retVal;
2406 	}
2407 
2408 	@Bean(name="mySpecimenRpDstu2")
2409 	@Lazy
2410 	public ca.uhn.fhir.jpa.rp.dstu2.SpecimenResourceProvider rpSpecimenDstu2() {
2411 		ca.uhn.fhir.jpa.rp.dstu2.SpecimenResourceProvider retVal;
2412 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.SpecimenResourceProvider();
2413 		retVal.setContext(fhirContextDstu2());
2414 		retVal.setDao(daoSpecimenDstu2());
2415 		return retVal;
2416 	}
2417 
2418 	@Bean(name="myStructureDefinitionDaoDstu2", autowire=Autowire.BY_NAME)
2419 	@Lazy
2420 	public 
2421 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.StructureDefinition>
2422 		 daoStructureDefinitionDstu2() {
2423 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.StructureDefinition> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.StructureDefinition>();
2424 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.StructureDefinition.class);
2425 		retVal.setContext(fhirContextDstu2());
2426 		return retVal;
2427 	}
2428 
2429 	@Bean(name="myStructureDefinitionRpDstu2")
2430 	@Lazy
2431 	public ca.uhn.fhir.jpa.rp.dstu2.StructureDefinitionResourceProvider rpStructureDefinitionDstu2() {
2432 		ca.uhn.fhir.jpa.rp.dstu2.StructureDefinitionResourceProvider retVal;
2433 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.StructureDefinitionResourceProvider();
2434 		retVal.setContext(fhirContextDstu2());
2435 		retVal.setDao(daoStructureDefinitionDstu2());
2436 		return retVal;
2437 	}
2438 
2439 	@Bean(name="mySubscriptionDaoDstu2", autowire=Autowire.BY_NAME)
2440 	@Lazy
2441 	public 
2442 		IFhirResourceDaoSubscription<ca.uhn.fhir.model.dstu2.resource.Subscription>
2443 		 daoSubscriptionDstu2() {
2444 		ca.uhn.fhir.jpa.dao.FhirResourceDaoSubscriptionDstu2 retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoSubscriptionDstu2();
2445 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Subscription.class);
2446 		retVal.setContext(fhirContextDstu2());
2447 		return retVal;
2448 	}
2449 
2450 	@Bean(name="mySubscriptionRpDstu2")
2451 	@Lazy
2452 	public ca.uhn.fhir.jpa.rp.dstu2.SubscriptionResourceProvider rpSubscriptionDstu2() {
2453 		ca.uhn.fhir.jpa.rp.dstu2.SubscriptionResourceProvider retVal;
2454 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.SubscriptionResourceProvider();
2455 		retVal.setContext(fhirContextDstu2());
2456 		retVal.setDao(daoSubscriptionDstu2());
2457 		return retVal;
2458 	}
2459 
2460 	@Bean(name="mySubstanceDaoDstu2", autowire=Autowire.BY_NAME)
2461 	@Lazy
2462 	public 
2463 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Substance>
2464 		 daoSubstanceDstu2() {
2465 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Substance> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.Substance>();
2466 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.Substance.class);
2467 		retVal.setContext(fhirContextDstu2());
2468 		return retVal;
2469 	}
2470 
2471 	@Bean(name="mySubstanceRpDstu2")
2472 	@Lazy
2473 	public ca.uhn.fhir.jpa.rp.dstu2.SubstanceResourceProvider rpSubstanceDstu2() {
2474 		ca.uhn.fhir.jpa.rp.dstu2.SubstanceResourceProvider retVal;
2475 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.SubstanceResourceProvider();
2476 		retVal.setContext(fhirContextDstu2());
2477 		retVal.setDao(daoSubstanceDstu2());
2478 		return retVal;
2479 	}
2480 
2481 	@Bean(name="mySupplyDeliveryDaoDstu2", autowire=Autowire.BY_NAME)
2482 	@Lazy
2483 	public 
2484 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.SupplyDelivery>
2485 		 daoSupplyDeliveryDstu2() {
2486 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.SupplyDelivery> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.SupplyDelivery>();
2487 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.SupplyDelivery.class);
2488 		retVal.setContext(fhirContextDstu2());
2489 		return retVal;
2490 	}
2491 
2492 	@Bean(name="mySupplyDeliveryRpDstu2")
2493 	@Lazy
2494 	public ca.uhn.fhir.jpa.rp.dstu2.SupplyDeliveryResourceProvider rpSupplyDeliveryDstu2() {
2495 		ca.uhn.fhir.jpa.rp.dstu2.SupplyDeliveryResourceProvider retVal;
2496 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.SupplyDeliveryResourceProvider();
2497 		retVal.setContext(fhirContextDstu2());
2498 		retVal.setDao(daoSupplyDeliveryDstu2());
2499 		return retVal;
2500 	}
2501 
2502 	@Bean(name="mySupplyRequestDaoDstu2", autowire=Autowire.BY_NAME)
2503 	@Lazy
2504 	public 
2505 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.SupplyRequest>
2506 		 daoSupplyRequestDstu2() {
2507 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.SupplyRequest> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.SupplyRequest>();
2508 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.SupplyRequest.class);
2509 		retVal.setContext(fhirContextDstu2());
2510 		return retVal;
2511 	}
2512 
2513 	@Bean(name="mySupplyRequestRpDstu2")
2514 	@Lazy
2515 	public ca.uhn.fhir.jpa.rp.dstu2.SupplyRequestResourceProvider rpSupplyRequestDstu2() {
2516 		ca.uhn.fhir.jpa.rp.dstu2.SupplyRequestResourceProvider retVal;
2517 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.SupplyRequestResourceProvider();
2518 		retVal.setContext(fhirContextDstu2());
2519 		retVal.setDao(daoSupplyRequestDstu2());
2520 		return retVal;
2521 	}
2522 
2523 	@Bean(name="myTestScriptDaoDstu2", autowire=Autowire.BY_NAME)
2524 	@Lazy
2525 	public 
2526 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.TestScript>
2527 		 daoTestScriptDstu2() {
2528 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.TestScript> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.TestScript>();
2529 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.TestScript.class);
2530 		retVal.setContext(fhirContextDstu2());
2531 		return retVal;
2532 	}
2533 
2534 	@Bean(name="myTestScriptRpDstu2")
2535 	@Lazy
2536 	public ca.uhn.fhir.jpa.rp.dstu2.TestScriptResourceProvider rpTestScriptDstu2() {
2537 		ca.uhn.fhir.jpa.rp.dstu2.TestScriptResourceProvider retVal;
2538 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.TestScriptResourceProvider();
2539 		retVal.setContext(fhirContextDstu2());
2540 		retVal.setDao(daoTestScriptDstu2());
2541 		return retVal;
2542 	}
2543 
2544 	@Bean(name="myValueSetDaoDstu2", autowire=Autowire.BY_NAME)
2545 	@Lazy
2546 	public 
2547 		IFhirResourceDaoValueSet<ca.uhn.fhir.model.dstu2.resource.ValueSet, ca.uhn.fhir.model.dstu2.composite.CodingDt, ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt>
2548 		 daoValueSetDstu2() {
2549 		ca.uhn.fhir.jpa.dao.FhirResourceDaoValueSetDstu2 retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoValueSetDstu2();
2550 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.ValueSet.class);
2551 		retVal.setContext(fhirContextDstu2());
2552 		return retVal;
2553 	}
2554 
2555 	@Bean(name="myValueSetRpDstu2")
2556 	@Lazy
2557 	public ca.uhn.fhir.jpa.rp.dstu2.ValueSetResourceProvider rpValueSetDstu2() {
2558 		ca.uhn.fhir.jpa.rp.dstu2.ValueSetResourceProvider retVal;
2559 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.ValueSetResourceProvider();
2560 		retVal.setContext(fhirContextDstu2());
2561 		retVal.setDao(daoValueSetDstu2());
2562 		return retVal;
2563 	}
2564 
2565 	@Bean(name="myVisionPrescriptionDaoDstu2", autowire=Autowire.BY_NAME)
2566 	@Lazy
2567 	public 
2568 		IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.VisionPrescription>
2569 		 daoVisionPrescriptionDstu2() {
2570 		ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.VisionPrescription> retVal = new ca.uhn.fhir.jpa.dao.FhirResourceDaoDstu2<ca.uhn.fhir.model.dstu2.resource.VisionPrescription>();
2571 		retVal.setResourceType(ca.uhn.fhir.model.dstu2.resource.VisionPrescription.class);
2572 		retVal.setContext(fhirContextDstu2());
2573 		return retVal;
2574 	}
2575 
2576 	@Bean(name="myVisionPrescriptionRpDstu2")
2577 	@Lazy
2578 	public ca.uhn.fhir.jpa.rp.dstu2.VisionPrescriptionResourceProvider rpVisionPrescriptionDstu2() {
2579 		ca.uhn.fhir.jpa.rp.dstu2.VisionPrescriptionResourceProvider retVal;
2580 		retVal = new ca.uhn.fhir.jpa.rp.dstu2.VisionPrescriptionResourceProvider();
2581 		retVal.setContext(fhirContextDstu2());
2582 		retVal.setDao(daoVisionPrescriptionDstu2());
2583 		return retVal;
2584 	}
2585 
2586 
2587 
2588 
2589 	
2590 	
2591 }