use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.PROCEDURE in project org.hl7.fhir.core by hapifhir.
the class TurtleTests method test_procedure_example_implant.
@Test
public void test_procedure_example_implant() throws FileNotFoundException, IOException, Exception {
System.out.println("procedure-example-implant.ttl");
new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\procedure-example-implant.ttl"));
}
use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.PROCEDURE in project fhir-bridge by ehrbase.
the class ProzedurActionConverter method convertUsedCode.
private List<MedizingeraetCluster> convertUsedCode(Procedure procedure) {
List<MedizingeraetCluster> medizingeraetClusters = new ArrayList<>();
for (CodeableConcept codeableConcept : procedure.getUsedCode()) {
for (Coding coding : codeableConcept.getCoding()) {
MedizingeraetCluster medizingeraetCluster = new MedizingeraetCluster();
dvCodedTextParser.parseFHIRCoding(coding).ifPresent(medizingeraetCluster::setGeraetename);
medizingeraetClusters.add(medizingeraetCluster);
}
}
return medizingeraetClusters;
}
use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.PROCEDURE in project fhir-bridge by ehrbase.
the class TherapyCompositionConverter method convertCategory.
private List<GeccoProzedurKategorieElement> convertCategory(Procedure procedure) {
List<GeccoProzedurKategorieElement> geccoProzedurKategorieElements = new ArrayList<>();
for (Coding coding : procedure.getCategory().getCoding()) {
GeccoProzedurKategorieElement geccoProzedurKategorieElement = new GeccoProzedurKategorieElement();
DvCodedTextParser.getInstance().parseFHIRCoding(coding).ifPresent(geccoProzedurKategorieElement::setValue);
geccoProzedurKategorieElements.add(geccoProzedurKategorieElement);
}
return geccoProzedurKategorieElements;
}
use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.PROCEDURE in project fhir-bridge by ehrbase.
the class ProcedureActionConverter method mapBodysite.
public void mapBodysite(ProzedurAction action, Procedure resource) {
for (CodeableConcept loop : resource.getBodySite()) {
DetailsZurKoerperstelleCluster anatomicalLocationCluster = new DetailsZurKoerperstelleCluster();
getBodysiteCoding(loop).ifPresent(anatomicalLocationCluster::setNameDerKoerperstelleValue);
action.setDetailsZurKoerperstelle(new ArrayList<>());
action.getDetailsZurKoerperstelle().add(anatomicalLocationCluster);
}
}
use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.PROCEDURE in project fhir-bridge by ehrbase.
the class GenericTherapyIT method testMapping.
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Procedure procedure = (Procedure) super.testFileLoader.loadResource(resourcePath);
TherapyCompositionConverter therapyCompositionConverter = new TherapyCompositionConverter();
GECCOProzedurComposition mappedProzedurComposition = therapyCompositionConverter.convert(procedure);
Diff diff = compareCompositions(getJavers(), paragonPath, mappedProzedurComposition);
assertEquals(diff.getChanges().size(), 0);
}
Aggregations