{
"description": "Profile for expressing telecom details with valid value formats",
"_filename": "StructureDefinition-NPPRContactPoint.json",
"package_name": "se.electronichealth.fhir.nppr.r5",
"date": null,
"derivation": "constraint",
"publisher": null,
"fhirVersion": "5.0.0",
"name": "NPPRContactPoint",
"abstract": false,
"type": "ContactPoint",
"experimental": null,
"resourceType": "StructureDefinition",
"title": null,
"package_version": "0.1.0-alpha",
"status": "active",
"id": "a1746e2a-86e4-401c-8a6a-5ef00d4fa607",
"kind": "complex-type",
"url": "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRContactPoint",
"version": null,
"differential": {
"element": [ {
"id": "ContactPoint",
"path": "ContactPoint",
"constraint": [ {
"key": "nppr-telecom-phone-1",
"human": "If telecom.system = #phone, value should follow format +46123456789",
"source": "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRContactPoint",
"severity": "warning",
"expression": "value.matches('^\\\\+[1-9][0-9]+$') or system != 'phone'"
}, {
"key": "nppr-telecom-url-1",
"human": "If telecom.system = #url, value should follow valid format. Example: https://example.com",
"source": "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRContactPoint",
"severity": "warning",
"expression": "value.matches('(https?|ftp)://(-\\\\.)?([^\\\\s/?\\\\.#-]+\\\\.?)+(/[^\\\\s]*)?$') or system != 'url'"
}, {
"key": "nppr-telecom-email-1",
"human": "If telecom.system = #email, value should follow valid format Example: test@test.com",
"source": "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRContactPoint",
"severity": "warning",
"expression": "value.matches('^[\\\\w.-]{1,64}@(?!.{254})[\\\\w.-]+\\\\.[A-Za-z]{2,4}$') or system != 'email'"
} ]
}, {
"id": "ContactPoint.system",
"min": 1,
"path": "ContactPoint.system",
"binding": {
"strength": "required",
"valueSet": "http://hl7.org/fhir/ValueSet/contact-point-system"
},
"mustSupport": true
}, {
"id": "ContactPoint.value",
"min": 1,
"path": "ContactPoint.value",
"mustSupport": true
}, {
"id": "ContactPoint.use",
"path": "ContactPoint.use",
"mustSupport": true
}, {
"id": "ContactPoint.period",
"min": 1,
"path": "ContactPoint.period",
"mustSupport": true
}, {
"id": "ContactPoint.period.start",
"min": 1,
"path": "ContactPoint.period.start",
"mustSupport": true
}, {
"id": "ContactPoint.period.end",
"path": "ContactPoint.period.end",
"mustSupport": true
} ]
},
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/ContactPoint"
}