Skip to content

Commit

Permalink
Merge branch 'main' into cherrypick_3216
Browse files Browse the repository at this point in the history
  • Loading branch information
dubdabasoduba authored May 24, 2024
2 parents cc4a92c + 2c7808f commit 9505846
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
22 changes: 8 additions & 14 deletions android/quest/src/main/res/layout/password_view.xml
Original file line number Diff line number Diff line change
@@ -1,45 +1,39 @@
<?xml version="1.0" encoding="utf-8" ?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/item_margin_horizontal"
android:layout_marginVertical="@dimen/item_margin_vertical"
android:orientation="vertical"
>
android:orientation="vertical">

<com.google.android.fhir.datacapture.views.HeaderView
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
android:layout_height="wrap_content" />

<com.google.android.fhir.datacapture.views.MediaView
android:id="@+id/item_media"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
android:layout_height="wrap_content" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
android:orientation="vertical">

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/password_input_layout"
style="?attr/questionnaireTextInputLayoutStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
android:layout_height="wrap_content">

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/password_edit_text"
style="?attr/questionnaireTextInputEditTextStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLines="1"
android:inputType="textPassword"
/>
android:maxLines="1" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
#Implementation Guide
# Implementation Guide
This is a FHIR resource that is used for version management of the application. Currently an Implementation Guide should point to a Composition resource.
The idea is that a given app version should use the resources that a given Composition resource is pointing to.
In the sample JSON below, the Implementation Guide points to a composition with an id 8294.
The valueRange object implies that the composition resource in this Implementation guide supports applications with `version_code` between 1 to 10.

#Fetching an Implementation Guide.
## Fetching an Implementation Guide.
We need to get an Implementation Guide before user authentication. And for this to work, your project should have a version of [fhir-gateway](https://github.com/onaio/fhir-gateway-extension) that has the ImplementationGuide endpoint whitelisted.
The ideal query to use to fetch an implementation guide is `ImplementationGuide?name=zeir&context-quantity=le10&_sort=-context-quantity&_count=1`. The url queries
`context-quantity=le10&_sort=-context-quantity&_count=1` ensures that you get the Implementation Guide whose useContext.valueRange.high.value is 10 or highest value near 10.

#Sample JSON
## Sample JSON
``` json
{
"resourceType": "ImplementationGuide",
"id": "12967310",
Expand Down Expand Up @@ -65,3 +66,4 @@ The ideal query to use to fetch an implementation guide is `ImplementationGuide?
]
}
}
```

0 comments on commit 9505846

Please sign in to comment.