Release 4B

This page is part of the FHIR Specification (v4.3.0: R4B - STU). 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.ttl

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

Raw Turtle (+ also see Turtle/RDF Format Specification)

OperationDefinition example

@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 "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.experimental [ fhir:value "true"];
  fhir:OperationDefinition.date [ fhir:value "2015-08-04"];
  fhir:OperationDefinition.publisher [ fhir:value "Acme Healthcare Services"];
  fhir:OperationDefinition.contact [
     fhir:index 0;
     fhir:ContactDetail.name [ fhir:value "System Administrator" ];
     fhir:ContactDetail.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 implementation"];
  fhir:OperationDefinition.useContext [
     fhir:index 0;
     fhir:UsageContext.code [
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/usage-context-type" ];
       fhir:Coding.code [ fhir:value "venue" ];
       fhir:Coding.display [ fhir:value "Clinical Venue" ]
     ];
     fhir:UsageContext.value [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActCode" ];
         fhir:Coding.code [ fhir:value "IMP" ];
         fhir:Coding.display [ fhir:value "inpatient encounter" ]
       ]
     ]
  ];
  fhir:OperationDefinition.jurisdiction [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ];
       fhir:Coding.code [ fhir:value "GB" ];
       fhir:Coding.display [ fhir:value "United Kingdom of Great Britain and Northern Ireland (the)" ]
     ]
  ];
  fhir:OperationDefinition.code [ fhir:value "populate"];
  fhir:OperationDefinition.comment [ fhir:value "Only implemented for Labs and Medications so far"];
  fhir:OperationDefinition.base [ fhir:value "http://hl7.org/fhir/OperationDefinition/Questionnaire-populate"];
  fhir:OperationDefinition.resource [
     fhir:value "Questionnaire";
     fhir:index 0
  ];
  fhir:OperationDefinition.system [ fhir:value "false"];
  fhir:OperationDefinition.type [ fhir:value "false"];
  fhir:OperationDefinition.instance [ fhir:value "true"];
  fhir:OperationDefinition.parameter [
     fhir:index 0;
     fhir:OperationDefinition.name [ fhir:value "subject" ];
     fhir:OperationDefinition.use [ fhir:value "in" ];
     fhir:OperationDefinition.min [ fhir:value "1" ];
     fhir:OperationDefinition.max [ fhir:value "1" ];
     fhir:OperationDefinition.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.type [ fhir:value "Reference" ]
  ], [
     fhir:index 1;
     fhir:OperationDefinition.name [ fhir:value "local" ];
     fhir:OperationDefinition.use [ fhir:value "in" ];
     fhir:OperationDefinition.min [ fhir:value "0" ];
     fhir:OperationDefinition.max [ fhir:value "1" ];
     fhir:OperationDefinition.documentation [ fhir:value "If the *local* parameter is set to true, server information about the specified subject will be used to populate the instance." ];
     fhir:OperationDefinition.type [ fhir:value "Reference" ]
  ], [
     fhir:index 2;
     fhir:OperationDefinition.name [ fhir:value "return" ];
     fhir:OperationDefinition.use [ fhir:value "out" ];
     fhir:OperationDefinition.min [ fhir:value "1" ];
     fhir:OperationDefinition.max [ fhir:value "1" ];
     fhir:OperationDefinition.documentation [ fhir:value "The partially (or fully)-populated set of answers for the specified Questionnaire" ];
     fhir:OperationDefinition.type [ fhir:value "QuestionnaireResponse" ]
  ];
  fhir:OperationDefinition.overload [
     fhir:index 0;
     fhir:OperationDefinition.parameterName [
       fhir:value "subject";
       fhir:index 0
     ], [
       fhir:value "local";
       fhir:index 1
     ]
  ], [
     fhir:index 1;
     fhir:OperationDefinition.parameterName [
       fhir:value "subject";
       fhir:index 0
     ];
     fhir:OperationDefinition.comment [ fhir:value "local defaults to false when not passed as a parameter" ]
  ] .

# -------------------------------------------------------------------------------------


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.