{ "description": null, "_filename": "DataElement-TestScript.setup.action.operation.json", "package_name": "hl7.fhir.r3.examples", "date": null, "meta": { "lastUpdated": "2017-04-19T07:44:43.294+10:00" }, "publisher": null, "element": [ { "id": "TestScript.setup.action.operation", "max": "1", "min": 0, "path": "TestScript.setup.action.operation", "type": [ { "code": "BackboneElement" } ], "short": "The setup operation to perform", "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "Element", "severity": "error", "expression": "hasValue() | (children().count() > id.count())" }, { "key": "inv-7", "human": "Setup operation SHALL contain either sourceId or targetId or params or url.", "xpath": "f:sourceId or ((f:targetId or f:url or f:params) and (count(f:targetId) + count(f:url) + count(f:params) =1)) or (f:type/f:code/@value='capabilities' or f:type/f:code/@value='search' or f:type/f:code/@value='transaction' or f:type/f:code/@value='history')", "severity": "error", "expression": "sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' |'search' | 'transaction' | 'history'))" } ], "definition": "The operation to perform." } ], "name": null, "type": null, "experimental": "true", "resourceType": "DataElement", "title": null, "package_version": "3.0.2", "status": "draft", "id": "5517991c-5b3b-45a3-8469-bc8fdc5c71da", "kind": null, "url": "http://hl7.org/fhir/DataElement/TestScript.setup.action.operation", "stringency": "fully-specified", "version": null }