render reference identifier if there is one

This commit is contained in:
Grahame Grieve 2023-07-07 05:01:16 +10:00
parent b46f968665
commit 9a48340b6c
2 changed files with 14 additions and 2 deletions

View File

@ -250,7 +250,13 @@ public abstract class ResourceRenderer extends DataRenderer {
String name = tr != null && tr.getResource() != null ? tr.getResource().getNameFromResource() : null; String name = tr != null && tr.getResource() != null ? tr.getResource().getNameFromResource() : null;
if (display == null && (tr == null || tr.getResource() == null)) { if (display == null && (tr == null || tr.getResource() == null)) {
c.addText(r.getReference()); if (!Utilities.noString(r.getReference())) {
c.addText(r.getReference());
} else if (r.hasIdentifier()) {
renderIdentifier(c, r.getIdentifier());
} else {
c.addText("??");
}
} else if (context.isTechnicalMode()) { } else if (context.isTechnicalMode()) {
c.addText(r.getReference()); c.addText(r.getReference());
if (display != null) { if (display != null) {

View File

@ -20,7 +20,7 @@
<properties> <properties>
<guava_version>32.0.1-jre</guava_version> <guava_version>32.0.1-jre</guava_version>
<hapi_fhir_version>6.4.1</hapi_fhir_version> <hapi_fhir_version>6.4.1</hapi_fhir_version>
<validator_test_case_version>1.3.13</validator_test_case_version> <validator_test_case_version>1.3.14-SNAPSHOT</validator_test_case_version>
<jackson_version>2.14.0</jackson_version> <jackson_version>2.14.0</jackson_version>
<junit_jupiter_version>5.9.2</junit_jupiter_version> <junit_jupiter_version>5.9.2</junit_jupiter_version>
<junit_platform_launcher_version>1.8.2</junit_platform_launcher_version> <junit_platform_launcher_version>1.8.2</junit_platform_launcher_version>
@ -165,6 +165,12 @@
<version>${saxon_he_version}</version> <version>${saxon_he_version}</version>
</dependency> </dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.30</version>
</dependency>
<!-- Apache POI --> <!-- Apache POI -->
<dependency> <dependency>
<groupId>org.apache.poi</groupId> <groupId>org.apache.poi</groupId>