{
  "resourceType" : "GraphDefinition",
  "id" : "full-referral-prescription",
  "language" : "en",
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: GraphDefinition full-referral-prescription</b></p><a name=\"full-referral-prescription\"> </a><a name=\"hcfull-referral-prescription\"> </a><p><b>StructureDefinition FMM Level</b>: 1</p><p><b>url</b>: <a href=\"GraphDefinition-full-referral-prescription.html\">GraphDefinition FullReferralPrescription</a></p><p><b>version</b>: 1.1.0</p><p><b>name</b>: FullReferralPrescription</p><p><b>status</b>: Active</p><p><b>date</b>: 2024-09-20 15:31:51+0200</p><p><b>publisher</b>: eHealth Platform</p><p><b>contact</b>: eHealth Platform: <a href=\"https://www.ehealth.fgov.be\">https://www.ehealth.fgov.be</a>, Message structure: <a href=\"mailto:message-structure@ehealth.fgov.be\">message-structure@ehealth.fgov.be</a></p><p><b>description</b>: </p><div><p>Specify to include all useful resources around a ServiceRequest that can be retrieved with the $graph operation.</p>\n</div><p><b>jurisdiction</b>: <span title=\"Codes:{urn:iso:std:iso:3166 BE}\">Belgium</span></p><p><b>start</b>: ServiceRequest</p><blockquote><p><b>link</b></p><p><b>path</b>: ServiceRequest.requester</p><p><b>min</b>: 1</p><p><b>max</b>: 1</p><p><b>description</b>: Get the PractitionerRole of the requester of the ServiceRequest</p><blockquote><p><b>target</b></p><p><b>type</b>: PractitionerRole</p><blockquote><p><b>link</b></p><p><b>path</b>: PractitionerRole.practitioner</p><p><b>min</b>: 1</p><p><b>max</b>: 1</p><p><b>description</b>: Get the Practitioner of the requester of the ServiceRequest</p><h3>Targets</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td></tr><tr><td style=\"display: none\">*</td><td>Practitioner</td></tr></table></blockquote></blockquote></blockquote><blockquote><p><b>link</b></p><p><b>min</b>: 1</p><p><b>description</b>: Get all Tasks corresponding to the BeReferralTask + all BePerformerTasks linked to the ServiceRequest</p><blockquote><p><b>target</b></p><p><b>type</b>: Task</p><p><b>params</b>: focus={ref}</p><blockquote><p><b>link</b></p><p><b>path</b>: Task.owner</p><p><b>min</b>: 1</p><p><b>max</b>: 1</p><p><b>description</b>: Get the PractitionerRole of the caregiver owner of the task</p><blockquote><p><b>target</b></p><p><b>type</b>: PractitionerRole</p><blockquote><p><b>link</b></p><p><b>path</b>: PractitionerRole.practitioner</p><p><b>min</b>: 1</p><p><b>max</b>: 1</p><p><b>description</b>: Get the Practitioner of the caregiver owner of the task</p><h3>Targets</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td></tr><tr><td style=\"display: none\">*</td><td>Practitioner</td></tr></table></blockquote></blockquote></blockquote></blockquote></blockquote></div>"
  },
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger" : 1
  }],
  "url" : "https://www.ehealth.fgov.be/standards/fhir/drp/GraphDefinition/full-referral-prescription",
  "version" : "1.1.0",
  "name" : "FullReferralPrescription",
  "status" : "active",
  "date" : "2024-09-20T15:31:51+02:00",
  "publisher" : "eHealth Platform",
  "contact" : [{
    "name" : "eHealth Platform",
    "telecom" : [{
      "system" : "url",
      "value" : "https://www.ehealth.fgov.be"
    }]
  },
  {
    "name" : "Message structure",
    "telecom" : [{
      "system" : "email",
      "value" : "message-structure@ehealth.fgov.be"
    }]
  }],
  "description" : "Specify to include all useful resources around a ServiceRequest that can be retrieved with the $graph operation.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "urn:iso:std:iso:3166",
      "code" : "BE"
    }]
  }],
  "start" : "ServiceRequest",
  "link" : [{
    "path" : "ServiceRequest.requester",
    "min" : 1,
    "max" : "1",
    "description" : "Get the PractitionerRole of the requester of the ServiceRequest",
    "target" : [{
      "type" : "PractitionerRole",
      "link" : [{
        "path" : "PractitionerRole.practitioner",
        "min" : 1,
        "max" : "1",
        "description" : "Get the Practitioner of the requester of the ServiceRequest",
        "target" : [{
          "type" : "Practitioner"
        }]
      }]
    }]
  },
  {
    "min" : 1,
    "description" : "Get all Tasks corresponding to the BeReferralTask + all BePerformerTasks linked to the ServiceRequest",
    "target" : [{
      "type" : "Task",
      "params" : "focus={ref}",
      "link" : [{
        "path" : "Task.owner",
        "min" : 1,
        "max" : "1",
        "description" : "Get the PractitionerRole of the caregiver owner of the task",
        "target" : [{
          "type" : "PractitionerRole",
          "link" : [{
            "path" : "PractitionerRole.practitioner",
            "min" : 1,
            "max" : "1",
            "description" : "Get the Practitioner of the caregiver owner of the task",
            "target" : [{
              "type" : "Practitioner"
            }]
          }]
        }]
      }]
    }]
  }]
}