use of org.ehrbase.test_data.composition.CompositionTestDataSimSDTJson in project openEHR_SDK by ehrbase.
the class FlatJsonTest method roundTripVitalSigns.
@Test
public void roundTripVitalSigns() throws IOException {
CompositionTestDataSimSDTJson testData = CompositionTestDataSimSDTJson.VITALSIGNS;
String templateId = "EHRN Vital signs.v2";
check(templateId, testData, new String[] {}, new String[] {});
}
use of org.ehrbase.test_data.composition.CompositionTestDataSimSDTJson in project openEHR_SDK by ehrbase.
the class FlatJsonTest method roundMultiList.
@Test
public void roundMultiList() throws IOException {
CompositionTestDataSimSDTJson testData = CompositionTestDataSimSDTJson.MULTI_LIST;
String templateId = OperationalTemplateTestData.MULTI_LIST.getTemplateId();
check(templateId, testData, new String[] {}, new String[] {});
}
use of org.ehrbase.test_data.composition.CompositionTestDataSimSDTJson in project openEHR_SDK by ehrbase.
the class FlatJsonTest method roundTripMissingCount.
@Test
public void roundTripMissingCount() throws IOException {
String templateId = "ehrbase_multi_occurrence.de.v1";
CompositionTestDataSimSDTJson testData = CompositionTestDataSimSDTJson.MISSING_COUNT;
String[] expectedMissing = { "Missing path: encounter/body_temperature:0/any_event:0/temperature|magnitude, value: 22.0", "Missing path: encounter/body_temperature:1/any_event:0/temperature|magnitude, value: 22.0", "Missing path: encounter/body_temperature:1/any_event:1/temperature|magnitude, value: 11.0", "Missing path: encounter/body_temperature:0/any_event:0/temperature|unit, value: Cel", "Missing path: encounter/body_temperature:0/any_event:0/body_exposure|terminology, value: local", "Missing path: encounter/body_temperature:0/any_event:0/body_exposure|value, value: Appropriate clothing/bedding", "Missing path: encounter/body_temperature:0/any_event:0/body_exposure|code, value: at0033", "Missing path: encounter/body_temperature:0/any_event:0/current_day_of_menstrual_cycle, value: 3", "Missing path: encounter/body_temperature:0/any_event:0/time, value: 2020-10-06T13:30:34.328873+02:00" };
String[] expectedExtra = { "Extra path: encounter/body_temperature:0/any_event/temperature|magnitude, value: 22", "Extra path: encounter/body_temperature:0/any_event/temperature|unit, value: Cel", "Extra path: encounter/body_temperature:0/any_event/body_exposure|code, value: at0033", "Extra path: encounter/body_temperature:0/any_event/body_exposure|value, value: Appropriate clothing/bedding", "Extra path: encounter/body_temperature:0/any_event/body_exposure|terminology, value: local", "Extra path: encounter/body_temperature:0/any_event/current_day_of_menstrual_cycle, value: 3", "Extra path: encounter/body_temperature:0/any_event/time, value: 2020-10-06T13:30:34.328873+02:00", "Extra path: encounter/body_temperature:1/any_event:0/temperature|magnitude, value: 22", "Extra path: encounter/body_temperature:1/any_event:1/temperature|magnitude, value: 11" };
check(templateId, testData, expectedMissing, expectedExtra);
}
use of org.ehrbase.test_data.composition.CompositionTestDataSimSDTJson in project openEHR_SDK by ehrbase.
the class FlatJsonTest method roundTripMulti.
@Test
public void roundTripMulti() throws IOException {
String templateId = "ehrbase_multi_occurrence.de.v1";
CompositionTestDataSimSDTJson testData = CompositionTestDataSimSDTJson.MULTI_OCCURRENCE;
String[] expectedMissing = { "Missing path: encounter/body_temperature:0/any_event:0/temperature|magnitude, value: 22.0", "Missing path: encounter/body_temperature:0/any_event:1/temperature|magnitude, value: 11.0", "Missing path: encounter/body_temperature:1/any_event:0/temperature|magnitude, value: 22.0", "Missing path: encounter/body_temperature:1/any_event:1/temperature|magnitude, value: 11.0" };
String[] expectedExtra = { "Extra path: encounter/body_temperature:0/any_event:0/temperature|magnitude, value: 22", "Extra path: encounter/body_temperature:0/any_event:1/temperature|magnitude, value: 11", "Extra path: encounter/body_temperature:1/any_event:0/temperature|magnitude, value: 22", "Extra path: encounter/body_temperature:1/any_event:1/temperature|magnitude, value: 11" };
check(templateId, testData, expectedMissing, expectedExtra);
}
use of org.ehrbase.test_data.composition.CompositionTestDataSimSDTJson in project openEHR_SDK by ehrbase.
the class FlatJsonTest method roundTripAll.
@Test
public void roundTripAll() throws IOException {
String templateId = "test_all_types.en.v1";
CompositionTestDataSimSDTJson testData = CompositionTestDataSimSDTJson.ALL_TYPES;
String[] expectedMissing = { "Missing path: test_all_types/test_all_types:0/identifier|id, value: 55175056", "Missing path: test_all_types/test_all_types:0/proportion_any|type, value: 1" };
String[] expectedExtra = { "Extra path: test_all_types/test_all_types:0/identifier, value: 55175056", "Extra path: test_all_types/test_all_types:0/proportion_any|type, value: 1.0" };
check(templateId, testData, expectedMissing, expectedExtra);
}
Aggregations