Skip to content

Commit bdf1dbf

Browse files
author
Adrian Clay
authored
Upgrade HAPI FHIR to fix CVEs (#605)
* Upgrade HAPI FHIR to fix CVEs This should resolve 1 Critical, and 1 High severity CVE * Remove RegExp annotation Our use of the intellij annotation here was reliant on a transient dependency. Since upgrading HAPI FHIR we no longer have access to that annotation. It seemed more sensible to just remove the annotation, given it's only used in one location.
1 parent 0d0d781 commit bdf1dbf

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

service/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ dependencies {
6262
implementation 'org.apache.tika:tika-core:1.28.4'
6363

6464
// Fhir
65-
implementation 'ca.uhn.hapi.fhir:hapi-fhir-structures-dstu3:5.4.0'
65+
implementation 'ca.uhn.hapi.fhir:hapi-fhir-structures-dstu3:6.6.2'
6666

6767
// Test
6868
testImplementation 'org.springframework.boot:spring-boot-starter-test'

service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/mapper/EncounterComponentsMapper.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import org.hl7.fhir.dstu3.model.Resource;
3232
import org.hl7.fhir.dstu3.model.ResourceType;
3333
import org.hl7.fhir.instance.model.api.IIdType;
34-
import org.intellij.lang.annotations.RegExp;
3534
import org.springframework.beans.factory.annotation.Autowired;
3635
import org.springframework.stereotype.Component;
3736

@@ -65,9 +64,7 @@ public class EncounterComponentsMapper {
6564
+ "-RelatedProblemHeader-1";
6665
private static final String RELATED_PROBLEM_TARGET = "target";
6766
private static final String COMPLETE_CODE = "COMPLETE";
68-
@RegExp
6967
private static final String LIST_REFERENCE_PATTERN = "^List/[\\da-zA-z-]+$";
70-
@RegExp
7168
private static final String CONTAINED_RESOURCE_REFERENCE_PATTERN = "^List/([\\da-zA-Z-]+)(#[\\da-zA-Z-]+)$";
7269

7370
private final MessageContext messageContext;

0 commit comments

Comments
 (0)