use of org.hl7.fhir.r4.model.DetectedIssue in project org.hl7.fhir.core by hapifhir.
the class TurtleTests method test_detectedissue_example_dup.
@Test
public void test_detectedissue_example_dup() throws FileNotFoundException, IOException, Exception {
System.out.println("detectedissue-example-dup.ttl");
new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\detectedissue-example-dup.ttl"));
}
use of org.hl7.fhir.r4.model.DetectedIssue 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;
}
use of org.hl7.fhir.r4.model.DetectedIssue in project cqf-ruler by DBCG.
the class CareGapsProvider method getReports.
// warning for greater than 7 parameters
@SuppressWarnings("squid:S00107")
private List<MeasureReport> getReports(RequestDetails requestDetails, String periodStart, String periodEnd, Patient patient, List<String> status, List<Measure> measures, Composition composition, List<DetectedIssue> detectedIssues, Map<String, Resource> evaluatedResources) {
List<MeasureReport> reports = new ArrayList<>();
MeasureReport report = null;
for (Measure measure : measures) {
report = measureEvaluateProvider.evaluateMeasure(requestDetails, measure.getIdElement(), periodStart, periodEnd, "patient", Ids.simple(patient), null, null, null, null);
if (!report.hasGroup()) {
ourLog.info("Report does not include a group so skipping.\nSubject: {}\nMeasure: {}", Ids.simple(patient), Ids.simplePart(measure));
continue;
}
initializeReport(report);
CareGapsStatusCode gapStatus = getGapStatus(measure, report);
if (!status.contains(gapStatus.toString())) {
continue;
}
DetectedIssue detectedIssue = getDetectedIssue(patient, report, gapStatus);
detectedIssues.add(detectedIssue);
composition.addSection(getSection(measure, report, detectedIssue, gapStatus));
getEvaluatedResources(report, evaluatedResources);
reports.add(report);
}
return reports;
}
use of org.hl7.fhir.r4.model.DetectedIssue in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeDetectedIssue.
protected void composeDetectedIssue(Complex parent, String parentType, String name, DetectedIssue element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "DetectedIssue", name, element, index);
if (element.hasIdentifier())
composeIdentifier(t, "DetectedIssue", "identifier", element.getIdentifier(), -1);
if (element.hasStatusElement())
composeEnum(t, "DetectedIssue", "status", element.getStatusElement(), -1);
if (element.hasCategory())
composeCodeableConcept(t, "DetectedIssue", "category", element.getCategory(), -1);
if (element.hasSeverityElement())
composeEnum(t, "DetectedIssue", "severity", element.getSeverityElement(), -1);
if (element.hasPatient())
composeReference(t, "DetectedIssue", "patient", element.getPatient(), -1);
if (element.hasDateElement())
composeDateTime(t, "DetectedIssue", "date", element.getDateElement(), -1);
if (element.hasAuthor())
composeReference(t, "DetectedIssue", "author", element.getAuthor(), -1);
for (int i = 0; i < element.getImplicated().size(); i++) composeReference(t, "DetectedIssue", "implicated", element.getImplicated().get(i), i);
if (element.hasDetailElement())
composeString(t, "DetectedIssue", "detail", element.getDetailElement(), -1);
if (element.hasReferenceElement())
composeUri(t, "DetectedIssue", "reference", element.getReferenceElement(), -1);
for (int i = 0; i < element.getMitigation().size(); i++) composeDetectedIssueDetectedIssueMitigationComponent(t, "DetectedIssue", "mitigation", element.getMitigation().get(i), i);
}
use of org.hl7.fhir.r4.model.DetectedIssue in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeDetectedIssueDetectedIssueMitigationComponent.
protected void composeDetectedIssueDetectedIssueMitigationComponent(Complex parent, String parentType, String name, DetectedIssue.DetectedIssueMitigationComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "mitigation", name, element, index);
if (element.hasAction())
composeCodeableConcept(t, "DetectedIssue", "action", element.getAction(), -1);
if (element.hasDateElement())
composeDateTime(t, "DetectedIssue", "date", element.getDateElement(), -1);
if (element.hasAuthor())
composeReference(t, "DetectedIssue", "author", element.getAuthor(), -1);
}
Aggregations