Class Dstu3MeasureReportBuilder

java.lang.Object
org.opencds.cqf.fhir.cr.measure.dstu3.Dstu3MeasureReportBuilder
All Implemented Interfaces:
MeasureReportBuilder<org.hl7.fhir.dstu3.model.Measure,org.hl7.fhir.dstu3.model.MeasureReport,org.hl7.fhir.dstu3.model.DomainResource>

public class Dstu3MeasureReportBuilder extends Object implements MeasureReportBuilder<org.hl7.fhir.dstu3.model.Measure,org.hl7.fhir.dstu3.model.MeasureReport,org.hl7.fhir.dstu3.model.DomainResource>
  • Field Details

    • POPULATION_SUBJECT_SET

      protected static final String POPULATION_SUBJECT_SET
      See Also:
    • EXT_POPULATION_DESCRIPTION_URL

      protected static final String EXT_POPULATION_DESCRIPTION_URL
      See Also:
    • EXT_SDE_REFERENCE_URL

      protected static final String EXT_SDE_REFERENCE_URL
      See Also:
    • POPULATION_BASIS_URL

      protected static final String POPULATION_BASIS_URL
      See Also:
    • measureReportScorer

      protected MeasureReportScorer<org.hl7.fhir.dstu3.model.MeasureReport> measureReportScorer
    • measure

      protected org.hl7.fhir.dstu3.model.Measure measure
    • report

      protected org.hl7.fhir.dstu3.model.MeasureReport report
    • evaluatedResourceReferences

      protected HashMap<String,org.hl7.fhir.dstu3.model.Reference> evaluatedResourceReferences
  • Constructor Details

    • Dstu3MeasureReportBuilder

      public Dstu3MeasureReportBuilder()
  • Method Details

    • reset

      protected void reset()
    • build

      public org.hl7.fhir.dstu3.model.MeasureReport build(org.hl7.fhir.dstu3.model.Measure measure, MeasureDef measureDef, MeasureReportType measureReportType, org.opencds.cqf.cql.engine.runtime.Interval measurementPeriod, List<String> subjectIds)
      Specified by:
      build in interface MeasureReportBuilder<org.hl7.fhir.dstu3.model.Measure,org.hl7.fhir.dstu3.model.MeasureReport,org.hl7.fhir.dstu3.model.DomainResource>
    • buildGroups

      protected void buildGroups(org.hl7.fhir.dstu3.model.Measure measure, MeasureDef measureDef)
    • buildGroup

      protected void buildGroup(MeasureDef measureDef, String groupKey, org.hl7.fhir.dstu3.model.Measure.MeasureGroupComponent measureGroup, org.hl7.fhir.dstu3.model.MeasureReport.MeasureReportGroupComponent reportGroup, GroupDef groupDef)
    • getKey

      protected String getKey(String prefix, String id, org.hl7.fhir.dstu3.model.CodeableConcept code, Integer index)
    • buildStratifier

      protected void buildStratifier(String groupKey, Integer stratIndex, org.hl7.fhir.dstu3.model.Measure.MeasureGroupStratifierComponent measureStratifier, org.hl7.fhir.dstu3.model.MeasureReport.MeasureReportGroupStratifierComponent reportStratifier, StratifierDef stratifierDef, List<org.hl7.fhir.dstu3.model.Measure.MeasureGroupPopulationComponent> populations)
    • buildStratum

      protected void buildStratum(String groupKey, String stratifierKey, org.hl7.fhir.dstu3.model.MeasureReport.StratifierGroupComponent stratum, org.opencds.cqf.fhir.cr.measure.dstu3.Dstu3MeasureReportBuilder.ValueWrapper value, List<String> subjectIds, List<org.hl7.fhir.dstu3.model.Measure.MeasureGroupPopulationComponent> populations)
    • buildStratumPopulation

      protected void buildStratumPopulation(String groupKey, String stratifierKey, String stratumKey, org.hl7.fhir.dstu3.model.MeasureReport.StratifierGroupPopulationComponent sgpc, List<String> subjectIds, org.hl7.fhir.dstu3.model.Measure.MeasureGroupPopulationComponent population)
    • buildPopulation

      protected void buildPopulation(MeasureDef measureDef, String groupKey, org.hl7.fhir.dstu3.model.Measure.MeasureGroupPopulationComponent measurePopulation, org.hl7.fhir.dstu3.model.MeasureReport.MeasureReportGroupPopulationComponent reportPopulation, PopulationDef populationDef)
    • buildMeasureObservations

      protected void buildMeasureObservations(String observationName, Set<Object> resources)
    • createList

      protected org.hl7.fhir.dstu3.model.ListResource createList(String id)
    • createIdList

      protected org.hl7.fhir.dstu3.model.ListResource createIdList(String id, Collection<String> ids)
    • createReferenceList

      protected org.hl7.fhir.dstu3.model.ListResource createReferenceList(String id, Collection<org.hl7.fhir.dstu3.model.Reference> references)
    • getEvaluatedResourceReferences

      protected HashMap<String,org.hl7.fhir.dstu3.model.Reference> getEvaluatedResourceReferences()
    • getEvaluatedResourceReference

      protected org.hl7.fhir.dstu3.model.Reference getEvaluatedResourceReference(String id)
    • processSdes

      protected void processSdes(org.hl7.fhir.dstu3.model.Measure measure, MeasureDef measureDef, List<String> subjectIds)
    • getPeriod

      protected org.hl7.fhir.dstu3.model.Period getPeriod(org.opencds.cqf.cql.engine.runtime.Interval measurementPeriod)
    • createMeasureReport

      protected org.hl7.fhir.dstu3.model.MeasureReport createMeasureReport(org.hl7.fhir.dstu3.model.Measure measure, MeasureDef measureDef, MeasureReportType type, List<String> subjectIds, org.opencds.cqf.cql.engine.runtime.Interval measurementPeriod)
    • getExtensionCoding

      protected org.hl7.fhir.dstu3.model.Coding getExtensionCoding(org.hl7.fhir.dstu3.model.DomainResource patient, String coreCategory, String sdeCode)
    • createStringExtension

      protected org.hl7.fhir.dstu3.model.Extension createStringExtension(String url, String value)
    • createReferenceExtension

      protected org.hl7.fhir.dstu3.model.Extension createReferenceExtension(String url, String reference)
    • addExtensionToReference

      protected void addExtensionToReference(org.hl7.fhir.dstu3.model.Reference reference, org.hl7.fhir.dstu3.model.Extension extension)
    • createMeasureInfoExtension

      protected org.hl7.fhir.dstu3.model.Extension createMeasureInfoExtension(MeasureInfo measureInfo)
    • createPopulationObservation

      protected org.hl7.fhir.dstu3.model.DomainResource createPopulationObservation(String id, String populationId, org.hl7.fhir.dstu3.model.Coding valueCoding, Long sdeAccumulatorValue)
    • createPatientObservation

      protected org.hl7.fhir.dstu3.model.DomainResource createPatientObservation(String id, String populationId, org.hl7.fhir.dstu3.model.Coding valueCoding)
    • createObservation

      protected org.hl7.fhir.dstu3.model.Observation createObservation(String id, String populationId)
    • createMeasureObservation

      protected org.hl7.fhir.dstu3.model.Observation createMeasureObservation(String id, String observationName)
    • escapeForFhirId

      protected String escapeForFhirId(String value)