Skip to content

Commit

Permalink
prints 999 without decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
cerbeor committed Oct 18, 2024
1 parent 458688f commit 61a83c2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ public String buildVxu(VaccinationReported vaccinationReported, Tenant tenant) {
}
}
if (adminAmount > 0) {
sb.append(adminAmount);
if (adminAmount == 999.0) {
sb.append("999");
} else {
sb.append(adminAmount);
}
}
// RXA-7
sb.append("|");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ public String buildVxu(VaccinationReported vaccinationReported, Tenant tenant) {
}
}
if (adminAmount > 0) {
sb.append(adminAmount);
if (adminAmount == 999.0) {
sb.append("999");
} else {
sb.append(adminAmount);
}
}
// RXA-7
sb.append("|");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,11 @@ public String buildRSP(HL7Reader reader, String messageRecieved, PatientMaster p
}
}
if (adminAmount > 0) {
sb.append(adminAmount);
if (adminAmount == 999.0) {
sb.append("999");
} else {
sb.append(adminAmount);
}
}
// RXA-7
sb.append("|");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,11 @@ public String buildRSP(HL7Reader reader, String messageRecieved, PatientMaster p
}
}
if (adminAmount > 0) {
sb.append(adminAmount);
if (adminAmount == 999.0) {
sb.append("999");
} else {
sb.append(adminAmount);
}
}
// RXA-7
sb.append("|");
Expand Down

0 comments on commit 61a83c2

Please sign in to comment.