FHIR Application Feature Framework Implementation Guide
1.0.0 - STU 1

FHIR Application Feature Framework Implementation Guide - Local Development build (v1.0.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## : Test if a server implements a client's required operations - TTL Representation

Page standards status: Trial-use | Maturity Level: 5

Raw ttl | Download

    @prefix fhir: <http://hl7.org/fhir/> .
    @prefix owl: <http://www.w3.org/2002/07/owl#> .
    @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @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:id [ fhir:v "CapabilityStatement-implements"] ; #
      fhir:meta [
    fhir:lastUpdated [ fhir:v "2021-01-05T10:01:24.148+11:00"^^xsd:dateTime ]
      ] ; #
      fhir:text [
    fhir:status [ fhir:v "generated" ] ;
    fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: OperationDefinition CapabilityStatement-implements</b></p><a name=\"CapabilityStatement-implements\"> </a><a name=\"hcCapabilityStatement-implements\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Last updated: 2021-01-05 10:01:24+1100</p></div><p>URL: [base]/CapabilityStatement/$implements</p><p>URL: [base]/CapabilityStatement/[id]/$implements</p><h3>Parameters</h3><table class=\"grid\"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Scope</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>server</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R5/datatypes.html#canonical\">canonical</a></td><td/><td><div><p>A canonical reference to the server capability statement - use this if the implements is not invoked on an instance (or on the /metadata end-point)</p>\n</div></td></tr><tr><td>IN</td><td>client</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R5/datatypes.html#canonical\">canonical</a></td><td/><td><div><p>A canonical reference to the client capability statement - use this if the implements is not invoked on an instance (or on the /metadata end-point)</p>\n</div></td></tr><tr><td>IN</td><td>resource</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R5/capabilitystatement.html\">CapabilityStatement</a></td><td/><td><div><p>The client capability statement, provided inline</p>\n</div></td></tr><tr><td>OUT</td><td>return</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R5/operationoutcome.html\">OperationOutcome</a></td><td/><td><div><p>Outcome of the CapabilityStatement test</p>\n</div></td></tr></table><div><p>The operation does not perform a full conformance check; in particular it does not check that the profiles align. It merely checks that the behaviors the client wishes to use are provided    Technically, this operation is implemented as follows:</p>\n<ul>\n<li>The server's capability statement must have an entry for each resource in the client's capability statement</li>\n<li>The server's resource support must have matching flags for updateCreate, conditionalCreate, conditionalRead, conditionalUpdate, conditionalPatch, conditionalDelete, searchInclude, searchRevInclude</li>\n<li>The server's capability statement must have a matching interaction for each interaction in the client capability statement (whether or not it is on a resource)</li>\n<li>The server's capability statement must have a search parameter with matching name and definition for any search parameters in the client capability statement</li>\n<li>The server must have an operation definition with a matching reference for any operations in the client capability statement</li>\n</ul>\n<p>If the capability statements match by these rules, then the return value is a 200 OK with an operation outcome that contains no issues with severity &gt;= error. If the capability statement doesn't match, the return value is a 4xx error, with an OperationOutcome with at least one issue with severity &gt;= error</p>\n</div></div>"^^rdf:XMLLiteral ]
      ] ; #
      fhir:extension ( [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm>     ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 5     ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status>     ] ;
    fhir:value [
    a fhir:Code ;
    fhir:v "trial-use"     ]
      ] [
        ( fhir:extension [
    fhir:url [
    fhir:v "list"^^xsd:anyURI ;
    fhir:l fhir:list       ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "1"       ]     ] [
    fhir:url [
    fhir:v "response"^^xsd:anyURI ;
    fhir:l fhir:response       ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v false       ]     ] [
    fhir:url [
    fhir:v "content"^^xsd:anyURI ;
    fhir:l fhir:content       ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "$implements-request.txt"       ]     ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/build/StructureDefinition/example"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/build/StructureDefinition/example>     ]
      ] [
        ( fhir:extension [
    fhir:url [
    fhir:v "list"^^xsd:anyURI ;
    fhir:l fhir:list       ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "1"       ]     ] [
    fhir:url [
    fhir:v "response"^^xsd:anyURI ;
    fhir:l fhir:response       ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v true       ]     ] [
    fhir:url [
    fhir:v "content"^^xsd:anyURI ;
    fhir:l fhir:content       ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "$implements-response.txt"       ]     ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/build/StructureDefinition/example"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/build/StructureDefinition/example>     ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/build/StructureDefinition/footer"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/build/StructureDefinition/footer>     ] ;
    fhir:value [
    a fhir:Markdown ;
    fhir:v "The operation does not perform a full conformance check; in particular it does not check that the profiles align. It merely checks that the behaviors the client wishes to use are provided    Technically, this operation is implemented as follows:   \n\n* The server's capability statement must have an entry for each resource in the client's capability statement    \n* The server's resource support must have matching flags for updateCreate, conditionalCreate, conditionalRead, conditionalUpdate, conditionalPatch, conditionalDelete, searchInclude, searchRevInclude   \n* The server's capability statement must have a matching interaction for each interaction in the client capability statement (whether or not it is on a resource)   \n* The server's capability statement must have a search parameter with matching name and definition for any search parameters in the client capability statement   \n* The server must have an operation definition with a matching reference for any operations in the client capability statement   \n\nIf the capability statements match by these rules, then the return value is a 200 OK with an operation outcome that contains no issues with severity >= error. If the capability statement doesn't match, the return value is a 4xx error, with an OperationOutcome with at least one issue with severity >= error"     ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>     ] ;
    fhir:value [
    a fhir:Code ;
    fhir:v "fhir"     ]
      ] ) ; #
      fhir:url [
    fhir:v "http://hl7.org/fhir/uv/application-feature/OperationDefinition/CapabilityStatement-implements"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/application-feature/OperationDefinition/CapabilityStatement-implements>
      ] ; #
      fhir:identifier ( [
    fhir:system [
    fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
    fhir:l <urn:ietf:rfc:3986>     ] ;
    fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.32.4" ]
      ] ) ; #
      fhir:version [ fhir:v "1.0.0"] ; #
      fhir:name [ fhir:v "Implements"] ; #
      fhir:title [ fhir:v "Test if a server implements a client's required operations"] ; #
      fhir:status [ fhir:v "active"] ; #
      fhir:kind [ fhir:v "operation"] ; #
      fhir:date [ fhir:v "2021-01-05T10:01:24+11:00"^^xsd:dateTime] ; #
      fhir:publisher [ fhir:v "HL7 International / FHIR Infrastructure"] ; #
      fhir:contact ( [
    fhir:name [ fhir:v "HL7 International / FHIR Infrastructure" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "http://www.hl7.org/Special/committees/fiwg" ]     ] )
      ] ) ; #
      fhir:description [ fhir:v "This operation asks the server to check that it implements all the resources, interactions, search parameters, and operations that the client provides in its capability statement. The client provides its capability statement inline, or by referring the server to the canonical URL of its capability statement"] ; #
      fhir:jurisdiction ( [
        ( fhir:coding [
    fhir:system [
    fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ;
    fhir:l <http://unstats.un.org/unsd/methods/m49/m49.htm>       ] ;
    fhir:code [ fhir:v "001" ] ;
    fhir:display [ fhir:v "World" ]     ] )
      ] ) ; #
      fhir:affectsState [ fhir:v false] ; #
      fhir:code [ fhir:v "implements"] ; #
      fhir:comment [ fhir:v "The operation does not perform a full conformance check; in particular it does not check that the profiles align. It merely checks that the behaviors the client wishes to use are provided    Technically, this operation is implemented as follows:   \n\n* The server's capability statement must have an entry for each resource in the client's capability statement    \n* The server's resource support must have matching flags for updateCreate, conditionalCreate, conditionalRead, conditionalUpdate, conditionalPatch, conditionalDelete, searchInclude, searchRevInclude   \n* The server's capability statement must have a matching interaction for each interaction in the client capability statement (whether or not it is on a resource)   \n* The server's capability statement must have a search parameter with matching name and definition for any search parameters in the client capability statement   \n* The server must have an operation definition with a matching reference for any operations in the client capability statement   \n\nIf the capability statements match by these rules, then the return value is a 200 OK with an operation outcome that contains no issues with severity >= error. If the capability statement doesn't match, the return value is a 4xx error, with an OperationOutcome with at least one issue with severity >= error"] ; #
      fhir:resource ( [ fhir:v "CapabilityStatement"] ) ; #
      fhir:system [ fhir:v false] ; #
      fhir:type [ fhir:v true] ; #
      fhir:instance [ fhir:v true] ; #
      fhir:parameter ( [
    fhir:name [ fhir:v "server" ] ;
    fhir:use [ fhir:v "in" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:documentation [ fhir:v "A canonical reference to the server capability statement - use this if the implements is not invoked on an instance (or on the /metadata end-point)" ] ;
    fhir:type [ fhir:v "canonical" ]
      ] [
    fhir:name [ fhir:v "client" ] ;
    fhir:use [ fhir:v "in" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:documentation [ fhir:v "A canonical reference to the client capability statement - use this if the implements is not invoked on an instance (or on the /metadata end-point)" ] ;
    fhir:type [ fhir:v "canonical" ]
      ] [
    fhir:name [ fhir:v "resource" ] ;
    fhir:use [ fhir:v "in" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:documentation [ fhir:v "The client capability statement, provided inline" ] ;
    fhir:type [ fhir:v "CapabilityStatement" ]
      ] [
    fhir:name [ fhir:v "return" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 1 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:documentation [ fhir:v "Outcome of the CapabilityStatement test" ] ;
    fhir:type [ fhir:v "OperationOutcome" ]
      ] ) . #