This page is part of the FHIR Specification (v1.4.0: STU 3 Ballot 3). 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
OperationDefinition example
@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 xs: <http://www.w3.org/2001/XMLSchema#> . # - resource ------------------------------------------------------------------- <http://hl7.org/fhir//OperationDefinition/example> a fhir:OperationDefinition; fhir:nodeRole fhir:treeRoot; fhir:Resource.id [ fhir:value "example"]; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "generated" ] ]; fhir:OperationDefinition.url [ fhir:value "http://h7.org/fhir/OperationDefinition/example"]; fhir:OperationDefinition.version [ fhir:value "B"]; fhir:OperationDefinition.name [ fhir:value "Populate Questionnaire"]; fhir:OperationDefinition.status [ fhir:value "draft"]; fhir:OperationDefinition.kind [ fhir:value "operation"]; fhir:OperationDefinition.date [ fhir:value "2015-08-04"^^xs:date]; fhir:OperationDefinition.publisher [ fhir:value "Acme Healthcare Services"]; fhir:OperationDefinition.contact [ fhir:index 0; fhir:OperationDefinition.contact.name [ fhir:value "System Administrator" ]; fhir:OperationDefinition.contact.telecom [ fhir:index 0; fhir:ContactPoint.system [ fhir:value "email" ]; fhir:ContactPoint.value [ fhir:value "beep@coyote.acme.com" ] ] ]; fhir:OperationDefinition.description [ fhir:value "Limited implementation of the Populate Questionnaire implemenation"]; fhir:OperationDefinition.code [ fhir:value "populate"]; fhir:OperationDefinition.comment [ fhir:value "Only implemented for Labs and Medications so far"]; fhir:OperationDefinition.base [ fhir:reference <http://hl7.org/fhir/OperationDefinition/Questionnaire-populate>; fhir:Reference.reference [ fhir:value "OperationDefinition/Questionnaire-populate" ] ]; fhir:OperationDefinition.system [ fhir:value "false"^^xs:boolean]; fhir:OperationDefinition.type [ fhir:value "Questionnaire"; fhir:index 0 ]; fhir:OperationDefinition.instance [ fhir:value "true"^^xs:boolean]; fhir:OperationDefinition.parameter [ fhir:index 0; fhir:OperationDefinition.parameter.name [ fhir:value "subject" ]; fhir:OperationDefinition.parameter.use [ fhir:value "in" ]; fhir:OperationDefinition.parameter.min [ fhir:value "1"^^xs:int ]; fhir:OperationDefinition.parameter.max [ fhir:value "1" ]; fhir:OperationDefinition.parameter.documentation [ fhir:value "The resource that is to be the *QuestionnaireResponse.subject*. The [[[QuestionnaireResponse]]] instance will reference the provided subject. In addition, if the *local* parameter is set to true, server information about the specified subject will be used to populate the instance." ]; fhir:OperationDefinition.parameter.type [ fhir:value "Reference" ] ]; fhir:OperationDefinition.parameter [ fhir:index 1; fhir:OperationDefinition.parameter.name [ fhir:value "return" ]; fhir:OperationDefinition.parameter.use [ fhir:value "out" ]; fhir:OperationDefinition.parameter.min [ fhir:value "1"^^xs:int ]; fhir:OperationDefinition.parameter.max [ fhir:value "1" ]; fhir:OperationDefinition.parameter.documentation [ fhir:value "The partially (or fully)-populated set of answers for the specified Questionnaire" ]; fhir:OperationDefinition.parameter.type [ fhir:value "QuestionnaireResponse" ] ]. # -------------------------------------------------------------------------------------
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.