11package org .opencds .cqf .cql .ls .server .command ;
22
3+ import ca .uhn .fhir .context .FhirContext ;
4+ import ca .uhn .fhir .context .api .BundleInclusionRule ;
5+ import ca .uhn .fhir .model .api .IQueryParameterType ;
6+ import ca .uhn .fhir .model .valueset .BundleTypeEnum ;
7+ import ca .uhn .fhir .rest .api .MethodOutcome ;
8+ import ca .uhn .fhir .rest .server .exceptions .ResourceNotFoundException ;
39import java .util .Collections ;
410import java .util .List ;
511import java .util .Map ;
612import java .util .Set ;
7-
813import org .hl7 .fhir .instance .model .api .IBaseBundle ;
914import org .hl7 .fhir .instance .model .api .IBaseParameters ;
1015import org .hl7 .fhir .instance .model .api .IBaseResource ;
1116import org .hl7 .fhir .instance .model .api .IIdType ;
1217import org .opencds .cqf .fhir .api .Repository ;
1318
14- import ca .uhn .fhir .context .FhirContext ;
15- import ca .uhn .fhir .context .api .BundleInclusionRule ;
16- import ca .uhn .fhir .model .api .IQueryParameterType ;
17- import ca .uhn .fhir .model .valueset .BundleTypeEnum ;
18- import ca .uhn .fhir .rest .api .MethodOutcome ;
19- import ca .uhn .fhir .rest .server .exceptions .ResourceNotFoundException ;
20-
2119public class NoOpRepository implements Repository {
2220
2321 private final FhirContext fhirContext ;
@@ -32,8 +30,8 @@ public <T extends IBaseResource> MethodOutcome create(T arg0, Map<String, String
3230 }
3331
3432 @ Override
35- public <T extends IBaseResource , I extends IIdType > MethodOutcome delete (Class < T > arg0 , I arg1 ,
36- Map <String , String > arg2 ) {
33+ public <T extends IBaseResource , I extends IIdType > MethodOutcome delete (
34+ Class < T > arg0 , I arg1 , Map <String , String > arg2 ) {
3735 throw new UnsupportedOperationException ("Unimplemented method 'delete'" );
3836 }
3937
@@ -43,14 +41,14 @@ public FhirContext fhirContext() {
4341 }
4442
4543 @ Override
46- public <R extends IBaseResource , P extends IBaseParameters , T extends IBaseResource > R invoke (Class < T > arg0 ,
47- String arg1 , P arg2 , Class <R > arg3 , Map <String , String > arg4 ) {
44+ public <R extends IBaseResource , P extends IBaseParameters , T extends IBaseResource > R invoke (
45+ Class < T > arg0 , String arg1 , P arg2 , Class <R > arg3 , Map <String , String > arg4 ) {
4846 throw new UnsupportedOperationException ("Unimplemented method 'invoke'" );
4947 }
5048
5149 @ Override
52- public <R extends IBaseResource , P extends IBaseParameters , I extends IIdType > R invoke (I arg0 , String arg1 , P arg2 ,
53- Class <R > arg3 , Map <String , String > arg4 ) {
50+ public <R extends IBaseResource , P extends IBaseParameters , I extends IIdType > R invoke (
51+ I arg0 , String arg1 , P arg2 , Class <R > arg3 , Map <String , String > arg4 ) {
5452 throw new UnsupportedOperationException ("Unimplemented method 'invoke'" );
5553 }
5654
@@ -61,16 +59,16 @@ public <T extends IBaseResource, I extends IIdType> T read(Class<T> arg0, I arg1
6159
6260 @ SuppressWarnings ("unchecked" )
6361 @ Override
64- public <B extends IBaseBundle , T extends IBaseResource > B search (Class < B > arg0 , Class < T > arg1 ,
65- Map <String , List <IQueryParameterType >> arg2 , Map <String , String > arg3 ) {
62+ public <B extends IBaseBundle , T extends IBaseResource > B search (
63+ Class < B > arg0 , Class < T > arg1 , Map <String , List <IQueryParameterType >> arg2 , Map <String , String > arg3 ) {
6664 var factory = this .fhirContext .newBundleFactory ();
67- factory .addResourcesToBundle (Collections .emptyList (), BundleTypeEnum .SEARCHSET , "" , BundleInclusionRule .BASED_ON_INCLUDES , Set .of ());
68- return (B )factory .getResourceBundle ();
65+ factory .addResourcesToBundle (
66+ Collections .emptyList (), BundleTypeEnum .SEARCHSET , "" , BundleInclusionRule .BASED_ON_INCLUDES , Set .of ());
67+ return (B ) factory .getResourceBundle ();
6968 }
7069
7170 @ Override
7271 public <T extends IBaseResource > MethodOutcome update (T arg0 , Map <String , String > arg1 ) {
7372 throw new UnsupportedOperationException ("Unimplemented method 'update'" );
7473 }
75-
7674}
0 commit comments