{
  "resourceType" : "OperationDefinition",
  "id" : "example",
  "language" : "pt",
  "text" : {
    "status" : "generated",
    "div" : "<div xml:lang=\"pt\" lang=\"pt\"><hr/><p><b>Portuguese</b></p><hr/><p class=\"res-header-id\"><b>Narrativa gerada: OperationDefinition example</b></p><a name=\"pt-example\"> </a><a name=\"pt-hcexample\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Língua: en</p></div><p>URL: [base]/Composition/[id]/$populate</p><h3>Parâmetros</h3><table class=\"grid\"><tr><td><b>Utilização</b></td><td><b>Nome</b></td><td><b>Âmbito de aplicação</b></td><td><b>Cardinalidade</b></td><td><b>Tipo</b></td><td><b>Vínculo</b></td><td><b>Documentação</b></td></tr><tr><td>IN</td><td>persist</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/references.html#Reference\">Reference</a></td><td/><td><div><p>Indicates whether the produced document should be persisted</p>\n</div></td></tr><tr><td>IN</td><td>graph</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#uri\">uri</a></td><td/><td><div><p>Canonical reference to a GraphDefinition. If a URL is provided, it is the canonical reference to a GraphDefinition that it controls what resources are to be added to the bundle when building the document. The GraphDefinition can also specify profiles that apply to the various resources</p>\n</div></td></tr><tr><td>OUT</td><td>return</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a></td><td/><td><div><p>The bundle containing the composition and resources associated with it. See FHIR Documents for information on resources that may be included in the bundle.</p>\n</div></td></tr></table><div><p>Only implemented for Labs and Medications so far</p>\n</div></div>"
  },
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "fhir"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode" : "informative",
    "_valueCode" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical" : "http://hl7.org/fhir/test/multi-lang/ImplementationGuide/hl7.fhir.test.multi-lang"
      }]
    }
  }],
  "url" : "http://hl7.org/fhir/test/multi-lang/OperationDefinition/example",
  "version" : "0.2.0",
  "name" : "ExampleOperationDefinition (definição de operação de exemplo)",
  "title" : "Exemplo de operação Definição",
  "status" : "draft",
  "kind" : "operation",
  "experimental" : true,
  "date" : "2015-08-04",
  "publisher" : "HL7 Internacional / Infraestrutura FHIR",
  "contact" : [{
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/fiwg"
    }]
  }],
  "description" : "Exemplo de operação Definição da instância",
  "useContext" : [{
    "code" : {
      "system" : "http://terminology.hl7.org/ValueSet/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" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "code" : "001"
    }]
  }],
  "code" : "populate",
  "comment" : "Até à data, só foi implementado para laboratórios e medicamentos",
  "base" : "http://hl7.org/fhir/OperationDefinition/Composition-document",
  "resource" : ["Composition"],
  "system" : false,
  "type" : false,
  "instance" : true,
  "parameter" : [{
    "name" : "persist",
    "use" : "in",
    "min" : 1,
    "max" : "1",
    "documentation" : "Indicates whether the produced document should be persisted",
    "type" : "Reference"
  },
  {
    "name" : "graph",
    "use" : "in",
    "min" : 0,
    "max" : "1",
    "documentation" : "Canonical reference to a GraphDefinition. If a URL is provided, it is the canonical reference to a GraphDefinition that it controls what resources are to be added to the bundle when building the document. The GraphDefinition can also specify profiles that apply to the various resources",
    "type" : "uri"
  },
  {
    "name" : "return",
    "use" : "out",
    "min" : 1,
    "max" : "1",
    "documentation" : "The bundle containing the composition and resources associated with it. See FHIR Documents for information on resources that may be included in the bundle.",
    "type" : "Bundle"
  }],
  "overload" : [{
    "parameterName" : ["persist",
    "graph"]
  },
  {
    "parameterName" : ["persist"],
    "comment" : "Graph is presumed to only be direct references if not specified"
  }]
}