Skip to content

Commit 7b9ecd5

Browse files
authored
Merge branch 'develop' into feature-35491
2 parents 019577e + fbd9acd commit 7b9ecd5

40 files changed

Lines changed: 2236 additions & 139 deletions

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- '*'
77
# tags:
88
# - '!v*'
9+
pull_request:
10+
branches:
11+
- '*'
12+
types: [opened, synchronize, reopened]
913

1014
jobs:
1115
build:

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ proguard/
2626
# Log Files
2727
*.log
2828

29+
# Java heap dump files
30+
*.hprof
31+
2932
# Android Studio Navigation editor temp files
3033
.navigation/
3134

@@ -76,10 +79,16 @@ fastlane/readme.md
7679

7780
# Visual Studio Code
7881
.vscode/
82+
./.DS_Store
83+
./.git/.DS_Store
84+
*.DS_Store
7985

8086

8187
# Custom product flavours
8288
*custom-flavours.gradle
8389
.DS_Store
8490

91+
.DS_Store
92+
*.properties
93+
./gradle
8594
*.DS_Store

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ private String _Domain = "http://132.148.151.32/";
3939
```
4040

4141
For demo purposes, the default Web Services domain is set to the openIMIS
42-
demo server: demo.openimis.org (IP: 132.148.151.32).
42+
demo server: demo.openimis.org (IP: 132.148.151.32).
43+
44+
If you want to receive error and exception events in sentry
45+
you can set `sentry_dsn` in build.gradle file
4346

4447
### Running the app
4548

claimManagement/build.gradle

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ android {
6262
buildConfigField "String", "RAR_PASSWORD", '")(#$1HsD"'
6363
buildConfigField "String", "API_VERSION", '"3"'
6464
resValue "string", "release_tag", "release/25.04"
65+
resValue "string", "sentry_dsn", ""
6566
}
6667

6768
productFlavors {
@@ -181,6 +182,13 @@ android {
181182
exclude 'META-INF/DEPENDENCIES'
182183
}
183184
namespace 'org.openimis.imisclaims'
185+
186+
testOptions {
187+
unitTests {
188+
includeAndroidResources = true
189+
returnDefaultValues = true
190+
}
191+
}
184192
}
185193

186194
apollo {
@@ -194,6 +202,13 @@ apollo {
194202
]
195203
}
196204

205+
tasks.withType(Test).configureEach {
206+
testLogging {
207+
events "passed", "skipped", "failed"
208+
exceptionFormat "full"
209+
showStandardStreams = false
210+
}
211+
}
197212

198213
// Apply custom flavours
199214
if(file('custom-flavours.gradle').exists()){
@@ -216,10 +231,15 @@ dependencies {
216231
implementation ('com.apollographql.apollo:apollo-android-support:2.5.14'){
217232
because("Apollo 3+ only works with Kotlin coroutines")
218233
}
219-
testImplementation 'junit:junit:4.12'
234+
testImplementation 'junit:junit:4.13.2'
235+
testImplementation 'org.mockito:mockito-core:5.5.0'
236+
testImplementation 'org.robolectric:robolectric:4.11.1'
237+
testImplementation 'androidx.test:core:1.5.0'
220238
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
221239
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
240+
androidTestImplementation 'androidx.test:core:1.5.0'
222241
implementation group: 'com.squareup.picasso', name: 'picasso', version: '2.71828'
223242
implementation group: 'net.lingala.zip4j', name: 'zip4j', version: '1.2.7'
243+
implementation 'io.sentry:sentry-android:8.25.0'
224244

225245
}

claimManagement/fakedatabase

12 KB
Binary file not shown.

claimManagement/fakemapping

12 KB
Binary file not shown.

claimManagement/src/main/AndroidManifest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@
5656
android:resource="@xml/paths" />
5757
</provider>
5858

59+
<meta-data
60+
android:name="io.sentry.dsn"
61+
android:value="@string/sentry_dsn" />
62+
5963
<activity
6064
android:name=".MainActivity"
6165
android:exported="true"

claimManagement/src/main/graphql/org.openimis.imisclaim/GetMedications.graphql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
query GetMedications($offset: Int) {
2-
medicalItems(offset: $offset) {
1+
query GetMedications($offset: Int, $pricelistUuid: UUID, $date: Date) {
2+
medicalItemsStr(offset: $offset, pricelistUuid: $pricelistUuid, date: $date) {
33
pageInfo{
44
hasNextPage
55
}

claimManagement/src/main/graphql/org.openimis.imisclaim/GetPaymentList.graphql

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,47 +6,25 @@ query GetPaymentList($claim_administrator_code: String) {
66
healthFacility {
77
code
88
servicesPricelist {
9+
uuid
910
details {
1011
edges {
1112
node {
1213
service {
13-
id
1414
code
1515
name
1616
price
17-
packagetype
18-
type
19-
careType
20-
manualPrice
21-
serviceserviceSet {
22-
service {
23-
id
24-
code
25-
name
26-
}
27-
qtyProvided
28-
priceAsked
29-
}
30-
servicesLinked {
31-
item {
32-
id
33-
code
34-
name
35-
}
36-
qtyProvided
37-
priceAsked
38-
}
3917
}
4018
}
4119
}
4220
}
4321
}
4422
itemsPricelist {
23+
uuid
4524
details {
4625
edges {
4726
node {
4827
item {
49-
id
5028
code
5129
name
5230
price
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
query GetServices ($offset: Int, $pricelistUuid: UUID, $date: Date) {
2+
medicalServicesStr(offset: $offset, pricelistUuid: $pricelistUuid, date: $date) {
3+
pageInfo {
4+
hasNextPage
5+
}
6+
edges {
7+
node {
8+
id
9+
code
10+
name
11+
packagetype
12+
type
13+
price
14+
careType
15+
manualPrice
16+
serviceserviceSet {
17+
service {
18+
id
19+
code
20+
name
21+
}
22+
qtyProvided
23+
priceAsked
24+
}
25+
servicesLinked {
26+
item {
27+
id
28+
code
29+
name
30+
}
31+
qtyProvided
32+
priceAsked
33+
}
34+
}
35+
}
36+
}
37+
}

0 commit comments

Comments
 (0)