@@ -42,6 +42,17 @@ public class AllergyStructureMapperTest {
4242 private static final String TEST_FILE_DIRECTORY = "/ehr/mapper/allergy/" ;
4343 private static final String INPUT_JSON_BUNDLE = TEST_FILE_DIRECTORY + "fhir-bundle.json" ;
4444 private static final String INPUT_JSON_WITH_OPTIONAL_TEXT_FIELDS = TEST_FILE_DIRECTORY + "input-with-optional-text-fields.json" ;
45+ private static final String INPUT_WITH_ENV_CATEGORY = "input-with-environment-category.json" ;
46+ private static final String EXPECTED_WITH_ENV_CATEGORY = "expected-uses-environment-category.xml" ;
47+
48+ private static final String INPUT_WITH_CONDITION_ONE_NOTE = "input-with-relation-to-condition-with-one-note.json" ;
49+ private static final String EXPECTED_WITH_CONDITION_ONE_NOTE = "expected-uses-relation-to-condition-with-one-note.xml" ;
50+
51+ private static final String INPUT_WITH_CONDITION_TWO_NOTES = "input-with-relation-to-condition-with-two-notes.json" ;
52+ private static final String EXPECTED_WITH_CONDITION_TWO_NOTES = "expected-uses-relation-to-condition-with-two-notes.xml" ;
53+
54+ private static final String INPUT_WITH_NO_CONDITION = "input-with-no-relation-to-condition.json" ;
55+ private static final String EXPECTED_WITH_NO_CONDITION = "expected-uses-no-relation-to-condition.xml" ;
4556
4657 private static final String COMMON_ID = "6D340A1B-BC15-4D4E-93CF-BBCB5B74DF73" ;
4758
@@ -91,12 +102,10 @@ private static Stream<Arguments> resourceFileParams() {
91102
92103 private static Stream <Arguments > resourceFileParamsWithEnvironmentCategoryAndConditionRelatedData () {
93104 return Stream .of (
94- Arguments .of ("input-with-environment-category.json" , "expected-uses-environment-category.xml" ),
95- Arguments .of
96- ("input-with-relation-to-condition-with-one-note.json" , "expected-uses-relation-to-condition-with-one-note.xml" ),
97- Arguments .of
98- ("input-with-relation-to-condition-with-two-notes.json" , "expected-uses-relation-to-condition-with-two-notes.xml" ),
99- Arguments .of ("input-with-no-relation-to-condition.json" , "expected-uses-no-relation-to-condition.xml" )
105+ Arguments .of (INPUT_WITH_ENV_CATEGORY , EXPECTED_WITH_ENV_CATEGORY ),
106+ Arguments .of (INPUT_WITH_CONDITION_ONE_NOTE , EXPECTED_WITH_CONDITION_ONE_NOTE ),
107+ Arguments .of (INPUT_WITH_CONDITION_TWO_NOTES , EXPECTED_WITH_CONDITION_TWO_NOTES ),
108+ Arguments .of (INPUT_WITH_NO_CONDITION , EXPECTED_WITH_NO_CONDITION )
100109 );
101110 }
102111
0 commit comments