Skip to content

Commit

Permalink
BAH-3557 | Refactor. handle obs which has duration obs (Bahmni#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
SanoferSameera authored Mar 1, 2024
1 parent eee88c5 commit 5cad9df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/app/common/concept-set/mappers/observationMapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ Bahmni.ConceptSet.ObservationMapper = function () {
return observation.value.shortName || observation.value.name || observation.value;
}

if (observation.durationObs !== undefined) {
return observation.primaryObs && (observation.primaryObs.value.shortName || observation.primaryObs.value.name || observation.primaryObs.value);
}

return conceptGroupFormatService.groupObs(observation);
};

Expand Down

0 comments on commit 5cad9df

Please sign in to comment.