forked from openimis/policies_android_app_java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jobil
committed
Nov 2, 2023
1 parent
c7d5258
commit a49c28f
Showing
5 changed files
with
105 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
//Copyright (c) 2016-%CurrentYear% Swiss Agency for Development and Cooperation (SDC) | ||
// | ||
//The program users must agree to the following terms: | ||
// | ||
//Copyright notices | ||
//This program is free software: you can redistribute it and/or modify it under the terms of the GNU AGPL v3 License as published by the | ||
//Free Software Foundation, version 3 of the License. | ||
//This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL v3 License for more details www.gnu.org. | ||
// | ||
//Disclaimer of Warranty | ||
//There is no warranty for the program, to the extent permitted by applicable law; except when otherwise stated in writing the copyright | ||
//holders and/or other parties provide the program "as is" without warranty of any kind, either expressed or implied, including, but not | ||
//limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and | ||
//performance of the program is with you. Should the program prove defective, you assume the cost of all necessary servicing, repair or correction. | ||
// | ||
//Limitation of Liability | ||
//In no event unless required by applicable law or agreed to in writing will any copyright holder, or any other party who modifies and/or | ||
//conveys the program as permitted above, be liable to you for damages, including any general, special, incidental or consequential damages | ||
//arising out of the use or inability to use the program (including but not limited to loss of data or data being rendered inaccurate or losses | ||
//sustained by you or third parties or a failure of the program to operate with any other programs), even if such holder or other party has been | ||
//advised of the possibility of such damages. | ||
// | ||
//In case of dispute arising out or in relation to the use of the program, it is subject to the public law of Switzerland. The place of jurisdiction is Berne. | ||
|
||
package org.openimis.imispolicies; | ||
|
||
public class Escape { | ||
public int CheckInsuranceNumber(String InsuranceNumber){ | ||
|
||
if (InsuranceNumber.length() == 0){ | ||
return R.string.MissingInsuranceNumber; | ||
} | ||
|
||
if (!isValidInsuranceNumber(InsuranceNumber)){ | ||
return R.string.InvalidInsuranceNumber; | ||
|
||
} | ||
|
||
return 0; | ||
} | ||
|
||
private boolean isValidInsuranceNumber(String InsuranceNumber){ | ||
return true; | ||
} | ||
|
||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters