{ "description": null, "_filename": "DataElement-NamingSystem.json", "package_name": "hl7.fhir.r3.elements", "date": null, "meta": { "lastUpdated": "2019-10-24T11:53:00+11:00" }, "publisher": null, "element": [ { "id": "NamingSystem", "max": "*", "min": 0, "path": "NamingSystem", "short": "System of unique identification", "mapping": [ { "map": "Entity. Role, or Act", "identity": "rim" }, { "map": "N/A", "identity": "v2" }, { "map": "N/A", "identity": "rim" }, { "map": "conformance.terminology", "identity": "w5" } ], "constraint": [ { "key": "dom-2", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource", "severity": "error", "expression": "contained.contained.empty()" }, { "key": "dom-1", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource", "severity": "error", "expression": "contained.text.empty()" }, { "key": "dom-4", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource", "severity": "error", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" }, { "key": "dom-3", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource", "severity": "error", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()" }, { "key": "nsd-1", "human": "Root systems cannot have uuid identifiers", "xpath": "not(f:kind/@value='root' and f:uniqueId/f:type/@value='uuid')", "severity": "error", "expression": "kind != 'root' or uniqueId.type = 'uuid'" }, { "key": "nsd-3", "human": "Can only have replacedBy if naming system is retired", "xpath": "not(f:replacedBy) or f:status/@value='retired'", "severity": "error", "expression": "replacedBy.empty() or status = 'retired'" }, { "key": "nsd-2", "human": "Can't have more than one preferred identifier for a type", "xpath": "not(exists(for $type in distinct-values(f:uniqueId/f:type/@value) return if (count(f:uniqueId[f:type/@value=$type and f:preferred/@value=true()])>1) then $type else ()))", "severity": "error", "expression": "uniqueId.where(preferred = true).select(type).isDistinct()" } ], "definition": "A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a \"System\" used within the Identifier and Coding data types." } ], "name": null, "type": null, "experimental": "true", "resourceType": "DataElement", "title": null, "package_version": "3.0.2", "status": "draft", "id": "5b528c1b-7a7d-4860-a5c0-3b02ab8dca2d", "kind": null, "url": "http://hl7.org/fhir/DataElement/NamingSystem", "stringency": "fully-specified", "version": null }