Packages

ISO/HL7 FHIR Application Server

Current section

Files

Jump to
hl7 schema ContactPoint.schema.json
Raw

schema/ContactPoint.schema.json

{
"schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://hl7.erp.uno/schema/ContactPoint.schema.json",
"$ref": "#/definitions/ContactPoint",
"description": "see https://hl7.org/fhir/R5/json.html for information about the FHIR Json Schemas",
"definitions": {
"Period": {
"allOf": [
{
"description": "A time period defined by a start and end date and optionally time.",
"properties": {
"start": {
"description": "The start of the period. The boundary is inclusive.",
"type": "string",
"pattern": "-?[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"
},
"end": {
"description": "The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.",
"type": "string",
"pattern": "-?[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"
}
}
}
]
},
"ContactPoint": {
"allOf": [
{
"description": "Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc.",
"properties": {
"system": {
"description": "Telecommunications form for contact point - what communications system is required to make use of the contact.",
"enum": [
"phone",
"fax",
"email",
"pager",
"url",
"sms",
"other"
],
"type": "string"
},
"value": {
"description": "The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).",
"type": "string"
},
"use": {
"description": "Identifies the purpose for the contact point.",
"enum": [
"home",
"work",
"temp",
"old",
"mobile"
],
"type": "string"
},
"rank": {
"description": "Specifies a preferred order in which to use a set of contacts. Contacts are ranked with lower values coming before higher values.",
"type": "number",
"pattern": "[1-9][0-9]*"
},
"period": {
"description": "Time period when the contact point was/is in use.",
"$ref": "#/definitions/Period"
}
}
}
]
}
}
}