{ "description": null, "_filename": "DataElement-Linkage.json", "package_name": "hl7.fhir.r3.elements", "date": null, "meta": { "lastUpdated": "2019-10-24T11:53:00+11:00" }, "publisher": null, "element": [ { "id": "Linkage", "max": "*", "min": 0, "path": "Linkage", "short": "Links records for 'same' item", "mapping": [ { "map": "Entity. Role, or Act", "identity": "rim" }, { "map": "N/A - RIM doesn't know how to do this", "identity": "rim" }, { "map": "infrastructure.structure", "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": "lnk-1", "human": "Must have at least two items", "xpath": "count(f:item)>1", "severity": "error", "expression": "item.count()>1" } ], "definition": "Identifies two or more records (resource instances) that are referring to the same real-world \"occurrence\"." } ], "name": null, "type": null, "experimental": "true", "resourceType": "DataElement", "title": null, "package_version": "3.0.2", "status": "draft", "id": "5c13ab9d-2a4f-45e4-a348-1869bbb5ae9a", "kind": null, "url": "http://hl7.org/fhir/DataElement/Linkage", "stringency": "fully-specified", "version": null }