MeasureReportRepository
class MeasureReportRepository @Inject constructor(val fhirEngine: FhirEngine, val sharedPreferencesHelper: SharedPreferencesHelper, val configurationRegistry: ConfigurationRegistry, val configService: ConfigService, val configRulesExecutor: ConfigRulesExecutor, fhirOperator: FhirOperator, knowledgeManager: KnowledgeManager, val fhirPathDataExtractor: FhirPathDataExtractor, val parser: IParser, val context: Context, val dispatcherProvider: DispatcherProvider) : DefaultRepository
Constructors
Link copied to clipboard
@Inject
Properties
Functions
Link copied to clipboard
Link copied to clipboard
suspend fun changeManagingEntity(newManagingEntityId: String, groupId: String, managingEntityConfig: ManagingEntityConfig?)
Link copied to clipboard
Link copied to clipboard
suspend fun countResources(filterByRelatedEntityLocation: Boolean, baseResourceConfig: ResourceConfig, filterActiveResources: List<ActiveResourceFilterConfig>, configComputedRuleValues: Map<String, Any>): Long
Link copied to clipboard
Link copied to clipboard
suspend fun evaluatePopulationMeasure(measureUrl: String, startDateFormatted: String, endDateFormatted: String, subjects: List<String>, existing: List<MeasureReport>, practitionerId: String?): List<MeasureReport>
If running a measure for any subject throws a null pointer exception the measures for unevaluated subjects are discarded and the method returns a list of any reports added so far.
Link copied to clipboard
Fetch subjects based on subjectXFhirQuery in passed ReportConfiguration. If empty or FHIRException thrown return an empty list.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun retrieveUniqueIdAssignmentResource(uniqueIdAssignmentConfig: UniqueIdAssignmentConfig?, computedValuesMap: Map<String, Any>): Resource?
Link copied to clipboard
suspend fun searchResourcesRecursively(filterByRelatedEntityLocationMetaTag: Boolean, filterActiveResources: List<ActiveResourceFilterConfig>?, fhirResourceConfig: FhirResourceConfig, secondaryResourceConfigs: List<FhirResourceConfig>?, currentPage: Int?, pageSize: Int?, configRules: List<RuleConfig>?): List<RepositoryResourceData>
Link copied to clipboard
suspend fun updateResourcesRecursively(resourceConfig: ResourceConfig, subject: Resource?, eventWorkflow: EventWorkflow)