-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from ministryofjustice/cas-465-new-nomsnumber
CAS2-465: update local prison data
- Loading branch information
Showing
5 changed files
with
203 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
wiremock/mappings/noms_number_A1234AJ/ApAndOasys_GetOffenceAnalysis.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"id": "f5f0e36b-84a5-4169-92f3-3719cec200f4", | ||
"priority": 1, | ||
"request": { | ||
"method": "GET", | ||
"urlPathPattern": "/offence-details/C246139" | ||
}, | ||
"response": { | ||
"headers": { | ||
"Content-Type": "application/json" | ||
}, | ||
"status": 404, | ||
"body": "{\"message\":\"Resource not found\"}" | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
wiremock/mappings/noms_number_A1234AJ/ApAndOasys_GetRisksToTheIndividual.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"id": "5bea7fae-090b-4010-b0bc-bf4d9068b2bd", | ||
"priority": 1, | ||
"request": { | ||
"method": "GET", | ||
"urlPathPattern": "/risk-to-the-individual/C246139" | ||
}, | ||
"response": { | ||
"headers": { | ||
"Content-Type": "application/json" | ||
}, | ||
"status": 404, | ||
"body": "{\"message\":\"Resource not found\"}" | ||
} | ||
} |
164 changes: 164 additions & 0 deletions
164
wiremock/mappings/noms_number_A1234AJ/ProbationOffenderSearchApi_SearchByNomsNumber.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
{ | ||
"id": "05c36ca3-f66c-4ffe-917e-65aff9567af2", | ||
"request": { | ||
"method": "POST", | ||
"urlPathPattern": "/search.*", | ||
"bodyPatterns": [ | ||
{ | ||
"equalToJson": { "nomsNumber": "A1234AJ" } | ||
} | ||
] | ||
}, | ||
"response": { | ||
"headers": { | ||
"Content-Type": "application/json" | ||
}, | ||
"status": 200, | ||
"jsonBody": [ | ||
{ | ||
"offenderId": 1, | ||
"softDeleted": false, | ||
"otherIds": { | ||
"crn": "C246139", | ||
"pncNumber": "2018/0123456Y", | ||
"croNumber": "SF80/655108S", | ||
"nomsNumber": "A1234AJ", | ||
"previousCrn": "X10001", | ||
"mostRecentPrisonerNumber": "38510B" | ||
}, | ||
"title": "Mr", | ||
"firstName": "James", | ||
"middleNames": [], | ||
"surname": "Brown", | ||
"previousSurnames": [], | ||
"dateOfBirth": "1979-03-12", | ||
"age": "45", | ||
"gender": "Male", | ||
"currentDisposal": "1", | ||
"currentExclusion": false, | ||
"currentRestriction": false, | ||
"partitionArea": "some name", | ||
"currentTier": "UD2", | ||
"offenderAliases": [ | ||
], | ||
"contactDetails": { | ||
"addresses": [ | ||
{ | ||
"id": "1200034567", | ||
"from": "2018-01-16", | ||
"addressNumber": "12", | ||
"buildingName": "string", | ||
"county": "string", | ||
"district": "string", | ||
"noFixedAbode": true, | ||
"notes": "string", | ||
"postcode": "NE2 2SW", | ||
"streetName": "Church Street Lane", | ||
"telephoneNumber": "string", | ||
"town": "Newcastle under Lyme", | ||
"status": { | ||
"code":"m", | ||
"description": "main" | ||
}, | ||
"type": { | ||
"code": "A07B", | ||
"description": "Friends/Family (settled)" | ||
}, | ||
"createdDateTime": "2022-08-12T10:30:27", | ||
"lastUpdatedDateTime": "2022-08-12T10:30:27" | ||
} | ||
], | ||
"emailAddresses": [], | ||
"phoneNumbers": [], | ||
"allowSMS": true | ||
}, | ||
"offenderProfile": { | ||
"riskColour": "red", | ||
"ethnicity": "White British", | ||
"immigrationStatus": null, | ||
"nationality": "British", | ||
"notes": "string", | ||
"offenderDetails": "Induction pack completed on IA on 12/07/2022. SD Updated phone number 07000 000 000", | ||
"offenderLanguages": { | ||
"languageConcerns": "string", | ||
"otherLanguages": [ | ||
"string" | ||
], | ||
"primaryLanguage": "string", | ||
"requiresInterpreter": true | ||
}, | ||
"previousConviction": { | ||
"detail": {} | ||
}, | ||
"religion": "Apostolic", | ||
"remandStatus": "Bail - Conditional", | ||
"secondaryNationality": "string", | ||
"sexualOrientation": "string" | ||
}, | ||
"mappa": { | ||
"level": 1, | ||
"levelDescription": "MAPPA Level 1", | ||
"category": 2, | ||
"categoryDescription": "MAPPA Category 2", | ||
"startDate": "2021-02-08", | ||
"reviewDate": "2021-05-08", | ||
"team": { | ||
"code": "NO2AAM", | ||
"description": "OMIC OMU A" | ||
}, | ||
"officer": { | ||
"code": "NO2AAMU", | ||
"forenames": "Unallocated", | ||
"surname": "Staff" | ||
}, | ||
"probationArea": { | ||
"code": "NO2", | ||
"description": "NPS London" | ||
}, | ||
"notes": "Level 1 Cat 2 notes" | ||
}, | ||
"probationStatus": { | ||
"status": "CURRENT", | ||
"previouslyKnownTerminationDate": "2021-02-08", | ||
"preSentenceActivity": false, | ||
"awaitingPsr": true, | ||
"inBreach": true | ||
}, | ||
"offenderManagers": [ | ||
{ | ||
"fromDate": "2022-10-17", | ||
"allocationReason": { | ||
"code": "CAI", | ||
"description": "Caseload Allocation" | ||
}, | ||
"partitionArea": "National Data", | ||
"active": true, | ||
"staff": { | ||
"code": "N02UATU", | ||
"surname": "Staff", | ||
"forenames": "Unallocated Staff(N02)", | ||
"unallocated": true | ||
}, | ||
"team": { | ||
"code": "N02UAT", | ||
"description": "Unallocated Team (N02)", | ||
"district": { | ||
"code": "N02DT1", | ||
"description": "District One (N02)" | ||
}, | ||
"borough": { | ||
"code": "N02BR1", | ||
"description": "Borough One(N02)" | ||
} | ||
}, | ||
"softDeleted": false, | ||
"probationArea": { | ||
"code": "N02", | ||
"description": "NPS North East" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |