Search in sources :

Example 1 with RCMRMT030101UK04CompoundStatement

use of org.hl7.v3.RCMRMT030101UK04CompoundStatement in project nia-patient-switching-standard-adaptor by NHSDigital.

the class ResourceFilterUtilTest method testIsNotBloodPressureResource.

@ParameterizedTest
@MethodSource("nonBloodPressureTestFiles")
public void testIsNotBloodPressureResource(String inputXML) {
    final RCMRMT030101UK04CompoundStatement compoundStatement = unmarshallCompoundStatementElement(inputXML);
    assertThat(ResourceFilterUtil.isBloodPressure(compoundStatement)).isFalse();
}
Also used : RCMRMT030101UK04CompoundStatement(org.hl7.v3.RCMRMT030101UK04CompoundStatement) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest) MethodSource(org.junit.jupiter.params.provider.MethodSource)

Example 2 with RCMRMT030101UK04CompoundStatement

use of org.hl7.v3.RCMRMT030101UK04CompoundStatement in project nia-patient-switching-standard-adaptor by NHSDigital.

the class ResourceFilterUtilTest method testIsNotBloodPressure.

@ParameterizedTest
@MethodSource("nonDiagnosticReportTestFiles")
public void testIsNotBloodPressure(String inputXML) {
    final RCMRMT030101UK04CompoundStatement compoundStatement = unmarshallCompoundStatementElement(inputXML);
    assertThat(ResourceFilterUtil.isDiagnosticReport(compoundStatement)).isFalse();
}
Also used : RCMRMT030101UK04CompoundStatement(org.hl7.v3.RCMRMT030101UK04CompoundStatement) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest) MethodSource(org.junit.jupiter.params.provider.MethodSource)

Example 3 with RCMRMT030101UK04CompoundStatement

use of org.hl7.v3.RCMRMT030101UK04CompoundStatement in project nia-patient-switching-standard-adaptor by NHSDigital.

the class ResourceFilterUtilTest method testIsTemplateResource.

@Test
public void testIsTemplateResource() {
    final RCMRMT030101UK04CompoundStatement compoundStatement = unmarshallCompoundStatementElement("template_resource.xml");
    assertThat(ResourceFilterUtil.isTemplate(compoundStatement)).isTrue();
}
Also used : RCMRMT030101UK04CompoundStatement(org.hl7.v3.RCMRMT030101UK04CompoundStatement) Test(org.junit.jupiter.api.Test) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest)

Example 4 with RCMRMT030101UK04CompoundStatement

use of org.hl7.v3.RCMRMT030101UK04CompoundStatement in project nia-patient-switching-standard-adaptor by NHSDigital.

the class ResourceFilterUtilTest method testIsNotAllergyIntoleranceResource.

@ParameterizedTest
@MethodSource("nonAllergyIntoleranceTestFiles")
public void testIsNotAllergyIntoleranceResource(String inputXML) {
    final RCMRMT030101UK04CompoundStatement compoundStatement = unmarshallCompoundStatementElement(inputXML);
    assertThat(ResourceFilterUtil.isAllergyIntolerance(compoundStatement)).isFalse();
}
Also used : RCMRMT030101UK04CompoundStatement(org.hl7.v3.RCMRMT030101UK04CompoundStatement) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest) MethodSource(org.junit.jupiter.params.provider.MethodSource)

Example 5 with RCMRMT030101UK04CompoundStatement

use of org.hl7.v3.RCMRMT030101UK04CompoundStatement in project nia-patient-switching-standard-adaptor by NHSDigital.

the class ResourceFilterUtilTest method testIsNotTemplateResource.

@ParameterizedTest
@MethodSource("nonTemplateTestFiles")
public void testIsNotTemplateResource(String inputXML) {
    final RCMRMT030101UK04CompoundStatement compoundStatement = unmarshallCompoundStatementElement(inputXML);
    assertThat(ResourceFilterUtil.isTemplate(compoundStatement)).isFalse();
}
Also used : RCMRMT030101UK04CompoundStatement(org.hl7.v3.RCMRMT030101UK04CompoundStatement) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest) MethodSource(org.junit.jupiter.params.provider.MethodSource)

Aggregations

RCMRMT030101UK04CompoundStatement (org.hl7.v3.RCMRMT030101UK04CompoundStatement)14 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)13 Reference (org.hl7.fhir.dstu3.model.Reference)10 Test (org.junit.jupiter.api.Test)7 MethodSource (org.junit.jupiter.params.provider.MethodSource)6 ArrayList (java.util.ArrayList)4 ListResource (org.hl7.fhir.dstu3.model.ListResource)2 ListEntryComponent (org.hl7.fhir.dstu3.model.ListResource.ListEntryComponent)2 ParticipantReferenceUtil.getParticipantReference (uk.nhs.adaptors.pss.translator.util.ParticipantReferenceUtil.getParticipantReference)2 DiagnosticReport (org.hl7.fhir.dstu3.model.DiagnosticReport)1 IdType (org.hl7.fhir.dstu3.model.IdType)1 Observation (org.hl7.fhir.dstu3.model.Observation)1 QuestionnaireResponse (org.hl7.fhir.dstu3.model.QuestionnaireResponse)1 Specimen (org.hl7.fhir.dstu3.model.Specimen)1 UriType (org.hl7.fhir.dstu3.model.UriType)1 CD (org.hl7.v3.CD)1 II (org.hl7.v3.II)1 TS (org.hl7.v3.TS)1 InvocationOnMock (org.mockito.invocation.InvocationOnMock)1 ResourceUtil.addContextToObservation (uk.nhs.adaptors.pss.translator.util.ResourceUtil.addContextToObservation)1