Java Code Examples for ca.uhn.fhir.context.FhirVersionEnum#DSTU3
The following examples show how to use
ca.uhn.fhir.context.FhirVersionEnum#DSTU3 .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ApplicationContext.java From hapi-fhir-jpaserver-starter with Apache License 2.0 | 5 votes |
public ApplicationContext() { FhirVersionEnum fhirVersion = HapiProperties.getFhirVersion(); if (fhirVersion == FhirVersionEnum.DSTU2) { register(FhirServerConfigDstu2.class, FhirServerConfigCommon.class); } else if (fhirVersion == FhirVersionEnum.DSTU3) { register(FhirServerConfigDstu3.class, FhirServerConfigCommon.class); } else if (fhirVersion == FhirVersionEnum.R4) { register(FhirServerConfigR4.class, FhirServerConfigCommon.class); } else if (fhirVersion == FhirVersionEnum.R5) { register(FhirServerConfigR5.class, FhirServerConfigCommon.class); } else { throw new IllegalStateException(); } if (HapiProperties.getSubscriptionWebsocketEnabled()) { register(WebsocketDispatcherConfig.class); } if (HapiProperties.getSubscriptionEmailEnabled() || HapiProperties.getSubscriptionRestHookEnabled() || HapiProperties.getSubscriptionWebsocketEnabled()) { register(SubscriptionSubmitterConfig.class); register(SubscriptionProcessorConfig.class); register(SubscriptionChannelConfig.class); } }
Example 2
Source File: HapiProperties.java From hapi-fhir-jpaserver-starter with Apache License 2.0 | 5 votes |
public static FhirVersionEnum getFhirVersion() { String fhirVersionString = HapiProperties.getProperty(FHIR_VERSION); if (fhirVersionString != null && fhirVersionString.length() > 0) { return FhirVersionEnum.valueOf(fhirVersionString); } return FhirVersionEnum.DSTU3; }
Example 3
Source File: ValueSets.java From bunsen with Apache License 2.0 | 5 votes |
private ValueSets(SparkSession spark, Dataset<UrlAndVersion> members, Dataset<Row> valueSets, Dataset<Value> values) { super(spark, FhirVersionEnum.DSTU3, members, valueSets,values, valuesetRowConverter); }
Example 4
Source File: ConceptMaps.java From bunsen with Apache License 2.0 | 5 votes |
protected ConceptMaps(SparkSession spark, Dataset<UrlAndVersion> members, Dataset<Row> conceptMaps, Dataset<Mapping> mappings) { super(spark, FhirVersionEnum.DSTU3, members, conceptMaps, mappings, conceptMapConverter); }
Example 5
Source File: MockValueSets.java From bunsen with Apache License 2.0 | 5 votes |
/** * Creates an empty MockValueSets instance for test purposes. */ public MockValueSets(SparkSession spark, SparkRowConverter valuesetRowConverter) { super(spark, FhirVersionEnum.DSTU3, spark.emptyDataset(AbstractValueSets.getUrlAndVersionEncoder()), valuesetRowConverter.emptyDataFrame(spark), spark.emptyDataset(AbstractValueSets.getValueEncoder()), valuesetRowConverter); }
Example 6
Source File: MockValueSets.java From bunsen with Apache License 2.0 | 5 votes |
/** * Creates a MockValueSets instance with the given data. */ public MockValueSets(SparkSession spark, Dataset<UrlAndVersion> members, Dataset<Row> valueSets, Dataset<Value> values, SparkRowConverter valueSetRowConverter) { super(spark, FhirVersionEnum.DSTU3, members, valueSets, values, valueSetRowConverter); }
Example 7
Source File: HapiProperties.java From careconnect-reference-implementation with Apache License 2.0 | 5 votes |
public static FhirVersionEnum getFhirVersion() { String fhirVersionString = HapiProperties.getProperty(FHIR_VERSION); if (fhirVersionString != null && fhirVersionString.length() > 0) { return FhirVersionEnum.valueOf(fhirVersionString); } return FhirVersionEnum.DSTU3; }
Example 8
Source File: Dstu3FhirModelResolver.java From cql_engine with Apache License 2.0 | 5 votes |
private Dstu3FhirModelResolver(FhirContext fhirContext) { super(fhirContext); this.setPackageName("org.hl7.fhir.dstu3.model"); if (fhirContext.getVersion().getVersion() != FhirVersionEnum.DSTU3) { throw new IllegalArgumentException("The supplied context is not configured for DSTU3"); } }
Example 9
Source File: BaseResource.java From org.hl7.fhir.core with Apache License 2.0 | 4 votes |
@Override public FhirVersionEnum getStructureFhirVersionEnum() { return FhirVersionEnum.DSTU3; }
Example 10
Source File: Bundles.java From bunsen with Apache License 2.0 | 2 votes |
public static Bundles forStu3() { return new Bundles(FhirVersionEnum.DSTU3); }