{ "resourceType": "OperationDefinition", "id": "example", "url": "http://h7.org/fhir/OperationDefinition/example", "version": "B", "name": "Populate Questionnaire", "status": "draft", "kind": "operation", "date": "2015-08-04", "publisher": "Acme Healthcare Services", "contact": [ { "name": "System Administrator", "telecom": [ { "system": "email", "value": "beep@coyote.acme.com" } ] } ], "description": "Limited implementation of the Populate Questionnaire implementation", "useContext": [ { "code": { "system": "http://build.fhir.org/codesystem-usage-context-type", "code": "venue", "display": "Clinical Venue" }, "valueCodeableConcept": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", "code": "IMP", "display": "inpatient encounter" } ] } } ], "jurisdiction": [ { "coding": [ { "system": "urn:iso:std:iso:3166", "code": "GB", "display": "United Kingdom of Great Britain and Northern Ireland (the)" } ] } ], "code": "populate", "comment": "Only implemented for Labs and Medications so far", "base": "OperationDefinition/Questionnaire-populate", "resource": [ "Questionnaire" ], "system": false, "type": false, "instance": true, "parameter": [ { "name": "subject", "use": "in", "min": 1, "max": "1", "documentation": "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": "Reference" }, { "name": "local", "use": "in", "min": 0, "max": "1", "documentation": "If the *local* parameter is set to true, server information about the specified subject will be used to populate the instance.", "type": "Reference" }, { "name": "return", "use": "out", "min": 1, "max": "1", "documentation": "The partially (or fully)-populated set of answers for the specified Questionnaire", "type": "QuestionnaireResponse" } ], "overload": [ { "parameterName": [ "subject", "local" ] }, { "parameterName": [ "subject" ], "comment": "local defaults to false when not passed as a parameter" } ] }