Skip to content

Commit

Permalink
Sreelekha | MOBN-2460 | Add Observation Mapping for Addiitonal Attrib…
Browse files Browse the repository at this point in the history
…utes (#90)

Co-authored-by: rsrilaxmiragini <[email protected]>
  • Loading branch information
Srkrishna and srilaxmiraginir authored Sep 11, 2024
1 parent 9f4a290 commit 29c197f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/app/clinical/consultation/mappers/specimenMapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Bahmni.Clinical.SpecimenMapper = function () {
}
if (specimen.sample && specimen.sample.additionalAttributes) {
specimen.sample.additionalAttributes = (specimen.sample.additionalAttributes) instanceof Array ? specimen.sample.additionalAttributes : [specimen.sample.additionalAttributes];

var obs = new Bahmni.Common.Obs.ObservationMapper().map(specimen.sample.additionalAttributes, conceptsConfig, dontSortByObsDateTime);
specimen.sampleAdditionalAttributes = obs && obs.length > 0 ? obs[0] : obs;
}
return specimen;
};
Expand Down

0 comments on commit 29c197f

Please sign in to comment.