{ "description": null, "_filename": "DataElement-NamingSystem.json", "package_name": "hl7.fhir.r2.elements", "date": null, "meta": { "lastUpdated": "2015-10-24T07:41:03.495+11:00" }, "publisher": null, "element": [ { "max": "*", "min": 0, "path": "NamingSystem", "type": [ { "code": "DomainResource" } ], "short": "System of unique identification", "mapping": [ { "map": "N/A", "identity": "v2" }, { "map": "N/A", "identity": "rim" }, { "map": "conformance.terminology", "identity": "w5" } ], "constraint": [ { "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" }, { "key": "nsd-3", "human": "Can only have replacedBy if naming system is retired", "xpath": "not(f:replacedBy) or f:status/@value='retired'", "severity": "error" }, { "key": "nsd-1", "human": "Root systems cannot have uuid or sid identifiers", "xpath": "not(f:kind/@value='root' and f:uniqueId/f:type/@value=('uuid', 'ruid'))", "severity": "error" } ], "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": "1.0.2", "status": "draft", "id": "6a1a6210-5d70-44f2-857c-a81983cabaaf", "kind": null, "url": "http://hl7.org/fhir/DataElement/NamingSystem", "stringency": "fully-specified", "version": null }