Search in sources :

Example 91 with DIAGNOSTICREPORT

use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.DIAGNOSTICREPORT in project org.hl7.fhir.core by hapifhir.

the class TurtleTests method test_diagnosticreport_example_f201_brainct.

@Test
public void test_diagnosticreport_example_f201_brainct() throws FileNotFoundException, IOException, Exception {
    System.out.println("diagnosticreport-example-f201-brainct.ttl");
    new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\diagnosticreport-example-f201-brainct.ttl"));
}
Also used : Turtle(org.hl7.fhir.dstu3.utils.formats.Turtle) Test(org.junit.jupiter.api.Test)

Example 92 with DIAGNOSTICREPORT

use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.DIAGNOSTICREPORT in project org.hl7.fhir.core by hapifhir.

the class TurtleTests method test_diagnosticreport_example_ultrasound.

@Test
public void test_diagnosticreport_example_ultrasound() throws FileNotFoundException, IOException, Exception {
    System.out.println("diagnosticreport-example-ultrasound.ttl");
    new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\diagnosticreport-example-ultrasound.ttl"));
}
Also used : Turtle(org.hl7.fhir.dstu3.utils.formats.Turtle) Test(org.junit.jupiter.api.Test)

Example 93 with DIAGNOSTICREPORT

use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.DIAGNOSTICREPORT in project org.hl7.fhir.core by hapifhir.

the class TurtleTests method test_diagnosticreport_example_f001_bloodexam.

@Test
public void test_diagnosticreport_example_f001_bloodexam() throws FileNotFoundException, IOException, Exception {
    System.out.println("diagnosticreport-example-f001-bloodexam.ttl");
    new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\diagnosticreport-example-f001-bloodexam.ttl"));
}
Also used : Turtle(org.hl7.fhir.dstu3.utils.formats.Turtle) Test(org.junit.jupiter.api.Test)

Example 94 with DIAGNOSTICREPORT

use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.DIAGNOSTICREPORT in project org.hl7.fhir.core by hapifhir.

the class TurtleTests method test_diagnosticreport_examples_general.

@Test
public void test_diagnosticreport_examples_general() throws FileNotFoundException, IOException, Exception {
    System.out.println("diagnosticreport-examples-general.ttl");
    new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\diagnosticreport-examples-general.ttl"));
}
Also used : Turtle(org.hl7.fhir.dstu3.utils.formats.Turtle) Test(org.junit.jupiter.api.Test)

Example 95 with DIAGNOSTICREPORT

use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.DIAGNOSTICREPORT in project fhir-bridge by ehrbase.

the class DiagnosticReportLabCompositionConverter method convertCategory.

private List<LaborbefundKategorieElement> convertCategory(DiagnosticReport diagnosticReport) {
    // TODO alter template
    List<LaborbefundKategorieElement> laborbefundKategorieElementList = new ArrayList<>();
    for (CodeableConcept codeableConcept : diagnosticReport.getCategory()) {
        for (Coding coding : codeableConcept.getCoding()) {
            LaborbefundKategorieElement laborbefundKategorieElement = new LaborbefundKategorieElement();
            laborbefundKategorieElement.setValue(coding.getCode());
            laborbefundKategorieElementList.add(laborbefundKategorieElement);
        }
    }
    return laborbefundKategorieElementList;
}
Also used : Coding(org.hl7.fhir.r4.model.Coding) LaborbefundKategorieElement(org.ehrbase.fhirbridge.ehr.opt.geccolaborbefundcomposition.definition.LaborbefundKategorieElement) ArrayList(java.util.ArrayList) CodeableConcept(org.hl7.fhir.r4.model.CodeableConcept)

Aggregations

Test (org.junit.Test)133 DiagnosticReport (org.hl7.fhir.r4.model.DiagnosticReport)115 FhirDiagnosticReport (org.openmrs.module.fhir2.model.FhirDiagnosticReport)65 IBundleProvider (ca.uhn.fhir.rest.api.server.IBundleProvider)52 MockHttpServletResponse (org.springframework.mock.web.MockHttpServletResponse)50 SearchParameterMap (org.openmrs.module.fhir2.api.search.param.SearchParameterMap)42 Test (org.junit.jupiter.api.Test)39 BaseModuleContextSensitiveTest (org.openmrs.test.BaseModuleContextSensitiveTest)39 DiagnosticReport (org.hl7.fhir.dstu3.model.DiagnosticReport)32 IBaseResource (org.hl7.fhir.instance.model.api.IBaseResource)29 ReferenceAndListParam (ca.uhn.fhir.rest.param.ReferenceAndListParam)28 ReferenceOrListParam (ca.uhn.fhir.rest.param.ReferenceOrListParam)28 ReferenceParam (ca.uhn.fhir.rest.param.ReferenceParam)28 BundleEntryComponent (org.hl7.fhir.r4.model.Bundle.BundleEntryComponent)19 Reference (org.hl7.fhir.r4.model.Reference)19 Bundle (org.hl7.fhir.r4.model.Bundle)18 Resource (org.hl7.fhir.r4.model.Resource)18 CodeableConcept (org.hl7.fhir.r4.model.CodeableConcept)16 Include (ca.uhn.fhir.model.api.Include)12 HashSet (java.util.HashSet)12