This page is part of the Clinical Guidelines (v1.0.0: STU 1) based on FHIR R4. This is the current published version. For a full list of available versions, see the Directory of published versions
Formats: Narrative, XML, JSON, Turtle
Raw ttl
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
a fhir:OperationDefinition;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "cpg-library-evaluate"];
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "extensions" ];
fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h2>CPGLibraryEvaluate</h2><p>OPERATION: CPGLibraryEvaluate</p><p>The official URL for this operation definition is: </p><pre>http://hl7.org/fhir/uv/cpg/OperationDefinition/cpg-library-evaluate</pre><div><p>Evaluates the contents of a library and returns the results as a Parameters resource.</p>\n</div><p>URL: [base]/Library/$evaluate</p><p>URL: [base]/Library/[id]/$evaluate</p><p>Parameters</p><table class=\"grid\"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>library</td><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#canonical\">canonical</a></td><td/><td><div><p>The canonical url (with optional version) of the library to be evaluated. This parameter is only used when the operation is invoked at the type level.</p>\n</div></td></tr><tr><td>IN</td><td>subject</td><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a><br/>(<a href=\"http://hl7.org/fhir/R4/search.html#reference\">reference</a>)</td><td/><td><div><p>Subject for which the library will be evaluated. This corresponds to the context in which the library will be evaluated and is represented as a relative FHIR id (e.g. Patient/123), which establishes both the context and context value for the evaluation</p>\n</div></td></tr><tr><td>IN</td><td>expression</td><td>0..*</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td><div><p>Expression(s) to be evaluated. If no expression names are provided, the operation evaluates all public expression definitions in the library.</p>\n</div></td></tr><tr><td>IN</td><td>parameters</td><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/parameters.html\">Parameters</a></td><td/><td><div><p>Any input parameters for the library. Parameters defined in this input will be bound by name to parameters defined in the CQL library (or referenced libraries). Parameter types are mapped to CQL as specified in the Using CQL section of this implementation guide. If a parameter appears more than once in the input Parameters resource, it is represented with a List in the input CQL. If a parameter has parts, it is represented as a Tuple in the input CQL.</p>\n</div></td></tr><tr><td>IN</td><td>useServerData</td><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#boolean\">boolean</a></td><td/><td><div><p>Whether to use data from the server performing the evaluation. If this parameter is true (the default), then the operation will use data first from any bundles provided as parameters (through the data and prefetch parameters), second data from the server performing the operation, and third, data from the dataEndpoint parameter (if provided). If this parameter is false, the operation will use data first from the bundles provided in the data or prefetch parameters, and second from the dataEndpoint parameter (if provided).</p>\n</div></td></tr><tr><td>IN</td><td>data</td><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a></td><td/><td><div><p>Data to be made available to the library evaluation. This parameter is exclusive with the prefetchData parameter (i.e. either provide all data as a single bundle, or provide data using multiple bundles with prefetch descriptions).</p>\n</div></td></tr><tr><td>IN</td><td>prefetchData</td><td>0..*</td><td></td><td/><td><div><p>Data to be made available to the library evaluation, organized as prefetch response bundles. Each prefetchData parameter specifies either the name of the prefetchKey it is satisfying, a DataRequirement describing the prefetch, or both.</p>\n</div></td></tr><tr><td>IN</td><td>prefetchData.key</td><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td><div><p>The key of the prefetch item. This typically corresponds to the name of a parameter in a library, or the name of a prefetch item in a CDS Hooks discovery response</p>\n</div></td></tr><tr><td>IN</td><td>prefetchData.descriptor</td><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/metadatatypes.html#DataRequirement\">DataRequirement</a></td><td/><td><div><p>A DataRequirement describing the content of the prefetch item.</p>\n</div></td></tr><tr><td>IN</td><td>prefetchData.data</td><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a></td><td/><td><div><p>The prefetch data as a Bundle. If the prefetchData has no prefetchResult part, it indicates there is no data associated with this prefetch item.</p>\n</div></td></tr><tr><td>IN</td><td>dataEndpoint</td><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/endpoint.html\">Endpoint</a></td><td/><td><div><p>An endpoint to use to access data referenced by retrieve operations in the library. If provided, this endpoint is used after the data or prefetchData bundles, and the server, if the useServerData parameter is true.</p>\n</div></td></tr><tr><td>IN</td><td>contentEndpoint</td><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/endpoint.html\">Endpoint</a></td><td/><td><div><p>An endpoint to use to access content (i.e. libraries) referenced by the library. If no content endpoint is supplied, the evaluation will attempt to retrieve content from the server on which the operation is being performed.</p>\n</div></td></tr><tr><td>IN</td><td>terminologyEndpoint</td><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/endpoint.html\">Endpoint</a></td><td/><td><div><p>An endpoint to use to access terminology (i.e. valuesets, codesystems, and membership testing) referenced by the library. If no terminology endpoint is supplied, the evaluation will attempt to use the server on which the operation is being performed as the terminology server.</p>\n</div></td></tr><tr><td>OUT</td><td>return</td><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/parameters.html\">Parameters</a></td><td/><td><div><p>The results of the library evaluation, returned as a Parameters resource with a parameter for each named expression defined in the library. The value of each expression is returned as a FHIR type, either a resource, or a FHIR-defined type corresponding to the CQL return type, as defined in the Using CQL section of this implementation guide. If the result of an expression is a list of resources, that parameter will be repeated for each element in the result</p>\n</div></td></tr></table></div>"
];
fhir:OperationDefinition.url [ fhir:value "http://hl7.org/fhir/uv/cpg/OperationDefinition/cpg-library-evaluate"];
fhir:OperationDefinition.version [ fhir:value "1.0.0"];
fhir:OperationDefinition.name [ fhir:value "CPGLibraryEvaluate"];
fhir:OperationDefinition.title [ fhir:value "CPG Library Evaluate"];
fhir:OperationDefinition.status [ fhir:value "draft"];
fhir:OperationDefinition.kind [ fhir:value "operation"];
fhir:OperationDefinition.experimental [ fhir:value "false"^^xsd:boolean];
fhir:OperationDefinition.date [ fhir:value "2021-02-11T20:43:58+00:00"^^xsd:dateTime];
fhir:OperationDefinition.description [ fhir:value "Evaluates the contents of a library and returns the results as a Parameters resource."];
fhir:OperationDefinition.jurisdiction [
fhir:index 0;
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://unstats.un.org/unsd/methods/m49/m49.htm" ];
fhir:Coding.code [ fhir:value "001" ];
fhir:Coding.display [ fhir:value "World" ] ]
];
fhir:OperationDefinition.purpose [ fhir:value "This operation is defined to support evaluating the contents of a library directly via an operation"];
fhir:OperationDefinition.affectsState [ fhir:value "false"^^xsd:boolean];
fhir:OperationDefinition.code [ fhir:value "evaluate"];
fhir:OperationDefinition.resource [
fhir:value "Library";
fhir:index 0
];
fhir:OperationDefinition.system [ fhir:value "false"^^xsd:boolean];
fhir:OperationDefinition.type [ fhir:value "true"^^xsd:boolean];
fhir:OperationDefinition.instance [ fhir:value "true"^^xsd:boolean];
fhir:OperationDefinition.parameter [
fhir:index 0;
fhir:OperationDefinition.parameter.name [ fhir:value "library" ];
fhir:OperationDefinition.parameter.use [ fhir:value "in" ];
fhir:OperationDefinition.parameter.min [ fhir:value "0"^^xsd:integer ];
fhir:OperationDefinition.parameter.max [ fhir:value "1" ];
fhir:OperationDefinition.parameter.documentation [ fhir:value "The canonical url (with optional version) of the library to be evaluated. This parameter is only used when the operation is invoked at the type level." ];
fhir:OperationDefinition.parameter.type [ fhir:value "canonical" ]
], [
fhir:index 1;
fhir:OperationDefinition.parameter.name [ fhir:value "subject" ];
fhir:OperationDefinition.parameter.use [ fhir:value "in" ];
fhir:OperationDefinition.parameter.min [ fhir:value "0"^^xsd:integer ];
fhir:OperationDefinition.parameter.max [ fhir:value "1" ];
fhir:OperationDefinition.parameter.documentation [ fhir:value "Subject for which the library will be evaluated. This corresponds to the context in which the library will be evaluated and is represented as a relative FHIR id (e.g. Patient/123), which establishes both the context and context value for the evaluation" ];
fhir:OperationDefinition.parameter.type [ fhir:value "string" ];
fhir:OperationDefinition.parameter.searchType [ fhir:value "reference" ]
], [
fhir:index 2;
fhir:OperationDefinition.parameter.name [ fhir:value "expression" ];
fhir:OperationDefinition.parameter.use [ fhir:value "in" ];
fhir:OperationDefinition.parameter.min [ fhir:value "0"^^xsd:integer ];
fhir:OperationDefinition.parameter.max [ fhir:value "*" ];
fhir:OperationDefinition.parameter.documentation [ fhir:value "Expression(s) to be evaluated. If no expression names are provided, the operation evaluates all public expression definitions in the library." ];
fhir:OperationDefinition.parameter.type [ fhir:value "string" ]
], [
fhir:index 3;
fhir:OperationDefinition.parameter.name [ fhir:value "parameters" ];
fhir:OperationDefinition.parameter.use [ fhir:value "in" ];
fhir:OperationDefinition.parameter.min [ fhir:value "0"^^xsd:integer ];
fhir:OperationDefinition.parameter.max [ fhir:value "1" ];
fhir:OperationDefinition.parameter.documentation [ fhir:value "Any input parameters for the library. Parameters defined in this input will be bound by name to parameters defined in the CQL library (or referenced libraries). Parameter types are mapped to CQL as specified in the Using CQL section of this implementation guide. If a parameter appears more than once in the input Parameters resource, it is represented with a List in the input CQL. If a parameter has parts, it is represented as a Tuple in the input CQL." ];
fhir:OperationDefinition.parameter.type [ fhir:value "Parameters" ]
], [
fhir:index 4;
fhir:OperationDefinition.parameter.name [ fhir:value "useServerData" ];
fhir:OperationDefinition.parameter.use [ fhir:value "in" ];
fhir:OperationDefinition.parameter.min [ fhir:value "0"^^xsd:integer ];
fhir:OperationDefinition.parameter.max [ fhir:value "1" ];
fhir:OperationDefinition.parameter.documentation [ fhir:value "Whether to use data from the server performing the evaluation. If this parameter is true (the default), then the operation will use data first from any bundles provided as parameters (through the data and prefetch parameters), second data from the server performing the operation, and third, data from the dataEndpoint parameter (if provided). If this parameter is false, the operation will use data first from the bundles provided in the data or prefetch parameters, and second from the dataEndpoint parameter (if provided)." ];
fhir:OperationDefinition.parameter.type [ fhir:value "boolean" ]
], [
fhir:index 5;
fhir:OperationDefinition.parameter.name [ fhir:value "data" ];
fhir:OperationDefinition.parameter.use [ fhir:value "in" ];
fhir:OperationDefinition.parameter.min [ fhir:value "0"^^xsd:integer ];
fhir:OperationDefinition.parameter.max [ fhir:value "1" ];
fhir:OperationDefinition.parameter.documentation [ fhir:value "Data to be made available to the library evaluation. This parameter is exclusive with the prefetchData parameter (i.e. either provide all data as a single bundle, or provide data using multiple bundles with prefetch descriptions)." ];
fhir:OperationDefinition.parameter.type [ fhir:value "Bundle" ]
], [
fhir:index 6;
fhir:OperationDefinition.parameter.name [ fhir:value "prefetchData" ];
fhir:OperationDefinition.parameter.use [ fhir:value "in" ];
fhir:OperationDefinition.parameter.min [ fhir:value "0"^^xsd:integer ];
fhir:OperationDefinition.parameter.max [ fhir:value "*" ];
fhir:OperationDefinition.parameter.documentation [ fhir:value "Data to be made available to the library evaluation, organized as prefetch response bundles. Each prefetchData parameter specifies either the name of the prefetchKey it is satisfying, a DataRequirement describing the prefetch, or both." ];
fhir:OperationDefinition.parameter.part [
fhir:index 0;
fhir:OperationDefinition.parameter.name [ fhir:value "key" ];
fhir:OperationDefinition.parameter.use [ fhir:value "in" ];
fhir:OperationDefinition.parameter.min [ fhir:value "0"^^xsd:integer ];
fhir:OperationDefinition.parameter.max [ fhir:value "1" ];
fhir:OperationDefinition.parameter.documentation [ fhir:value "The key of the prefetch item. This typically corresponds to the name of a parameter in a library, or the name of a prefetch item in a CDS Hooks discovery response" ];
fhir:OperationDefinition.parameter.type [ fhir:value "string" ] ], [
fhir:index 1;
fhir:OperationDefinition.parameter.name [ fhir:value "descriptor" ];
fhir:OperationDefinition.parameter.use [ fhir:value "in" ];
fhir:OperationDefinition.parameter.min [ fhir:value "0"^^xsd:integer ];
fhir:OperationDefinition.parameter.max [ fhir:value "1" ];
fhir:OperationDefinition.parameter.documentation [ fhir:value "A DataRequirement describing the content of the prefetch item." ];
fhir:OperationDefinition.parameter.type [ fhir:value "DataRequirement" ] ], [
fhir:index 2;
fhir:OperationDefinition.parameter.name [ fhir:value "data" ];
fhir:OperationDefinition.parameter.use [ fhir:value "in" ];
fhir:OperationDefinition.parameter.min [ fhir:value "0"^^xsd:integer ];
fhir:OperationDefinition.parameter.max [ fhir:value "1" ];
fhir:OperationDefinition.parameter.documentation [ fhir:value "The prefetch data as a Bundle. If the prefetchData has no prefetchResult part, it indicates there is no data associated with this prefetch item." ];
fhir:OperationDefinition.parameter.type [ fhir:value "Bundle" ] ]
], [
fhir:index 7;
fhir:OperationDefinition.parameter.name [ fhir:value "dataEndpoint" ];
fhir:OperationDefinition.parameter.use [ fhir:value "in" ];
fhir:OperationDefinition.parameter.min [ fhir:value "0"^^xsd:integer ];
fhir:OperationDefinition.parameter.max [ fhir:value "1" ];
fhir:OperationDefinition.parameter.documentation [ fhir:value "An endpoint to use to access data referenced by retrieve operations in the library. If provided, this endpoint is used after the data or prefetchData bundles, and the server, if the useServerData parameter is true." ];
fhir:OperationDefinition.parameter.type [ fhir:value "Endpoint" ]
], [
fhir:index 8;
fhir:OperationDefinition.parameter.name [ fhir:value "contentEndpoint" ];
fhir:OperationDefinition.parameter.use [ fhir:value "in" ];
fhir:OperationDefinition.parameter.min [ fhir:value "0"^^xsd:integer ];
fhir:OperationDefinition.parameter.max [ fhir:value "1" ];
fhir:OperationDefinition.parameter.documentation [ fhir:value "An endpoint to use to access content (i.e. libraries) referenced by the library. If no content endpoint is supplied, the evaluation will attempt to retrieve content from the server on which the operation is being performed." ];
fhir:OperationDefinition.parameter.type [ fhir:value "Endpoint" ]
], [
fhir:index 9;
fhir:OperationDefinition.parameter.name [ fhir:value "terminologyEndpoint" ];
fhir:OperationDefinition.parameter.use [ fhir:value "in" ];
fhir:OperationDefinition.parameter.min [ fhir:value "0"^^xsd:integer ];
fhir:OperationDefinition.parameter.max [ fhir:value "1" ];
fhir:OperationDefinition.parameter.documentation [ fhir:value "An endpoint to use to access terminology (i.e. valuesets, codesystems, and membership testing) referenced by the library. If no terminology endpoint is supplied, the evaluation will attempt to use the server on which the operation is being performed as the terminology server." ];
fhir:OperationDefinition.parameter.type [ fhir:value "Endpoint" ]
], [
fhir:index 10;
fhir:OperationDefinition.parameter.name [ fhir:value "return" ];
fhir:OperationDefinition.parameter.use [ fhir:value "out" ];
fhir:OperationDefinition.parameter.min [ fhir:value "1"^^xsd:integer ];
fhir:OperationDefinition.parameter.max [ fhir:value "1" ];
fhir:OperationDefinition.parameter.documentation [ fhir:value "The results of the library evaluation, returned as a Parameters resource with a parameter for each named expression defined in the library. The value of each expression is returned as a FHIR type, either a resource, or a FHIR-defined type corresponding to the CQL return type, as defined in the Using CQL section of this implementation guide. If the result of an expression is a list of resources, that parameter will be repeated for each element in the result" ];
fhir:OperationDefinition.parameter.type [ fhir:value "Parameters" ]
].
# - ontology header ------------------------------------------------------------
a owl:Ontology;
owl:imports fhir:fhir.ttl.