Skip to content

Commit 1dcc8bf

Browse files
committed
Change dummy to not present in DiagnosticReportMapper and diagnostic-report-with-no-specimen xml file
1 parent aecba45 commit 1dcc8bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private Specimen generateDummySpecimen(DiagnosticReport diagnosticReport) {
202202
specimen.setId(DUMMY_SPECIMEN_ID_PREFIX + randomIdGeneratorService.createNewId());
203203

204204
return specimen
205-
.setAccessionIdentifier(new Identifier().setValue("DUMMY"))
205+
.setAccessionIdentifier(new Identifier().setValue("NOT PRESENT"))
206206
.setCollection(new Specimen.SpecimenCollectionComponent().setCollected(new DateTimeType(diagnosticReport.getIssued())))
207207
.setType(new CodeableConcept().setText("UNKNOWN"));
208208
}

service/src/test/resources/ehr/mapper/diagnosticreport/diagnostic-report-with-no-specimen.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<specimen typeCode="SPC">
5959
<specimenRole classCode="SPEC">
6060
<id root="5E496953-065B-41F2-9577-BE8F2FBD0757"/>
61-
<id root="2.16.840.1.113883.2.1.4.5.2" extension="DUMMY"/>
61+
<id root="2.16.840.1.113883.2.1.4.5.2" extension="NOT PRESENT"/>
6262
<effectiveTime>
6363
<center value="20010330162700"/>
6464
</effectiveTime>

0 commit comments

Comments
 (0)