This page is part of the FHIR Specification (v4.2.0: R5 Preview #1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3
FHIR Infrastructure Work Group | Maturity Level: N/A | Standards Status: Informative | Compartments: Not linked to any defined compartments |
Raw Turtle (+ also see Turtle/RDF Format Specification)
Operation Definition
@prefix fhir: <http://hl7.org/fhir/> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . # - resource ------------------------------------------------------------------- [] a fhir:OperationDefinition; fhir:Resource.id [ fhir:value "CapabilityStatement-implements"]; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "generated" ] ]; fhir:DomainResource.extension [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ]; fhir:Extension.value [ fhir:value "5" ] ], [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ]; fhir:Extension.value [ fhir:value "trial-use" ] ]; fhir:CanonicalResource.url [ fhir:value "http://hl7.org/fhir/OperationDefinition/CapabilityStatement-implements"]; fhir:CanonicalResource.version [ fhir:value "4.2.0"]; fhir:CanonicalResource.name [ fhir:value "Test if a server implements a client's required operations"]; fhir:CanonicalResource.status [ fhir:value "draft"]; fhir:CanonicalResource.date [ fhir:value "2019-12-31T21:03:40+11:00"]; fhir:CanonicalResource.publisher [ fhir:value "HL7 (FHIR Project)"]; fhir:CanonicalResource.contact [ fhir:ContactDetail.telecom [ fhir:ContactPoint.system [ fhir:value "url" ]; fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ] ], [ fhir:ContactPoint.system [ fhir:value "email" ]; fhir:ContactPoint.value [ fhir:value "fhir@lists.hl7.org" ] ] ]; fhir:CanonicalResource.description [ fhir:value "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:OperationDefinition.url [ fhir:value "http://hl7.org/fhir/OperationDefinition/CapabilityStatement-implements"]; fhir:OperationDefinition.version [ fhir:value "4.2.0"]; fhir:OperationDefinition.name [ fhir:value "Test if a server implements a client's required operations"]; fhir:OperationDefinition.status [ fhir:value "draft"]; fhir:OperationDefinition.kind [ fhir:value "operation"]; fhir:OperationDefinition.date [ fhir:value "2019-12-31T21:03:40+11:00"]; fhir:OperationDefinition.publisher [ fhir:value "HL7 (FHIR Project)"]; fhir:OperationDefinition.contact [ fhir:ContactDetail.telecom [ fhir:ContactPoint.system [ fhir:value "url" ]; fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ] ], [ fhir:ContactPoint.system [ fhir:value "email" ]; fhir:ContactPoint.value [ fhir:value "fhir@lists.hl7.org" ] ] ]; fhir:OperationDefinition.description [ fhir:value "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:OperationDefinition.code [ fhir:value "implements"]; fhir:OperationDefinition.comment [ fhir:value "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, 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:OperationDefinition.resource [ fhir:value "CapabilityStatement"]; fhir:OperationDefinition.system [ fhir:value "false"]; fhir:OperationDefinition.type [ fhir:value "true"]; fhir:OperationDefinition.instance [ fhir:value "true"]; fhir:OperationDefinition.parameter [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "server" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "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:OperationDefinitionParameterComponent.type [ fhir:value "canonical" ] ], [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "client" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "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:OperationDefinitionParameterComponent.type [ fhir:value "canonical" ] ], [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "resource" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The client capability statement, provided inline" ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "CapabilityStatement" ] ], [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "return" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "Outcome of the CapabilityStatement test" ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "OperationOutcome" ] ] . # -------------------------------------------------------------------------------------
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.