-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* might keep this * might keep this * undoing start in interface * fixed bug that only supported resources with ResourceType/id prefixes * added standalone subscription support for Dstu2. untested. * failing test * fixed cannonicalsubscription.equals for email * final cleanup
- Loading branch information
1 parent
3e98c3a
commit 9a54d70
Showing
7 changed files
with
135 additions
and
13 deletions.
There are no files selected for viewing
Empty file modified
0
...-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/subscription/IResourceModifiedConsumer.java
100644 → 100755
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
...ion/src/main/java/ca/uhn/fhir/jpa/subscription/module/config/SubscriptionDstu2Config.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
package ca.uhn.fhir.jpa.subscription.module.config; | ||
|
||
/*- | ||
* #%L | ||
* HAPI FHIR Subscription Server | ||
* %% | ||
* Copyright (C) 2014 - 2019 University Health Network | ||
* %% | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* #L% | ||
*/ | ||
|
||
import ca.uhn.fhir.context.FhirContext; | ||
import ca.uhn.fhir.context.ParserOptions; | ||
import ca.uhn.fhir.jpa.searchparam.extractor.SearchParamExtractorDstu2; | ||
import ca.uhn.fhir.jpa.searchparam.registry.ISearchParamRegistry; | ||
import ca.uhn.fhir.jpa.searchparam.registry.SearchParamRegistryDstu2; | ||
import org.hl7.fhir.instance.hapi.validation.DefaultProfileValidationSupport; | ||
import org.hl7.fhir.instance.hapi.validation.IValidationSupport; | ||
import org.springframework.beans.factory.annotation.Autowire; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Primary; | ||
|
||
public class SubscriptionDstu2Config extends BaseSubscriptionConfig { | ||
@Override | ||
public FhirContext fhirContext() { | ||
return fhirContextDstu2(); | ||
} | ||
|
||
@Bean | ||
@Primary | ||
public FhirContext fhirContextDstu2() { | ||
FhirContext retVal = FhirContext.forDstu2(); | ||
|
||
// Don't strip versions in some places | ||
ParserOptions parserOptions = retVal.getParserOptions(); | ||
parserOptions.setDontStripVersionsFromReferencesAtPaths("AuditEvent.entity.reference"); | ||
|
||
return retVal; | ||
} | ||
|
||
@Bean | ||
public ISearchParamRegistry searchParamRegistry() { | ||
return new SearchParamRegistryDstu2(); | ||
} | ||
|
||
@Bean(autowire = Autowire.BY_TYPE) | ||
public SearchParamExtractorDstu2 searchParamExtractor() { | ||
return new SearchParamExtractorDstu2(); | ||
} | ||
|
||
@Primary | ||
@Bean(autowire = Autowire.BY_NAME, name = "myJpaValidationSupportChainDstu2") | ||
public IValidationSupport validationSupportChainDstu2() { | ||
return new DefaultProfileValidationSupport(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters