Raw schema
{
"type": "object",
"properties": {
"facilityId": {
"type": "string",
"description": "REQUIRED. The Facility ID where the Patient receives care."
},
"firstName": {
"type": "string",
"description": "The Patient's first name(s)."
},
"lastName": {
"type": "string",
"description": "The Patient's last name(s)."
},
"dob": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Date of birth, yyyy-mm-dd."
},
"genderAtBirth": {
"type": "string",
"enum": [
"M",
"F",
"O",
"U"
],
"description": "Gender at birth: M, F, O (other), or U (unknown)."
},
"address": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"addressLine1": {
"type": "string",
"description": "Street address line 1."
},
"addressLine2": {
"description": "Street address line 2 (apt/suite).",
"type": "string"
},
"city": {
"type": "string",
"description": "City."
},
"state": {
"type": "string",
"description": "2-letter US state code, e.g. CA."
},
"zip": {
"type": "string",
"description": "ZIP / postal code."
},
"country": {
"description": "Country. Defaults to USA.",
"type": "string"
}
},
"required": [
"addressLine1",
"city",
"state",
"zip"
]
},
"description": "One or more addresses for the Patient."
},
"middleName": {
"description": "The Patient's middle name(s).",
"type": "string"
},
"personalIdentifiers": {
"description": "Optional personal IDs (driver's license / SSN).",
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"driversLicense",
"ssn"
],
"description": "Identifier type."
},
"value": {
"type": "string",
"description": "The ID number."
},
"state": {
"description": "2-letter state code (required for driversLicense).",
"type": "string"
},
"assigner": {
"type": "string"
}
},
"required": [
"type",
"value"
]
}
},
"contact": {
"description": "Optional contact info (phone / email).",
"type": "array",
"items": {
"type": "object",
"properties": {
"phone": {
"description": "10-digit phone number, e.g. 1234567890.",
"type": "string"
},
"email": {
"description": "Email address.",
"type": "string"
}
}
}
}
},
"required": [
"facilityId",
"firstName",
"lastName",
"dob",
"genderAtBirth",
"address"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}