@@ -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