Skip to content

Commit 2c7808f

Browse files
authored
HotFix: Resolve docs errors on implementation guide (#3285)
* Resolve docs errors on implementation guide * Fix JSON errors
1 parent d47d3c9 commit 2c7808f

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

android/quest/src/main/res/layout/password_view.xml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,39 @@
11
<?xml version="1.0" encoding="utf-8" ?>
2-
<LinearLayout
3-
xmlns:android="http://schemas.android.com/apk/res/android"
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
android:layout_width="match_parent"
54
android:layout_height="wrap_content"
65
android:layout_marginHorizontal="@dimen/item_margin_horizontal"
76
android:layout_marginVertical="@dimen/item_margin_vertical"
8-
android:orientation="vertical"
9-
>
7+
android:orientation="vertical">
108

119
<com.google.android.fhir.datacapture.views.HeaderView
1210
android:id="@+id/header"
1311
android:layout_width="match_parent"
14-
android:layout_height="wrap_content"
15-
/>
12+
android:layout_height="wrap_content" />
1613

1714
<com.google.android.fhir.datacapture.views.MediaView
1815
android:id="@+id/item_media"
1916
android:layout_width="match_parent"
20-
android:layout_height="wrap_content"
21-
/>
17+
android:layout_height="wrap_content" />
2218

2319
<LinearLayout
2420
android:layout_width="match_parent"
2521
android:layout_height="wrap_content"
26-
android:orientation="vertical"
27-
>
22+
android:orientation="vertical">
2823

2924
<com.google.android.material.textfield.TextInputLayout
3025
android:id="@+id/password_input_layout"
3126
style="?attr/questionnaireTextInputLayoutStyle"
3227
android:layout_width="match_parent"
33-
android:layout_height="wrap_content"
34-
>
28+
android:layout_height="wrap_content">
29+
3530
<com.google.android.material.textfield.TextInputEditText
3631
android:id="@+id/password_edit_text"
3732
style="?attr/questionnaireTextInputEditTextStyle"
3833
android:layout_width="match_parent"
3934
android:layout_height="wrap_content"
40-
android:maxLines="1"
4135
android:inputType="textPassword"
42-
/>
36+
android:maxLines="1" />
4337
</com.google.android.material.textfield.TextInputLayout>
4438
</LinearLayout>
4539

docs/engineering/android-app/configuring/config-types/ImplementationGuide.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
#Implementation Guide
1+
# Implementation Guide
22
This is a FHIR resource that is used for version management of the application. Currently an Implementation Guide should point to a Composition resource.
33
The idea is that a given app version should use the resources that a given Composition resource is pointing to.
44
In the sample JSON below, the Implementation Guide points to a composition with an id 8294.
55
The valueRange object implies that the composition resource in this Implementation guide supports applications with `version_code` between 1 to 10.
66

7-
#Fetching an Implementation Guide.
7+
## Fetching an Implementation Guide.
88
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.
99
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
1010
`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.
1111

12-
#Sample JSON
12+
## Sample JSON
13+
``` json
1314
{
1415
"resourceType": "ImplementationGuide",
1516
"id": "12967310",
@@ -65,3 +66,4 @@ The ideal query to use to fetch an implementation guide is `ImplementationGuide?
6566
]
6667
}
6768
}
69+
```

0 commit comments

Comments
 (0)