use of org.hl7.v3.RCMRMT030101UK04CompoundStatement in project nia-patient-switching-standard-adaptor by NHSDigital.
the class ResourceFilterUtilTest method testIsNotSpecimenResource.
@ParameterizedTest
@MethodSource("nonSpecimenTestFiles")
public void testIsNotSpecimenResource(String inputXML) {
final RCMRMT030101UK04CompoundStatement compoundStatement = unmarshallCompoundStatementElement(inputXML);
assertThat(ResourceFilterUtil.isSpecimen(compoundStatement)).isFalse();
}
use of org.hl7.v3.RCMRMT030101UK04CompoundStatement in project nia-patient-switching-standard-adaptor by NHSDigital.
the class ResourceFilterUtilTest method testIsBloodPressureResource.
@Test
public void testIsBloodPressureResource() {
final RCMRMT030101UK04CompoundStatement compoundStatement = unmarshallCompoundStatementElement("blood_pressure_resource.xml");
assertThat(ResourceFilterUtil.isBloodPressure(compoundStatement)).isTrue();
}
use of org.hl7.v3.RCMRMT030101UK04CompoundStatement in project nia-patient-switching-standard-adaptor by NHSDigital.
the class ResourceFilterUtilTest method testIsAllergyIntoleranceResource.
@Test
public void testIsAllergyIntoleranceResource() {
final RCMRMT030101UK04CompoundStatement compoundStatement = unmarshallCompoundStatementElement("allergy_intolerance_resource.xml");
assertThat(ResourceFilterUtil.isAllergyIntolerance(compoundStatement)).isTrue();
}
use of org.hl7.v3.RCMRMT030101UK04CompoundStatement in project nia-patient-switching-standard-adaptor by NHSDigital.
the class ResourceFilterUtilTest method testIsSpecimenResource.
@Test
public void testIsSpecimenResource() {
final RCMRMT030101UK04CompoundStatement compoundStatement = unmarshallCompoundStatementElement("specimen_resource.xml");
assertThat(ResourceFilterUtil.isSpecimen(compoundStatement)).isTrue();
}
use of org.hl7.v3.RCMRMT030101UK04CompoundStatement in project nia-patient-switching-standard-adaptor by NHSDigital.
the class SpecimenCompoundsMapper method handleObservationStatement.
private void handleObservationStatement(RCMRMT030101UK04CompoundStatement specimenCompoundStatement, Observation observation, DiagnosticReport diagnosticReport) {
final Reference specimenReference = new Reference(new IdType(Specimen.name(), specimenCompoundStatement.getId().get(0).getRoot()));
observation.setSpecimen(specimenReference);
observation.addCategory(createCategory());
if (!containsReference(diagnosticReport.getResult(), observation.getId())) {
diagnosticReport.addResult(new Reference(observation));
}
}
Aggregations