Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PES - add hmpps id endpoint for a given nomis number #452

Merged
merged 4 commits into from
Jul 29, 2024

Conversation

garethmdavies
Copy link
Contributor

Add endpoint to retrieve HMPPS ID given a nomis number. Until the HMPPS core person work is finialised this endpoint will return the crn in most cases but could also return the nomis number where no crn exists for a person.

@@ -33,7 +33,7 @@ data class Offender(
deliusCrn = otherIds.crn,
),
pncId = otherIds.pncNumber,
hmppsId = otherIds.crn,
hmppsId = if (otherIds.crn?.isNotEmpty() == true) otherIds.crn else otherIds.nomsNumber,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would we want to return nonsNumber as hmppsId? Also would probation search return person without CRN? Perharps you are looking to update POSPrisoner(person search from Prisoner serach) to return hmppsId?

@garethmdavies garethmdavies marked this pull request as ready for review July 25, 2024 10:47
@mxco86 mxco86 force-pushed the PES-add-hmpps-id-endpoint-for-noms-number branch from e597b13 to 02fb606 Compare July 26, 2024 15:39
@mxco86 mxco86 force-pushed the PES-add-hmpps-id-endpoint-for-noms-number branch from 17caade to b546920 Compare July 26, 2024 16:15
@mxco86 mxco86 merged commit 4aca871 into main Jul 29, 2024
5 checks passed
@mxco86 mxco86 deleted the PES-add-hmpps-id-endpoint-for-noms-number branch July 29, 2024 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants