Class R4CareGapsService

java.lang.Object
org.opencds.cqf.fhir.cr.measure.r4.R4CareGapsService

public class R4CareGapsService extends Object
  • Field Details

    • configuredResources

      protected final Map<String,org.hl7.fhir.r4.model.Resource> configuredResources
  • Constructor Details

  • 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

      protected void throwNotImplementIfPresent(Object value, String parameterName)
    • listThrowNotImplementIfPresent

      protected void listThrowNotImplementIfPresent(List<String> value, String parameterName)
    • listThrowIllegalArgumentIfEmpty

      protected void listThrowIllegalArgumentIfEmpty(List<String> value, String parameterName)
    • validateConfiguration

      protected void validateConfiguration()
    • getPatientListFromSubject

      protected List<org.hl7.fhir.r4.model.Patient> getPatientListFromSubject(String subject)
    • getPatientListFromGroup

      protected List<org.hl7.fhir.r4.model.Patient> getPatientListFromGroup(String subjectGroupId)
    • validatePatientExists

      protected org.hl7.fhir.r4.model.Patient validatePatientExists(String patientRef)
    • getMeasures

      protected List<org.hl7.fhir.r4.model.Measure> getMeasures(List<String> measureIds, List<String> measureIdentifiers, List<org.hl7.fhir.r4.model.CanonicalType> measureCanonicals)
    • 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

      protected <T extends org.hl7.fhir.r4.model.Resource> T addConfiguredResource(Class<T> resourceClass, String id, String key)
    • ensureMeasures

      protected List<org.hl7.fhir.r4.model.Measure> ensureMeasures(List<org.hl7.fhir.r4.model.Measure> measures)
    • patientReports

      protected org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent patientReports(String periodStart, String periodEnd, org.hl7.fhir.r4.model.Patient patient, List<String> statuses, List<org.hl7.fhir.r4.model.Measure> measures, String organization)
    • 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

      protected org.hl7.fhir.r4.model.Bundle addBundleEntries(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)
    • 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

      protected void populateEvaluatedResources(org.hl7.fhir.r4.model.MeasureReport measureReport, Map<String,org.hl7.fhir.r4.model.Resource> resources)
    • populateSDEResources

      protected void populateSDEResources(org.hl7.fhir.r4.model.MeasureReport measureReport, Map<String,org.hl7.fhir.r4.model.Resource> resources)
    • initializeResult

      protected org.hl7.fhir.r4.model.Parameters initializeResult()
    • getFullUrl

      protected static String getFullUrl(String serverAddress, org.hl7.fhir.instance.model.api.IBaseResource resource)
    • getFullUrl

      protected static String getFullUrl(String serverAddress, String fhirType, String elementId)
    • checkValidStatusCode

      protected void checkValidStatusCode(List<String> statuses)