Skip to content

Commit

Permalink
Fix some documentation and spotless apply
Browse files Browse the repository at this point in the history
  • Loading branch information
shoaibmushtaq25 committed Jul 27, 2022
1 parent 680ca34 commit 9aafd1b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ internal class QuestionnaireViewModel(application: Application, state: SavedStat

/**
* This function evaluates variable expression and return the evaluated result. To evaluate root
* [Questionnaire] level variable expressions, we only pass expression to this function and for
* [Questionnaire] level variable expressions, we pass only an expression to this function and for
* variables expressions defined at questionnaire item [Questionnaire.QuestionnaireItemComponent]
* level, we pass expression and respective questionnaire item to this function
*
Expand Down Expand Up @@ -583,7 +583,7 @@ internal class QuestionnaireViewModel(application: Application, state: SavedStat
}

/**
* Function to find a variable, first check at origin if not found, then check in parent
* Function to find a variable, first checks at origin if not found, then check in parent
* hierarchy, if not found, then check at root level and return the Pair
*
* @param variableName the [String] to match the variable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -62,10 +62,12 @@ import org.hl7.fhir.r4.utils.StructureMapUtilities
* [population](http://build.fhir.org/ig/HL7/sdc/populate.html).
*
* This class supports
* [Definition-based extraction](http://build.fhir.org/ig/HL7/sdc/extraction.html#definition-based-extraction),
* [StructureMap-based extraction](http://hl7.org/fhir/uv/sdc/extraction.html#structuremap-based-extraction),
* and
* [expression-based population](http://build.fhir.org/ig/HL7/sdc/populate.html#expression-based-population).
* [Definition-based extraction](http://build.fhir.org/ig/HL7/sdc/extraction.html#definition-based-extraction)
* ,
* [StructureMap-based extraction](http://hl7.org/fhir/uv/sdc/extraction.html#structuremap-based-extraction)
* , and
* [expression-based population](http://build.fhir.org/ig/HL7/sdc/populate.html#expression-based-population)
* .
*
* See the [developer guide](https://github.com/google/android-fhir/wiki/SDCL%3A-Use-ResourceMapper)
* for more information.
Expand All @@ -87,7 +89,8 @@ object ResourceMapper {
* [Bundle] is returned if [structureMapExtractionContext] is not provided.
*
* Otherwise, this method will perform
* [Definition-based extraction](http://hl7.org/fhir/uv/sdc/extraction.html#definition-based-extraction).
* [Definition-based extraction](http://hl7.org/fhir/uv/sdc/extraction.html#definition-based-extraction)
* .
*
* @param questionnaire A [Questionnaire] with data extraction extensions.
* @param questionnaireResponse A [QuestionnaireResponse] with answers for [questionnaire].
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,16 +21,14 @@ import org.hl7.fhir.r4.context.IWorkerContext
import org.hl7.fhir.r4.model.StructureMap
import org.hl7.fhir.r4.utils.StructureMapUtilities

/**
* Data used during StructureMap-based extraction.
*/
/** Data used during StructureMap-based extraction. */
data class StructureMapExtractionContext(
/** The application context. */
val context: Context,
/**
* Optionally pass a custom version of [StructureMapUtilities.ITransformerServices] to support
* specific use cases.
**/
*/
val transformSupportServices: StructureMapUtilities.ITransformerServices? = null,
/**
* A lambda function which returns a [StructureMap]. Depending on your app this could be
Expand Down

0 comments on commit 9aafd1b

Please sign in to comment.