use of org.hl7.fhir.r4.model.Composition in project fhir-bridge by ehrbase.
the class ObservationLabCompositionConverter method convertKategorieValue.
private void convertKategorieValue(CodeableConcept codeableConcept, GECCOLaborbefundComposition composition) {
for (Coding coding : codeableConcept.getCoding()) {
if (coding.getSystem().equals(CodeSystem.HL7_OBSERVATI0N_CATEGORY.getUrl())) {
LaborbefundKategorieElement labortestKategorieElement = new LaborbefundKategorieElement();
labortestKategorieElement.setValue(coding.getCode());
composition.setKategorie(List.of(labortestKategorieElement));
}
}
}
use of org.hl7.fhir.r4.model.Composition in project fhir-bridge by ehrbase.
the class PatientDischargeCompositionConverter method mapKategorie.
private void mapKategorie(GECCOEntlassungsdatenComposition composition, Observation resource) {
List<EntlassungsdatenKategorieElement> list = new ArrayList<>();
for (CodeableConcept category : resource.getCategory()) {
for (Coding coding : category.getCoding()) {
EntlassungsdatenKategorieElement entlassungsdatenKategorieElement = new EntlassungsdatenKategorieElement();
entlassungsdatenKategorieElement.setValue(coding.getCode());
list.add(entlassungsdatenKategorieElement);
}
}
composition.setKategorie(list);
}
use of org.hl7.fhir.r4.model.Composition in project fhir-bridge by ehrbase.
the class GECCODiagnoseIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Condition resource = (Condition) super.testFileLoader.loadResource(resourcePath);
GECCODiagnoseCompositionConverter compositionConverter = new GECCODiagnoseCompositionConverter();
GECCODiagnoseComposition composition = compositionConverter.convert(resource);
Diff diff = compareCompositions(getJavers(), paragonPath, composition);
assertEquals(diff.getChanges().size(), 0);
}
use of org.hl7.fhir.r4.model.Composition in project nia-patient-switching-standard-adaptor by NHSDigital.
the class DiagnosticReportMapper method createDiagnosticReport.
private DiagnosticReport createDiagnosticReport(RCMRMT030101UK04CompoundStatement compoundStatement, Patient patient, RCMRMT030101UK04EhrComposition composition, List<Encounter> encounters, String practiceCode) {
final DiagnosticReport diagnosticReport = new DiagnosticReport();
final String id = compoundStatement.getId().get(0).getRoot();
diagnosticReport.setMeta(generateMeta(META_PROFILE_URL_SUFFIX));
diagnosticReport.setId(id);
diagnosticReport.addIdentifier(buildIdentifier(id, practiceCode));
diagnosticReport.setCode(createCode());
diagnosticReport.setStatus(DiagnosticReportStatus.UNKNOWN);
diagnosticReport.setSubject(new Reference(patient));
diagnosticReport.setSpecimen(getSpecimenReferences(compoundStatement));
createIdentifierExtension(compoundStatement.getId()).ifPresent(diagnosticReport::addIdentifier);
buildContext(composition, encounters).ifPresent(diagnosticReport::setContext);
setResultReferences(compoundStatement, diagnosticReport);
return diagnosticReport;
}
use of org.hl7.fhir.r4.model.Composition in project cqf-ruler by DBCG.
the class CareGapsProvider method addBundleEntries.
private Bundle addBundleEntries(String serverBase, Composition composition, List<DetectedIssue> detectedIssues, List<MeasureReport> reports, Map<String, Resource> evaluatedResources) {
Bundle reportBundle = getBundle();
reportBundle.addEntry(getBundleEntry(serverBase, composition));
reports.forEach(report -> reportBundle.addEntry(getBundleEntry(serverBase, report)));
detectedIssues.forEach(detectedIssue -> reportBundle.addEntry(getBundleEntry(serverBase, detectedIssue)));
configuredResources.values().forEach(resource -> reportBundle.addEntry(getBundleEntry(serverBase, resource)));
evaluatedResources.values().forEach(resource -> reportBundle.addEntry(getBundleEntry(serverBase, resource)));
return reportBundle;
}
Aggregations