@@ -2906,7 +2906,8 @@ else if (durationUnit.equalsIgnoreCase("Month(s)"))
29062906 private double getQtyForOneDay (String form , String dose , String frequency ) {
29072907 double qtyInOneDay = 0 ;
29082908 if (form != null && dose != null && frequency != null ) {
2909- if (frequency .equalsIgnoreCase ("Once Daily(OD)" )) {
2909+ if (frequency .equalsIgnoreCase ("Once Daily(OD)" ) || frequency .equalsIgnoreCase ("Once Daily(OD) Before Food" )||
2910+ frequency .equalsIgnoreCase ("Once Daily(OD) After Food" )|| frequency .equalsIgnoreCase ("Once Daily(OD) At Bedtime" )) {
29102911 if (form .equalsIgnoreCase ("Tablet" )) {
29112912 if (dose .equalsIgnoreCase ("Half Tab" )) {
29122913 qtyInOneDay = .5 ;
@@ -2930,7 +2931,8 @@ private double getQtyForOneDay(String form, String dose, String frequency) {
29302931 }
29312932 }
29322933 } else {
2933- if (frequency .equalsIgnoreCase ("Twice Daily(BD)" )) {
2934+ if (frequency .equalsIgnoreCase ("Twice Daily(BD)" ) || frequency .equalsIgnoreCase ("Twice Daily(BD) Before Food" )||
2935+ frequency .equalsIgnoreCase ("Twice Daily(BD) After Food" )) {
29342936 if (form .equalsIgnoreCase ("Tablet" )) {
29352937 if (dose .equalsIgnoreCase ("Half Tab" )) {
29362938 qtyInOneDay = 1 ;
@@ -2954,7 +2956,8 @@ private double getQtyForOneDay(String form, String dose, String frequency) {
29542956 }
29552957 }
29562958 } else {
2957- if (frequency .equalsIgnoreCase ("Thrice Daily (TID)" )) {
2959+ if (frequency .equalsIgnoreCase ("Thrice Daily (TID)" ) || frequency .equalsIgnoreCase ("Thrice Daily (TID) After Food" )||
2960+ frequency .equalsIgnoreCase ("Thrice Daily (TID) Before Food" )) {
29582961 if (form .equalsIgnoreCase ("Tablet" )) {
29592962 if (dose .equalsIgnoreCase ("Half Tab" )) {
29602963 qtyInOneDay = 1.5 ;
@@ -2978,7 +2981,8 @@ private double getQtyForOneDay(String form, String dose, String frequency) {
29782981 }
29792982 }
29802983 } else {
2981- if (frequency .equalsIgnoreCase ("Four Times in a Day (QID)" )) {
2984+ if (frequency .equalsIgnoreCase ("Four Times in a Day (QID)" ) || frequency .equalsIgnoreCase ("Four Times in a Day AF" )||
2985+ frequency .equalsIgnoreCase ("Four Times in a Day BF" )) {
29822986 if (form .equalsIgnoreCase ("Tablet" )) {
29832987 if (dose .equalsIgnoreCase ("Half Tab" )) {
29842988 qtyInOneDay = 2 ;
@@ -3002,7 +3006,8 @@ private double getQtyForOneDay(String form, String dose, String frequency) {
30023006 }
30033007 }
30043008 } else {
3005- if (frequency .equalsIgnoreCase ("Single Dose" ) || frequency .equalsIgnoreCase ("Stat Dose" )) {
3009+ if (frequency .equalsIgnoreCase ("Single Dose" ) || frequency .equalsIgnoreCase ("Stat Dose" )||
3010+ frequency .equalsIgnoreCase ("Single Dose Before Food" ) || frequency .equalsIgnoreCase ("Single Dose After Food" )) {
30063011 if (form .equalsIgnoreCase ("Tablet" )) {
30073012 if (dose .equalsIgnoreCase ("Half Tab" )) {
30083013 qtyInOneDay = .5 ;
@@ -3026,7 +3031,8 @@ private double getQtyForOneDay(String form, String dose, String frequency) {
30263031 }
30273032 }
30283033 } else {
3029- if (frequency .equalsIgnoreCase ("Once in a Week" )) {
3034+ if (frequency .equalsIgnoreCase ("Once in a Week" ) || frequency .equalsIgnoreCase ("Once in a Week After Food" )
3035+ || frequency .equalsIgnoreCase ("Once in a Week Before Food" )) {
30303036 if (form .equalsIgnoreCase ("Tablet" )) {
30313037 if (dose .equalsIgnoreCase ("Half Tab" )) {
30323038 qtyInOneDay = .07142 ;
0 commit comments