Package-level declarations
Properties
Pre-order list of descendants of the questionnaire response item (inclusive of the current item).
This property returns the substring of the filepath after the last period '.' which is the extension
Returns a list of month-year for for all months falling in given measure period Example: Jan-2021 -> Apr-2021 = (Jan-2021), (Feb-2021), (Mar-2021), (Apr-2021)
Functions
Return an abbreviation for the provided string
This is required to fix keyboard overlapping content in a Composable screen. This functionality is applied after the setContent function of the activity is called.
Return a pair of application versionCode and versionName e.g. Pair(1, 0.0.1)
This function calculates the age from date then translates the abbreviation for the the periods. If year is 0 display the age in years, if year is 0 then display age in month and weeks, if month is 0 display age in weeks and days otherwise if week is 0 display age in days.
Cast string value (including json string) to the FHIR {@link org.hl7.fhir.r4.model.Type}
Decode string to an entity of type T
Delete resources in QuestionnaireResponse.contained from the database
Encode the type T into a Json string
Extract a Resource's age if birthDate is an available field
Extract a Resource's birthDate if it's an available field
Extracts and returns a translated string for the gender in the resource
A function that extracts only the UUID part of a resource logicalId.
This extension function is used to configure DataQuery s against the Search DSL. This extension covers all queries for for the supported DataType s. Filters of the same DataType are grouped together in a query and a configured DataQuery.operation is used to determine either to use either 'AND' or 'OR' in the where clause of the Query. Optional configComputedRuleValues is provided to substitute FilterCriterionConfig.computedRule placeholders with actual values.
Filter provided Resource's using FhirPath expressions. The extracted FHIRPath value is REQUIRED to be a boolean otherwise the toBoolean function will evaluate to false and hence return an empty list.
This function checks if the device is online
This function launches another Activity on top of the current. The current Activity is cleared from the back stack for launching the next activity then the current Activity is finished based on finishLauncherActivity condition.
Wrapper method around the Java text formatter
Borrows from: https://github.com/google/android-fhir/pull/1936
Parse this String to a color code to be used in compose. Color code must either a). begin with pound sign ('#') and should be of 6 valid characters or b). be equal to 'primaryColor', 'primaryVariantColor' or 'errorColor'
Get the practitioner endpoint url and append the keycloak-uuid. The original String is assumed to be a keycloak-uuid.
Set all questions that are not of type Questionnaire.QuestionnaireItemType.GROUP to readOnly if readOnlyLinkIds item are there while editing the form. This also generates the correct FHIRPath population expression for each question when mapped to the corresponding QuestionnaireResponse
Set all questions that are not of type Questionnaire.QuestionnaireItemType.GROUP to readOnly if readOnly is true. This also generates the correct FHIRPath population expression for each question when mapped to the corresponding QuestionnaireResponse
Pre-Populate Questionnaire items with initial values
Pre-populates questionnaire with computed QuestionnaireConfig.uniqueIdAssignment.
Pre-populates questionnaire with computed values from the Rules engine as well as include initial values set on configured QuestionnaireConfig.barcodeLinkId or QuestionnaireConfig.uniqueIdAssignment properties.
Remove double white spaces from text and also remove space before comma
Composition sections can be nested. This function retrieves all the nested composition sections and returns a flattened list of all Composition.SectionComponent for the given Composition resource
Creates identifier from string text by doing clean up on the passed value
Decode string to an entity of type T or return null if json is invalid
Parses a string that represents a duration in ISO-8601 format and returns the parsed Duration value. If parsing fails a default of 1 day duration value is returned
This suspend function updates the due date of the dependents of the current Task, based on the date of a related Immunization. The function loops through all the tasks that are part-of the current task, loads the dependent tasks and their related immunization resources from the DefaultRepository then updates the start date of the dependent task if it's scheduled to start before the immunization date plus the required number of days.