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

Question with the abstract fields #28

Open
CB2 opened this issue Aug 30, 2017 · 0 comments
Open

Question with the abstract fields #28

CB2 opened this issue Aug 30, 2017 · 0 comments

Comments

@CB2
Copy link
Member

CB2 commented Aug 30, 2017

Submitted via NIEM.gov/contactus:

I'm trying to use the Movement Tool and create a JSON representation of the following fields below.

My question is with the abstract fields i.e. PersonSSNIdentification, PersonStateIdentification. After generating the JSON schema, this doesn't show up and I can't add this, only the fields of the inherited type nc:IdentificationType i.e. IdentificationID.

What am I missing?

Field

FirstName

LastName

MiddleName

Race

Gender

SSNNumber

StateId

CustodyDate

SentenceDate

MittNumber

County

OffenceDate

SentenceCount

Months

Years

Days

TruthInSentencing

OffenseCity

Mittimus

CcCs

AoicCode

Class

OffenseCodeShort

{
"$schema": "http://json-schema.org/draft-04/schema#",
"additionalProperties": false,
"properties": {
"j:PersonRaceCode": {
"description": "A classification of a person based on factors such as geographical locations and genetics.",
"$ref": "#/definitions/ncic:RACECodeType"
},
"j:PersonSexCode": {
"description": "A gender or sex of a person.",
"$ref": "#/definitions/ncic:SEXCodeType"
},
"nc:IdentificationID": {
"description": "An identifier.",
"type": "string"
},
"nc:PersonGivenName": {
"description": "A first name of a person.",
"$ref": "#/definitions/nc:PersonNameTextType"
},
"nc:PersonMiddleName": {
"description": "A middle name of a person.",
"$ref": "#/definitions/nc:PersonNameTextType"
},
"nc:PersonRaceText": {
"description": "A classification of a person based on factors such as geographical locations and genetics.",
"$ref": "#/definitions/nc:TextType"
},
"nc:PersonSexText": {
"description": "A gender or sex of a person.",
"$ref": "#/definitions/nc:TextType"
},
"nc:PersonSurName": {
"description": "A last name or family name of a person.",
"$ref": "#/definitions/nc:PersonNameTextType"
},
"nc:StatusDescriptionText": {
"description": "A description of a status or condition of something or someone.",
"$ref": "#/definitions/nc:TextType"
}
},
"definitions": {
"nc:TextType": {
"description": "A data type for a character string.",
"type": "string"
},
"ncic:RACECodeSimpleType": {
"description": "A data type for 3 - Race (RAC), Protected Person Race (PPR), and Person with Information Race (PIR) Field Codes",
"enum": [
"A",
"B",
"I",
"U",
"W"
]
},
"ncic:RACECodeType": {
"description": "A data type for 3 - Race (RAC), Protected Person Race (PPR), and Person with Information Race (PIR) Field Codes",
"allOf": [
{
"$ref": "#/definitions/ncic:RACECodeSimpleType"
}
]
},
"ncic:SEXCodeSimpleType": {
"description": "A data type for 2 - Sex, Sex of Victim (SOV), and Protected Person Sex (PSX) Field Codes",
"enum": [
"F",
"M",
"U"
]
},
"ncic:SEXCodeType": {
"description": "A data type for 2 - Sex, Sex of Victim (SOV), and Protected Person Sex (PSX) Field Codes",
"allOf": [
{
"$ref": "#/definitions/ncic:SEXCodeSimpleType"
}
]
},
"nc:ProperNameTextType": {
"description": "A data type for a word or phrase by which a person or thing is known, referred, or addressed.",
"allOf": [
{
"$ref": "#/definitions/nc:TextType"
}
]
},
"nc:PersonNameTextType": {
"description": "A data type for a name by which a person is known, referred, or addressed.",
"allOf": [
{
"$ref": "#/definitions/nc:ProperNameTextType"
}
]
}
}
}

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

No branches or pull requests

1 participant