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
constructor(fhirEngine: FhirEngine, sharedPreferencesHelper: SharedPreferencesHelper, configurationRegistry: ConfigurationRegistry, configService: ConfigService, configRulesExecutor: ConfigRulesExecutor, fhirOperator: FhirOperator, knowledgeManager: KnowledgeManager, fhirPathDataExtractor: FhirPathDataExtractor, parser: IParser, context: Context, dispatcherProvider: DispatcherProvider)

Properties

Link copied to clipboard
Link copied to clipboard
open override val configService: ConfigService
Link copied to clipboard
Link copied to clipboard
open override val context: Context
Link copied to clipboard
Link copied to clipboard
open override val fhirEngine: FhirEngine
Link copied to clipboard
Link copied to clipboard
open override val parser: IParser
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun <R : Resource> addOrUpdate(addMandatoryTags: Boolean, resource: R)
Link copied to clipboard
suspend fun changeManagingEntity(newManagingEntityId: String, groupId: String, managingEntityConfig: ManagingEntityConfig?)
Link copied to clipboard
suspend fun closeResource(resource: Resource, eventWorkflow: EventWorkflow)
Link copied to clipboard
inline suspend fun count(search: Search): Long
Link copied to clipboard
suspend fun countResources(filterByRelatedEntityLocation: Boolean, baseResourceConfig: ResourceConfig, filterActiveResources: List<ActiveResourceFilterConfig>, configComputedRuleValues: Map<String, Any>): Long
Link copied to clipboard
suspend fun create(addResourceTags: Boolean, vararg resource: Resource): List<String>
Link copied to clipboard
suspend fun createRemote(addResourceTags: Boolean, vararg resource: Resource)
Link copied to clipboard
suspend fun delete(resource: Resource, softDelete: Boolean)
suspend fun delete(resourceType: ResourceType, resourceId: String, softDelete: Boolean)
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
fun filterRelatedResource(resource: Resource, resourceConfig: ResourceConfig): Boolean
Link copied to clipboard
suspend fun loadManagingEntity(group: Group): Patient?
Link copied to clipboard
inline suspend fun <T : Resource> loadResource(resourceId: String): T?
suspend fun loadResource(reference: Reference): Resource
suspend fun loadResource(resourceId: String, resourceType: ResourceType): Resource
Link copied to clipboard
suspend fun purge(resource: Resource, forcePurge: Boolean)
Link copied to clipboard
suspend fun removeGroup(groupId: String, isDeactivateMembers: Boolean?, configComputedRuleValues: Map<String, Any>)
Link copied to clipboard
suspend fun removeGroupMember(memberId: String, groupId: String?, groupMemberResourceType: ResourceType?, configComputedRuleValues: Map<String, Any>)
Link copied to clipboard
suspend fun retrieveFlattenedSubLocations(locationId: String): ArrayDeque<Location>
Link copied to clipboard
suspend fun retrieveUniqueIdAssignmentResource(uniqueIdAssignmentConfig: UniqueIdAssignmentConfig?, computedValuesMap: Map<String, Any>): Resource?
Link copied to clipboard
inline suspend fun <R : Resource> search(search: Search): List<R>
Link copied to clipboard
inline suspend fun <T : Resource> searchResourceFor(token: TokenClientParam, subjectType: ResourceType, subjectId: String, dataQueries: List<DataQuery>, configComputedRuleValues: Map<String, Any>): List<T>
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 <R : Resource> update(resource: R)
Link copied to clipboard
suspend fun updateResourcesRecursively(resourceConfig: ResourceConfig, subject: Resource?, eventWorkflow: EventWorkflow)