RegisterRepository
Constructors
Properties
Functions
This function upserts a resource into the database. This function also updates the Resource.meta and generates the Resource.id if it is missing before upserting the resource. The resource needs to already have a Resource.id.
Count register data for the provided registerId. Use the configured base resource filters
Filtering the Related Resources is achieved by use of the filterFhirPathExpression configuration. It specifies which field and values to filter the resources by.
This function returns data used on the profile for the given resourceId. Profile configuration is identified by the profileId and contains the queries for filtering the profile data. Data is loaded based on the FhirResourceConfig. When none is provided the configurations identified by the profileId are used.
This function loads the desired register configuration using the provided registerId. The data query extracted from the retrieved configuration is used to filter the register data (FHIR resources wrapped in ResourceData
Remove member of a group using the provided memberId and groupMemberResourceType
Data queries for retrieving resources require the id to be provided in the format ResourceType/UUID e.g Group/0acda8c9-3fa3-40ae-abcd-7d1fba7098b4. When resources are synced up to the server the id is updated with history information e.g Group/0acda8c9-3fa3-40ae-abcd-7d1fba7098b4/_history/1 This needs to be formatted to ResourceType/UUID format and updated in the computedValuesMap