ministryofjustice / prison-api

API for Nomis DB used by DPS applications and other apis and services
https://api.prison.service.justice.gov.uk/swagger-ui.html
MIT License
7 stars 7 forks source link

SDIT-1842 Get last modified height and weight for prisoner search #2223

Closed mikehalmamoj closed 3 months ago

mikehalmamoj commented 3 months ago

We previously always took the OFFENDER_PHYSICAL_ATTRIBUTES record with ATTRIBUTE_SEQ=1. The prisoner profile team asked if we could send them the last modified record that for the sync. to DPS - this is the latest value entered by a user. However this would cause discrepancies with Prisoner Search which still displays the first sequence.

Therefore this PR changes the prisoner search endpoint to return the last modified physical attributes and so will align with DPS.