Created
June 15, 2015 13:11
-
-
Save kerin/8e65a6f8703e6867f9e0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| { | |
| "description": "First Hearing Digital Case File 1.0.0", | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "type": "object", | |
| "properties": { | |
| "pti_urn": { | |
| "type": "string", | |
| "pattern": "[A-Z]{4}[0-999999][0-9][0-9]" | |
| }, | |
| "type": { | |
| "enum": [ "CaseFile" ] | |
| }, | |
| "associated_case_urns": { | |
| "type": "array", | |
| "items": { | |
| "type": "string", | |
| "pattern": "[A-Z]{4}[0-999999][0-9][0-9]", | |
| "uniqueItems": true, | |
| "minItems": 1 | |
| } | |
| }, | |
| "version": { | |
| "type": "number", | |
| "minimum": 1 | |
| }, | |
| "case_markers": { | |
| "enum": [ | |
| "AssetRecovery", | |
| "ChildAbuse", | |
| "CrimeAgainstAnOlderPerson", | |
| "DrugInterventionProgramme", | |
| "DisabilityHateCrime", | |
| "DomesticViolence", | |
| "Fatality", | |
| "ForcedMarriage", | |
| "Homophobic", | |
| "HonourCrime", | |
| "IdentifiedVictim", | |
| "MediaInterest", | |
| "Rape", | |
| "RacistCrime", | |
| "ReligiousCrime", | |
| "Transgender" | |
| ] | |
| }, | |
| "brief_description_of_case": { | |
| "type": "string" | |
| }, | |
| "defendants": { | |
| "type": "array", | |
| "items": [ { "$ref": "#/definitions/Defendant" } ], | |
| "minItems": 1, | |
| "uniqueItems": true | |
| }, | |
| "witnesses": { | |
| "type": "array", | |
| "items": { | |
| "anyOf": [ | |
| { "$ref": "#/definitions/StatementWitness" }, | |
| { "$ref": "#/definitions/Victim" }, | |
| { "$ref": "#/definitions/NgapOtherWitness" }, | |
| { "$ref": "#/definitions/ExpertWitness" } | |
| ] | |
| }, | |
| "minItems": 1, | |
| "uniqueItems": true | |
| }, | |
| "disclosure": { | |
| "type": "object", | |
| "oneOf": [ | |
| { "$ref": "#/definitions/CommonLawNotForDisclosure" }, | |
| { "$ref": "#/definitions/CommonLawForDisclosure" } | |
| ] | |
| }, | |
| "disclosure_certificate": { | |
| "type": "boolean" | |
| }, | |
| "multimedia_evidence": { | |
| "$ref": "#/definitions/Mme" | |
| }, | |
| "application_to_provide_hearsay": { | |
| "type": "boolean" | |
| }, | |
| "hearsay_details": { | |
| "type": "string" | |
| }, | |
| "expert_evidence": { | |
| "type": "boolean" | |
| }, | |
| "test_code": { | |
| "enum": [ | |
| "threshold_test", | |
| "full_code_test" | |
| ] | |
| }, | |
| "pca_cps": { | |
| "type": "boolean" | |
| }, | |
| "safeguarding_assessment": { | |
| "$ref": "#/definitions/SafeguardingAssessment" | |
| }, | |
| "signatory_name": { | |
| "type": "string" | |
| }, | |
| "date": { | |
| "description": "ISO 8601 Conformant Date", | |
| "type": "string" | |
| }, | |
| "signatory_rank": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "pti_urn", | |
| "type", | |
| "version", | |
| "brief_description_of_case", | |
| "defendants", | |
| "witnesses", | |
| "expert_evidence", | |
| "test_code", | |
| "pca_cps", | |
| "signatory_name", | |
| "date", | |
| "signatory_rank" | |
| ], | |
| "additionalProperties": false, | |
| "definitions": { | |
| "CommonLawNotForDisclosure": { | |
| "type": "object", | |
| "properties": { | |
| "officer_in_the_case": { | |
| "type": "string" | |
| }, | |
| "officer_in_the_case_signature_date": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "officer_in_the_case", | |
| "officer_in_the_case_signature_date" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "CommonLawForDisclosure": { | |
| "type": "object", | |
| "properties": { | |
| "officer_in_the_case": { | |
| "type": "string" | |
| }, | |
| "officer_in_the_case_signature_date": { | |
| "description": "ISO 8601 Conformant Date", | |
| "type": "string" | |
| }, | |
| "details_of_relevant_unused_material": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "officer_in_the_case", | |
| "officer_in_the_case_signature_date", | |
| "details_of_relevant_unused_material" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "SafeguardingAssessment": { | |
| "type": "object", | |
| "properties": { | |
| "assessment_completed": { | |
| "type": "boolean" | |
| }, | |
| "reasons_not_completed": { | |
| "type": "string" | |
| }, | |
| "safeguarding_level": { | |
| "enum": [ | |
| "moderate", | |
| "moderate_serious", | |
| "serious", | |
| "severe" | |
| ] | |
| } | |
| }, | |
| "required": [ | |
| "assessment_completed" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "Mme": { | |
| "type": "object", | |
| "properties": { | |
| "id": { | |
| "type": "string" | |
| }, | |
| "date": { | |
| "description": "ISO 8601 Conformant Date", | |
| "type": "string" | |
| }, | |
| "end_date": { | |
| "description": "ISO 8601 Conformant Date", | |
| "type": "string" | |
| }, | |
| "type": { | |
| "enum": [ | |
| "cctv", | |
| "facewatch", | |
| "body_worn_video", | |
| "surveillance_camera", | |
| "999_call" | |
| ] | |
| }, | |
| "evidential_value": { | |
| "type": "boolean" | |
| }, | |
| "relied_upon_trial": { | |
| "type": "boolean" | |
| }, | |
| "relied_upon_sentence": { | |
| "type": "boolean" | |
| }, | |
| "description_of_what_is_seen_in_multimedia_evidence": { | |
| "type": "string" | |
| }, | |
| "total_duration": { | |
| "description": "ISO 8601 extended format, accurate to 1 minute", | |
| "type": "string" | |
| }, | |
| "total_duration": { | |
| "type": "string" | |
| }, | |
| "url": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "id", | |
| "date", | |
| "type", | |
| "evidential_value", | |
| "relied_upon_sentence", | |
| "relied_upon_trial", | |
| "description_of_what_is_seen_in_multimedia_evidence", | |
| "total_duration", | |
| "url" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "Defendant": { | |
| "type": "object", | |
| "properties": { | |
| "defendant_id": { | |
| "type": "string" | |
| }, | |
| "name": { | |
| "type": "object", | |
| "oneOf": [ | |
| { "$ref": "#/definitions/PersonName" }, | |
| { "$ref": "#/definitions/OrganisationName" } | |
| ] | |
| }, | |
| "date_of_birth": { | |
| "description": "ISO 8601 Conformant Date", | |
| "type": "string" | |
| }, | |
| "contact_details": { | |
| "$ref": "#/definitions/ContactDetails" | |
| }, | |
| "arrest": { | |
| "$ref": "#/definitions/Arrest" | |
| }, | |
| "conditional_caution_considered": { | |
| "type": "boolean" | |
| }, | |
| "cc_not_suitable_reasons": { | |
| "type": "array", | |
| "items": { | |
| "enum": [ | |
| "offence_not_one_for_which_conditional_caution_can_be_offered", | |
| "offence_not_admitted", | |
| "partial_defence_raised", | |
| "offence_whilst_on_bail", | |
| "liable_for_resentence_of_an_earlier_offence", | |
| "liable_for_prison_recall", | |
| "defendants_response_on arrest_co operation", | |
| "reoffending_risk_ offending history", | |
| "reoffending_risk_ response_to_sentence_bail", | |
| "reoffending_risk_ not_reduced_by_conditions" | |
| ] | |
| } | |
| }, | |
| "role_in_case": { | |
| "type": "string" | |
| }, | |
| "offences": { | |
| "type": "array", | |
| "minItems": 1, | |
| "items": { | |
| "oneOf": [ | |
| { "$ref": "#/definitions/GenericOffences" }, | |
| { "$ref": "#/definitions/RetailTheftOffences" }, | |
| { "$ref": "#/definitions/AssaultOffences" } | |
| ] | |
| } | |
| }, | |
| "occupation": { | |
| "type": "string" | |
| }, | |
| "class_a_drug_test_provided": { | |
| "type": "boolean" | |
| }, | |
| "class_a_drug_test_details": { | |
| "type": "string" | |
| }, | |
| "accepts_drugs_result": { | |
| "type": "boolean" | |
| }, | |
| "has_eec_passports": { | |
| "type": "boolean" | |
| }, | |
| "eec_check_completed": { | |
| "type": "boolean" | |
| }, | |
| "eec_convictions_record_completed": { | |
| "type": "boolean" | |
| }, | |
| "foreign_national_offender": { | |
| "type": "boolean" | |
| }, | |
| "committed_on_bail": { | |
| "type": "boolean" | |
| }, | |
| "breach_of_order": { | |
| "type": "boolean" | |
| }, | |
| "breach_order_details": { | |
| "type": "string" | |
| }, | |
| "remand_application": { | |
| "$ref": "#/definitions/RemandApplication" | |
| }, | |
| "breach_of_bail": { | |
| "$ref": "#/definitions/BreachOfBail" | |
| }, | |
| "pnc_check_performed": { | |
| "type": "boolean" | |
| }, | |
| "pnc_no_trace": { | |
| "type": "boolean" | |
| }, | |
| "court_order_application": { | |
| "type": "array", | |
| "items": { "$ref": "#/definitions/CourtOrder" }, | |
| "minItems": 1 | |
| }, | |
| "interpreter_required": { | |
| "type": "boolean" | |
| }, | |
| "interpreter_language_or_dialect": { | |
| "type": "string" | |
| }, | |
| "multimedia_evidence_response": { | |
| "type": "object", | |
| "oneOf": [ | |
| { "$ref": "#/definitions/MmeRecordedResponse" }, | |
| { "$ref": "#/definitions/MmeNotRecordedResponse" } | |
| ] | |
| }, | |
| "notice_to_provide_bad_character_evidence": { | |
| "type": "boolean" | |
| }, | |
| "bad_character_details": { | |
| "type": "string" | |
| }, | |
| "dealt_with_in_welsh": { | |
| "type": "boolean" | |
| }, | |
| "pnc_dv": { | |
| "type": "boolean" | |
| }, | |
| "pnc_hc": { | |
| "type": "boolean" | |
| }, | |
| "person_remand_status": { | |
| "enum": [ "PR", "UB", "CB", "NA" ] | |
| }, | |
| "given_charges": { | |
| "type": "boolean" | |
| }, | |
| "initiation_type": { | |
| "enum": [ | |
| "charge_sheet", | |
| "postal_requisition", | |
| "summons" | |
| ] | |
| }, | |
| "signed_charge_sheet": { | |
| "type": "boolean" | |
| }, | |
| "date_sent": { | |
| "type": "string" | |
| }, | |
| "parent_guardian_copy": { | |
| "type": "boolean" | |
| }, | |
| "parent_guardian_date_sent": { | |
| "type": "string" | |
| }, | |
| "bail_conditions_provided": { | |
| "type": "boolean" | |
| }, | |
| "signed_for_bail": { | |
| "type": "boolean" | |
| }, | |
| "bail_conditions": { | |
| "type": "array", | |
| "items": { "$ref": "#/definitions/BailCondition" } | |
| }, | |
| "interview": { | |
| "type": "object", | |
| "oneOf": [ | |
| { "$ref": "#/definitions/StandardInterview" }, | |
| { "$ref": "#/definitions/NotInterviewed" } | |
| ] | |
| }, | |
| "domestic_violence": { | |
| "$ref": "#/definitions/DomesticViolence" | |
| } | |
| }, | |
| "required": [ | |
| "name", | |
| "date_of_birth", | |
| "offences", | |
| "occupation", | |
| "class_a_drug_test_provided", | |
| "has_eec_passports", | |
| "committed_on_bail", | |
| "breach_of_order", | |
| "pnc_check_performed", | |
| "court_order_application", | |
| "interpreter_required", | |
| "dealt_with_in_welsh", | |
| "interview" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "Arrest": { | |
| "type": "object", | |
| "properties": { | |
| "type": { | |
| "enum": [ "Arrest" ] | |
| }, | |
| "date": { | |
| "type": "string" | |
| }, | |
| "comments_on_arrest": { | |
| "type": "string" | |
| }, | |
| "comments_on_caution": { | |
| "type": "string" | |
| } | |
| }, | |
| "additionalProperties": false, | |
| "required": [ | |
| "type", | |
| "date" | |
| ] | |
| }, | |
| "RemandApplication": { | |
| "type": "object", | |
| "properties": { | |
| "substantial_grounds": { | |
| "type": "array", | |
| "items": { "$ref": "#/definitions/BailOpposition" } | |
| }, | |
| "bail_conditions": { | |
| "type": "array", | |
| "items": { "type": "string" } | |
| } | |
| }, | |
| "required": [ | |
| "substantial_grounds", | |
| "bail_conditions" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "BailOpposition": { | |
| "type": "object", | |
| "properties": { | |
| "opposition_ground": { | |
| "enum": [ | |
| "breach_of_bail", | |
| "failed_to_surrender_to_custody", | |
| "commit_offences_on_bail", | |
| "interfere_with_witness_or_otherwise_obstrcut_the_course_of_justice", | |
| "for_the_defendants_own_protection", | |
| "for_the_defendants_own_welfare", | |
| "charged_with_or_convicted_of_a_violent_or_sexual_offence_equivalent_to_14_plus_years_imprisonment_in_the_case_of_an_adult", | |
| "the_only_way_to_protect_the_public_from_serious_harm", | |
| "to_prevent_the_commission_of_imprisonable_offences" | |
| ] | |
| }, | |
| "justification": { | |
| "type": "string" | |
| } | |
| }, | |
| "additionalProperties": false, | |
| "required": [ | |
| "opposition_ground", | |
| "justification" | |
| ] | |
| }, | |
| "BreachOfBail": { | |
| "type": "object", | |
| "properties": { | |
| "breach_number": { | |
| "type": "number" | |
| }, | |
| "breach_details": { | |
| "type": "string" | |
| }, | |
| "witness_statement_establishes_breach": { | |
| "type": "boolean" | |
| }, | |
| "key_evidence": { | |
| "type": "string" | |
| }, | |
| "existing_bail_breached": { | |
| "$ref": "#/definitions/ExistingBail" | |
| } | |
| }, | |
| "additionalProperties": false, | |
| "required": [ | |
| "breach_number", | |
| "breach_details", | |
| "witness_statement_establishes_breach", | |
| "key_evidence", | |
| "existing_bail_breached" | |
| ] | |
| }, | |
| "ExistingBail": { | |
| "type": "object", | |
| "properties": { | |
| "original_charge_wording": { | |
| "type": "string" | |
| }, | |
| "bailed_from": { | |
| "$ref": "#/definitions/OrganisationLocation" | |
| }, | |
| "bailed_date": { | |
| "description": "ISO 8601 Conformant Date", | |
| "type": "string" | |
| }, | |
| "to_appear_at": { | |
| "$ref": "#/definitions/OrganisationLocation" | |
| }, | |
| "datetime_to_appear": { | |
| "description": "ISO 8601 Conformant Datetime", | |
| "type": "string" | |
| }, | |
| "list_of_conditions": { | |
| "type": "array", | |
| "items": { "$ref": "#/definitions/BailCondition" } | |
| } | |
| }, | |
| "required": [ | |
| "original_charge_wording", | |
| "bailed_from", | |
| "bailed_date", | |
| "to_appear_at", | |
| "datetime_to_appear", | |
| "list_of_conditions" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "BailCondition": { | |
| "type": "object", | |
| "properties": { | |
| "ground": { | |
| "enum": [ | |
| "failing_to_surrender_to_custody", | |
| "interfering_with_witnesses_or_otherwise_obstructing_the_course_of_justice", | |
| "commiting_an_offence_whilst_on_bail", | |
| "for_that_persons_own_protection", | |
| "for_that_persons_own_welfare_or_own_interests_child_or_young_person_only" | |
| ] | |
| }, | |
| "condition": { | |
| "type": "string" | |
| }, | |
| "reason": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "ground", | |
| "condition", | |
| "reason" | |
| ] | |
| }, | |
| "Offence": { | |
| "type": "object", | |
| "properties": { | |
| "type": { "enum": [ "Offence" ] }, | |
| "from_date": { | |
| "type": "string" | |
| }, | |
| "to_date": { | |
| "type": "string" | |
| }, | |
| "offence_title": { | |
| "type": "string" | |
| }, | |
| "charge_wording": { | |
| "type": "string" | |
| }, | |
| "reply_to_charge": { | |
| "type": "string" | |
| }, | |
| "points_to_prove_met_by": { | |
| "type": "string" | |
| }, | |
| "comments_on_caution_or_arrest": { | |
| "type": "string" | |
| }, | |
| "demeanour_at_incident": { | |
| "type": "string" | |
| }, | |
| "anticipated_plea": { | |
| "type": "number" | |
| } | |
| }, | |
| "required": [ | |
| "type", | |
| "from_date", | |
| "to_date", | |
| "offence_title", | |
| "charge_wording", | |
| "points_to_prove_met_by", | |
| "anticipated_plea" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "GenericOffences": { | |
| "type": "object", | |
| "properties": { | |
| "type": { "enum": [ "GenericOffences" ] }, | |
| "generic_offences": { | |
| "type": "array", | |
| "items": { "$ref": "#/definitions/GenericOffence" }, | |
| "minItems": 1, | |
| "uniqueItems": true | |
| }, | |
| "injuries": { | |
| "type": "array", | |
| "items": { "$ref": "#/definitions/Injuries" }, | |
| "uniqueItems": true | |
| } | |
| }, | |
| "required": [ | |
| "genric_offences" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "GenericOffence": { | |
| "type": "object", | |
| "properties": { | |
| "type": { "enum": [ "GenericOffence" ] }, | |
| "cjs_offence_code": { | |
| "description": "Valid cjs code, not in any other group.", | |
| "type": "string" | |
| }, | |
| "offence": { | |
| "$ref": "#/definitions/Offence" | |
| }, | |
| "property": { | |
| "type": "array", | |
| "items": { "$ref": "#/definitions/Property" } | |
| } | |
| }, | |
| "required": [ | |
| "type", | |
| "cjs_offence_code", | |
| "offence" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "AssaultOffences": { | |
| "type": "object", | |
| "properties": { | |
| "type": { "enum": [ "AssaultOffences" ] }, | |
| "assault_offences": { | |
| "type": "array", | |
| "items": { "$ref": "#/definitions/AssaultOffence" }, | |
| "minItems": 1, | |
| "uniqueItems": true | |
| }, | |
| "injuries": { | |
| "type": "array", | |
| "items": { "$ref": "#/definitions/Injuries" }, | |
| "minItems": 1, | |
| "uniqueItems": true | |
| }, | |
| "assault_interview_extension": { | |
| "$ref": "#/definitions/AssaultInterviewExtension" | |
| } | |
| }, | |
| "required": [ | |
| "assault_offences", | |
| "injuries", | |
| "assault_interview_extension" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "AssaultOffence": { | |
| "type": "object", | |
| "properties": { | |
| "type": { "enum": [ "AssaultOffence" ] }, | |
| "cjs_offence_code": { | |
| "enum": [ | |
| "h2083", | |
| "cj88001", | |
| "cj88116", | |
| "cj88001b", | |
| "cj88001a", | |
| "th68025", | |
| "pl96001", | |
| "pl96002", | |
| "pl96004", | |
| "cj91034", | |
| "cj91010", | |
| "ba07004", | |
| "tm04001", | |
| "ca05006", | |
| "of61095", | |
| "of61102a", | |
| "of61102", | |
| "of61131", | |
| "of61016", | |
| "of61017", | |
| "cd98073", | |
| "cd98070", | |
| "of61022", | |
| "of61127", | |
| "of61060", | |
| "of61126", | |
| "of61050", | |
| "of61059", | |
| "cy33049" | |
| ] | |
| }, | |
| "offence": { | |
| "$ref": "#/definitions/Offence" | |
| } | |
| }, | |
| "required": [ | |
| "type", | |
| "cjs_offence_code", | |
| "received_medical_treatment", | |
| "injuries_visible" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "RetailTheftOffences": { | |
| "type": "object", | |
| "properties": { | |
| "type": { "enum": [ "RetailTheftOffences" ] }, | |
| "retail_theft_offences": { | |
| "type": "array", | |
| "items": { "$ref": "#/definitions/RetailTheftOffence" }, | |
| "minItems": 1, | |
| "uniqueItems": true | |
| }, | |
| "retail_theft_interview_extension": { | |
| "$ref": "#/definitions/RetailTheftInterviewExtension" | |
| } | |
| }, | |
| "required": [ | |
| "retail_theft_offences", | |
| "retail_theft_interview_extension" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "RetailTheftOffence": { | |
| "type": "object", | |
| "properties": { | |
| "type": { "enum": [ "RetailTheftOffence" ] }, | |
| "cjs_offence_code": { | |
| "enum": [ | |
| "h410" | |
| ] | |
| }, | |
| "offence": { | |
| "$ref": "#/definitions/Offence" | |
| }, | |
| "property": { | |
| "type": "array", | |
| "items": { "$ref": "#/definitions/Property" }, | |
| "minItems": 1 | |
| }, | |
| "cash_possessed_on_arrest": { | |
| "type": "number" | |
| } | |
| }, | |
| "required": [ | |
| "type", | |
| "cjs_offence_code", | |
| "property", | |
| "cash_possessed_on_arrest" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "Property": { | |
| "type": "object", | |
| "properties": { | |
| "property_action": { | |
| "enum": [ | |
| "stolen_not_recovered", | |
| "stolen_recovered", | |
| "stolen_recovered_damaged", | |
| "damaged" | |
| ] | |
| }, | |
| "description": { | |
| "type": "string" | |
| }, | |
| "value": { | |
| "type": "number" | |
| }, | |
| "damage_description": { | |
| "type": "string" | |
| }, | |
| "damage_cost": { | |
| "type": "number" | |
| }, | |
| "recovered_from": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "property_action", | |
| "description", | |
| "value" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "Injuries": { | |
| "type": "object", | |
| "properties": { | |
| "name_of_victim": { | |
| "type": "string" | |
| }, | |
| "description_of_injuries": { | |
| "type": "string" | |
| }, | |
| "photos_taken": { | |
| "type": "boolean" | |
| }, | |
| "photo_evidence_urls": { | |
| "type": "array", | |
| "items": { "type": "string" } | |
| }, | |
| "photos_description": { | |
| "type": "string" | |
| }, | |
| "reason_photos_not_taken": { | |
| "type": "string" | |
| }, | |
| "received_medical_treatment": { | |
| "type": "boolean" | |
| }, | |
| "details_of_medical_treatment": { | |
| "type": "string" | |
| }, | |
| "injuries_visible": { | |
| "type": "boolean" | |
| } | |
| }, | |
| "required": [ | |
| "name_of_victim", | |
| "description_of_injuries", | |
| "photos_taken", | |
| "received_medical_treatment", | |
| "injuries_visible" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "MmeNotRecordedResponse": { | |
| "type": "object", | |
| "properties": { | |
| "type": { "enum": [ "MmeNotRecordedResponse" ] }, | |
| "defendent_addmitted_to_location": { | |
| "type": "boolean" | |
| }, | |
| "how_is_identification_established": { | |
| "type": "boolean" | |
| } | |
| }, | |
| "required": [ | |
| "defendent_addmitted_to_location", | |
| "how_is_identification_established" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "MmeRecordedResponse": { | |
| "type": "object", | |
| "properties": { | |
| "type": { "enum": [ "MmeRecordedResponse" ] }, | |
| "id": { | |
| "type": "string" | |
| }, | |
| "mme_type": { | |
| "enum": [ | |
| "cctv", | |
| "facewatch", | |
| "body_worn_video", | |
| "surveillance_camera", | |
| "999_call" | |
| ] | |
| }, | |
| "defendant_shown": { | |
| "type": "boolean" | |
| }, | |
| "reasons_if_not_shown": { | |
| "type": "string" | |
| }, | |
| "defendant_comments_if_shown": { | |
| "type": "string" | |
| }, | |
| "defendant_arrested_following_mme": { | |
| "type": "boolean" | |
| }, | |
| "defendant_admits_being_in_mme": { | |
| "type": "boolean" | |
| }, | |
| "how_is_identification_established": { | |
| "type": "string" | |
| } | |
| }, | |
| "additionalProperties": false, | |
| "required": [ | |
| "id", | |
| "mme_type", | |
| "defendant_shown", | |
| "defendant_arrested_following_mme", | |
| "defendant_admits_being_in_mme" | |
| ] | |
| }, | |
| "StandardInterview": { | |
| "type": "object", | |
| "properties": { | |
| "type": { "enum": [ "StandardInterview" ] }, | |
| "date": { | |
| "description": "ISO 8601 Conformant Datetime", | |
| "type": "string" | |
| }, | |
| "defendant_legally_represented": { | |
| "type": "boolean" | |
| }, | |
| "legally_represented_by": { | |
| "$ref": "#/definitions/PersonName" | |
| }, | |
| "legal_representative_firm": { | |
| "type": "string" | |
| }, | |
| "interpretors": { | |
| "type": "array", | |
| "items": { "$ref": "#/definitions/PersonName" }, | |
| "minItems": 1 | |
| }, | |
| "special_warnings_given": { | |
| "type": "boolean" | |
| }, | |
| "no_comment_response": { | |
| "type": "boolean" | |
| }, | |
| "questions_asked": { | |
| "type": "string" | |
| }, | |
| "admissions_made": { | |
| "type": "string" | |
| }, | |
| "denials": { | |
| "type": "string" | |
| }, | |
| "defences": { | |
| "type": "string" | |
| }, | |
| "explanations": { | |
| "type": "string" | |
| }, | |
| "mitigations": { | |
| "type": "string" | |
| }, | |
| "aggravating_features": { | |
| "type": "string" | |
| }, | |
| "appropriate_adult": { | |
| "$ref": "#/definitions/PersonName" | |
| } | |
| }, | |
| "additionalProperties": false, | |
| "required": [ | |
| "date", | |
| "type", | |
| "defendant_legally_represented", | |
| "special_warnings_given", | |
| "no_comment_response" | |
| ] | |
| }, | |
| "DomesticViolence": { | |
| "type": "object", | |
| "properties": { | |
| "type": { "enum": [ "DomesticViolence" ] }, | |
| "assault_interview": { | |
| "$ref": "#/definitions/AssaultInterviewExtension" | |
| }, | |
| "children_present": { | |
| "type": "boolean" | |
| }, | |
| "ages_of_children": { | |
| "type": "string" | |
| }, | |
| "relationship_between_parties": { | |
| "type": "boolean" | |
| }, | |
| "lenth_of_relationship": { | |
| "type": "string" | |
| } | |
| }, | |
| "additionalProperties": false, | |
| "required": [ | |
| "standard_interview", | |
| "children_present", | |
| "relationship_between_parties", | |
| "lenth_of_relationship" | |
| ] | |
| }, | |
| "NotInterviewed": { | |
| "type": "object", | |
| "properties": { | |
| "type": { "enum": [ "NotInterviewed" ] }, | |
| "reason": { | |
| "type": "string" | |
| } | |
| }, | |
| "additionalProperties": false, | |
| "required": [ "reason" ] | |
| }, | |
| "RetailTheftInterviewExtension": { | |
| "type": "object", | |
| "properties": { | |
| "admit_taking_property": { | |
| "type": "boolean" | |
| }, | |
| "admit_being_dishonest": { | |
| "type": "boolean" | |
| } | |
| }, | |
| "additionalProperties": false, | |
| "required": [ | |
| "admit_taking_property", | |
| "admit_being_dishonest" | |
| ] | |
| }, | |
| "AssaultInterviewExtension": { | |
| "type": "object", | |
| "properties": { | |
| "admits_involvement_in_incident": { | |
| "type": "boolean" | |
| }, | |
| "admits_assaulting_victim": { | |
| "type": "boolean" | |
| }, | |
| "admits_causing_the_injury": { | |
| "type": "boolean" | |
| }, | |
| "accepts_victims_version_of_events": { | |
| "type": "boolean" | |
| }, | |
| "name_of_victim": { | |
| "type": "string" | |
| }, | |
| "position_of_trust": { | |
| "type": "boolean" | |
| }, | |
| "self_defence_put_forward": { | |
| "type": "boolean" | |
| }, | |
| "other_explaination_of_assault_put_forward": { | |
| "type": "string" | |
| } | |
| }, | |
| "additionalProperties": false, | |
| "required": [ | |
| "admits_involvement_in_incident", | |
| "admits_assaulting_victim", | |
| "admits_causing_the_injury", | |
| "accepts_victims_version_of_events", | |
| "position_of_trust", | |
| "self_defence_put_forward" | |
| ] | |
| }, | |
| "CourtOrder": { | |
| "type": "object", | |
| "properties": { | |
| "court_order_title": { | |
| "enum": [ | |
| "antisocial_behaviour_order", | |
| "application_for_costs_against_convicted_defendant", | |
| "bind_over", | |
| "bind_over_to_keep_the_peace", | |
| "breach_of_non_molestation_order", | |
| "cash_seizure_and_forfeiture_order", | |
| "civil_disclosure_order", | |
| "civil_recovery_order", | |
| "closure_notice_for_premesis", | |
| "compensation_order", | |
| "confiscation_order", | |
| "costs", | |
| "criminal_antisocial_behaviour_order", | |
| "criminal_behaviour_order", | |
| "criminal_proceeds_of_crime_act_disclosure_orders", | |
| "deportation_of_foreign_nation_prisoners", | |
| "deportation_order", | |
| "deprivation_of_property", | |
| "disclosure_notice_for_the_purpose_of_terrorist_investigations", | |
| "discretionary_driving_disqualification", | |
| "disqualification_from_working_with_children", | |
| "disruption_of_legal_professionals_facilitating_serious_organised_crime", | |
| "dog_control_order", | |
| "domestic_violence_protection_order", | |
| "enforcement_receivership_order", | |
| "european_arrest_warrant", | |
| "european_protection_order", | |
| "exclusion_order_licenced_premesis", | |
| "financial_reporting_order", | |
| "football_banning_order", | |
| "forced_marriage_protection_order", | |
| "forfeiture_and_destruction_of_dog_order", | |
| "forfeiture_and_destruction_of_drugs_order", | |
| "forfeiture_and_destruction_of_property", | |
| "forfeiture_and_destruction_of_weapon_order", | |
| "forfeiture_and_destruction_order", | |
| "forfeiture_of_indecent_photograph", | |
| "forfeiture_of_motor_vehicle_order", | |
| "forfeiture_of_obscene_publications", | |
| "immunity_agreements", | |
| "interim_receiving_order", | |
| "no_orders_required", | |
| "notification_requirements_sex_offender_register", | |
| "obligatory_driving_disqualification", | |
| "other", | |
| "parental_bind_order", | |
| "parenting_order", | |
| "property_freezing_order", | |
| "refusal_and_revocation_of_citizenship", | |
| "restitution_order", | |
| "restraining_order", | |
| "restraint_order", | |
| "restricted_use_publications", | |
| "revocation_of_a_pilots_licence", | |
| "sentence_discount_agreement", | |
| "serious_crime_prevention_order", | |
| "sexual_risk_order", | |
| "travel_restriction_order", | |
| "violent_offender_order" | |
| ] | |
| }, | |
| "court_order_title_other": { | |
| "type": "string" | |
| }, | |
| "reason_for_the_request": { | |
| "type": "string" | |
| }, | |
| "draft_conditions": { | |
| "type": "array", | |
| "items": { "type": "string" }, | |
| "minItems": 1 | |
| } | |
| }, | |
| "required": [ | |
| "court_order_title", | |
| "reason_for_the_request" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "Witness": { | |
| "type": "object", | |
| "properties": { | |
| "witness_id": { | |
| "type": "string" | |
| }, | |
| "name": { | |
| "oneOf": [ | |
| { "$ref": "#/definitions/PersonName" }, | |
| { "$ref": "#/definitions/OrganisationName" } | |
| ] | |
| }, | |
| "nature_of_involvement": { | |
| "type": "string" | |
| }, | |
| "evidence_they_can_give": { | |
| "type": "string" | |
| }, | |
| "special_measures": { | |
| "type": "boolean" | |
| }, | |
| "interpreter_required": { | |
| "type": "boolean" | |
| }, | |
| "interpreter_language_or_dialect": { | |
| "type": "boolean" | |
| }, | |
| "wish_to_provide_evidence_via_video_link": { | |
| "type": "boolean" | |
| } | |
| }, | |
| "required": [ | |
| "name", | |
| "nature_of_involvement", | |
| "evidence_they_can_give", | |
| "wish_to_provide_evidence_via_video_link" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "Victim": { | |
| "type": "object", | |
| "properties": { | |
| "type": { "enum": [ "Victim" ] }, | |
| "witness_type": { | |
| "type": "array", | |
| "items": { | |
| "enum": [ | |
| "eye", | |
| "identity", | |
| "arresting_officer", | |
| "child", | |
| "police", | |
| "prisoner", | |
| "other" | |
| ], | |
| "uniqueItems": true, | |
| "minItems": 1 | |
| } | |
| }, | |
| "witness": { | |
| "$ref": "#/definitions/Witness" | |
| }, | |
| "date_of_birth": { | |
| "description": "ISO 8601 Conformant Datetime", | |
| "type": "string" | |
| }, | |
| "reason_dob_not_provided": { | |
| "type": "string" | |
| }, | |
| "victim_code_requirements_met": { | |
| "type": "boolean" | |
| }, | |
| "victim_wish_to_attend_court": { | |
| "enum": [ | |
| "yes_cps_to_read", | |
| "yes_victim_to_read", | |
| "no_cps_to_read", | |
| "no_cps_to_disclose_and_not_to_read" | |
| ] | |
| }, | |
| "rep_wish": { | |
| "enum": [ | |
| "yes_cps_to_read", | |
| "yes_victim_to_read", | |
| "no_cps_to_read", | |
| "no_cps_to_disclose_and_not_to_read" | |
| ] | |
| }, | |
| "retracted_in_past": { | |
| "type": "boolean" | |
| }, | |
| "compensation_applications": { | |
| "type": "array", | |
| "items": { "$ref": "#/definitions/Witness" }, | |
| "uniqueItems": true | |
| } | |
| }, | |
| "additionalProperties": false, | |
| "required": [ | |
| "type", | |
| "witness", | |
| "victim_code_requirements_met", | |
| "victim_wish_to_attend_court" | |
| ] | |
| }, | |
| "CompensationApplication": { | |
| "type": "object", | |
| "properties": { | |
| "defendant_names": { | |
| "type": "array", | |
| "items": [ { "$ref": "#/definitions/PersonName" } ], | |
| "minItems": 1, | |
| "uniqueItems": true | |
| }, | |
| "reasons_for_application": { | |
| "type": "array", | |
| "items": { | |
| "enum": [ | |
| "personal_injury", | |
| "property_loss", | |
| "property_damage", | |
| "other_expenses", | |
| "other_losses" | |
| ] | |
| }, | |
| "minItems": 1, | |
| "uniqueItems": true | |
| }, | |
| "details_of_expenses": { | |
| "type": "string" | |
| }, | |
| "details_of_other_losses": { | |
| "type": "string" | |
| }, | |
| "amount_compensation_requested": { | |
| "type": "number" | |
| }, | |
| "is_estimate": { | |
| "type": "boolean" | |
| } | |
| }, | |
| "required": [ | |
| "defendant_names", | |
| "reasons_for_application", | |
| "amount_compensation_requested", | |
| "is_estimate" | |
| ] | |
| }, | |
| "StatementWitness": { | |
| "type": "object", | |
| "properties": { | |
| "type": { "enum": [ "StatementWitness" ] }, | |
| "witness_type": { | |
| "type": "array", | |
| "items": { | |
| "enum": [ | |
| "eye", | |
| "identity", | |
| "arresting officer", | |
| "interviewing officer", | |
| "child", | |
| "corroborative", | |
| "continuity", | |
| "interpreter", | |
| "police", | |
| "professional", | |
| "special", | |
| "prisoner", | |
| "other" | |
| ], | |
| "uniqueItems": true, | |
| "minItems": 1 | |
| } | |
| }, | |
| "witness": { | |
| "$ref": "#/definitions/Witness" | |
| }, | |
| "date_of_birth": { | |
| "description": "ISO 8601 Conformant Datetime", | |
| "type": "string" | |
| }, | |
| "reason_dob_not_provided": { | |
| "type": "string" | |
| }, | |
| "visually_recorded_interview": { | |
| "type": "boolean" | |
| }, | |
| "url": { | |
| "type": "string" | |
| } | |
| }, | |
| "additionalProperties": false, | |
| "required": [ | |
| "type", | |
| "witness_type", | |
| "witness", | |
| "visually_recorded_interview" | |
| ] | |
| }, | |
| "NgapOtherWitness": { | |
| "type": "object", | |
| "properties": { | |
| "type": { "enum": [ "NgapOtherWitness" ] }, | |
| "witness_type": { | |
| "type": "array", | |
| "items": { | |
| "enum": [ | |
| "eye", | |
| "identity", | |
| "arresting_officer", | |
| "interviewing_officer", | |
| "child", | |
| "corroborative", | |
| "interpreter", | |
| "police", | |
| "professional", | |
| "special", | |
| "prisoner", | |
| "other" | |
| ], | |
| "uniqueItems": true, | |
| "minItems": 1 | |
| } | |
| }, | |
| "witness": { | |
| "$ref": "#/definitions/Witness" | |
| }, | |
| "number": { | |
| "type": "string" | |
| }, | |
| "rank": { | |
| "type": "string" | |
| } | |
| }, | |
| "additionalProperties": false, | |
| "required": [ | |
| "type", | |
| "witness" | |
| ] | |
| }, | |
| "ExpertWitness": { | |
| "type": "object", | |
| "properties": { | |
| "type": { "enum": [ "NgapOtherWitness" ] }, | |
| "witness_type": { | |
| "type": "array", | |
| "items": { | |
| "enum": [ "expert" ], | |
| "uniqueItems": true, | |
| "minItems": 1 | |
| } | |
| }, | |
| "witness": { | |
| "$ref": "#/definitions/Witness" | |
| } | |
| } | |
| }, | |
| "PersonName": { | |
| "type": "object", | |
| "properties": { | |
| "surname": { | |
| "type": "string" | |
| }, | |
| "given_name": { | |
| "type": "array", | |
| "minItems": 1, | |
| "items": { "type": "string" }, | |
| "uniqueItems": true | |
| } | |
| }, | |
| "additionalProperties": false, | |
| "required": [ | |
| "surname", | |
| "given_name" | |
| ] | |
| }, | |
| "OrganisationName": { | |
| "type": "object", | |
| "properties": { | |
| "organisation_name": { | |
| "type": "string" | |
| } | |
| }, | |
| "additionalItems": false, | |
| "required": [ "organisation_name" ] | |
| }, | |
| "ContactDetails": { | |
| "type": "object", | |
| "properties": { | |
| "telephone": { | |
| "type": "number" | |
| } | |
| }, | |
| "additionalItems": false, | |
| "required": [ "telephone" ] | |
| }, | |
| "OrganisationLocation": { | |
| "type": "object", | |
| "properties": { | |
| "ou_top_level_name": { | |
| "type": "string" | |
| }, | |
| "ou_second_level_name": { | |
| "type": "string" | |
| }, | |
| "ou_third_level_name": { | |
| "type": "string" | |
| }, | |
| "ou_bottom_level_name": { | |
| "type": "string" | |
| } | |
| }, | |
| "additionalProperties": false, | |
| "required": [ | |
| "ou_top_level_name", | |
| "ou_second_level_name", | |
| "ou_third_level_name", | |
| "ou_bottom_level_name" | |
| ] | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment