Skip to content

Commit b19f33a

Browse files
Remove now unnecessary test
* Remove now unnecessary test
1 parent e849cac commit b19f33a

File tree

1 file changed

+0
-45
lines changed

1 file changed

+0
-45
lines changed

service/src/test/java/uk/nhs/adaptors/gp2gp/ehr/mapper/CodeableConceptCdMapperTest.java

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -169,51 +169,6 @@ void When_MapToNullFlavorCodeableConceptForAllergyWithoutSnomedCode_Expect_Origi
169169
assertThat(outputXml).isEqualToIgnoringWhitespace(expectedOutputXML);
170170
}
171171

172-
@Test
173-
void When_MappingStubbedCodeableConceptAsInactiveAllergy_Expect_NullFlavourCodeableConceptWithOriginalTextAsDisplayName() {
174-
var inputJson = """
175-
{
176-
"resourceType": "AllergyIntolerance",
177-
"id": "0C1232CF-D34B-4C16-A5F4-0F6461C51A41",
178-
"meta": {
179-
"profile": [
180-
"https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-AllergyIntolerance-1"
181-
]
182-
},
183-
"identifier": [
184-
{
185-
"system": "https://EMISWeb/A82038",
186-
"value": "55D2363D57A248F49A745B2E03F5E93D0C1232CFD34B4C16A5F40F6461C51A41"
187-
}
188-
],
189-
"clinicalStatus": "inactive",
190-
"code": {
191-
"coding": [
192-
{
193-
"system": "http://snomed.info/sct",
194-
"code": "292971006",
195-
"display": "Pivampicillin adverse reaction pt"
196-
}
197-
]
198-
}
199-
}""";
200-
201-
var expectedOutputXML = """
202-
<code nullFlavor="UNK">
203-
<originalText>Pivampicillin adverse reaction pt</originalText>
204-
</code>
205-
""";
206-
var codeableConcept = fhirParseService.parseResource(inputJson, AllergyIntolerance.class).getCode();
207-
208-
var outputXml = codeableConceptCdMapper.mapToNullFlavorCodeableConceptForAllergy(
209-
codeableConcept,
210-
AllergyIntolerance.AllergyIntoleranceClinicalStatus.INACTIVE
211-
);
212-
213-
assertThat(outputXml).isEqualToIgnoringWhitespace(expectedOutputXML);
214-
215-
}
216-
217172
@ParameterizedTest
218173
@MethodSource("getTestArgumentsActualProblem")
219174
public void When_MappingStubbedCodeableConceptForActualProblemHeader_Expect_HL7CdObjectXml(String inputJson, String outputXml)

0 commit comments

Comments
 (0)