{
  "resourceType": "OperationDefinition",
  "url": "http://phr.kanta.fi/fiphr-od-readWithIncludes",
  "name": "ReadWithIncludes",
  "status": "draft",
  "kind": "operation",
  "publisher": "Kela",
  "description": "ReadWithIncludes extends read operation. In addition to a resource corresponding to id parameter (main resource) also resources referenced by the main resource are included to the result",
  "code": "readWithIncludes",
  "resource": [
    "Observation",
    "QuestionnaireResponse",
    "CarePlan",
    "MedicationAdministration"
  ],
  "system": false,
  "type": false,
  "instance": true,
  "parameter": [
    {
      "name": "query",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "The id of the resource that will be read.",
      "type": "id"
    },
    {
      "name": "result",
      "use": "out",
      "min": 1,
      "max": "1",
      "documentation": "The resource being read and the resources to which it refers.",
      "type": "Bundle"
    }
  ]
}