Skip to content

Commit

Permalink
Merge branch 'master' into cqf
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya-07 committed Apr 29, 2024
2 parents 569c00d + 56339b4 commit 504ab25
Show file tree
Hide file tree
Showing 19 changed files with 2,530 additions and 66 deletions.
9 changes: 8 additions & 1 deletion datacapture/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ android {

configureJacocoTestOptions()

sourceSets { getByName("androidTest").apply { resources.setSrcDirs(listOf("sampledata")) } }
sourceSets {
getByName("androidTest").apply { resources.setSrcDirs(listOf("sampledata")) }

getByName("test").apply { resources.setSrcDirs(listOf("sampledata")) }
}

testOptions { animationsDisabled = true }
kotlin { jvmToolchain(11) }
Expand Down Expand Up @@ -105,6 +109,9 @@ dependencies {
testImplementation(Dependencies.mockitoKotlin)
testImplementation(Dependencies.robolectric)
testImplementation(Dependencies.truth)
testImplementation(project(":knowledge")) {
exclude(group = Dependencies.androidFhirGroup, module = Dependencies.androidFhirEngineModule)
}

constraints {
Dependencies.hapiFhirConstraints().forEach { (libName, constraints) ->
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
map "http:https://worldhealthorganization.github.io/smart-ot/StructureMap/MeaslesQuestionnaireToResources" = "MeaslesQuestionnaireToResources"
uses "http:https://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QuestionnaireResponse as source
uses "http:https://hl7.org/fhir/StructureDefinition/Bundle" alias MeaslesCIFBundle as target

imports "http:https://worldhealthorganization.github.io/smart-ot/StructureMap/MeaslesLogicalModelToResources"
imports "http:https://worldhealthorganization.github.io/smart-ot/StructureMap/MeaslesQuestionnaireToLogicalModel"


group MeaslesQuestionnaireToResources(source qr : QuestionnaireResponse, target bundleCif : MeaslesCIFBundle) {
qr -> create ("http:https://worldhealthorganization.github.io/smart-ot/StructureDefinition/SOTMeasles") as model then {
qr -> model then MeaslesQuestionnaireToLogicalModel(qr,model) "QRtoLM";
qr -> bundleCif then MeaslesLogicalModelToResources (model, bundleCif) "LMtoBundle";
} "QRtoBundle";
}
Binary file not shown.
Binary file not shown.
1,019 changes: 1,019 additions & 0 deletions datacapture/sampledata/measles-outbreak/questionnaire_outbreak.json

Large diffs are not rendered by default.

Loading

0 comments on commit 504ab25

Please sign in to comment.