Skip to content

Commit 363e1d6

Browse files
committed
fix edit claim
1 parent 9babe73 commit 363e1d6

7 files changed

Lines changed: 11 additions & 4 deletions

File tree

claimManagement/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ android {
2727
minSdkVersion 23
2828
targetSdkVersion 32
2929
versionCode 4
30-
versionName "1.1.2"
30+
versionName "1.1.3"
3131
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
3232
}
3333
buildTypes {

claimManagement/src/main/java/org/openimis/imisclaims/ClaimActivity.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,11 @@ private boolean isValidData() {
749749
return false;
750750
}
751751

752+
if(!etReferalHF.getText().toString().isEmpty() && sqlHandler.getHfId(etReferalHF.getText().toString()).isEmpty()){
753+
showValidationDialog(rgVisitType, getResources().getString(R.string.InvalidReferalHf));
754+
return false;
755+
}
756+
752757
return true;
753758
}
754759

claimManagement/src/main/java/org/openimis/imisclaims/network/request/GetAdminIdGraphQLRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public GetAdminIdQuery.Node get(
2525
if (edges.isEmpty()) {
2626
throw new HttpException(
2727
/* code = */ HttpURLConnection.HTTP_NOT_FOUND,
28-
/* message = */ "Insuree with id '" + code + "' was not found",
28+
/* message = */ "Admin '" + code + "' was not found",
2929
/* body = */ null,
3030
/* cause = */ null
3131
);

claimManagement/src/main/java/org/openimis/imisclaims/network/request/GetDiagnosesGraphQLRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public GetDiagnoseIdQuery.Node get(
2525
if (edges.isEmpty()) {
2626
throw new HttpException(
2727
/* code = */ HttpURLConnection.HTTP_NOT_FOUND,
28-
/* message = */ "Insuree with id '" + code + "' was not found",
28+
/* message = */ "diagnose with code '" + code + "' was not found",
2929
/* body = */ null,
3030
/* cause = */ null
3131
);

claimManagement/src/main/java/org/openimis/imisclaims/network/request/GetInsureeIdGraphQLRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public GetInsureeIdQuery.Node get(
2525
if (edges.isEmpty()) {
2626
throw new HttpException(
2727
/* code = */ HttpURLConnection.HTTP_NOT_FOUND,
28-
/* message = */ "Insuree with id '" + chfId + "' was not found",
28+
/* message = */ "Insuree with ChfId '" + chfId + "' was not found",
2929
/* body = */ null,
3030
/* cause = */ null
3131
);

claimManagement/src/main/res/values-fr/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,5 @@
197197
<string name="initializing">Initialisation.....</string>
198198
<string name="initializing_complete">Initialisation Terminée</string>
199199
<string name="application">Application</string>
200+
<string name="InvalidReferalHf">Code de formation sanitaire de référence invalide</string>
200201
</resources>

claimManagement/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,4 +242,5 @@
242242
<string name="MissingReferralCode">Please enter a referral Code</string>
243243
<string name="Reference">Reference</string>
244244
<string name="MissingPatientCondition">Please select patient condition at discharge</string>
245+
<string name="InvalidReferalHf">Please enter a valid referral healthFacility code</string>
245246
</resources>

0 commit comments

Comments
 (0)