{ "description": null, "_filename": "DataElement-MessageDefinition.json", "package_name": "hl7.fhir.r3.elements", "date": null, "meta": { "lastUpdated": "2019-10-24T11:53:00+11:00" }, "publisher": null, "element": [ { "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()" } ], "path": "MessageDefinition", "min": 0, "definition": "Defines the characteristics of a message that can be shared between systems, including the type of event that initiates the message, the content to be transmitted and what response(s), if any, are permitted.", "short": "A resource that defines a type of message that can be exchanged between systems", "mapping": [ { "map": "Entity. Role, or Act", "identity": "rim" }, { "map": "N/A", "identity": "v2" }, { "map": "N/A", "identity": "rim" }, { "map": "infrastructure.exchange", "identity": "w5" } ], "max": "*", "id": "MessageDefinition", "comment": "This would be a MIF-level artifact." } ], "name": null, "type": null, "experimental": "true", "resourceType": "DataElement", "title": null, "package_version": "3.0.2", "status": "draft", "id": "64fb0f1d-fdeb-4dc7-8dbc-2c85e287346e", "kind": null, "url": "http://hl7.org/fhir/DataElement/MessageDefinition", "stringency": "fully-specified", "version": null }