Skip to content

Commit

Permalink
Only add abnormal flag interpretation if value present
Browse files Browse the repository at this point in the history
  • Loading branch information
emyl3 committed Jul 12, 2024
1 parent 770ac2f commit f1d0934
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -745,9 +745,10 @@ public Observation convertToObservation(ConvertToObservationProps props) {
props.getCorrectionReason(),
observation);

observation
.addInterpretation()
.addCoding(convertToAbnormalFlagInterpretation(props.getResultCode()));
Coding abnormalFlagCode = convertToAbnormalFlagInterpretation(props.getResultCode());
if (abnormalFlagCode != null) {
observation.addInterpretation().addCoding(abnormalFlagCode);
}

observation.setIssued(props.getIssued());
observation.getIssuedElement().setTimeZoneZulu(true);
Expand Down

0 comments on commit f1d0934

Please sign in to comment.