Class R4CareGapsService
java.lang.Object
org.opencds.cqf.fhir.cr.measure.r4.R4CareGapsService
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionR4CareGapsService(CareGapsProperties careGapsProperties, org.opencds.cqf.fhir.api.Repository repository, MeasureEvaluationOptions measureEvaluationOptions, String serverBase) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.hl7.fhir.r4.model.BundleaddBundleEntries(String serverBase, org.hl7.fhir.r4.model.Composition composition, List<org.hl7.fhir.r4.model.DetectedIssue> detectedIssues, List<org.hl7.fhir.r4.model.MeasureReport> measureReports, Map<String, org.hl7.fhir.r4.model.Resource> evalPlusSDEs) protected <T extends org.hl7.fhir.r4.model.Resource>
TaddConfiguredResource(Class<T> resourceClass, String id, String key) protected voidcheckValidStatusCode(List<String> statuses) protected List<org.hl7.fhir.r4.model.Measure> ensureMeasures(List<org.hl7.fhir.r4.model.Measure> measures) protected org.hl7.fhir.r4.model.Bundleprotected org.hl7.fhir.r4.model.Bundle.BundleEntryComponentgetBundleEntry(String serverBase, org.hl7.fhir.r4.model.Resource resource) org.hl7.fhir.r4.model.ParametersgetCareGapsReport(org.hl7.fhir.instance.model.api.IPrimitiveType<Date> periodStart, org.hl7.fhir.instance.model.api.IPrimitiveType<Date> periodEnd, List<String> topic, String subject, String practitioner, String organization, List<String> statuses, List<String> measureIds, List<String> measureIdentifiers, List<org.hl7.fhir.r4.model.CanonicalType> measureUrls, List<String> programs) Calculate measures describing gaps in careprotected org.hl7.fhir.r4.model.CompositiongetComposition(org.hl7.fhir.r4.model.Patient patient) protected org.hl7.fhir.r4.model.DetectedIssuegetDetectedIssue(org.hl7.fhir.r4.model.Patient patient, org.hl7.fhir.r4.model.MeasureReport measureReport, CareGapsStatusCode careGapStatusCode) protected static StringgetFullUrl(String serverAddress, String fhirType, String elementId) protected static StringgetFullUrl(String serverAddress, org.hl7.fhir.instance.model.api.IBaseResource resource) protected CareGapsStatusCodegetGapStatus(org.hl7.fhir.r4.model.Measure measure, org.hl7.fhir.r4.model.MeasureReport measureReport) protected List<org.hl7.fhir.r4.model.Measure> getMeasures(List<String> measureIds, List<String> measureIdentifiers, List<org.hl7.fhir.r4.model.CanonicalType> measureCanonicals) protected List<org.hl7.fhir.r4.model.Patient> getPatientListFromGroup(String subjectGroupId) protected List<org.hl7.fhir.r4.model.Patient> getPatientListFromSubject(String subject) protected List<org.hl7.fhir.r4.model.MeasureReport> getReports(String periodStart, String periodEnd, org.hl7.fhir.r4.model.Patient patient, List<String> statuses, List<org.hl7.fhir.r4.model.Measure> measures, org.hl7.fhir.r4.model.Composition composition, List<org.hl7.fhir.r4.model.DetectedIssue> detectedIssues, Map<String, org.hl7.fhir.r4.model.Resource> evalPlusSDEs) protected org.hl7.fhir.r4.model.Composition.SectionComponentgetSection(org.hl7.fhir.r4.model.Measure measure, org.hl7.fhir.r4.model.MeasureReport measureReport, org.hl7.fhir.r4.model.DetectedIssue detectedIssue, CareGapsStatusCode gapStatus) protected org.hl7.fhir.r4.model.Parameters.ParametersParameterComponentinitializePatientParameter(org.hl7.fhir.r4.model.Patient patient) protected voidinitializeReport(org.hl7.fhir.r4.model.MeasureReport measureReport) protected org.hl7.fhir.r4.model.Parametersprotected voidlistThrowIllegalArgumentIfEmpty(List<String> value, String parameterName) protected voidlistThrowNotImplementIfPresent(List<String> value, String parameterName) protected org.hl7.fhir.r4.model.Parameters.ParametersParameterComponentpatientReports(String periodStart, String periodEnd, org.hl7.fhir.r4.model.Patient patient, List<String> statuses, List<org.hl7.fhir.r4.model.Measure> measures, String organization) protected voidpopulateEvaluatedResources(org.hl7.fhir.r4.model.MeasureReport measureReport, Map<String, org.hl7.fhir.r4.model.Resource> resources) protected voidpopulateSDEResources(org.hl7.fhir.r4.model.MeasureReport measureReport, Map<String, org.hl7.fhir.r4.model.Resource> resources) protected org.hl7.fhir.r4.model.MeasureresolveById(org.hl7.fhir.r4.model.IdType id) protected org.hl7.fhir.r4.model.MeasureresolveByUrl(org.hl7.fhir.r4.model.CanonicalType url) protected voidthrowNotImplementIfPresent(Object value, String parameterName) protected voidprotected org.hl7.fhir.r4.model.PatientvalidatePatientExists(String patientRef)
-
Field Details
-
configuredResources
-
-
Constructor Details
-
R4CareGapsService
public R4CareGapsService(CareGapsProperties careGapsProperties, org.opencds.cqf.fhir.api.Repository repository, MeasureEvaluationOptions measureEvaluationOptions, String serverBase)
-
-
Method Details
-
getCareGapsReport
public org.hl7.fhir.r4.model.Parameters getCareGapsReport(org.hl7.fhir.instance.model.api.IPrimitiveType<Date> periodStart, org.hl7.fhir.instance.model.api.IPrimitiveType<Date> periodEnd, List<String> topic, String subject, String practitioner, String organization, List<String> statuses, List<String> measureIds, List<String> measureIdentifiers, List<org.hl7.fhir.r4.model.CanonicalType> measureUrls, List<String> programs) Calculate measures describing gaps in care- Parameters:
periodStart-periodEnd-topic-subject-practitioner-organization-statuses-measureIds-measureIdentifiers-measureUrls-programs-- Returns:
- Parameters that includes zero to many document bundles that include Care Gap Measure Reports will be returned.
-
throwNotImplementIfPresent
-
listThrowNotImplementIfPresent
-
listThrowIllegalArgumentIfEmpty
-
validateConfiguration
protected void validateConfiguration() -
getPatientListFromSubject
-
getPatientListFromGroup
-
validatePatientExists
-
getMeasures
-
resolveByUrl
protected org.hl7.fhir.r4.model.Measure resolveByUrl(org.hl7.fhir.r4.model.CanonicalType url) -
resolveById
protected org.hl7.fhir.r4.model.Measure resolveById(org.hl7.fhir.r4.model.IdType id) -
addConfiguredResource
-
ensureMeasures
-
patientReports
-
getReports
protected List<org.hl7.fhir.r4.model.MeasureReport> getReports(String periodStart, String periodEnd, org.hl7.fhir.r4.model.Patient patient, List<String> statuses, List<org.hl7.fhir.r4.model.Measure> measures, org.hl7.fhir.r4.model.Composition composition, List<org.hl7.fhir.r4.model.DetectedIssue> detectedIssues, Map<String, org.hl7.fhir.r4.model.Resource> evalPlusSDEs) -
initializeReport
protected void initializeReport(org.hl7.fhir.r4.model.MeasureReport measureReport) -
initializePatientParameter
protected org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent initializePatientParameter(org.hl7.fhir.r4.model.Patient patient) -
addBundleEntries
-
getGapStatus
protected CareGapsStatusCode getGapStatus(org.hl7.fhir.r4.model.Measure measure, org.hl7.fhir.r4.model.MeasureReport measureReport) -
getBundleEntry
protected org.hl7.fhir.r4.model.Bundle.BundleEntryComponent getBundleEntry(String serverBase, org.hl7.fhir.r4.model.Resource resource) -
getSection
protected org.hl7.fhir.r4.model.Composition.SectionComponent getSection(org.hl7.fhir.r4.model.Measure measure, org.hl7.fhir.r4.model.MeasureReport measureReport, org.hl7.fhir.r4.model.DetectedIssue detectedIssue, CareGapsStatusCode gapStatus) -
getBundle
protected org.hl7.fhir.r4.model.Bundle getBundle() -
getComposition
protected org.hl7.fhir.r4.model.Composition getComposition(org.hl7.fhir.r4.model.Patient patient) -
getDetectedIssue
protected org.hl7.fhir.r4.model.DetectedIssue getDetectedIssue(org.hl7.fhir.r4.model.Patient patient, org.hl7.fhir.r4.model.MeasureReport measureReport, CareGapsStatusCode careGapStatusCode) -
populateEvaluatedResources
-
populateSDEResources
-
initializeResult
protected org.hl7.fhir.r4.model.Parameters initializeResult() -
getFullUrl
-
getFullUrl
-
checkValidStatusCode
-