This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions
Example OperationDefinition/example (XML)
Raw XML (canonical form + also see XML Format Specification)
OperationDefinition example (id = "example")
<?xml version="1.0" encoding="UTF-8"?>
<OperationDefinition xmlns="http://hl7.org/fhir">
<id value="example"/>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
<valueCode value="fhir"/>
</extension>
<url value="http://hl7.org/fhir/OperationDefinition/example"/>
<version value="B"/>
<name value="PopulateQuestionnaire"/>
<title value="Populate Questionnaire"/>
<status value="draft"/>
<kind value="operation"/>
<date value="2015-08-04"/>
<publisher value="HL7 International / FHIR Infrastructure"/>
<contact>
<telecom>
<system value="url"/>
<value value="http://www.hl7.org/Special/committees/fiwg"/>
</telecom>
</contact>
<description value="Limited implementation of the Populate Questionnaire implementation"/>
<useContext>
<code>
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
<code value="venue"/>
<display value="Clinical Venue"/>
</code>
<valueCodeableConcept>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
<code value="IMP"/>
<display value="inpatient encounter"/>
</coding>
</valueCodeableConcept>
</useContext>
<jurisdiction>
<coding>
<system value="urn:iso:std:iso:3166"/>
<code value="GB"/>
<display value="United Kingdom of Great Britain and Northern Ireland"/>
</coding>
</jurisdiction>
<code value="populate"/>
<comment value="Only implemented for Labs and Medications so far"/>
<base value="http://hl7.org/fhir/OperationDefinition/Questionnaire-populate"/>
<resource value="Questionnaire"/>
<system value="false"/>
<type value="false"/>
<instance value="true"/>
<parameter>
<name value="subject"/>
<use value="in"/>
<min value="1"/>
<max value="1"/>
<documentation 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."/>
<type value="Reference"/>
</parameter>
<parameter>
<name value="local"/>
<use value="in"/>
<min value="0"/>
<max value="1"/>
<documentation value="If the *local* parameter is set to true, server information about the specified
subject will be used to populate the instance."/>
<type value="Reference"/>
</parameter>
<parameter>
<name value="return"/>
<use value="out"/>
<min value="1"/>
<max value="1"/>
<documentation value="The partially (or fully)-populated set of answers for the specified Questionnaire"/>
<type value="QuestionnaireResponse"/>
</parameter>
<overload>
<parameterName value="subject"/>
<parameterName value="local"/>
</overload>
<overload>
<parameterName value="subject"/>
<comment value="local defaults to false when not passed as a parameter"/>
</overload>
</OperationDefinition>
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.