Merge branch 'master' into ft-fix-expend-filter-contains-issue
This commit is contained in:
commit
5b471602c6
|
@ -80,7 +80,7 @@ ca.uhn.fhir.jpa.dao.BaseHapiFhirDao.invalidMatchUrlMultipleMatches=Invalid match
|
||||||
ca.uhn.fhir.jpa.dao.BaseHapiFhirDao.transactionOperationWithMultipleMatchFailure=Failed to {0} resource with match URL "{1}" because this search matched {2} resources
|
ca.uhn.fhir.jpa.dao.BaseHapiFhirDao.transactionOperationWithMultipleMatchFailure=Failed to {0} resource with match URL "{1}" because this search matched {2} resources
|
||||||
ca.uhn.fhir.jpa.dao.BaseHapiFhirDao.transactionOperationFailedNoId=Failed to {0} resource in transaction because no ID was provided
|
ca.uhn.fhir.jpa.dao.BaseHapiFhirDao.transactionOperationFailedNoId=Failed to {0} resource in transaction because no ID was provided
|
||||||
ca.uhn.fhir.jpa.dao.BaseHapiFhirDao.transactionOperationFailedUnknownId=Failed to {0} resource in transaction because no resource could be found with ID {1}
|
ca.uhn.fhir.jpa.dao.BaseHapiFhirDao.transactionOperationFailedUnknownId=Failed to {0} resource in transaction because no resource could be found with ID {1}
|
||||||
ca.uhn.fhir.jpa.dao.BaseHapiFhirDao.uniqueIndexConflictFailure=Can not create resource of type {0} as it would create a duplicate index matching query: {1} (existing index belongs to {2})
|
ca.uhn.fhir.jpa.dao.BaseHapiFhirDao.uniqueIndexConflictFailure=Can not create resource of type {0} as it would create a duplicate unique index matching query: {1} (existing index belongs to {2}, new unique index created by {3})
|
||||||
|
|
||||||
ca.uhn.fhir.jpa.dao.BaseHapiFhirSystemDao.transactionContainsMultipleWithDuplicateId=Transaction bundle contains multiple resources with ID: {0}
|
ca.uhn.fhir.jpa.dao.BaseHapiFhirSystemDao.transactionContainsMultipleWithDuplicateId=Transaction bundle contains multiple resources with ID: {0}
|
||||||
ca.uhn.fhir.jpa.dao.BaseHapiFhirSystemDao.transactionEntryHasInvalidVerb=Transaction bundle entry has missing or invalid HTTP Verb specified in Bundle.entry({1}).request.method. Found value: "{0}"
|
ca.uhn.fhir.jpa.dao.BaseHapiFhirSystemDao.transactionEntryHasInvalidVerb=Transaction bundle entry has missing or invalid HTTP Verb specified in Bundle.entry({1}).request.method. Found value: "{0}"
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
type: fix
|
||||||
|
issue: 2180
|
||||||
|
title: "Loading a package without a description was causing a null pointer exception. This has been fixed."
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
type: add
|
||||||
|
issue: 2182
|
||||||
|
title: "When a unique index SearchParametr violation is blocked, the error message will now include the ID of the relevant
|
||||||
|
SearchParameter, in order to make troubleshooting easier."
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
type: fix
|
||||||
|
issue: 2183
|
||||||
|
title: "The `CodeSystem/$subsumes` operation inadvertantly reversed the meanings of the CodeA and CodeB parameters, resulting
|
||||||
|
in `subsumes` and `subsumed-by` responses being reversed. This has been corrected. Thanks to Rob Hausam for reporting!"
|
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
- item:
|
||||||
|
type: "add"
|
||||||
|
title: "The version of a few dependencies have been bumped to the latest versions
|
||||||
|
(dependent HAPI modules listed in brackets):
|
||||||
|
<ul>
|
||||||
|
<li>Jetty (JPA Starter): 9.4.30.v20200611 -> 9.4.34.v20201102</li>
|
||||||
|
</ul>"
|
|
@ -206,7 +206,7 @@ public class SearchParamWithInlineReferencesExtractor {
|
||||||
for (String nextQueryString : queryStringsToPopulate) {
|
for (String nextQueryString : queryStringsToPopulate) {
|
||||||
if (isNotBlank(nextQueryString)) {
|
if (isNotBlank(nextQueryString)) {
|
||||||
ourLog.trace("Adding composite unique SP: {}", nextQueryString);
|
ourLog.trace("Adding composite unique SP: {}", nextQueryString);
|
||||||
theParams.myCompositeStringUniques.add(new ResourceIndexedCompositeStringUnique(theEntity, nextQueryString));
|
theParams.myCompositeStringUniques.add(new ResourceIndexedCompositeStringUnique(theEntity, nextQueryString, next.getId()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -289,7 +289,13 @@ public class SearchParamWithInlineReferencesExtractor {
|
||||||
if (myDaoConfig.isUniqueIndexesCheckedBeforeSave()) {
|
if (myDaoConfig.isUniqueIndexesCheckedBeforeSave()) {
|
||||||
ResourceIndexedCompositeStringUnique existing = myResourceIndexedCompositeStringUniqueDao.findByQueryString(next.getIndexString());
|
ResourceIndexedCompositeStringUnique existing = myResourceIndexedCompositeStringUniqueDao.findByQueryString(next.getIndexString());
|
||||||
if (existing != null) {
|
if (existing != null) {
|
||||||
String msg = myContext.getLocalizer().getMessage(BaseHapiFhirDao.class, "uniqueIndexConflictFailure", theEntity.getResourceType(), next.getIndexString(), existing.getResource().getIdDt().toUnqualifiedVersionless().getValue());
|
|
||||||
|
String searchParameterId = "(unknown)";
|
||||||
|
if (next.getSearchParameterId() != null) {
|
||||||
|
searchParameterId = next.getSearchParameterId().toUnqualifiedVersionless().getValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
String msg = myContext.getLocalizer().getMessage(BaseHapiFhirDao.class, "uniqueIndexConflictFailure", theEntity.getResourceType(), next.getIndexString(), existing.getResource().getIdDt().toUnqualifiedVersionless().getValue(), searchParameterId);
|
||||||
throw new PreconditionFailedException(msg);
|
throw new PreconditionFailedException(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -217,11 +217,13 @@ public class JpaPackageCache extends BasePackageCacheManager implements IHapiPac
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean currentVersion = updateCurrentVersionFlagForAllPackagesBasedOnNewIncomingVersion(thePackageId, packageVersionId);
|
boolean currentVersion = updateCurrentVersionFlagForAllPackagesBasedOnNewIncomingVersion(thePackageId, packageVersionId);
|
||||||
String packageDesc;
|
String packageDesc = null;
|
||||||
if (npmPackage.description().length() > NpmPackageVersionEntity.PACKAGE_DESC_LENGTH) {
|
if (npmPackage.description() != null) {
|
||||||
packageDesc = npmPackage.description().substring(0, NpmPackageVersionEntity.PACKAGE_DESC_LENGTH - 4) + "...";
|
if (npmPackage.description().length() > NpmPackageVersionEntity.PACKAGE_DESC_LENGTH) {
|
||||||
} else {
|
packageDesc = npmPackage.description().substring(0, NpmPackageVersionEntity.PACKAGE_DESC_LENGTH - 4) + "...";
|
||||||
packageDesc = npmPackage.description();
|
} else {
|
||||||
|
packageDesc = npmPackage.description();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (currentVersion) {
|
if (currentVersion) {
|
||||||
getProcessingMessages(npmPackage).add("Marking package " + thePackageId + "#" + thePackageVersionId + " as current version");
|
getProcessingMessages(npmPackage).add("Marking package " + thePackageId + "#" + thePackageVersionId + " as current version");
|
||||||
|
|
|
@ -2079,12 +2079,12 @@ public abstract class BaseTermReadSvcImpl implements ITermReadSvc {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private @Nullable
|
@Nullable
|
||||||
ConceptSubsumptionOutcome testForSubsumption(FullTextEntityManager theEntityManager, TermConcept theLeft, TermConcept theRight, ConceptSubsumptionOutcome theOutput) {
|
private ConceptSubsumptionOutcome testForSubsumption(FullTextEntityManager theEntityManager, TermConcept theLeft, TermConcept theRight, ConceptSubsumptionOutcome theOutput) {
|
||||||
QueryBuilder qb = theEntityManager.getSearchFactory().buildQueryBuilder().forEntity(TermConcept.class).get();
|
QueryBuilder qb = theEntityManager.getSearchFactory().buildQueryBuilder().forEntity(TermConcept.class).get();
|
||||||
BooleanJunction<?> bool = qb.bool();
|
BooleanJunction<?> bool = qb.bool();
|
||||||
bool.must(qb.keyword().onField("myId").matching(Long.toString(theLeft.getId())).createQuery());
|
bool.must(qb.keyword().onField("myId").matching(Long.toString(theRight.getId())).createQuery());
|
||||||
bool.must(qb.keyword().onField("myParentPids").matching(Long.toString(theRight.getId())).createQuery());
|
bool.must(qb.keyword().onField("myParentPids").matching(Long.toString(theLeft.getId())).createQuery());
|
||||||
Query luceneQuery = bool.createQuery();
|
Query luceneQuery = bool.createQuery();
|
||||||
FullTextQuery jpaQuery = theEntityManager.createFullTextQuery(luceneQuery, TermConcept.class);
|
FullTextQuery jpaQuery = theEntityManager.createFullTextQuery(luceneQuery, TermConcept.class);
|
||||||
jpaQuery.setMaxResults(1);
|
jpaQuery.setMaxResults(1);
|
||||||
|
|
|
@ -139,7 +139,7 @@ public class FhirResourceDaoR4ConcurrentWriteTest extends BaseJpaR4Test {
|
||||||
myPatientDao.create(p);
|
myPatientDao.create(p);
|
||||||
} catch (PreconditionFailedException e) {
|
} catch (PreconditionFailedException e) {
|
||||||
// expected - This is as a result of the unique SP
|
// expected - This is as a result of the unique SP
|
||||||
assertThat(e.getMessage(), containsString("duplicate index matching query: Patient?gender=http%3A%2F%2Fhl7.org%2Ffhir%2Fadministrative-gender%7Cmale"));
|
assertThat(e.getMessage(), containsString("duplicate unique index matching query: Patient?gender=http%3A%2F%2Fhl7.org%2Ffhir%2Fadministrative-gender%7Cmale"));
|
||||||
} catch (ResourceVersionConflictException e) {
|
} catch (ResourceVersionConflictException e) {
|
||||||
// expected - This is as a result of the unique SP
|
// expected - This is as a result of the unique SP
|
||||||
assertThat(e.getMessage(), containsString("would have resulted in a duplicate value for a unique index"));
|
assertThat(e.getMessage(), containsString("would have resulted in a duplicate value for a unique index"));
|
||||||
|
|
|
@ -803,7 +803,7 @@ public class FhirResourceDaoR4UniqueSearchParamTest extends BaseJpaR4Test {
|
||||||
myPatientDao.create(pt1).getId().toUnqualifiedVersionless();
|
myPatientDao.create(pt1).getId().toUnqualifiedVersionless();
|
||||||
fail();
|
fail();
|
||||||
} catch (PreconditionFailedException e) {
|
} catch (PreconditionFailedException e) {
|
||||||
assertEquals("Can not create resource of type Patient as it would create a duplicate index matching query: Patient?birthdate=2011-01-01&gender=http%3A%2F%2Fhl7.org%2Ffhir%2Fadministrative-gender%7Cmale (existing index belongs to Patient/" + id1.getIdPart() + ")", e.getMessage());
|
assertEquals("Can not create resource of type Patient as it would create a duplicate unique index matching query: Patient?birthdate=2011-01-01&gender=http%3A%2F%2Fhl7.org%2Ffhir%2Fadministrative-gender%7Cmale (existing index belongs to Patient/" + id1.getIdPart() + ", new unique index created by SearchParameter/patient-gender-birthdate)", e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1510,7 +1510,7 @@ public class FhirResourceDaoR4UniqueSearchParamTest extends BaseJpaR4Test {
|
||||||
myPatientDao.create(pt1).getId().toUnqualifiedVersionless();
|
myPatientDao.create(pt1).getId().toUnqualifiedVersionless();
|
||||||
fail();
|
fail();
|
||||||
} catch (PreconditionFailedException e) {
|
} catch (PreconditionFailedException e) {
|
||||||
// good
|
assertThat(e.getMessage(), containsString("new unique index created by SearchParameter/patient-gender-birthdate"));
|
||||||
}
|
}
|
||||||
|
|
||||||
Patient pt2 = new Patient();
|
Patient pt2 = new Patient();
|
||||||
|
@ -1525,7 +1525,7 @@ public class FhirResourceDaoR4UniqueSearchParamTest extends BaseJpaR4Test {
|
||||||
myPatientDao.update(pt2);
|
myPatientDao.update(pt2);
|
||||||
fail();
|
fail();
|
||||||
} catch (PreconditionFailedException e) {
|
} catch (PreconditionFailedException e) {
|
||||||
// good
|
assertThat(e.getMessage(), containsString("new unique index created by SearchParameter/patient-gender-birthdate"));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ public class IgInstallerDstu3Test extends BaseJpaDstu3Test {
|
||||||
@Autowired
|
@Autowired
|
||||||
private IPackageCacheManager myPackageCacheManager;
|
private IPackageCacheManager myPackageCacheManager;
|
||||||
private Server myServer;
|
private Server myServer;
|
||||||
private NpmTestR4.FakeNpmServlet myFakeNpmServlet;
|
private NpmR4Test.FakeNpmServlet myFakeNpmServlet;
|
||||||
@Autowired
|
@Autowired
|
||||||
private INpmPackageVersionDao myPackageVersionDao;
|
private INpmPackageVersionDao myPackageVersionDao;
|
||||||
private int myPort;
|
private int myPort;
|
||||||
|
@ -50,7 +50,7 @@ public class IgInstallerDstu3Test extends BaseJpaDstu3Test {
|
||||||
|
|
||||||
myServer = new Server(0);
|
myServer = new Server(0);
|
||||||
ServletHandler proxyHandler = new ServletHandler();
|
ServletHandler proxyHandler = new ServletHandler();
|
||||||
myFakeNpmServlet = new NpmTestR4.FakeNpmServlet();
|
myFakeNpmServlet = new NpmR4Test.FakeNpmServlet();
|
||||||
ServletHolder servletHolder = new ServletHolder(myFakeNpmServlet);
|
ServletHolder servletHolder = new ServletHolder(myFakeNpmServlet);
|
||||||
proxyHandler.addServletWithMapping(servletHolder, "/*");
|
proxyHandler.addServletWithMapping(servletHolder, "/*");
|
||||||
myServer.setHandler(proxyHandler);
|
myServer.setHandler(proxyHandler);
|
||||||
|
|
|
@ -31,7 +31,7 @@ import java.util.Map;
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
import static org.junit.jupiter.api.Assertions.fail;
|
import static org.junit.jupiter.api.Assertions.fail;
|
||||||
|
|
||||||
public class NpmTestDstu3 extends BaseJpaDstu3Test {
|
public class NpmDstu3Test extends BaseJpaDstu3Test {
|
||||||
|
|
||||||
private static final Logger ourLog = LoggerFactory.getLogger(FakeNpmServlet.class);
|
private static final Logger ourLog = LoggerFactory.getLogger(FakeNpmServlet.class);
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -99,7 +99,7 @@ public class NpmTestDstu3 extends BaseJpaDstu3Test {
|
||||||
ourLog.info("Fail Outcome: {}", myFhirCtx.newJsonParser().setPrettyPrint(true).encodeResourceToString(e.getOperationOutcome()));
|
ourLog.info("Fail Outcome: {}", myFhirCtx.newJsonParser().setPrettyPrint(true).encodeResourceToString(e.getOperationOutcome()));
|
||||||
|
|
||||||
OperationOutcome oo = (OperationOutcome) e.getOperationOutcome();
|
OperationOutcome oo = (OperationOutcome) e.getOperationOutcome();
|
||||||
assertEquals("Profile http://fhir.de/StructureDefinition/condition-de-basis/0.2, Element 'Condition.subject': minimum required = 1, but only found 0", oo.getIssueFirstRep().getDiagnostics());
|
assertEquals("Condition.subject: minimum required = 1, but only found 0 (from http://fhir.de/StructureDefinition/condition-de-basis/0.2)", oo.getIssueFirstRep().getDiagnostics());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -64,9 +64,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
import static org.junit.jupiter.api.Assertions.assertNull;
|
import static org.junit.jupiter.api.Assertions.assertNull;
|
||||||
import static org.junit.jupiter.api.Assertions.fail;
|
import static org.junit.jupiter.api.Assertions.fail;
|
||||||
|
|
||||||
public class NpmTestR4 extends BaseJpaR4Test {
|
public class NpmR4Test extends BaseJpaR4Test {
|
||||||
|
|
||||||
private static final Logger ourLog = LoggerFactory.getLogger(NpmTestR4.class);
|
private static final Logger ourLog = LoggerFactory.getLogger(NpmR4Test.class);
|
||||||
@Autowired
|
@Autowired
|
||||||
public IPackageInstallerSvc igInstaller;
|
public IPackageInstallerSvc igInstaller;
|
||||||
@Autowired
|
@Autowired
|
|
@ -19,9 +19,9 @@ import java.util.stream.Collectors;
|
||||||
import static org.hamcrest.MatcherAssert.assertThat;
|
import static org.hamcrest.MatcherAssert.assertThat;
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
public class NpmSearchTestR4 extends BaseJpaR4Test {
|
public class NpmSearchR4Test extends BaseJpaR4Test {
|
||||||
|
|
||||||
private static final Logger ourLog = LoggerFactory.getLogger(NpmSearchTestR4.class);
|
private static final Logger ourLog = LoggerFactory.getLogger(NpmSearchR4Test.class);
|
||||||
@Autowired
|
@Autowired
|
||||||
public IPackageInstallerSvc igInstaller;
|
public IPackageInstallerSvc igInstaller;
|
||||||
@Autowired
|
@Autowired
|
|
@ -423,8 +423,8 @@ public class ResourceProviderDstu3CodeSystemVersionedTest extends BaseResourcePr
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codeA", new CodeType("ParentB"))
|
.withParameter(Parameters.class, "codeA", new CodeType("ParentA"))
|
||||||
.andParameter("codeB", new CodeType("ParentA"))
|
.andParameter("codeB", new CodeType("ParentB"))
|
||||||
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
|
@ -440,8 +440,8 @@ public class ResourceProviderDstu3CodeSystemVersionedTest extends BaseResourcePr
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codeA", new CodeType("ParentC"))
|
.withParameter(Parameters.class, "codeA", new CodeType("ParentA"))
|
||||||
.andParameter("codeB", new CodeType("ParentA"))
|
.andParameter("codeB", new CodeType("ParentC"))
|
||||||
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
||||||
.andParameter("version", new StringType("1"))
|
.andParameter("version", new StringType("1"))
|
||||||
.execute();
|
.execute();
|
||||||
|
@ -458,8 +458,8 @@ public class ResourceProviderDstu3CodeSystemVersionedTest extends BaseResourcePr
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codeA", new CodeType("ParentB"))
|
.withParameter(Parameters.class, "codeA", new CodeType("ParentA"))
|
||||||
.andParameter("codeB", new CodeType("ParentA"))
|
.andParameter("codeB", new CodeType("ParentB"))
|
||||||
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
||||||
.andParameter("version", new StringType("2"))
|
.andParameter("version", new StringType("2"))
|
||||||
.execute();
|
.execute();
|
||||||
|
@ -480,8 +480,8 @@ public class ResourceProviderDstu3CodeSystemVersionedTest extends BaseResourcePr
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codeA", new CodeType("ParentA"))
|
.withParameter(Parameters.class, "codeA", new CodeType("ParentB"))
|
||||||
.andParameter("codeB", new CodeType("ParentB"))
|
.andParameter("codeB", new CodeType("ParentA"))
|
||||||
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
|
@ -497,8 +497,8 @@ public class ResourceProviderDstu3CodeSystemVersionedTest extends BaseResourcePr
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codeA", new CodeType("ParentA"))
|
.withParameter(Parameters.class, "codeA", new CodeType("ParentC"))
|
||||||
.andParameter("codeB", new CodeType("ParentC"))
|
.andParameter("codeB", new CodeType("ParentA"))
|
||||||
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
||||||
.andParameter("version", new StringType("1"))
|
.andParameter("version", new StringType("1"))
|
||||||
.execute();
|
.execute();
|
||||||
|
@ -515,8 +515,8 @@ public class ResourceProviderDstu3CodeSystemVersionedTest extends BaseResourcePr
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codeA", new CodeType("ParentA"))
|
.withParameter(Parameters.class, "codeA", new CodeType("ParentB"))
|
||||||
.andParameter("codeB", new CodeType("ParentB"))
|
.andParameter("codeB", new CodeType("ParentA"))
|
||||||
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
||||||
.andParameter("version", new StringType("2"))
|
.andParameter("version", new StringType("2"))
|
||||||
.execute();
|
.execute();
|
||||||
|
@ -610,8 +610,8 @@ public class ResourceProviderDstu3CodeSystemVersionedTest extends BaseResourcePr
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentB"))
|
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA"))
|
||||||
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA"))
|
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentB"))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
String resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
String resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
||||||
|
@ -626,8 +626,8 @@ public class ResourceProviderDstu3CodeSystemVersionedTest extends BaseResourcePr
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentC").setVersion("1"))
|
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA").setVersion("1"))
|
||||||
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA").setVersion("1"))
|
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentC").setVersion("1"))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
||||||
|
@ -642,8 +642,8 @@ public class ResourceProviderDstu3CodeSystemVersionedTest extends BaseResourcePr
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentB").setVersion("2"))
|
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA").setVersion("2"))
|
||||||
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA").setVersion("2"))
|
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentB").setVersion("2"))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
||||||
|
@ -663,8 +663,8 @@ public class ResourceProviderDstu3CodeSystemVersionedTest extends BaseResourcePr
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA"))
|
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentB"))
|
||||||
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentB"))
|
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA"))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
String resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
String resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
||||||
|
@ -679,8 +679,8 @@ public class ResourceProviderDstu3CodeSystemVersionedTest extends BaseResourcePr
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA").setVersion("1"))
|
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentC").setVersion("1"))
|
||||||
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentC").setVersion("1"))
|
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA").setVersion("1"))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
||||||
|
@ -695,8 +695,8 @@ public class ResourceProviderDstu3CodeSystemVersionedTest extends BaseResourcePr
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA").setVersion("2"))
|
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentB").setVersion("2"))
|
||||||
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentB").setVersion("2"))
|
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA").setVersion("2"))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
||||||
|
|
|
@ -274,8 +274,8 @@ public class ResourceProviderR4CodeSystemTest extends BaseResourceProviderR4Test
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codeA", new CodeType("ChildAA"))
|
.withParameter(Parameters.class, "codeA", new CodeType("ParentA"))
|
||||||
.andParameter("codeB", new CodeType("ParentA"))
|
.andParameter("codeB", new CodeType("ChildAA"))
|
||||||
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
|
@ -294,8 +294,8 @@ public class ResourceProviderR4CodeSystemTest extends BaseResourceProviderR4Test
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codeA", new CodeType("ParentA"))
|
.withParameter(Parameters.class, "codeA", new CodeType("ChildAA"))
|
||||||
.andParameter("codeB", new CodeType("ChildAA"))
|
.andParameter("codeB", new CodeType("ParentA"))
|
||||||
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
|
@ -381,8 +381,8 @@ public class ResourceProviderR4CodeSystemTest extends BaseResourceProviderR4Test
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ChildAA"))
|
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA"))
|
||||||
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA"))
|
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ChildAA"))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
String resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
String resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
||||||
|
@ -400,8 +400,8 @@ public class ResourceProviderR4CodeSystemTest extends BaseResourceProviderR4Test
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA"))
|
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ChildAA"))
|
||||||
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ChildAA"))
|
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA"))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
String resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
String resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
||||||
|
|
|
@ -445,8 +445,8 @@ public class ResourceProviderR4CodeSystemVersionedTest extends BaseResourceProvi
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codeA", new CodeType("ParentB"))
|
.withParameter(Parameters.class, "codeA", new CodeType("ParentA"))
|
||||||
.andParameter("codeB", new CodeType("ParentA"))
|
.andParameter("codeB", new CodeType("ParentB"))
|
||||||
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
|
@ -462,8 +462,8 @@ public class ResourceProviderR4CodeSystemVersionedTest extends BaseResourceProvi
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codeA", new CodeType("ParentC"))
|
.withParameter(Parameters.class, "codeA", new CodeType("ParentA"))
|
||||||
.andParameter("codeB", new CodeType("ParentA"))
|
.andParameter("codeB", new CodeType("ParentC"))
|
||||||
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
||||||
.andParameter("version", new StringType("1"))
|
.andParameter("version", new StringType("1"))
|
||||||
.execute();
|
.execute();
|
||||||
|
@ -480,8 +480,8 @@ public class ResourceProviderR4CodeSystemVersionedTest extends BaseResourceProvi
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codeA", new CodeType("ParentB"))
|
.withParameter(Parameters.class, "codeA", new CodeType("ParentA"))
|
||||||
.andParameter("codeB", new CodeType("ParentA"))
|
.andParameter("codeB", new CodeType("ParentB"))
|
||||||
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
||||||
.andParameter("version", new StringType("2"))
|
.andParameter("version", new StringType("2"))
|
||||||
.execute();
|
.execute();
|
||||||
|
@ -502,8 +502,8 @@ public class ResourceProviderR4CodeSystemVersionedTest extends BaseResourceProvi
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codeA", new CodeType("ParentA"))
|
.withParameter(Parameters.class, "codeA", new CodeType("ParentB"))
|
||||||
.andParameter("codeB", new CodeType("ParentB"))
|
.andParameter("codeB", new CodeType("ParentA"))
|
||||||
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
|
@ -519,8 +519,8 @@ public class ResourceProviderR4CodeSystemVersionedTest extends BaseResourceProvi
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codeA", new CodeType("ParentA"))
|
.withParameter(Parameters.class, "codeA", new CodeType("ParentC"))
|
||||||
.andParameter("codeB", new CodeType("ParentC"))
|
.andParameter("codeB", new CodeType("ParentA"))
|
||||||
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
||||||
.andParameter("version", new StringType("1"))
|
.andParameter("version", new StringType("1"))
|
||||||
.execute();
|
.execute();
|
||||||
|
@ -537,8 +537,8 @@ public class ResourceProviderR4CodeSystemVersionedTest extends BaseResourceProvi
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codeA", new CodeType("ParentA"))
|
.withParameter(Parameters.class, "codeA", new CodeType("ParentB"))
|
||||||
.andParameter("codeB", new CodeType("ParentB"))
|
.andParameter("codeB", new CodeType("ParentA"))
|
||||||
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
||||||
.andParameter("version", new StringType("2"))
|
.andParameter("version", new StringType("2"))
|
||||||
.execute();
|
.execute();
|
||||||
|
@ -632,8 +632,8 @@ public class ResourceProviderR4CodeSystemVersionedTest extends BaseResourceProvi
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentB"))
|
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA"))
|
||||||
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA"))
|
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentB"))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
String resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
String resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
||||||
|
@ -648,8 +648,8 @@ public class ResourceProviderR4CodeSystemVersionedTest extends BaseResourceProvi
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentC").setVersion("1"))
|
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA").setVersion("1"))
|
||||||
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA").setVersion("1"))
|
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentC").setVersion("1"))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
||||||
|
@ -664,8 +664,8 @@ public class ResourceProviderR4CodeSystemVersionedTest extends BaseResourceProvi
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentB").setVersion("2"))
|
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA").setVersion("2"))
|
||||||
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA").setVersion("2"))
|
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentB").setVersion("2"))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
||||||
|
@ -685,8 +685,8 @@ public class ResourceProviderR4CodeSystemVersionedTest extends BaseResourceProvi
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA"))
|
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentB"))
|
||||||
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentB"))
|
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA"))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
String resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
String resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
||||||
|
@ -701,8 +701,8 @@ public class ResourceProviderR4CodeSystemVersionedTest extends BaseResourceProvi
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA").setVersion("1"))
|
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentC").setVersion("1"))
|
||||||
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentC").setVersion("1"))
|
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA").setVersion("1"))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
||||||
|
@ -717,8 +717,8 @@ public class ResourceProviderR4CodeSystemVersionedTest extends BaseResourceProvi
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA").setVersion("2"))
|
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentB").setVersion("2"))
|
||||||
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentB").setVersion("2"))
|
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA").setVersion("2"))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
||||||
|
|
|
@ -102,8 +102,8 @@ public class ResourceProviderR5CodeSystemTest extends BaseResourceProviderR5Test
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codeA", new CodeType("ChildAA"))
|
.withParameter(Parameters.class, "codeA", new CodeType("ParentA"))
|
||||||
.andParameter("codeB", new CodeType("ParentA"))
|
.andParameter("codeB", new CodeType("ChildAA"))
|
||||||
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
|
@ -121,8 +121,8 @@ public class ResourceProviderR5CodeSystemTest extends BaseResourceProviderR5Test
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ChildAA"))
|
.withParameter(Parameters.class, "codingA", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA"))
|
||||||
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ParentA"))
|
.andParameter("codingB", new Coding().setSystem(SYSTEM_PARENTCHILD).setCode("ChildAA"))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
String resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
String resp = myFhirCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(respParam);
|
||||||
|
|
|
@ -220,8 +220,8 @@ public class ResourceProviderR5CodeSystemVersionedTest extends BaseResourceProvi
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codeA", new CodeType("ParentB"))
|
.withParameter(Parameters.class, "codeA", new CodeType("ParentA"))
|
||||||
.andParameter("codeB", new CodeType("ParentA"))
|
.andParameter("codeB", new CodeType("ParentB"))
|
||||||
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
|
@ -237,8 +237,8 @@ public class ResourceProviderR5CodeSystemVersionedTest extends BaseResourceProvi
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codeA", new CodeType("ParentC"))
|
.withParameter(Parameters.class, "codeA", new CodeType("ParentA"))
|
||||||
.andParameter("codeB", new CodeType("ParentA"))
|
.andParameter("codeB", new CodeType("ParentC"))
|
||||||
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
||||||
.andParameter("version", new StringType("1"))
|
.andParameter("version", new StringType("1"))
|
||||||
.execute();
|
.execute();
|
||||||
|
@ -255,8 +255,8 @@ public class ResourceProviderR5CodeSystemVersionedTest extends BaseResourceProvi
|
||||||
.operation()
|
.operation()
|
||||||
.onType(CodeSystem.class)
|
.onType(CodeSystem.class)
|
||||||
.named(JpaConstants.OPERATION_SUBSUMES)
|
.named(JpaConstants.OPERATION_SUBSUMES)
|
||||||
.withParameter(Parameters.class, "codeA", new CodeType("ParentB"))
|
.withParameter(Parameters.class, "codeA", new CodeType("ParentA"))
|
||||||
.andParameter("codeB", new CodeType("ParentA"))
|
.andParameter("codeB", new CodeType("ParentB"))
|
||||||
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
.andParameter("system", new UriType(SYSTEM_PARENTCHILD))
|
||||||
.andParameter("version", new StringType("2"))
|
.andParameter("version", new StringType("2"))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
|
@ -26,6 +26,7 @@ import org.apache.commons.lang3.builder.EqualsBuilder;
|
||||||
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import org.hl7.fhir.instance.model.api.IIdType;
|
||||||
|
|
||||||
import javax.persistence.*;
|
import javax.persistence.*;
|
||||||
|
|
||||||
|
@ -59,6 +60,8 @@ public class ResourceIndexedCompositeStringUnique extends BasePartitionable impl
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
@Column(name = PartitionablePartitionId.PARTITION_ID, insertable = false, updatable = false, nullable = true)
|
@Column(name = PartitionablePartitionId.PARTITION_ID, insertable = false, updatable = false, nullable = true)
|
||||||
private Integer myPartitionIdValue;
|
private Integer myPartitionIdValue;
|
||||||
|
@Transient
|
||||||
|
private IIdType mySearchParameterId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
@ -70,10 +73,11 @@ public class ResourceIndexedCompositeStringUnique extends BasePartitionable impl
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*/
|
*/
|
||||||
public ResourceIndexedCompositeStringUnique(ResourceTable theResource, String theIndexString) {
|
public ResourceIndexedCompositeStringUnique(ResourceTable theResource, String theIndexString, IIdType theSearchParameterId) {
|
||||||
setResource(theResource);
|
setResource(theResource);
|
||||||
setIndexString(theIndexString);
|
setIndexString(theIndexString);
|
||||||
setPartitionId(theResource.getPartitionId());
|
setPartitionId(theResource.getPartitionId());
|
||||||
|
setSearchParameterId(theSearchParameterId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -131,4 +135,18 @@ public class ResourceIndexedCompositeStringUnique extends BasePartitionable impl
|
||||||
.append("partition", getPartitionId())
|
.append("partition", getPartitionId())
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Note: This field is not persisted, so it will only be populated for new indexes
|
||||||
|
*/
|
||||||
|
public void setSearchParameterId(IIdType theSearchParameterId) {
|
||||||
|
mySearchParameterId = theSearchParameterId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Note: This field is not persisted, so it will only be populated for new indexes
|
||||||
|
*/
|
||||||
|
public IIdType getSearchParameterId() {
|
||||||
|
return mySearchParameterId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -733,7 +733,7 @@
|
||||||
<jena_version>3.16.0</jena_version>
|
<jena_version>3.16.0</jena_version>
|
||||||
<jersey_version>2.25.1</jersey_version>
|
<jersey_version>2.25.1</jersey_version>
|
||||||
<!-- 9.4.17 seems to have issues -->
|
<!-- 9.4.17 seems to have issues -->
|
||||||
<jetty_version>9.4.30.v20200611</jetty_version>
|
<jetty_version>9.4.34.v20201102</jetty_version>
|
||||||
<jsr305_version>3.0.2</jsr305_version>
|
<jsr305_version>3.0.2</jsr305_version>
|
||||||
<junit_version>5.6.2</junit_version>
|
<junit_version>5.6.2</junit_version>
|
||||||
<flyway_version>6.5.4</flyway_version>
|
<flyway_version>6.5.4</flyway_version>
|
||||||
|
|
Loading…
Reference in New Issue