PackagesCanonicalsLogsProblems
    Packages
    uk.nhsengland.genomics.r4@0.5.3
    https://fhir.nhs.uk/GraphDefinition/genomics-test-orders-group
{
  "description": "GraphDefinition for retrieving all resources relevant to a Genomic Trio Test Order (proband, father, mother). Starts from ServiceRequest and traverses all key references.",
  "_filename": "examples/GraphDefinition-Genomics-TestOrdersGroup-Example.json",
  "package_name": "uk.nhsengland.genomics.r4",
  "date": "2026-03-24",
  "publisher": "NHS England",
  "name": "GenomicsTestOrdersGroup",
  "start": "ServiceRequest",
  "type": null,
  "experimental": null,
  "resourceType": "GraphDefinition",
  "title": null,
  "package_version": "0.5.3",
  "status": "draft",
  "link": [ {
    "max": "*",
    "min": 0,
    "path": "ServiceRequest.extension.valueReference",
    "target": [ {
      "type": "PractitionerRole"
    } ],
    "sliceName": "additionalContact",
    "description": "Link to additional contacts for request"
  }, {
    "max": "1",
    "min": 1,
    "path": "ServiceRequest.subject",
    "target": [ {
      "type": "Patient"
    } ],
    "description": "Link to the patient the request is for (proband, father, or mother)"
  }, {
    "max": "1",
    "min": 1,
    "path": "ServiceRequest.requester",
    "target": [ {
      "type": "PractitionerRole"
    } ],
    "description": "Link to the requester of the genomic test order"
  }, {
    "max": "*",
    "min": 0,
    "path": "ServiceRequest.reasonReference",
    "target": [ {
      "type": "Condition"
    } ],
    "description": "Optional link to the primary condition constituting the reason for testing"
  }, {
    "max": "*",
    "min": 0,
    "path": "ServiceRequest.supportingInfo",
    "target": [ {
      "link": [ {
        "max": "1",
        "min": 1,
        "target": [ {
          "type": "Patient",
          "params": "link={ref}"
        } ],
        "description": "Patient linked to this RelatedPerson"
      } ],
      "type": "RelatedPerson"
    }, {
      "link": [ {
        "max": "1",
        "min": 0,
        "path": "Observation.extension.valueReference",
        "target": [ {
          "type": "BodyStructure"
        } ],
        "description": "Optional link to body structure related to the observation"
      }, {
        "max": "1",
        "min": 0,
        "path": "Observation.focus",
        "target": [ {
          "type": "Specimen"
        } ],
        "description": "Optional link to specimen the observation is about, if relevant"
      }, {
        "max": "1",
        "min": 0,
        "path": "Observation.performer",
        "target": [ {
          "type": "Resource"
        } ],
        "description": "Optional link to actor who performed the observation (could be Patient, PractitionerRole or RelatedPerson)"
      }, {
        "max": "*",
        "min": 0,
        "path": "Observation.hasMember",
        "target": [ {
          "type": "Observation"
        } ],
        "description": "Optional link to observation if parent observation is a panel"
      } ],
      "type": "Observation"
    }, {
      "link": [ {
        "max": "1",
        "min": 0,
        "path": "Condition.recorder",
        "target": [ {
          "type": "Resource"
        } ],
        "description": "Optional link to actor which recorded condition (could be Patient, PreactitionerRole or RelatedPerson)"
      }, {
        "max": "1",
        "min": 0,
        "path": "Condition.asserter",
        "target": [ {
          "type": "Resource"
        } ],
        "description": "Optional link to actor which asserted condition (could be Patient, PreactitionerRole or RelatedPerson)"
      } ],
      "type": "Condition"
    }, {
      "type": "Procedure"
    }, {
      "link": [ {
        "max": "*",
        "min": 0,
        "path": "FamilyMemberHistory.extension.valueReference",
        "target": [ {
          "type": "Observation"
        } ],
        "sliceName": "family-member-history-genetics-observation",
        "description": "Optional link to observations related to a FamilyMemberHistory"
      }, {
        "max": "*",
        "min": 0,
        "path": "FamilyMemberHistory.extension.valueReference",
        "target": [ {
          "type": "Patient"
        } ],
        "sliceName": "familymemberhistory-patient-record",
        "description": "Optional link to Patient resources for related family members"
      } ],
      "type": "FamilyMemberHistory"
    }, {
      "link": [ {
        "max": "1",
        "min": 1,
        "path": "Specimen.subject",
        "target": [ {
          "type": "Patient"
        } ],
        "description": "Link to the patient the specimen is from"
      }, {
        "max": "1",
        "min": 0,
        "path": "Specimen.parent",
        "target": [ {
          "type": "Specimen"
        } ],
        "description": "Link to parent specimen resource"
      }, {
        "max": "1",
        "min": 0,
        "path": "Specimen.collection.collector",
        "target": [ {
          "type": "PractitionerRole"
        } ],
        "description": "Link to collector of the specimen"
      }, {
        "max": "1",
        "min": 0,
        "path": "Specimen.collection.extension('http://hl7.org/fhir/StructureDefinition/bodySite').valueReference",
        "target": [ {
          "type": "BodyStructure"
        } ],
        "sliceName": "bodySite",
        "description": "Link to the body structure detailing the morphology and topography of the specimen"
      } ],
      "type": "Specimen"
    }, {
      "link": [ {
        "max": "1",
        "min": 0,
        "path": "Consent.sourceReference",
        "target": [ {
          "link": [ {
            "max": "1",
            "min": 1,
            "path": "QuestionnaireResponse.author",
            "target": [ {
              "type": "PractitionerRole"
            } ],
            "description": "Author of the RoD, most likely a PractitionerRole resource (if a reference)"
          }, {
            "max": "1",
            "min": 1,
            "path": "QuestionnaireResponse.source",
            "target": [ {
              "type": "Resource"
            } ],
            "description": "Source of the RoD (could be Patient, PractitionerRole or RelatedPerson)"
          } ],
          "type": "QuestionnaireResponse"
        }, {
          "type": "DocumentReference"
        } ],
        "description": "Optional link to structured QuestionnaireResponse or DocumentReference for RoD/consent forms"
      }, {
        "max": "1",
        "min": 1,
        "path": "Consent.patient",
        "target": [ {
          "type": "Patient"
        } ],
        "description": "Link to Patient resource (relevant for instances where the consent does not apply to the proband)"
      } ],
      "type": "Consent"
    }, {
      "type": "QuestionnaireResponse"
    }, {
      "type": "Condition"
    } ],
    "description": "Link to additional clinical information to support processing/interpretation of the request"
  }, {
    "max": "*",
    "min": 0,
    "path": "ServiceRequest.specimen",
    "target": [ {
      "link": [ {
        "max": "1",
        "min": 1,
        "path": "Specimen.subject",
        "target": [ {
          "type": "Patient"
        } ],
        "description": "Link to the patient the specimen is from"
      }, {
        "max": "1",
        "min": 0,
        "path": "Specimen.parent",
        "target": [ {
          "type": "Specimen"
        } ],
        "description": "Link to parent specimen resource"
      }, {
        "max": "1",
        "min": 0,
        "path": "Specimen.collection.collector",
        "target": [ {
          "type": "PractitionerRole"
        } ],
        "description": "Link to collector of the specimen"
      }, {
        "max": "1",
        "min": 0,
        "path": "Specimen.collection.extension('http://hl7.org/fhir/StructureDefinition/bodySite').valueReference",
        "target": [ {
          "type": "BodyStructure"
        } ],
        "sliceName": "bodySite",
        "description": "Link to the body structure detailing the morphology and topography of the specimen"
      } ],
      "type": "Specimen",
      "params": "request={ref}"
    } ],
    "description": "Optional link to specimen where this has already been collected/ordered prior to request submission"
  }, {
    "max": "*",
    "min": 0,
    "target": [ {
      "link": [ {
        "max": "*",
        "min": 0,
        "path": "ServiceRequest.extension.valueReference",
        "target": [ {
          "type": "PractitionerRole"
        } ],
        "sliceName": "additionalContact",
        "description": "Link to additional contacts for request"
      }, {
        "max": "1",
        "min": 1,
        "path": "ServiceRequest.subject",
        "target": [ {
          "type": "Patient"
        } ],
        "description": "Link to the patient the request is for (proband, father, or mother)"
      }, {
        "max": "1",
        "min": 1,
        "path": "ServiceRequest.requester",
        "target": [ {
          "type": "PractitionerRole"
        } ],
        "description": "Link to the requester of the genomic test order"
      }, {
        "max": "*",
        "min": 0,
        "path": "ServiceRequest.reasonReference",
        "target": [ {
          "type": "Condition"
        } ],
        "description": "Optional link to the primary condition constituting the reason for testing"
      }, {
        "max": "*",
        "min": 0,
        "path": "ServiceRequest.supportingInfo",
        "target": [ {
          "link": [ {
            "max": "1",
            "min": 1,
            "target": [ {
              "type": "Patient",
              "params": "link={ref}"
            } ],
            "description": "Patient linked to this RelatedPerson"
          } ],
          "type": "RelatedPerson"
        }, {
          "link": [ {
            "max": "1",
            "min": 0,
            "path": "Observation.extension.valueReference",
            "target": [ {
              "type": "BodyStructure"
            } ],
            "description": "Optional link to body structure related to the observation"
          }, {
            "max": "1",
            "min": 0,
            "path": "Observation.focus",
            "target": [ {
              "type": "Specimen"
            } ],
            "description": "Optional link to specimen the observation is about, if relevant"
          }, {
            "max": "1",
            "min": 0,
            "path": "Observation.performer",
            "target": [ {
              "type": "Resource"
            } ],
            "description": "Optional link to actor who performed the observation (could be Patient, PractitionerRole or RelatedPerson)"
          }, {
            "max": "*",
            "min": 0,
            "path": "Observation.hasMember",
            "target": [ {
              "type": "Observation"
            } ],
            "description": "Optional link to observation if parent observation is a panel"
          } ],
          "type": "Observation"
        }, {
          "link": [ {
            "max": "1",
            "min": 0,
            "path": "Condition.recorder",
            "target": [ {
              "type": "Resource"
            } ],
            "description": "Optional link to actor which recorded condition (could be Patient, PreactitionerRole or RelatedPerson)"
          }, {
            "max": "1",
            "min": 0,
            "path": "Condition.asserter",
            "target": [ {
              "type": "Resource"
            } ],
            "description": "Optional link to actor which asserted condition (could be Patient, PreactitionerRole or RelatedPerson)"
          } ],
          "type": "Condition"
        }, {
          "type": "Procedure"
        }, {
          "link": [ {
            "max": "*",
            "min": 0,
            "path": "FamilyMemberHistory.extension.valueReference",
            "target": [ {
              "type": "Observation"
            } ],
            "sliceName": "family-member-history-genetics-observation",
            "description": "Optional link to observations related to a FamilyMemberHistory"
          }, {
            "max": "*",
            "min": 0,
            "path": "FamilyMemberHistory.extension.valueReference",
            "target": [ {
              "type": "Patient"
            } ],
            "sliceName": "familymemberhistory-patient-record",
            "description": "Optional link to Patient resources for related family members"
          } ],
          "type": "FamilyMemberHistory"
        }, {
          "link": [ {
            "max": "1",
            "min": 1,
            "path": "Specimen.subject",
            "target": [ {
              "type": "Patient"
            } ],
            "description": "Link to the patient the specimen is from"
          }, {
            "max": "1",
            "min": 0,
            "path": "Specimen.parent",
            "target": [ {
              "type": "Specimen"
            } ],
            "description": "Link to parent specimen resource"
          }, {
            "max": "1",
            "min": 0,
            "path": "Specimen.collection.collector",
            "target": [ {
              "type": "PractitionerRole"
            } ],
            "description": "Link to collector of the specimen"
          }, {
            "max": "1",
            "min": 0,
            "path": "Specimen.collection.extension('http://hl7.org/fhir/StructureDefinition/bodySite').valueReference",
            "target": [ {
              "type": "BodyStructure"
            } ],
            "sliceName": "bodySite",
            "description": "Link to the body structure detailing the morphology and topography of the specimen"
          } ],
          "type": "Specimen"
        }, {
          "link": [ {
            "max": "1",
            "min": 0,
            "path": "Consent.sourceReference",
            "target": [ {
              "link": [ {
                "max": "1",
                "min": 1,
                "path": "QuestionnaireResponse.author",
                "target": [ {
                  "type": "PractitionerRole"
                } ],
                "description": "Author of the RoD, most likely a PractitionerRole resource (if a reference)"
              }, {
                "max": "1",
                "min": 1,
                "path": "QuestionnaireResponse.source",
                "target": [ {
                  "type": "Resource"
                } ],
                "description": "Source of the RoD (could be Patient, PractitionerRole or RelatedPerson)"
              } ],
              "type": "QuestionnaireResponse"
            }, {
              "type": "DocumentReference"
            } ],
            "description": "Optional link to structured QuestionnaireResponse or DocumentReference for RoD/consent forms"
          }, {
            "max": "1",
            "min": 1,
            "path": "Consent.patient",
            "target": [ {
              "type": "Patient"
            } ],
            "description": "Link to Patient resource (relevant for instances where the consent does not apply to the proband)"
          } ],
          "type": "Consent"
        }, {
          "type": "QuestionnaireResponse"
        }, {
          "type": "Condition"
        } ],
        "description": "Link to additional clinical information to support processing/interpretation of the request"
      }, {
        "max": "*",
        "min": 0,
        "path": "ServiceRequest.specimen",
        "target": [ {
          "link": [ {
            "max": "1",
            "min": 1,
            "path": "Specimen.subject",
            "target": [ {
              "type": "Patient"
            } ],
            "description": "Link to the patient the specimen is from"
          }, {
            "max": "1",
            "min": 0,
            "path": "Specimen.parent",
            "target": [ {
              "type": "Specimen"
            } ],
            "description": "Link to parent specimen resource"
          }, {
            "max": "1",
            "min": 0,
            "path": "Specimen.collection.collector",
            "target": [ {
              "type": "PractitionerRole"
            } ],
            "description": "Link to collector of the specimen"
          }, {
            "max": "1",
            "min": 0,
            "path": "Specimen.collection.extension('http://hl7.org/fhir/StructureDefinition/bodySite').valueReference",
            "target": [ {
              "type": "BodyStructure"
            } ],
            "sliceName": "bodySite",
            "description": "Link to the body structure detailing the morphology and topography of the specimen"
          } ],
          "type": "Specimen",
          "params": "request={ref}"
        } ],
        "description": "Optional link to specimen where this has already been collected/ordered prior to request submission"
      } ],
      "type": "ServiceRequest",
      "params": "requisition={ServiceRequest.requisition}"
    } ],
    "description": "Other ServiceRequests in the trio with the same requisition identifier"
  } ],
  "id": "510ef143-0f98-4716-8cf9-025632bf672d",
  "kind": null,
  "url": "https://fhir.nhs.uk/GraphDefinition/genomics-test-orders-group",
  "version": "0.2.0"
}