Skip to content

Commit 68d3289

Browse files
committed
consolidating FhirParserConfig
1 parent e0be94f commit 68d3289

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

service/src/main/java/uk/nhs/adaptors/gp2gp/gpc/configuration/GpcFhirParserConfig.java renamed to service/src/main/java/uk/nhs/adaptors/gp2gp/common/configuration/FhirParserConfig.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1-
package uk.nhs.adaptors.gp2gp.gpc.configuration;
2-
3-
import org.springframework.context.annotation.Bean;
4-
import org.springframework.context.annotation.Configuration;
1+
package uk.nhs.adaptors.gp2gp.common.configuration;
52

63
import ca.uhn.fhir.context.FhirContext;
74
import ca.uhn.fhir.parser.IParser;
5+
import org.springframework.context.annotation.Bean;
6+
import org.springframework.context.annotation.Configuration;
87

98
@Configuration
10-
public class GpcFhirParserConfig {
9+
public class FhirParserConfig {
10+
11+
@Bean
12+
public FhirContext fhirContext() {
13+
return FhirContext.forDstu3();
14+
}
15+
1116
@Bean
1217
public IParser fhirJsonParser() {
1318
return FhirContext.forDstu3().newJsonParser();
1419
}
15-
}
20+
21+
}

0 commit comments

Comments
 (0)