fix bug processing CDA snapshots

This commit is contained in:
Grahame Grieve 2023-09-14 19:29:50 -07:00
parent fada7b2f50
commit 906c7dea45
2 changed files with 2 additions and 2 deletions

View File

@ -1160,7 +1160,7 @@ public class ProfilePathProcessor {
throw new DefinitionException(profileUtilities.getContext().formatMessage(I18nConstants._HAS_CHILDREN__AND_MULTIPLE_TYPES__IN_PROFILE_, diffMatches.get(0).getPath(), getDifferential().getElement().get(cursors.diffCursor).getPath(), profileUtilities.typeCode(outcome.getType()), getProfileName()));
}
ElementDefinition.TypeRefComponent t = outcome.getType().get(0);
if (t.getCode().equals("BackboneElement")) {
if (Utilities.existsInList(t.getCode(), "Base", "Element", "BackboneElement")) {
int baseStart = cursors.base.getElement().indexOf(currentBase) + 1;
int baseMax = baseStart + 1;
while (baseMax < cursors.base.getElement().size() && cursors.base.getElement().get(baseMax).getPath().startsWith(currentBase.getPath() + "."))

View File

@ -20,7 +20,7 @@
<properties>
<guava_version>32.0.1-jre</guava_version>
<hapi_fhir_version>6.4.1</hapi_fhir_version>
<validator_test_case_version>1.4.3</validator_test_case_version>
<validator_test_case_version>1.4.4-SNAPSHOT</validator_test_case_version>
<jackson_version>2.15.2</jackson_version>
<junit_jupiter_version>5.9.2</junit_jupiter_version>
<junit_platform_launcher_version>1.8.2</junit_platform_launcher_version>